Changed initializtion of potential-grid, included

a variable for minimum cycles before first poisson solution
This commit is contained in:
2024-01-29 11:21:07 +01:00
parent 3a802d8f8d
commit 331e887f04
5 changed files with 54 additions and 34 deletions
+14
View File
@@ -9,3 +9,17 @@ bool Cylinder::isInside(const Coordinate& position) const {
return (cylinder_position(0) < radius_) && (cylinder_position(2) < height_) &&
(cylinder_position(2) > 0);
}
GeometryPositioning Cylinder::isWhere(const Coordinate& position) const {
const blitz::TinyVector<double, 3> cylinder_position =
position.cylinderEntries();
if(cylinder_position(0) >= radius_) {
return GeometryPositioning::hull;
} else if (cylinder_position(2) <= 0) {
return GeometryPositioning::bottom;
} else if (cylinder_position(2) >= height_) {
return GeometryPositioning::top;
} else {
return GeometryPositioning::inside;
}
}