Go to the documentation of this file.
7 #ifndef INCLUDE_JET_PCI_SPH_SOLVER2_H_
8 #define INCLUDE_JET_PCI_SPH_SOLVER2_H_
35 double relativeKernelRadius);
72 double _maxDensityErrorRatio = 0.01;
73 unsigned int _maxNumberOfIterations = 5;
80 double computeDelta(
double timeStepInSeconds);
81 double computeBeta(
double timeStepInSeconds);
102 #endif // INCLUDE_JET_PCI_SPH_SOLVER2_H_
1-D array class.
Definition: array1.h:31
void setMaxNumberOfIterations(unsigned int n)
Sets max number of PCISPH iterations.
static Builder builder()
Returns builder fox PciSphSolver2.
PciSphSolver2 build() const
Builds PciSphSolver2.
void accumulatePressureForce(double timeIntervalInSeconds) override
Base class for SPH-based fluid solver builder.
Definition: sph_solver2.h:195
unsigned int maxNumberOfIterations() const
Returns max number of iterations.
void setMaxDensityErrorRatio(double ratio)
Sets max allowed density error ratio.
2-D PCISPH solver.
Definition: pci_sph_solver2.h:23
PciSphSolver2(double targetDensity, double targetSpacing, double relativeKernelRadius)
void onBeginAdvanceTimeStep(double timeStepInSeconds) override
Performs pre-processing step before the simulation.
Definition: advection_solver2.h:18
PciSphSolver2Ptr makeShared() const
Builds shared pointer of PciSphSolver2 instance.
Front-end to create PciSphSolver2 objects step by step.
Definition: pci_sph_solver2.h:91
double maxDensityErrorRatio() const
Returns max allowed density error ratio.
PciSphSolver2()
Constructs a solver with empty particle set.
std::shared_ptr< PciSphSolver2 > PciSphSolver2Ptr
Shared pointer type for the PciSphSolver2.
Definition: pci_sph_solver2.h:85
2-D SPH solver.
Definition: sph_solver2.h:29