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 setTimeMax(Mdouble newTMax)
Allows the upper time limit to be changed.
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 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.
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)
File dataFile
An instance of class File to handle in- and output into a .data file.
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.
void setFileType(FileType fileType)
Sets the type of file needed to write into or read from. File::fileType_.
void setTimeStep(Mdouble newDt)
Allows the time step dt to be changed.
Implementation of a 3D vector (by Vitaliy).