MPS-Basic
Loading...
Searching...
No Matches
free_surface.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "../../particle.hpp"
5#include "interface.hpp"
6
7#include <memory>
8
13class FreeSurface : public Interface {
14public:
21 ~FreeSurface() override;
22 FreeSurface(std::unique_ptr<SurfaceDetector::Interface>&& surfaceDetector);
23
24private:
25 std::unique_ptr<SurfaceDetector::Interface> surfaceDetector;
26 void setBoundaryCondition(Particles& particles);
27};
28}; // namespace PressureCalculator::DirichletBoundaryConditionGenerator
A collection of particles.
Definition particles.hpp:10
Dirichlet Boundary Condition Generator that sets the free surface pressure to 0.
std::unique_ptr< SurfaceDetector::Interface > surfaceDetector
DirichletBoundaryCondition generate(Particles &particles) override
Generate Dirichlet boundary condition.
void setBoundaryCondition(Particles &particles)
Set boundary condition for particles. It changes particle objects directly.
Interface for Dirichlet boundary condition generator.
Definition interface.hpp:15
@ FreeSurface
free surface particle