26 #ifndef BOUNDARIES_CUBEINSERTIONBOUNDARY_H
27 #define BOUNDARIES_CUBEINSERTIONBOUNDARY_H
77 void read(std::istream& is)
override;
88 void write(std::ostream& os)
const override;
93 virtual std::string
getName()
const;
CubeInsertionBoundary()
Constructor; sets everything to 0.
Vec3D posMin_
Minimal and maximal positions defining the boundary's boundaries, and minimum and maximum velocity of...
Boundary structure for boundaries used for insertion of particles.
#define MERCURY_DEPRECATED
void set(BaseParticle *particleToCopy, int maxFailed, Vec3D posMin, Vec3D posMax, Vec3D velMin, Vec3D velMax, double radMin, double radMax)
Sets the properties of the cuboidal insertion boundary.
virtual CubeInsertionBoundary * copy() const
Creates a copy on the heap and returns a pointer.
This is a class that generates random numbers i.e. named the Random Number Generator (RNG)...
It's an insertion boundary which has cuboidal shape (yes, 'CuboidalInsertionBoundary' would have been...
void write(std::ostream &os) const override
writes boundary properties to ostream
virtual std::string getName() const
Returns the name of the object.
virtual BaseParticle * generateParticle(RNG &random)
Generates a particle with random position, radius and velocity.
void read(std::istream &is) override
reads boundary properties from istream
~CubeInsertionBoundary()
Destructor: default destructor.
Implementation of a 3D vector (by Vitaliy).
MERCURY_DEPRECATED void oldRead(std::istream &is)
deprecated version of CubeInsertionBoundary::read().
double radMin_
minimum and maximum radii of the particles to be inserted