27 #ifndef AngledPeriodicBoundary_H
28 #define AngledPeriodicBoundary_H
92 void read(std::istream& is);
102 void write(std::ostream& os)
const;
107 virtual std::string
getName()
const;
Vec3D origin_
common point of both walls
AngledPeriodicBoundary * copy() const final
Used to create a copy of the object NB: purely virtual function.
Vec3D differenceRadialAxis_
void shiftPositions(Vec3D &P1, Vec3D &P2)
only needed in StatisticsVector
bool checkBoundaryAfterParticleMoved(BaseParticle *P, ParticleHandler &pH UNUSED)
void read(std::istream &is)
reads wall
Vec3D leftRadialAxis_
outward unit normal vector for left wall
void oldRead(std::istream &is)
Mdouble getOpeningAngle()
angle between walls in radians
Vec3D commonAxis_
The normalized cross product of the left and right normal vector. This vector points in the direction...
Mdouble distance(const BaseParticle &P)
Returns the distance of the wall to the particle and sets left_wall = true, if the left wall is the w...
void set(Vec3D normalLeft, Vec3D normalRight, Vec3D origin)
Defines a periodic wall.
Container to store all BaseParticle.
virtual std::string getName() const
Returns the name of the object.
bool leftWall_
true if closest wall is the left wall
Vec3D rightRadialAxis_
outward unit normal vector for right wall
Vec3D rightNormal_
outward unit normal vector for right wall
Implementation of a 3D matrix.
Implementation of a 3D vector (by Vitaliy).
void shiftPosition(BaseParticle *P)
shifts the particle (after distance set the left_wall value)
void createPeriodicParticles(BaseParticle *P, ParticleHandler &pH)
void write(std::ostream &os) const
outputs wall