26 #ifndef DELETIONBOUNDARY_H
27 #define DELETIONBOUNDARY_H
79 void read(std::istream& is);
90 void write(std::ostream& os)
const;
95 virtual std::string
getName()
const;
Vec3D normal_
outward unit normal vector
void read(std::istream &is)
Reads some boundary properties from an std::istream.
virtual std::string getName() const
Returns the name of the object.
~DeletionBoundary()
destructor
void write(std::ostream &os) const
Writes the boundary properties to an std::ostream.
bool checkBoundaryAfterParticleMoved(BaseParticle *p, ParticleHandler &pH)
Checks if particle passed the boundary and deletes the particle if so.
Used for removing particles from the problem. Inherits from BaseBoundary.
Mdouble scaleFactor_
This is the factor to rescale the given normal vector to a unit vectors.
#define MERCURY_DEPRECATED
DeletionBoundary * copy() const
Copy method; creates copy on the heap and returns a pointer to it.
DeletionBoundary()
default constructor
Mdouble getDistance(const Vec3D &position) const
Returns the shortest distance between the boundary and given position.
MERCURY_DEPRECATED void oldRead(std::istream &is)
Deprecated read method. use DeletionBoundary::read() instead.
Mdouble distance_
The boundary's distance from the origin.
Container to store all BaseParticle.
Implementation of a 3D vector (by Vitaliy).
void move(Mdouble position)
Sets the boundary's distance property to the given one.
void set(const Vec3D &normal, Mdouble distance)
Sets boundary position based on a normal and distance.