SPHSolver2.hpp
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.hpp:202
virtual void AccumulatePressureForce(double timeStepInSeconds)
Base class for SPH-based fluid solver builder.
Definition: SPHSolver2.hpp:208
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)
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.hpp:242
double GetPseudoViscosityCoefficient() const
Returns the pseudo viscosity coefficient.
void AccumulateForces(double timeStepInSeconds) override
Accumulates the force to the forces array in the particle system.
Definition: pybind11Utils.hpp:20
Front-end to create SPHSolver2 objects step by step.
Definition: SPHSolver2.hpp:252
DerivedBuilder & WithTargetSpacing(double targetSpacing)
Returns builder with target spacing.
Definition: SPHSolver2.hpp:235
SPHSolver2 & operator=(const SPHSolver2 &)=delete
Deleted copy assignment operator.
Basic 2-D particle system solver.
Definition: ParticleSystemSolver2.hpp:36
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: SPHSystemData.hpp:253
DerivedBuilder & WithTargetDensity(double targetDensity)
Returns builder with target density.
Definition: SPHSolver2.hpp:228
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()