Trouble writing variable (mass) to file

Submitted by RocheDEM on Fri, 10/05/2012 - 00:04

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

AttachmentSize
Binary Data Volume.tar_.gz80.65 KB
Plain text icon Error Message.txt3.85 KB
PDF icon How to Liggghts.pdf138.43 KB

RocheDEM | Fri, 10/05/2012 - 13:53

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

Kirk A. Fraser, ing. P.Eng.
Ingénieur en Conception
Design Engineer
________________________________________
kirk.fraser@roche.ca

Tél. : 418.549.6472 Poste : 263
Cell. : 418.540.1454

richti83's picture

richti83 | Fri, 10/05/2012 - 15:17

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)

I'm not an associate of DCS GmbH and not a core developer of LIGGGHTS®
ResearchGate | Contact

RocheDEM | Fri, 10/05/2012 - 15:59

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

Kirk A. Fraser, ing. P.Eng.
Ingénieur en Conception
Design Engineer
________________________________________
kirk.fraser@roche.ca

Tél. : 418.549.6472 Poste : 263
Cell. : 418.540.1454

richti83's picture

richti83 | Fri, 10/05/2012 - 19:07

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.

I'm not an associate of DCS GmbH and not a core developer of LIGGGHTS®
ResearchGate | Contact

RocheDEM | Sat, 10/06/2012 - 17:26

Thank you, I got it working as I wanted.

Your help is very appreciated.

Kirk

Kirk A. Fraser, ing. P.Eng.
Ingénieur en Conception
Design Engineer
________________________________________
kirk.fraser@roche.ca

Tél. : 418.549.6472 Poste : 263
Cell. : 418.540.1454

ckloss's picture

ckloss | Sat, 10/06/2012 - 19:37

Hi Christian,

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

Cheers, Christoph