Loading...
Searching...
No Matches
SPHSolver2.hpp
Go to the documentation of this file.
Definition Matrix.hpp:30
Basic 2-D particle system solver.
Definition ParticleSystemSolver2.hpp:37
Front-end to create SPHSolver2 objects step by step.
Definition SPHSolver2.hpp:253
SPHSolver2Ptr MakeShared() const
Builds shared pointer of SPHSolver2 instance.
void SetViscosityCoefficient(double newViscosityCoefficient)
Sets the viscosity coefficient.
unsigned int GetNumberOfSubTimeSteps(double timeIntervalInSeconds) const override
Returns the number of sub-time-steps.
double GetViscosityCoefficient() const
Returns the viscosity coefficient.
void OnEndAdvanceTimeStep(double timeStepInSeconds) override
Performs post-processing step before the simulation.
void ComputePseudoViscosity(double timeStepInSeconds)
Computes pseudo viscosity.
void SetSpeedOfSound(double newSpeedOfSound)
Sets the speed of sound.
double GetEosExponent() const
Returns the exponent part of the equation-of-state.
double GetPseudoViscosityCoefficient() const
Returns the pseudo viscosity coefficient.
SPHSolver2(double targetDensity, double targetSpacing, double relativeKernelRadius)
void SetPseudoViscosityCoefficient(double newPseudoViscosityCoefficient)
Sets the pseudo viscosity coefficient.
void SetNegativePressureScale(double newNegativePressureScale)
Sets the negative pressure scale.
void AccumulateForces(double timeStepInSeconds) override
Accumulates the force to the forces array in the particle system.
void SetEosExponent(double newEosExponent)
Sets the exponent part of the equation-of-state.
double GetTimeStepLimitScale() const
Multiplier that scales the max allowed time-step.
void OnBeginAdvanceTimeStep(double timeStepInSeconds) override
Performs pre-processing step before the simulation.
SPHSystemData2Ptr GetSPHSystemData() const
Returns the SPH system data.
virtual void AccumulatePressureForce(double timeStepInSeconds)
void AccumulateViscosityForce()
void SetTimeStepLimitScale(double newScale)
Sets the multiplier that scales the max allowed time-step.
virtual void AccumulateNonPressureForces(double timeStepInSeconds)
double GetNegativePressureScale() const
Returns the negative pressure scale.
Base class for SPH-based fluid solver builder.
Definition SPHSolver2.hpp:209
DerivedBuilder & WithTargetDensity(double targetDensity)
Returns builder with target density.
Definition SPHSolver2.hpp:228
DerivedBuilder & WithTargetSpacing(double targetSpacing)
Returns builder with target spacing.
Definition SPHSolver2.hpp:235
DerivedBuilder & WithRelativeKernelRadius(double relativeKernelRadius)
Returns builder with relative kernel radius.
Definition SPHSolver2.hpp:242
Definition pybind11Utils.hpp:21
std::shared_ptr< SPHSolver2 > SPHSolver2Ptr
Shared pointer type for the SPHSolver2.
Definition SPHSolver2.hpp:202
std::shared_ptr< SPHSystemData2 > SPHSystemData2Ptr
Shared pointer for the SPHSystemData2 type.
Definition SPHSystemData.hpp:253
1.9.8