Version 2, position dependent E/B, kinetic ions, boris mover, terminator
This commit is contained in:
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#include "simulation/geometry.h"
|
||||
|
||||
Cylinder::Cylinder(double radius, double height)
|
||||
: radius_(radius), height_(height) {}
|
||||
|
||||
bool Cylinder::isInside(const Coordinate& position) const {
|
||||
const blitz::TinyVector<double, 3> cylinder_position =
|
||||
position.cylinderEntries();
|
||||
return (cylinder_position(0) < radius_) && (cylinder_position(2) < height_) &&
|
||||
(cylinder_position(2) > 0);
|
||||
}
|
||||
Reference in New Issue
Block a user