ConstrainNumParticles

class ConstrainNumParticles : public feasst::Constraint

Constrain the number of the number of particles.

Arguments

  • maximum: maximum number of particles. If -1, no limit (default: -1).

  • minimum: minimum number of particles (default: 0).

  • type: particle type. If -1, all types (default: -1).