|
MPS-Basic
|
Detects free surface based on number density and assists evaluation by particle distribution. More...
#include <distribution.hpp>


Public Member Functions | |
| bool | isFreeSurface (const Particles &particles, const Particle &particle) override |
| Whether the particle is on the free surface. | |
| ~Distribution () override | |
| Distribution (double n0, double particleDistance, double distributionThresholdRatio, double numberDensityThresholdRatio) | |
Public Member Functions inherited from SurfaceDetector::Interface | |
| virtual | ~Interface ()=default |
Private Member Functions | |
| bool | mainDetection (const Particles &particles, const Particle &particle) |
| Main detection based on number density. | |
| bool | subDetection (const Particles &particles, const Particle &particle) |
| Sub detection based on particle distribution. | |
Private Attributes | |
| double | n0 |
| Reference value for number density. | |
| double | particleDistance |
| Particle distance. | |
| double | distributionThresholdRatio |
| Threshold ratio for particle distribution. | |
| double | numberDensityThresholdRatio |
| Threshold ratio for number density. | |
Detects free surface based on number density and assists evaluation by particle distribution.
Proposed by Khayyer et al. (2009). A supplementary judgment based on particle distribution is added to the judgment based on number density. Even if a particle is determined to be a surface particle by number density, it is not considered a surface particle if there is no bias in the arrangement of the particles.
Definition at line 12 of file distribution.hpp.
|
override |
Definition at line 67 of file distribution.cpp.
| Distribution::Distribution | ( | double | n0, |
| double | particleDistance, | ||
| double | distributionThresholdRatio, | ||
| double | numberDensityThresholdRatio ) |
Definition at line 60 of file distribution.cpp.
|
overridevirtual |
Whether the particle is on the free surface.
| particles | particles |
| particle | particle inside the particles |
Implements SurfaceDetector::Interface.
Definition at line 7 of file distribution.cpp.

Main detection based on number density.
Definition at line 23 of file distribution.cpp.

Sub detection based on particle distribution.
Definition at line 31 of file distribution.cpp.

|
private |
Reference value for number density.
Definition at line 22 of file distribution.hpp.
|
private |
Particle distance.
Definition at line 23 of file distribution.hpp.
|
private |
Threshold ratio for particle distribution.
Definition at line 24 of file distribution.hpp.
|
private |
Threshold ratio for number density.
Definition at line 25 of file distribution.hpp.