41 setName(
"InsertionBoundarySelfTest");
66 insertionBoundary->
set(insertionBoundaryParticle,10,
Vec3D(0.25,0.25,0.25),
Vec3D(0.75,0.75,0.75),
Vec3D(-5,-5,-5),
Vec3D(5,5,5),0.1,0.2);
67 delete insertionBoundaryParticle;
71 Vec3D normal =
Vec3D(std::pow(1.0/3.0,0.5), std::pow(1.0/3.0,0.5), std::pow(1.0/3.0,0.5));
83 std::cout <<
"Simple box for creating particles" << std::endl;
87 insertionBoundary_problem.
solve();
void setXMax(Mdouble newXMax)
If the length of the problem domain in x-direction is XMax - XMin, this method sets XMax...
void solve()
The work horse of the code.
void setTimeMax(Mdouble newTMax)
Allows the upper time limit to be changed.
int main(int argc UNUSED, char *argv[] UNUSED)
CubeInsertionBoundary * insertionBoundary
void setYMin(Mdouble newYMin)
If the length of the problem domain in y-direction is YMax - YMin, this method sets YMin...
void setupInitialConditions()
This function allows to set the initial conditions for our problem to be solved, by default particle ...
void setZMax(Mdouble newZMax)
If the length of the problem domain in z-direction is XMax - XMin, this method sets ZMax...
void setSpecies(const ParticleSpecies *species)
void setSystemDimensions(unsigned int newDim)
Allows for the dimension of the simulation to be changed.
void setGravity(Vec3D newGravity)
Allows to modify the gravity vector.
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 setYMax(Mdouble newYMax)
If the length of the problem domain in y-direction is YMax - YMin, this method sets YMax...
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
It's an insertion boundary which has cuboidal shape (yes, 'CuboidalInsertionBoundary' would have been...
virtual void addObject(ParticleSpecies *const S)
Adds a new ParticleSpecies to the SpeciesHandler.
BoundaryHandler boundaryHandler
An object of the class BoundaryHandler which concerns insertion and deletion of particles into or fro...
This adds on the hierarchical grid code for 3D problems.
void setXMin(Mdouble newXMin)
If the length of the problem domain in x-direction is XMax - XMin, this method sets XMin...
LinearViscoelasticSpecies * species
void setDensity(Mdouble density)
Allows the density to be changed.
File dataFile
An instance of class File to handle in- and output into a .data file.
void setZMin(Mdouble newZMin)
If the length of the problem domain in z-direction is ZMax - ZMin, this method sets ZMin...
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_.
Species< LinearViscoelasticNormalSpecies > LinearViscoelasticSpecies
void setHGridMaxLevels(unsigned int HGridMaxLevels)
Sets the maximum number of levels of the HGrid in this MercuryBase.
SpeciesHandler speciesHandler
A handler to that stores the species type i.e. elastic, linear visco-elastic... et cetera...
InfiniteWall * bottomWall
WallHandler wallHandler
An object of the class WallHandler. Contains pointers to all the walls created.
void set(Vec3D normal, Vec3D point)
Defines a standard wall, given an outward normal vector s.t. normal*x=normal*point for all x of the w...
void setTimeStep(Mdouble newDt)
Allows the time step dt to be changed.
This is a class defining walls.
void addObject(BaseWall *W)
Adds a BaseWall to the WallHandler.
Contains material and contact force properties.
Implementation of a 3D vector (by Vitaliy).
void addObject(BaseBoundary *P)
Adds a BaseBoundary to the BoundaryHandler.