TwoParticleElasticCollisionInteractionWithLiquidMigrationLSSelfTest.cpp File Reference

Classes

class  TwoParticleElasticCollisionInteraction
 In this file two particles are symmetrically placed in a bi-axial box are allowed to jump around under gravity. It tests walls gravity and symmetry. More...
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  UNUSED,
char *argv[]  UNUSED 
)
115 {
116  TwoParticleElasticCollisionInteraction twoParticleElasticCollisionInteractionProblem;
117  twoParticleElasticCollisionInteractionProblem.setName("TwoParticleElasticCollisionInteractionwithLiquidMigrationLSSelfTest");
118  twoParticleElasticCollisionInteractionProblem.radius = 0.0002;
119 
120  twoParticleElasticCollisionInteractionProblem.setTimeMax(0.05);
121  twoParticleElasticCollisionInteractionProblem.setSaveCount(10);
122  twoParticleElasticCollisionInteractionProblem.setTimeStep(1e-5);
123  twoParticleElasticCollisionInteractionProblem.fStatFile.setFileType(FileType::ONE_FILE);
124  twoParticleElasticCollisionInteractionProblem.getInteractionFile().setFileType(FileType::ONE_FILE);
125  twoParticleElasticCollisionInteractionProblem.setParticlesWriteVTK(true);
126  twoParticleElasticCollisionInteractionProblem.interactionHandler.setWriteVTK(true);
127  twoParticleElasticCollisionInteractionProblem.wallHandler.setWriteVTK(FileType::ONE_FILE);
128 
129  twoParticleElasticCollisionInteractionProblem.solve();
130 
131 }
@ ONE_FILE
all data will be written into/ read from a single file called name_
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:408
File fStatFile
An instance of class File to handle in- and output into a .fstat file.
Definition: DPMBase.h:1483
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:422
WallHandler wallHandler
An object of the class WallHandler. Contains pointers to all the walls created.
Definition: DPMBase.h:1447
File & getInteractionFile()
Return a reference to the file InteractionsFile.
Definition: DPMBase.cc:345
InteractionHandler interactionHandler
An object of the class InteractionHandler.
Definition: DPMBase.h:1467
void setParticlesWriteVTK(bool writeParticlesVTK)
Sets whether particles are written in a VTK file.
Definition: DPMBase.cc:942
void setTimeStep(Mdouble newDt)
Sets a new value for the simulation time step.
Definition: DPMBase.cc:1234
void setTimeMax(Mdouble newTMax)
Sets a new value for the maximum simulation duration.
Definition: DPMBase.cc:873
void solve()
The work horse of the code.
Definition: DPMBase.cc:4270
void setFileType(FileType fileType)
Sets the type of file needed to write into or read from. File::fileType_.
Definition: File.cc:215
void setWriteVTK(FileType f)
Definition: InteractionHandler.cc:549
In this file two particles are symmetrically placed in a bi-axial box are allowed to jump around unde...
Definition: TwoParticleElasticCollisionInteractionSelfTest.cpp:34
double radius
Definition: TwoParticleElasticCollisionInteractionWithLiquidMigrationLSSelfTest.cpp:37
void setWriteVTK(FileType)
Sets whether walls are written into a VTK file.
Definition: WallHandler.cc:467

References DPMBase::fStatFile, DPMBase::getInteractionFile(), DPMBase::interactionHandler, ONE_FILE, TwoParticleElasticCollisionInteraction::radius, File::setFileType(), DPMBase::setName(), DPMBase::setParticlesWriteVTK(), DPMBase::setSaveCount(), DPMBase::setTimeMax(), DPMBase::setTimeStep(), InteractionHandler::setWriteVTK(), WallHandler::setWriteVTK(), DPMBase::solve(), and DPMBase::wallHandler.