18 std::unique_ptr<SurfaceDetector::Interface> surfaceDetector;
21 refValuesForNumberDensity.
n0,
29 refValuesForNumberDensity.
n0
38 std::unique_ptr<PressureCalculator::Interface> pressureCalculator;
59 std::cerr <<
"Please select either Implicit or Explicit." << std::endl;
63 return MPS(input, std::move(pressureCalculator), std::move(surfaceDetector));
static MPS create(const Input &input)
Dirichlet Boundary Condition Generator that sets the free surface pressure to 0.
Class for explicit pressure calculation.
Class for implicit pressure calculation.
Struct for reference values of MPS method.
double n0
reference value of number density for source term of pressure Poisson equation
Detects free surface based on number density and assists evaluation by particle distribution.
Detects free surface based on the number density.
double soundSpeed
Speed of sound for Explicit method.
double compressibility
Compressibility of the fluid for Implicit method.
double particleDistance
Initial distance between particles.
int dim
Dimension of the simulation.
double relaxationCoefficientForPressure
Relaxation coefficient for pressure for Implicit method.
double re_forNumberDensity
Effective radius for number density.
bool surfaceDetection_particleDistribution
flag for free surface detection based on particle distribution
std::string pressureCalculationMethod
Method for pressure calculation.
double surfaceDetection_particleDistribution_threshold
double surfaceDetection_numberDensity_threshold
threshold ratio of number density for free surface detection
double re_forLaplacian
Effective radius for Laplacian.