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