MPS-Basic
|
Detects free surface based on the number density. More...
#include <number_density.hpp>
Public Member Functions | |
bool | isFreeSurface (const Particles &particles, const Particle &particle) override |
Whether the particle is on the free surface. | |
~NumberDensity () override | |
NumberDensity (double thresholdRatio, double n0) | |
Public Member Functions inherited from SurfaceDetector::Interface | |
virtual | ~Interface ()=default |
Private Attributes | |
double | thresholdRatio |
threshold ratio for number density | |
double | n0 |
reference value for number density | |
Detects free surface based on the number density.
Surface detection method for standard MPS method. When the number density of the particle is lower than the thresholdRatio * n0, the particle is considered to be on the free surface. A thresholdRatio value of 0.95 to 0.97 is recommended as a rule of thumb (Koshizuka and Oka, 1996).
Definition at line 12 of file number_density.hpp.
|
override |
Definition at line 9 of file number_density.cpp.
NumberDensity::NumberDensity | ( | double | thresholdRatio, |
double | n0 ) |
Definition at line 12 of file number_density.cpp.
|
overridevirtual |
Whether the particle is on the free surface.
particles | particles |
particle | particle inside the particles |
Implements SurfaceDetector::Interface.
Definition at line 5 of file number_density.cpp.
|
private |
threshold ratio for number density
Definition at line 19 of file number_density.hpp.
|
private |
reference value for number density
Definition at line 20 of file number_density.hpp.