Changed initializtion of potential-grid, included
a variable for minimum cycles before first poisson solution
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user