66 void read(std::istream& is);
71 void write(std::ostream& os)
const;
virtual MERCURY_DEPRECATED void clear()
A function that removes all data from this BaseWall, so sets handler_ to nullptr. ...
void setIndSpecies(unsigned int indSpecies)
Define the species of this wall using the index of the species in the SpeciesHandler in this DPMBase...
void setHandler(WallHandler *handler)
A function which sets the WallHandler for this BaseWall.
#define MERCURY_DEPRECATED
WallHandler * getHandler() const
A function which returns the WallHandler that handles this BaseWall.
virtual bool getDistanceAndNormal(const BaseParticle &P, Mdouble &distance, Vec3D &normal_return) const =0
Pure virtual function that computes the distance of a BaseParticle to this wall and returns the norma...
BaseWall()
Default constructor. It makes an empty BaseWall.
Container to store all BaseWall.
Defines the basic properties that a interactable object can have.
Implementation of a 3D vector (by Vitaliy).
void write(std::ostream &os) const
Function that writes a BaseWall to an output stream, usually a restart file.
virtual ~BaseWall()
Default destructor.
virtual BaseWall * copy() const =0
Pure virtual function that copies a BaseWall.
void read(std::istream &is)
Function that reads a BaseWall from an input stream, usually a restart file.
void setSpecies(const ParticleSpecies *species)
Define the species of this wall.