31 #ifndef RESTRICTEDWALL_H
32 #define RESTRICTEDWALL_H
85 void read(std::istream& is)
override;
95 void write(std::ostream& os)
const override;
100 std::string
getName()
const override;
std::vector< BaseInteraction * > getInteractionWith(BaseParticle *p, Mdouble timeStamp, InteractionHandler *interactionHandler) override
Look up the interaction between this wall and a BaseParticle at a certain timeStamp.
This is a class defining walls.
bool getDistanceAndNormal(const BaseParticle &p, Mdouble &distance, Vec3D &normal_return) const override
Compute the distance from the wall for a given BaseParticle and return if there is a collision...
virtual ~RestrictedWall()
Default destructor.
void read(std::istream &is) override
Reads RestrictedWall from a restart file.
void write(std::ostream &os) const override
Writes the RestrictedWall to an output stream, usually a restart file.
void oldRead(std::istream &is)
Reads RestrictedWall from an old-style restart file.
Container to store Interaction objects.
void set(BaseWall *wall, InfiniteWall *restriction)
Defines a standard wall, given an outward normal vector s.t. normal*x=normal*point for all x of the w...
RestrictedWall * copy() const override
Wall copy method. It calls the copy constructor of this Wall, useful for polymorphism.
InfiniteWall * restriction_
std::string getName() const override
Returns the name of the object, in this case the string "RestrictedWall".
This is a class defining walls.
RestrictedWall()
Default constructor, the normal is infinitely long.
Implementation of a 3D vector (by Vitaliy).
void writeVTK(VTKContainer &vtk) const override