MPS-Basic
Loading...
Searching...
No Matches
number_density.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
interface.hpp
"
4
5
namespace
SurfaceDetector
{
12
class
NumberDensity
:
public
Interface
{
13
public
:
14
bool
isFreeSurface
(
const
Particles
& particles,
const
Particle
& particle)
override
;
15
~NumberDensity
()
override
;
16
NumberDensity
(
double
thresholdRatio
,
double
n0
);
17
18
private
:
19
double
thresholdRatio
;
20
double
n0
;
21
};
22
}
// namespace SurfaceDetector
Particle
Class for particle in MPS method.
Definition
particle.hpp:47
Particles
A collection of particles.
Definition
particles.hpp:10
SurfaceDetector::Interface
Definition
interface.hpp:7
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
SurfaceDetector
Definition
distribution.hpp:5
interface.hpp
src
surface_detector
number_density.hpp
Generated by
1.12.0