MPS-Basic
Loading...
Searching...
No Matches
dirichlet_boundary_condition.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <unordered_map>
4
6
15public:
21 bool contains(int id) const;
22
28 double value(int id) const;
29
35 void set(int id, double value);
36
38
39private:
46 std::unordered_map<int, double> values;
47};
48
49} // namespace PressureCalculator
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.