82 int main(
int argc,
char *argv[])
107 species0->setDensity(2500.0);
108 species0->setStiffness(259.018);
109 species0->setSlidingStiffness(2.0/7.0*species0->getStiffness());
110 species0->setRollingStiffness(2.0/5.0*species0->getStiffness());
111 species0->setDissipation(0.0334);
112 species0->setSlidingFrictionCoefficient(0.0);
113 species0->setRollingFrictionCoefficient(0.0);
115 species1->setDensity(2500.0);
116 species1->setStiffness(259.018);
117 species1->setDissipation(0.0334);
118 species1->setSlidingStiffness(2.0/7.0*species1->getStiffness());
119 species1->setRollingStiffness(2.0/5.0*species1->getStiffness());
120 species1->setSlidingFrictionCoefficient(0.5);
121 species1->setRollingFrictionCoefficient(0.0);
123 species01->setStiffness(259.018);
124 species01->setDissipation(0.0334);
125 species01->setSlidingStiffness(2.0/7.0*species01->getStiffness());
126 species01->setRollingStiffness(2.0/5.0*species01->getStiffness());
127 species01->setSlidingFrictionCoefficient(0.5);
128 species01->setRollingFrictionCoefficient(0.0);
130 species2->setDensity(2500.0);
131 species2->setStiffness(258.5);
132 species2->setDissipation(0.0);
133 species2->setSlidingStiffness(2.0/7.0*species2->getStiffness());
134 species2->setRollingStiffness(2.0/5.0*species2->getStiffness());
135 species2->setSlidingFrictionCoefficient(0.5);
136 species2->setRollingFrictionCoefficient(0.5);
138 species02->setStiffness(259.018);
139 species02->setDissipation(0.0334);
140 species02->setSlidingStiffness(2.0/7.0*species02->getStiffness());
141 species02->setRollingStiffness(2.0/5.0*species02->getStiffness());
142 species02->setSlidingFrictionCoefficient(0.5);
143 species02->setRollingFrictionCoefficient(0.5);
154 problem.
solve(argc, argv);
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 setVelocity(const Vec3D &velocity)
set the velocity of the BaseInteractable.
void setTimeMax(Mdouble newTMax)
Allows the upper time limit to be changed.
int main(int argc, char *argv[])
[T9:class]
File restartFile
An instance of class File to handle in- and output into a .restart file.
void setZMax(Mdouble newZMax)
If the length of the problem domain in z-direction is XMax - XMin, this method sets ZMax...
Species< LinearViscoelasticNormalSpecies, FrictionSpecies > LinearViscoelasticFrictionSpecies
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 setRadius(const Mdouble radius)
Sets the particle's radius_ (and adjusts the mass_ accordingly, based on the particle's species) ...
Mdouble getXMax() const
If the length of the problem domain in x-direction is XMax - XMin, then getXMax() returns XMax...
void setYMax(Mdouble newYMax)
If the length of the problem domain in y-direction is YMax - YMin, this method sets YMax...
File eneFile
An instance of class File to handle in- and output into a .ene file.
file will not be created/read
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
U * copyAndAddObject(const U &O)
Creates a copy of a Object and adds it to the BaseHandler.
This adds on the hierarchical grid code for 3D problems.
ParticleHandler particleHandler
An object of the class ParticleHandler, contains the pointers to all the particles created...
all data will be written into/ read from a single file called name_
File fStatFile
An instance of class File to handle in- and output into a .fstat file.
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
MERCURY_DEPRECATED void setIndSpecies(unsigned int indSpecies)
File dataFile
An instance of class File to handle in- and output into a .data file.
Mdouble getRadius() const
Returns the particle's radius_.
SpeciesHandler speciesHandler
A handler to that stores the species type i.e. elastic, linear visco-elastic... et cetera...
U::MixedSpeciesType * getMixedObject(const U *S, const U *T)
void setXBallsAdditionalArguments(std::string newXBArgs)
Set the additional arguments for xballs.
Mdouble getYMax() const
If the length of the problem domain in y-direction is YMax - YMin, then getYMax() returns XMax...
void setFileType(FileType fileType)
Sets the type of file needed to write into or read from. File::fileType_.
WallHandler wallHandler
An object of the class WallHandler. Contains pointers to all the walls created.
void setPosition(const Vec3D &position)
Sets the position of this BaseInteractable.
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...
Mdouble getZMin() const
If the length of the problem domain in z-direction is ZMax - ZMin, then getZMin() returns ZMin...
void setTimeStep(Mdouble newDt)
Allows the time step dt to be changed.
This is a class defining walls.
Implementation of a 3D vector (by Vitaliy).
void setupInitialConditions()
This function allows to set the initial conditions for our problem to be solved, by default particle ...