MPS-Basic
Loading...
Searching...
No Matches
distribution.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
interface.hpp
"
4
5
namespace
SurfaceDetector
{
12
class
Distribution
:
public
Interface
{
13
public
:
14
bool
isFreeSurface
(
const
Particles
& particles,
const
Particle
& particle)
override
;
15
~Distribution
()
override
;
16
17
Distribution
(
18
double
n0
,
double
particleDistance
,
double
distributionThresholdRatio
,
double
numberDensityThresholdRatio
19
);
20
21
private
:
22
double
n0
;
23
double
particleDistance
;
24
double
distributionThresholdRatio
;
25
double
numberDensityThresholdRatio
;
26
27
bool
mainDetection
(
const
Particles
& particles,
const
Particle
& particle);
28
bool
subDetection
(
const
Particles
& particles,
const
Particle
& particle);
29
};
30
}
// namespace SurfaceDetector
Particle
Class for particle in MPS method.
Definition
particle.hpp:47
Particles
A collection of particles.
Definition
particles.hpp:10
SurfaceDetector::Distribution
Detects free surface based on number density and assists evaluation by particle distribution.
Definition
distribution.hpp:12
SurfaceDetector::Distribution::distributionThresholdRatio
double distributionThresholdRatio
Threshold ratio for particle distribution.
Definition
distribution.hpp:24
SurfaceDetector::Distribution::mainDetection
bool mainDetection(const Particles &particles, const Particle &particle)
Main detection based on number density.
Definition
distribution.cpp:23
SurfaceDetector::Distribution::particleDistance
double particleDistance
Particle distance.
Definition
distribution.hpp:23
SurfaceDetector::Distribution::~Distribution
~Distribution() override
Definition
distribution.cpp:67
SurfaceDetector::Distribution::numberDensityThresholdRatio
double numberDensityThresholdRatio
Threshold ratio for number density.
Definition
distribution.hpp:25
SurfaceDetector::Distribution::subDetection
bool subDetection(const Particles &particles, const Particle &particle)
Sub detection based on particle distribution.
Definition
distribution.cpp:31
SurfaceDetector::Distribution::n0
double n0
Reference value for number density.
Definition
distribution.hpp:22
SurfaceDetector::Distribution::isFreeSurface
bool isFreeSurface(const Particles &particles, const Particle &particle) override
Whether the particle is on the free surface.
Definition
distribution.cpp:7
SurfaceDetector::Distribution::Distribution
Distribution(double n0, double particleDistance, double distributionThresholdRatio, double numberDensityThresholdRatio)
Definition
distribution.cpp:60
SurfaceDetector::Interface
Definition
interface.hpp:7
SurfaceDetector
Definition
distribution.hpp:5
interface.hpp
src
surface_detector
distribution.hpp
Generated by
1.12.0