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;
Stores information about interactions between two interactable objects; often particles but could be ...
Definition: BaseInteraction.h:60
Definition: BaseParticle.h:54
Basic class for walls.
Definition: BaseWall.h:49
A infinite wall fills the half-space {point: (position_-point)*normal_<=0}.
Definition: InfiniteWall.h:48
Container to store Interaction objects.
Definition: InteractionHandler.h:45
Restriction of a wall to the intersection with another wall.
Definition: RestrictedWall.h:43
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...
Definition: RestrictedWall.cc:92
BaseInteraction * getInteractionWith(BaseParticle *p, unsigned timeStamp, InteractionHandler *interactionHandler) override
Look up the interaction between this wall and a BaseParticle at a certain timeStamp.
Definition: RestrictedWall.cc:170
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....
Definition: RestrictedWall.cc:124
InfiniteWall * restriction_
Definition: RestrictedWall.h:115
void oldRead(std::istream &is)
Reads RestrictedWall from an old-style restart file.
RestrictedWall * copy() const override
Wall copy method. It calls the copy constructor of this Wall, useful for polymorphism.
Definition: RestrictedWall.cc:80
void write(std::ostream &os) const override
Writes the RestrictedWall to an output stream, usually a restart file.
Definition: RestrictedWall.cc:144
void writeVTK(VTKContainer &vtk) const override
Definition: RestrictedWall.cc:184
void read(std::istream &is) override
Reads RestrictedWall from a restart file.
Definition: RestrictedWall.cc:135
std::string getName() const override
Returns the name of the object, in this case the string "RestrictedWall".
Definition: RestrictedWall.cc:156
RestrictedWall()
Default constructor, the normal is infinitely long.
Definition: RestrictedWall.cc:34
BaseWall * wall_
Definition: RestrictedWall.h:114
~RestrictedWall() override
Default destructor.
Definition: RestrictedWall.cc:62
Definition: BaseWall.h:38