26 #ifndef BOUNDARIES_INSERTIONBOUNDARY_H
27 #define BOUNDARIES_INSERTIONBOUNDARY_H
29 #include "../BaseWall.h"
36 #ifdef CONSTUCTOR_OUTPUT
37 cerr <<
"virtual InsertionBoundary* copy() const finished" << endl;
63 std::cout <<
"I" << std::endl;
85 for(std::vector<BaseWall*>::iterator it=wH.
begin();isInsertable&&it!=wH.
end();it++)
87 (*it)->get_distance_and_normal(p0,distance,normal);
99 for(std::vector<BaseParticle*>::iterator it=pH.
begin();isInsertable&&it!=pH.
end();it++)
134 void print(std::ostream& os)
const {
135 os <<
"InsertionBoundary posMin " <<
posMin_
void set_inertia(const Mdouble _new)
void set(Vec3D posMin, Vec3D posMax, Vec3D velMin, Vec3D velMax, Mdouble radMin, Mdouble radMax, int maxFailed)
void copyAndAddObject(const T &O)
Creates a copy of a Object and adds it to the BaseHandler.
const std::vector< T * >::const_iterator begin() const
Gets the begin of the const_iterator over all Object in this BaseHandler.
Mdouble get_RN(Mdouble min, Mdouble max)
This is a random generating routine can be used for initial positions.
Mdouble get_Radius() const
This is a class that generates random numbers i.e.
const std::vector< BaseWall * >::const_iterator begin() const
Gets the begin of the const_iterator over all BaseWall in this WallHandler.
const std::vector< BaseWall * >::const_iterator end() const
Gets the end of the const_iterator over all BaseWall in this WallHandler.
const std::vector< T * >::const_iterator end() const
Gets the end of the const_iterator over all BaseBoundary in this BaseHandler.
const Vec3D & get_Position() const
Container to store all BaseParticle.
void set_Radius(const Mdouble _new)
Container to store all BaseWall.
void set_Velocity(const Vec3D &_new)
virtual InsertionBoundary * copy() const
BaseBoundary copy method.
void print(std::ostream &os) const
outputs wall
void read(std::istream &is)
reads wall
Implementation of a 3D vector (by Vitaliy).
void set_Position(const Vec3D &_new)
virtual void checkBoundaryActionsBeforeTimeStep(ParticleHandler &pH, WallHandler &wH, RNG &random)
void set_Mass(const Mdouble _new)