21 return "create monolithic body";
50 return "create differentiated body";
58 for (
int i = 0; i < layerCnt; ++i) {
83 return "create single particle";
101 return "create impactor";
128 int boundaryThreshold;
134 return "set equilibrium energy";
151 Float centralValue = 1.f;
152 Float radialGrad = 0.f;
160 return "modify quantity";
177 Float magnitude = 1.f;
183 return "Perlin noise";
195 template <Size Dims,
typename TSetter>
239 int particleCnt = 10000;
250 return "polytrope ICs";
265 Float centralDensity = 1000._f;
266 Float centralEnergy = 1000._f;
267 Float gamma = 4._f / 3._f;
268 int particleCnt = 10000;
274 return "isothermal sphere ICs";
double Float
Precision used withing the code. Use Float instead of float or double where precision is important.
Three-dimensional dynamically-allocated container.
@ GEOMETRY
Job providing geometry.
@ MATERIAL
Job providing a material.
@ PARTICLES
Job providing particles.
#define NAMESPACE_SPH_END
BasicVector< Float > Vector
Object providing safe access to continuous memory of data.
Creates a single differentiated body.
virtual VirtualSettings getSettings() override
Returns a settings object which allows to query and modify the state of the job.
DifferentiatedBodyIc(const std::string &name)
virtual std::string className() const override
Name representing the type of the job (e.e. "SPH").
virtual UnorderedMap< std::string, ExtJobType > getSlots() const override
Lists all potential inputs of the job.
virtual void evaluate(const RunSettings &global, IRunCallbacks &UNUSED(callbacks)) override
virtual std::string className() const override
Name representing the type of the job (e.e. "SPH").
virtual UnorderedMap< std::string, ExtJobType > getSlots() const override
Lists all potential inputs of the job.
EquilibriumIc(const std::string &name)
virtual void evaluate(const RunSettings &global, IRunCallbacks &UNUSED(callbacks)) override
virtual VirtualSettings getSettings() override
Returns a settings object which allows to query and modify the state of the job.
GalaxyIc(const std::string &name, const GalaxySettings &overrides=EMPTY_SETTINGS)
virtual VirtualSettings getSettings() override
Returns a settings object which allows to query and modify the state of the job.
virtual std::string className() const override
Name representing the type of the job (e.e. "SPH").
virtual void evaluate(const RunSettings &global, IRunCallbacks &UNUSED(callbacks)) override
virtual UnorderedMap< std::string, ExtJobType > getSlots() const override
Lists all potential inputs of the job.
Base class for all jobs providing particle data.
Callbacks executed by the simulation to provide feedback to the user.
virtual void evaluate(const RunSettings &global, IRunCallbacks &UNUSED(callbacks)) override
virtual UnorderedMap< std::string, ExtJobType > getSlots() const override
Lists all potential inputs of the job.
ImpactorIc(const std::string &name, const BodySettings &overrides=EMPTY_SETTINGS)
virtual std::string className() const override
Name representing the type of the job (e.e. "SPH").
virtual UnorderedMap< std::string, ExtJobType > requires() const override
List of slots that need to be connected to evaluate the job.
Helper object for storing three (possibly four) int or bool values.
virtual UnorderedMap< std::string, ExtJobType > getSlots() const override
Lists all potential inputs of the job.
virtual void evaluate(const RunSettings &global, IRunCallbacks &UNUSED(callbacks)) override
virtual VirtualSettings getSettings() override
Returns a settings object which allows to query and modify the state of the job.
IsothermalSphereIc(const std::string &name)
virtual std::string className() const override
Name representing the type of the job (e.e. "SPH").
virtual std::string className() const override
Name representing the type of the job (e.e. "SPH").
virtual UnorderedMap< std::string, ExtJobType > getSlots() const override
Lists all potential inputs of the job.
virtual VirtualSettings getSettings() override
Returns a settings object which allows to query and modify the state of the job.
ModifyQuantityIc(const std::string &name)
virtual void evaluate(const RunSettings &global, IRunCallbacks &UNUSED(callbacks)) override
Creates a single monolithic body.
virtual void evaluate(const RunSettings &global, IRunCallbacks &UNUSED(callbacks)) override
virtual std::string className() const override
Name representing the type of the job (e.e. "SPH").
struct MonolithicBodyIc::@13 slotUsage
virtual UnorderedMap< std::string, ExtJobType > requires() const override
List of slots that need to be connected to evaluate the job.
virtual void addParticleCategory(VirtualSettings &settings)
virtual VirtualSettings getSettings() override
Returns a settings object which allows to query and modify the state of the job.
virtual UnorderedMap< std::string, ExtJobType > getSlots() const override
Lists all potential inputs of the job.
MonolithicBodyIc(const std::string &name, const BodySettings &overrides=EMPTY_SETTINGS)
NBodyIc(const std::string &name, const NBodySettings &overrides=EMPTY_SETTINGS)
virtual void evaluate(const RunSettings &global, IRunCallbacks &UNUSED(callbacks)) override
virtual UnorderedMap< std::string, ExtJobType > getSlots() const override
Lists all potential inputs of the job.
virtual VirtualSettings getSettings() override
Returns a settings object which allows to query and modify the state of the job.
virtual std::string className() const override
Name representing the type of the job (e.e. "SPH").
virtual std::string className() const override
Name representing the type of the job (e.e. "SPH").
NoiseQuantityIc(const std::string &name)
virtual void evaluate(const RunSettings &global, IRunCallbacks &UNUSED(callbacks)) override
virtual UnorderedMap< std::string, ExtJobType > getSlots() const override
Lists all potential inputs of the job.
virtual VirtualSettings getSettings() override
Returns a settings object which allows to query and modify the state of the job.
virtual void evaluate(const RunSettings &global, IRunCallbacks &UNUSED(callbacks)) override
PolytropicStarIc(const std::string &name)
virtual UnorderedMap< std::string, ExtJobType > getSlots() const override
Lists all potential inputs of the job.
virtual VirtualSettings getSettings() override
Returns a settings object which allows to query and modify the state of the job.
virtual std::string className() const override
Name representing the type of the job (e.e. "SPH").
SingleParticleIc(const std::string &name)
virtual UnorderedMap< std::string, ExtJobType > getSlots() const override
Lists all potential inputs of the job.
virtual std::string className() const override
Name representing the type of the job (e.e. "SPH").
virtual void evaluate(const RunSettings &global, IRunCallbacks &UNUSED(callbacks)) override
virtual VirtualSettings getSettings() override
Returns a settings object which allows to query and modify the state of the job.
INLINE TValue & insert(const TKey &key, const TValue &value)
Adds a new element into the map or sets new value of element with the same key.
Holds a map of virtual entries, associated with a unique name.
const EmptySettingsTag EMPTY_SETTINGS
@ PARAMETRIZED_SPIRALING
Parametrized spiraling scheme by Saff & Kuijlaars (1997)
constexpr Float R_sun
Solar radius.