SPHSolver3.h
Go to the documentation of this file.
void OnBeginAdvanceTimeStep(double timeStepInSeconds) override
Performs pre-processing step before the simulation.
DerivedBuilder & WithRelativeKernelRadius(double relativeKernelRadius)
Returns builder with relative kernel radius.
Definition: SPHSolver3.h:225
void SetTimeStepLimitScale(double newScale)
Sets the multiplier that scales the max allowed time-step.
void SetPseudoViscosityCoefficient(double newPseudoViscosityCoefficient)
Sets the pseudo viscosity coefficient.
void SetEosExponent(double newEosExponent)
Sets the exponent part of the equation-of-state.
DerivedBuilder & WithTargetSpacing(double targetSpacing)
Returns builder with target spacing.
Definition: SPHSolver3.h:218
Basic 3-D particle system solver.
Definition: ParticleSystemSolver3.h:34
void SetSpeedOfSound(double newSpeedOfSound)
Sets the speed of sound.
void SetViscosityCoefficient(double newViscosityCoefficient)
Sets the viscosity coefficient.
double GetEosExponent() const
Returns the exponent part of the equation-of-state.
double GetNegativePressureScale() const
Returns the negative pressure scale.
SPHSolver3Ptr MakeShared() const
Builds shared pointer of SPHSolver3 instance.
1-D read-only array accessor class.
Definition: ArrayAccessor1.h:185
void OnEndAdvanceTimeStep(double timeStepInSeconds) override
Performs post-processing step before the simulation.
Definition: pybind11Utils.h:24
void AccumulateForces(double timeStepInSeconds) override
Accumulates the force to the forces array in the particle system.
DerivedBuilder & WithTargetDensity(double targetDensity)
Returns builder with target density.
Definition: SPHSolver3.h:211
Front-end to create SPHSolver3 objects step by step.
Definition: SPHSolver3.h:234
virtual ~SPHSolver3()
unsigned int GetNumberOfSubTimeSteps(double timeIntervalInSeconds) const override
Returns the number of sub-time-steps.
double GetTimeStepLimitScale() const
Multiplier that scales the max allowed time-step.
void ComputePseudoViscosity(double timeStepInSeconds)
Computes pseudo viscosity.
Base class for SPH-based fluid solver builder.
Definition: SPHSolver3.h:192
SPHSystemData3Ptr GetSPHSystemData() const
Returns the SPH system data.
std::shared_ptr< SPHSolver3 > SPHSolver3Ptr
Shared pointer type for the SPHSolver3.
Definition: SPHSolver3.h:186
double GetViscosityCoefficient() const
Returns the viscosity coefficient.
void AccumulateViscosityForce()
double m_relativeKernelRadius
Definition: SPHSolver3.h:207
virtual void AccumulateNonPressureForces(double timeStepInSeconds)
double GetPseudoViscosityCoefficient() const
Returns the pseudo viscosity coefficient.
void SetNegativePressureScale(double newNegativePressureScale)
Sets the negative pressure scale.
std::shared_ptr< SPHSystemData3 > SPHSystemData3Ptr
Shared pointer for the SPHSystemData3 type.
Definition: SPHSystemData3.h:191
virtual void AccumulatePressureForce(double timeStepInSeconds)