feat: added getters to Boundary

This commit is contained in:
philippun 2023-07-28 13:02:45 +02:00
parent 4680e9823f
commit 0a0e16bb56
2 changed files with 15 additions and 1 deletions

View File

@ -83,6 +83,10 @@ class Boundary {
BoundaryElement getBoundaryElement(BC_SIDE side, int index);
BC_TYPE getBoundaryElementType(BC_SIDE side, int index);
double getBoundaryElementValue(BC_SIDE side, int index);
private:
Grid grid;
@ -90,3 +94,4 @@ class Boundary {
};
#endif

View File

@ -70,4 +70,13 @@ vector<BoundaryElement> Boundary::getBoundarySide(BC_SIDE side) {
BoundaryElement Boundary::getBoundaryElement(BC_SIDE side, int index) {
return this->boundaries[side][index];
}
}
BC_TYPE Boundary::getBoundaryElementType(BC_SIDE side, int index) {
return this->boundaries[side][index].getType();
}
double Boundary::getBoundaryElementValue(BC_SIDE side, int index) {
return this->boundaries[side][index].getValue();
}