Trouble writing variable (mass) to file

Submitted by RocheDEM on
Attachment Size
Volume.tar_.gz 80.65 KB
Error Message.txt 3.85 KB
How to Liggghts.pdf 138.43 KB
RocheDEM

In reply to by anonymous_stub (not verified)

Christoph,

I have attached the How to Liggghts.pdf (to my original post) that I was following, it comes from section 6. for calculating mass flow. I am just trying to find the mass contained within the box, I dont need to determine the mass flow for this model. Although I will need to calculate the mass flow for other models.

Thank you,

Kirk

Fri, 5 Oct 2012 - 13:53 Permalink
richti83

In reply to by anonymous_stub (not verified)

Hi,

you have to define
variable t equal step*dt
before !
(or don't use it in fix out all print...)

(@chris: i'm the author of this "how to", maybe its not good located at downloads->paraview plugin and should be moved to a FAQ section)

Fri, 5 Oct 2012 - 15:17 Permalink
RocheDEM

In reply to by anonymous_stub (not verified)

Hi Christian,

I foolishly assumed that t was an internal variable and didnt require a definition. I have changed my script accordingly.

I was also wondering if the placement of the fix_print is important in the script, should it be at the very end of the script or just after the variable deffinitions?

Kirk

Fri, 5 Oct 2012 - 15:59 Permalink
richti83

In reply to by anonymous_stub (not verified)

unfurtunately t is not a standard keyword and because dt could change during a simulation (settle with higher dt than flow) it is not as easy to implement this.
The placement is regardless because all commands are evaluated at the run command, so make sure the variable definitions and output fixes are ahead the run command and everthing should be OK.

Fri, 5 Oct 2012 - 19:07 Permalink
ckloss

In reply to by anonymous_stub (not verified)

Hi Christian,

thanks for the hint! I created a new "Tutorials" section and put it for download there.

Cheers, Christoph

Sat, 6 Oct 2012 - 19:37 Permalink

Hi,

I am trying to write the mass of contained within a region to a file. I get an error at
step 10000 (I call the fix print every 10000 cycles) and the program exits. Could someone help me with my problem.

I am trying to follow the example shown in the "How To Liggghts" document under the calculate mass flow section (section 6).

My script and other associated files are attached.

Thank you

Kirk