71 #ifdef DEBUG_CONSTRUCTOR
72 std::cout <<
"CubeInsertionBoundary::copy() const finished" << std::endl;
157 is >> dummy >> maxFailed
188 return "CubeInsertionBoundary";
CubeInsertionBoundary()
Constructor; sets everything to 0.
Mdouble X
the vector components
Vec3D posMin_
Minimal and maximal positions defining the boundary's boundaries, and minimum and maximum velocity of...
void setVelocity(const Vec3D &velocity)
set the velocity of the BaseInteractable.
void setMaxFailed(unsigned int maxFailed)
Sets the number of times that the wall may fail to insert a particle.
void setRadius(const Mdouble radius)
Sets the particle's radius_ (and adjusts the mass_ accordingly, based on the particle's species) ...
Boundary structure for boundaries used for insertion of particles.
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.
void setParticleToCopy(BaseParticle *particleToCopy)
Sets the particle that will be inserted through the insertion boundary.
This is a class that generates random numbers i.e. named the Random Number Generator (RNG)...
std::string getName() const override
Returns the name of the object.
It's an insertion boundary which has cuboidal shape (yes, 'CuboidalInsertionBoundary' would have been...
virtual CubeInsertionBoundary * copy() const override
Creates a copy on the heap and returns a pointer.
BaseParticle * getParticleToCopy() const
Gets the particle that will be inserted through the insertion boundary.
void write(std::ostream &os) const override
writes boundary properties to ostream
void setPosition(const Vec3D &position)
Sets the position of this BaseInteractable.
void read(std::istream &is) override
reads boundary properties from istream
~CubeInsertionBoundary()
Destructor: default destructor.
void read(std::istream &is)
Reads the boundary's id_ and maxFailed_.
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
void write(std::ostream &os) const
Writes the boundary's id_ and maxFailed_.
Mdouble getRandomNumber(Mdouble min, Mdouble max)
This is a random generating routine can be used for initial positions.
virtual BaseParticle * copy() const
Particle copy method. It calls to copy constructor of this Particle, useful for polymorfism.
virtual BaseParticle * generateParticle(RNG &random) override
Generates a particle with random position, radius and velocity.