double Float
Precision used withing the code. Use Float instead of float or double where precision is important.
Storage convertSphToSpheres(const Storage &sph, const RunSettings &settings, const HandoffParams ¶ms)
#define NAMESPACE_SPH_END
Container for storing particle quantities and materials.
Container storing all quantities used within the simulations.
AutoPtr< IDistribution > distribution
Optional< Size > particleOverride
New number of particles in the largest remnant.
Float radiusMultiplier
Conversion factor between smoothing length and particle radius.
Radius
Determines how to compute the radii of the spheres.
@ EQUAL_VOLUME
The created sphere has the same volume as the SPH particles (=mass/density)
@ SMOOTHING_LENGTH
The radius is proportional to the smoothing length of the particles.
Optional< LargestRemnant > largestRemnant
Float sublimationEnergy
Threshold energy for removal of SPH particles.
bool centerOfMassSystem
If true, the particles are moved to a system where the center of mass is at the origin.