SPH
Handoff.h
Go to the documentation of this file.
1 #pragma once
2 
7 
8 #include "quantities/Storage.h"
9 
11 
13 
14 struct HandoffParams {
15 
17  enum class Radius {
20 
23 
24  };
25 
27 
32 
35 
37  bool centerOfMassSystem = false;
38 
39 
40  struct LargestRemnant {
41 
46 
51  };
52 
56 
58 };
59 
60 Storage convertSphToSpheres(const Storage& sph, const RunSettings& settings, const HandoffParams& params);
61 
NAMESPACE_SPH_BEGIN
Definition: BarnesHut.cpp:13
double Float
Precision used withing the code. Use Float instead of float or double where precision is important.
Definition: Globals.h:13
Storage convertSphToSpheres(const Storage &sph, const RunSettings &settings, const HandoffParams &params)
Definition: Handoff.cpp:139
constexpr Float LARGE
Definition: MathUtils.h:34
#define NAMESPACE_SPH_END
Definition: Object.h:12
Container for storing particle quantities and materials.
Container storing all quantities used within the simulations.
Definition: Storage.h:230
AutoPtr< IDistribution > distribution
Definition: Handoff.h:50
Optional< Size > particleOverride
New number of particles in the largest remnant.
Definition: Handoff.h:45
Float radiusMultiplier
Conversion factor between smoothing length and particle radius.
Definition: Handoff.h:31
Radius
Determines how to compute the radii of the spheres.
Definition: Handoff.h:17
@ 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
Definition: Handoff.h:57
Float sublimationEnergy
Threshold energy for removal of SPH particles.
Definition: Handoff.h:34
bool centerOfMassSystem
If true, the particles are moved to a system where the center of mass is at the origin.
Definition: Handoff.h:37
Radius radius
Definition: Handoff.h:26