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
5namespace SurfaceDetector {
12class NumberDensity : public Interface {
13public:
14 bool isFreeSurface(const Particles& particles, const Particle& particle) override;
15 ~NumberDensity() override;
16 NumberDensity(double thresholdRatio, double n0);
17
18private:
20 double n0;
21};
22} // namespace SurfaceDetector
Class for particle in MPS method.
Definition particle.hpp:47
A collection of particles.
Definition particles.hpp:10
Detects free surface based on the number density.
NumberDensity(double thresholdRatio, double n0)
double thresholdRatio
threshold ratio for number density
double n0
reference value for number density
bool isFreeSurface(const Particles &particles, const Particle &particle) override
Whether the particle is on the free surface.