NumParticles
-
class NumParticles : public feasst::Analyze
Accumulate statistics for number of particles.
Arguments
particle_type: index of particle type from configuration. If -1, sum all particles (default: -1).
group: index of group from configuration. If -1, sum all particles (default: -1). Can only be specified if particle_type is -1.
Stepper arguments.
Public Functions
-
std::string header(const MonteCarlo &mc) const
Return the header for writing.
-
void initialize(MonteCarlo *mc)
Initialize and precompute before trials.
-
void update(const MonteCarlo &mc)
Perform update action.
-
std::string write(const MonteCarlo &mc)
Perform write action.