Mass calculation

Submitted by AignerM on
AignerM

In reply to by anonymous_stub (not verified)

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

Mon, 3 Oct 2011 - 16:26 Permalink
ckloss

In reply to by anonymous_stub (not verified)

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

Mon, 3 Oct 2011 - 16:33 Permalink
AignerM

In reply to by anonymous_stub (not verified)

P.S.: Could you please also give me a tip, how can I write out the number of particles included in my simulation....
--> Thanks

Mon, 3 Oct 2011 - 16:48 Permalink
AignerM

In reply to by anonymous_stub (not verified)

Thank you for your help....
Now it works and I´m sure about the outcome!!

Michael

Mon, 3 Oct 2011 - 17:32 Permalink

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