MPS-Basic
|
Class for implicit pressure calculation. More...
#include <implicit.hpp>
Public Member Functions | |
std::vector< double > | calc (Particles &particles) override |
calculate pressure | |
~Implicit () override | |
Implicit (int dimension, double particleDistance, double re_forGradient, double re_forLaplacian, double dt, double compressibility, double relaxationCoefficient, std::unique_ptr< DirichletBoundaryConditionGenerator::Interface > &&dirichletBoundaryConditionGenerator) | |
Public Member Functions inherited from PressureCalculator::Interface | |
virtual | ~Interface () |
destructor | |
Private Member Functions | |
void | removeNegativePressure () |
remove negative pressure for stability | |
Private Attributes | |
Particles | particles |
std::vector< double > | pressure |
Solution of pressure calculation. | |
std::unique_ptr< DirichletBoundaryConditionGenerator::Interface > | dirichletBoundaryConditionGenerator |
PressurePoissonEquation | pressurePoissonEquation |
Class for implicit pressure calculation.
This class has a Dirichlet boundary condition generator and a pressure Poisson solver. The generator is used within the pressure calculation process and the generated boundary condition is attached to the pressure Poisson equation.
Definition at line 21 of file implicit.hpp.
|
override |
Definition at line 48 of file implicit.cpp.
Implicit::Implicit | ( | int | dimension, |
double | particleDistance, | ||
double | re_forGradient, | ||
double | re_forLaplacian, | ||
double | dt, | ||
double | compressibility, | ||
double | relaxationCoefficient, | ||
std::unique_ptr< DirichletBoundaryConditionGenerator::Interface > && | dirichletBoundaryConditionGenerator ) |
Definition at line 13 of file implicit.cpp.
|
overridevirtual |
calculate pressure
particles | particles |
Implements PressureCalculator::Interface.
Definition at line 39 of file implicit.cpp.
|
private |
remove negative pressure for stability
Definition at line 51 of file implicit.cpp.
|
private |
Definition at line 42 of file implicit.hpp.
|
private |
Solution of pressure calculation.
Definition at line 43 of file implicit.hpp.
|
private |
Definition at line 44 of file implicit.hpp.
|
private |
Definition at line 45 of file implicit.hpp.