MPS-Basic
Loading...
Searching...
No Matches
dirichlet_boundary_condition.cpp
Go to the documentation of this file.
2
4
6 return this->values.find(id) != this->values.end();
7}
8
10 return this->values.at(id);
11}
12
13void DirichletBoundaryCondition::set(int id, double value) {
14 this->values[id] = value;
15}
double value(int id) const
Get the boundary condition value.
std::unordered_map< int, double > values
boundary condition values
bool contains(int id) const
Check if the boundary condition contains the particle.
void set(int id, double value)
Set the boundary condition value.