HertzianBSHPInteractionTwoParticleElasticCollisionSelfTest.cpp File Reference

Classes

class  HertzianBSHPInteractionTwoParticleElasticCollision
 

Functions

int main (int argc UNUSED, char *argv[] UNUSED)
 

Function Documentation

◆ main()

int main ( int argc  UNUSED,
char *argv[]  UNUSED 
)
118 {
119 
120  HertzianBSHPInteractionTwoParticleElasticCollision twoParticleElasticCollisionProblem;
121  twoParticleElasticCollisionProblem.setName("HertzianBSHPInteractionTwoParticleElasticCollision");
122 
124  species.setDensity(2000);
125  species.setEffectiveElasticModulus(1e8);
126  species.setDissipation(1e-5);
127 
128  twoParticleElasticCollisionProblem.speciesHandler.copyAndAddObject(species);
129 
130  twoParticleElasticCollisionProblem.setTimeMax(0.1);
131  twoParticleElasticCollisionProblem.setSaveCount(1e5);
132  twoParticleElasticCollisionProblem.setTimeStep(1e-6);
133  twoParticleElasticCollisionProblem.fStatFile.setFileType(FileType::NO_FILE);
134  twoParticleElasticCollisionProblem.solve();
135 }
Array< double, 1, 3 > e(1./3., 0.5, 2.)
@ NO_FILE
file will not be created/read
std::enable_if<!std::is_pointer< U >::value, U * >::type copyAndAddObject(const U &object)
Creates a copy of a Object and adds it to the BaseHandler.
Definition: BaseHandler.h:360
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:386
SpeciesHandler speciesHandler
A handler to that stores the species type i.e. LinearViscoelasticSpecies, etc.
Definition: DPMBase.h:1433
File fStatFile
An instance of class File to handle in- and output into a .fstat file.
Definition: DPMBase.h:1489
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:400
void setTimeStep(Mdouble newDt)
Sets a new value for the simulation time step.
Definition: DPMBase.cc:1225
void setTimeMax(Mdouble newTMax)
Sets a new value for the maximum simulation duration.
Definition: DPMBase.cc:864
void solve()
The work horse of the code.
Definition: DPMBase.cc:4334
void setFileType(FileType fileType)
Sets the type of file needed to write into or read from. File::fileType_.
Definition: File.cc:193
Definition: HertzianBSHPInteractionTwoParticleElasticCollisionSelfTest.cpp:19
void setDensity(Mdouble density)
Definition: ParticleSpecies.cc:88
Contains material and contact force properties.
Definition: Species.h:14

References BaseHandler< T >::copyAndAddObject(), e(), DPMBase::fStatFile, NO_FILE, ParticleSpecies::setDensity(), File::setFileType(), DPMBase::setName(), DPMBase::setSaveCount(), DPMBase::setTimeMax(), DPMBase::setTimeStep(), DPMBase::solve(), and DPMBase::speciesHandler.