Hy @ all,
I would like to calculate & print out the mass and the number of particles included in the calculation area.
I ´ve tried to use the following commands:
variable m equal mass(all)
fix extra all print 100 "$t $m" file out.txt screen no title "%step totalmass"
but I don´t know whats really calculated with this command.
It would be nice, if someone could help me,
Michael
ckloss | Mon, 10/03/2011 - 16:11
Hi Michael, does this command
Hi Michael,
does this command sequence work?
"variable m equal mass(all)" should calculate the total particle mass, and fix print outputs it
Christoph
AignerM | Mon, 10/03/2011 - 16:26
Hy Christoph, the sequence
Hy Christoph,
the sequence and the print comand both work without problems.
I´m not sure which density is used for calculation. In an former input script I´ve defined the desity as follows:
variable density equal 2500
Is that the density used in the mass(all) command??
Sincerely,
Michael
ckloss | Mon, 10/03/2011 - 16:33
The density that is used for
The density that is used for the calculation is the one that is assigned to the particles (e.g. via the fix pour, fix particletemplate/sphere or set command, depending on how you insert the particles
Christoph
AignerM | Mon, 10/03/2011 - 16:48
P.S.: Could you please also
P.S.: Could you please also give me a tip, how can I write out the number of particles included in my simulation....
--> Thanks
ckloss | Mon, 10/03/2011 - 17:04
variable n equal atoms - that
variable n equal atoms
- that should do it (variable n stores then the #particles)
Christoph
AignerM | Mon, 10/03/2011 - 17:32
Thank you for your
Thank you for your help....
Now it works and I´m sure about the outcome!!
Michael