Forums
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
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
In reply to by anonymous_stub (not verified)
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
In reply to by anonymous_stub (not verified)
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
In reply to by anonymous_stub (not verified)
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
In reply to by anonymous_stub (not verified)
variable n equal atoms - that
variable n equal atoms
- that should do it (variable n stores then the #particles)
Christoph
In reply to by anonymous_stub (not verified)
Thank you for your
Thank you for your help....
Now it works and I´m sure about the outcome!!
Michael