26 #ifndef BOUNDARIES_BIDISPERSECUBEINSERTIONBOUNDARY_H
27 #define BOUNDARIES_BIDISPERSECUBEINSERTIONBOUNDARY_H
84 void read(std::istream& is)
override;
89 void write(std::ostream& os)
const override;
94 std::string
getName()
const override;
Definition: BaseParticle.h:54
Like a CubeInsertionBoundary but the particles generated are one of two types.
Definition: BidisperseCubeInsertionBoundary.h:41
double probA_
Definition: BidisperseCubeInsertionBoundary.h:99
BaseParticle * particleToCopyB_
Definition: BidisperseCubeInsertionBoundary.h:98
BaseParticle * getParticleToCopyA() const
Get the particles that need to be copied.
Definition: BidisperseCubeInsertionBoundary.cc:75
BidisperseCubeInsertionBoundary * copy() const override
Creates a copy on the heap and returns a pointer.
Definition: BidisperseCubeInsertionBoundary.cc:56
BaseParticle * particleToCopyA_
Definition: BidisperseCubeInsertionBoundary.h:97
void read(std::istream &is) override
reads boundary properties from istream
Definition: BidisperseCubeInsertionBoundary.cc:109
~BidisperseCubeInsertionBoundary() override
Destructor: default destructor.
Definition: BidisperseCubeInsertionBoundary.cc:46
BaseParticle * generateParticle(RNG &random) override
Generates a particle with random position, radius and velocity.
Definition: BidisperseCubeInsertionBoundary.cc:88
void write(std::ostream &os) const override
writes boundary properties to ostream
Definition: BidisperseCubeInsertionBoundary.cc:120
BaseParticle * getParticleToCopyB() const
Definition: BidisperseCubeInsertionBoundary.cc:80
BidisperseCubeInsertionBoundary()
Constructor; sets everything to 0.
Definition: BidisperseCubeInsertionBoundary.cc:28
std::string getName() const override
Returns the name of the object.
Definition: BidisperseCubeInsertionBoundary.cc:130
void set(BaseParticle *particleToCopyA, BaseParticle *particleToCopyB, double probA, int maxFailed, Vec3D posMin, Vec3D posMax, Vec3D velMin, Vec3D velMax)
Sets the properties of this bidisperse cuboidal insertion boundary.
Definition: BidisperseCubeInsertionBoundary.cc:65
It's an insertion boundary which has cuboidal shape (yes, 'CuboidalInsertionBoundary' would have been...
Definition: CubeInsertionBoundary.h:42
This is a class that generates random numbers i.e. named the Random Number Generator (RNG).
Definition: RNG.h:53