2-D PCISPH solver. More...
#include <Core/Solver/Particle/PCISPH/PCISPHSolver2.hpp>
Classes | |
| class | Builder |
| Front-end to create PCISPHSolver2 objects step by step. More... | |
Public Member Functions | |
| PCISPHSolver2 () | |
| Constructs a solver with empty particle set. | |
| PCISPHSolver2 (double targetDensity, double targetSpacing, double relativeKernelRadius) | |
| PCISPHSolver2 (const PCISPHSolver2 &)=delete | |
| Deleted copy constructor. | |
| PCISPHSolver2 (PCISPHSolver2 &&) noexcept=delete | |
| Deleted move constructor. | |
| ~PCISPHSolver2 () override=default | |
| Default virtual destructor. | |
| PCISPHSolver2 & | operator= (const PCISPHSolver2 &)=delete |
| Deleted copy assignment operator. | |
| PCISPHSolver2 & | operator= (PCISPHSolver2 &&) noexcept=delete |
| Deleted move assignment operator. | |
| double | GetMaxDensityErrorRatio () const |
| Returns max allowed density error ratio. | |
| void | SetMaxDensityErrorRatio (double ratio) |
| Sets max allowed density error ratio. | |
| unsigned int | GetMaxNumberOfIterations () const |
| Returns max number of iterations. | |
| void | SetMaxNumberOfIterations (unsigned int n) |
| Sets max number of PCISPH iterations. | |
Public Member Functions inherited from CubbyFlow::SPHSolver2 | |
| SPHSolver2 () | |
| Constructs a solver with empty particle set. | |
| SPHSolver2 (double targetDensity, double targetSpacing, double relativeKernelRadius) | |
| SPHSolver2 (const SPHSolver2 &)=delete | |
| Deleted copy constructor. | |
| SPHSolver2 (SPHSolver2 &&) noexcept=delete | |
| Deleted move constructor. | |
| ~SPHSolver2 () override=default | |
| Default virtual destructor. | |
| SPHSolver2 & | operator= (const SPHSolver2 &)=delete |
| Deleted copy assignment operator. | |
| SPHSolver2 & | operator= (SPHSolver2 &&) noexcept=delete |
| Deleted move assignment operator. | |
| double | GetEosExponent () const |
| Returns the exponent part of the equation-of-state. | |
| void | SetEosExponent (double newEosExponent) |
| Sets the exponent part of the equation-of-state. | |
| double | GetNegativePressureScale () const |
| Returns the negative pressure scale. | |
| void | SetNegativePressureScale (double newNegativePressureScale) |
| Sets the negative pressure scale. | |
| double | GetViscosityCoefficient () const |
| Returns the viscosity coefficient. | |
| void | SetViscosityCoefficient (double newViscosityCoefficient) |
| Sets the viscosity coefficient. | |
| double | GetPseudoViscosityCoefficient () const |
| Returns the pseudo viscosity coefficient. | |
| void | SetPseudoViscosityCoefficient (double newPseudoViscosityCoefficient) |
| Sets the pseudo viscosity coefficient. | |
| double | GetSpeedOfSound () const |
| Returns the speed of sound. | |
| void | SetSpeedOfSound (double newSpeedOfSound) |
| Sets the speed of sound. | |
| 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. | |
| SPHSystemData2Ptr | GetSPHSystemData () const |
| Returns the SPH system data. | |
Public Member Functions inherited from CubbyFlow::ParticleSystemSolver2 | |
| ParticleSystemSolver2 () | |
| Constructs an empty solver. | |
| ParticleSystemSolver2 (double radius, double mass) | |
| Constructs a solver with particle parameters. | |
| ParticleSystemSolver2 (const ParticleSystemSolver2 &)=delete | |
| Deleted copy constructor. | |
| ParticleSystemSolver2 (ParticleSystemSolver2 &&) noexcept=delete | |
| Deleted move constructor. | |
| ~ParticleSystemSolver2 () override=default | |
| Default virtual destructor. | |
| ParticleSystemSolver2 & | operator= (const ParticleSystemSolver2 &)=delete |
| Deleted copy assignment operator. | |
| ParticleSystemSolver2 & | operator= (ParticleSystemSolver2 &&) noexcept=delete |
| Deleted move assignment operator. | |
| double | GetDragCoefficient () const |
| Returns the drag coefficient. | |
| void | SetDragCoefficient (double newDragCoefficient) |
| Sets the drag coefficient. | |
| double | GetRestitutionCoefficient () const |
| Gets the restitution coefficient. | |
| void | SetRestitutionCoefficient (double newRestitutionCoefficient) |
| Sets the restitution coefficient. | |
| const Vector2D & | GetGravity () const |
| Returns the gravity. | |
| void | SetGravity (const Vector2D &newGravity) |
| Sets the gravity. | |
| const ParticleSystemData2Ptr & | GetParticleSystemData () const |
| Returns the particle system data. | |
| const Collider2Ptr & | GetCollider () const |
| Returns the collider. | |
| void | SetCollider (const Collider2Ptr &newCollider) |
| Sets the collider. | |
| const ParticleEmitter2Ptr & | GetEmitter () const |
| Returns the emitter. | |
| void | SetEmitter (const ParticleEmitter2Ptr &newEmitter) |
| Sets the emitter. | |
| const VectorField2Ptr & | GetWind () const |
| Returns the wind field. | |
| void | SetWind (const VectorField2Ptr &newWind) |
| Sets the wind. | |
Public Member Functions inherited from CubbyFlow::PhysicsAnimation | |
| PhysicsAnimation () | |
| Default constructor. | |
| PhysicsAnimation (const PhysicsAnimation &)=default | |
| Default copy constructor. | |
| PhysicsAnimation (PhysicsAnimation &&) noexcept=default | |
| Default move constructor. | |
| virtual | ~PhysicsAnimation ()=default |
| Default virtual destructor. | |
| PhysicsAnimation & | operator= (const PhysicsAnimation &)=default |
| Default copy assignment operator. | |
| PhysicsAnimation & | operator= (PhysicsAnimation &&) noexcept=default |
| Default move assignment operator. | |
| bool | GetIsUsingFixedSubTimeSteps () const |
| Returns true if fixed sub-timestepping is used. | |
| void | SetIsUsingFixedSubTimeSteps (bool isUsing) |
| Sets true if fixed sub-timestepping is used. | |
| unsigned int | GetNumberOfFixedSubTimeSteps () const |
| Returns the number of fixed sub-timesteps. | |
| void | SetNumberOfFixedSubTimeSteps (unsigned int numberOfSteps) |
| Sets the number of fixed sub-timesteps. | |
| void | AdvanceSingleFrame () |
| Advances a single frame. | |
| Frame | GetCurrentFrame () const |
| Returns current frame. | |
| void | SetCurrentFrame (const Frame &frame) |
| Sets current frame cursor (but do not invoke update()). | |
| double | GetCurrentTimeInSeconds () const |
| Returns current time in seconds. | |
Public Member Functions inherited from CubbyFlow::Animation | |
| Animation ()=default | |
| Default constructor. | |
| Animation (const Animation &)=default | |
| Default copy constructor. | |
| Animation (Animation &&) noexcept=default | |
| Default move constructor. | |
| virtual | ~Animation ()=default |
| Default virtual destructor. | |
| Animation & | operator= (const Animation &)=default |
| Default copy assignment operator. | |
| Animation & | operator= (Animation &&) noexcept=default |
| Default move assignment operator. | |
| void | Update (const Frame &frame) |
Updates animation state for given frame. | |
Static Public Member Functions | |
| static Builder | GetBuilder () |
| Returns builder fox PCISPHSolver2. | |
Static Public Member Functions inherited from CubbyFlow::SPHSolver2 | |
| static Builder | GetBuilder () |
| Returns builder fox SPHSolver2. | |
Static Public Member Functions inherited from CubbyFlow::ParticleSystemSolver2 | |
| static Builder | GetBuilder () |
| Returns builder fox ParticleSystemSolver2. | |
Detailed Description
2-D PCISPH solver.
This class implements 2-D predictive-corrective SPH solver. The main pressure solver is based on Solenthaler and Pajarola's 2009 SIGGRAPH paper.
- See also
- Solenthaler and Pajarola, Predictive-corrective incompressible SPH, ACM transactions on graphics (TOG). Vol. 28. No. 3. ACM, 2009.
Constructor & Destructor Documentation
◆ PCISPHSolver2() [1/4]
| CubbyFlow::PCISPHSolver2::PCISPHSolver2 | ( | ) |
Constructs a solver with empty particle set.
◆ PCISPHSolver2() [2/4]
| CubbyFlow::PCISPHSolver2::PCISPHSolver2 | ( | double | targetDensity, |
| double | targetSpacing, | ||
| double | relativeKernelRadius | ||
| ) |
Constructs a solver with target density, spacing, and relative kernel radius.
◆ PCISPHSolver2() [3/4]
|
delete |
Deleted copy constructor.
◆ PCISPHSolver2() [4/4]
|
deletenoexcept |
Deleted move constructor.
◆ ~PCISPHSolver2()
|
overridedefault |
Default virtual destructor.
Member Function Documentation
◆ AccumulatePressureForce()
|
overrideprotectedvirtual |
Accumulates the pressure force to the forces array in the particle system.
Reimplemented from CubbyFlow::SPHSolver2.
◆ GetBuilder()
Returns builder fox PCISPHSolver2.
◆ GetMaxDensityErrorRatio()
| double CubbyFlow::PCISPHSolver2::GetMaxDensityErrorRatio | ( | ) | const |
Returns max allowed density error ratio.
◆ GetMaxNumberOfIterations()
Returns max number of iterations.
◆ OnBeginAdvanceTimeStep()
|
overrideprotectedvirtual |
Performs pre-processing step before the simulation.
Reimplemented from CubbyFlow::ParticleSystemSolver2.
◆ operator=() [1/2]
|
delete |
Deleted copy assignment operator.
◆ operator=() [2/2]
|
deletenoexcept |
Deleted move assignment operator.
◆ SetMaxDensityErrorRatio()
Sets max allowed density error ratio.
This function sets the max allowed density error ratio during the PCISPH iteration. Default is 0.01 (1%). The input value should be positive.
◆ SetMaxNumberOfIterations()
Sets max number of PCISPH iterations.
This function sets the max number of PCISPH iterations. Default is 5.
The documentation for this class was generated from the following file:
- Core/Solver/Particle/PCISPH/PCISPHSolver2.hpp
Public Member Functions inherited from
1.9.8