MPS-Basic
Loading...
Searching...
No Matches
number_density.cpp
Go to the documentation of this file.
1
#include "
number_density.hpp
"
2
3
using
SurfaceDetector::NumberDensity
;
4
5
bool
NumberDensity::isFreeSurface
(
const
Particles
& particles,
const
Particle
& particle) {
6
return
particle.
numberDensity
<
thresholdRatio
*
n0
;
7
}
8
9
NumberDensity::~NumberDensity
() {
10
}
11
12
NumberDensity::NumberDensity
(
double
thresholdRatio,
double
n0) {
13
this->thresholdRatio =
thresholdRatio
;
14
this->n0 =
n0
;
15
}
Particle
Class for particle in MPS method.
Definition
particle.hpp:47
Particle::numberDensity
double numberDensity
number density of the particle
Definition
particle.hpp:59
Particles
A collection of particles.
Definition
particles.hpp:10
SurfaceDetector::NumberDensity
Detects free surface based on the number density.
Definition
number_density.hpp:12
SurfaceDetector::NumberDensity::NumberDensity
NumberDensity(double thresholdRatio, double n0)
Definition
number_density.cpp:12
SurfaceDetector::NumberDensity::thresholdRatio
double thresholdRatio
threshold ratio for number density
Definition
number_density.hpp:19
SurfaceDetector::NumberDensity::n0
double n0
reference value for number density
Definition
number_density.hpp:20
SurfaceDetector::NumberDensity::isFreeSurface
bool isFreeSurface(const Particles &particles, const Particle &particle) override
Whether the particle is on the free surface.
Definition
number_density.cpp:5
SurfaceDetector::NumberDensity::~NumberDensity
~NumberDensity() override
Definition
number_density.cpp:9
number_density.hpp
src
surface_detector
number_density.cpp
Generated by
1.12.0