SPHSolver3.hpp
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.hpp:242
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.hpp:235
Basic 3-D particle system solver.
Definition: ParticleSystemSolver3.hpp:36
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.
void OnEndAdvanceTimeStep(double timeStepInSeconds) override
Performs post-processing step before the simulation.
Definition: pybind11Utils.hpp:20
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.hpp:228
SPHSolver3 & operator=(const SPHSolver3 &)=delete
Deleted copy assignment operator.
Front-end to create SPHSolver3 objects step by step.
Definition: SPHSolver3.hpp:252
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.hpp:208
SPHSystemData3Ptr GetSPHSystemData() const
Returns the SPH system data.
std::shared_ptr< SPHSolver3 > SPHSolver3Ptr
Shared pointer type for the SPHSolver3.
Definition: SPHSolver3.hpp:202
double GetViscosityCoefficient() const
Returns the viscosity coefficient.
void AccumulateViscosityForce()
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: SPHSystemData.hpp:256
virtual void AccumulatePressureForce(double timeStepInSeconds)