26 #ifndef CYLINDRICALWALL_H
27 #define CYLINDRICALWALL_H
77 void read(std::istream& is);
87 void write(std::ostream& os)
const;
92 virtual std::string
getName()
const;
Stores information about interactions between two interactable objects; often particles but could be ...
void oldRead(std::istream &is)
Container to store Interaction objects.
void clear()
A function that removes all data from this BaseWall, so sets handler_ to nullptr. ...
CylindricalWall * copy() const
Wall copy method. It calls the copy contrustor of this Wall, usefull for polymorfism.
void write(std::ostream &os) const
outputs wall
bool getDistanceAndNormal(const BaseParticle &P, Mdouble &distance, Vec3D &normal_return) const
Since this function should be called before calculating any Particle-Wall interactions, it can also be used to set the normal vector in case of curved walls.
Implementation of a 3D vector (by Vitaliy).
BaseInteraction * getInteractionWith(BaseParticle *P, Mdouble timeStamp, InteractionHandler *interactionHandler)
Returns the interaction between this object and a given BaseParticle.
void set(Mdouble radius)
Defines a standard wall, given an outward normal vector s. t. normal*x=position.
void read(std::istream &is)
reads wall
double getRadius() const
access function for radius
virtual std::string getName() const
Returns the name of the object.