LIGGGHTS WWW Site - LIGGGHTS Documentation - LIGGGHTS Commands
Syntax:
compute id group totalmass filename
ID, group-ID are documented in compute command
totalmass = style name of this compute command
file where to output
Examples:
compute 1 all totalmass out.mass
Description:
Computes the total mass of the given group. Also, it outputs this mass to the given file. The output is written every time the compute is invoked by a dump command (a dump global or dump local):
Example: If you define a
compute 1 all totalmass out.mass2
and a
dump dmp2 all local 100 out.mass1 c_1
the mass is written to both the files out.mass1 and out.mass2. The difference is that out.mass2 is written in a format {timestep mass}, that can easily be . This is e.g. useful for tracking particles gained at a inlet or lost at an outlet.
Output info:
The mass is output as global value, to be accessed e.g. by the thermo command and as local value. Both output contains the total group mass (sum of all processor partitions).
Restrictions: none
Related commands:
Default: none