MPS-Basic
|
Dirichlet boundary condition. More...
#include <dirichlet_boundary_condition.hpp>
Public Member Functions | |
bool | contains (int id) const |
Check if the boundary condition contains the particle. | |
double | value (int id) const |
Get the boundary condition value. | |
void | set (int id, double value) |
Set the boundary condition value. | |
DirichletBoundaryCondition ()=default | |
Private Attributes | |
std::unordered_map< int, double > | values |
boundary condition values | |
Dirichlet boundary condition.
Dirichlet boundary condition is used to set the pressure of particles on the boundary of the fluid domain. This class controls the id of particles that attach Dirichlet boundary conditions and the value of pressure for those particles.
Definition at line 14 of file dirichlet_boundary_condition.hpp.
|
default |
bool DirichletBoundaryCondition::contains | ( | int | id | ) | const |
Check if the boundary condition contains the particle.
id | Particle id |
Definition at line 5 of file dirichlet_boundary_condition.cpp.
double DirichletBoundaryCondition::value | ( | int | id | ) | const |
Get the boundary condition value.
id | Particle id |
Definition at line 9 of file dirichlet_boundary_condition.cpp.
void DirichletBoundaryCondition::set | ( | int | id, |
double | value ) |
Set the boundary condition value.
id | Particle id |
value | Boundary condition value |
Definition at line 13 of file dirichlet_boundary_condition.cpp.
|
private |
boundary condition values
key: particle id value: boundary condition value
Definition at line 46 of file dirichlet_boundary_condition.hpp.