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