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 
)
94 {
95  TwoParticleElasticCollisionInteraction twoParticleElasticCollisionInteractionProblem;
96  twoParticleElasticCollisionInteractionProblem.setName("TwoParticleElasticCollisionInteractionwithLiquidMigrationLSSelfTest");
97  twoParticleElasticCollisionInteractionProblem.radius = 0.0002;
98 
99  twoParticleElasticCollisionInteractionProblem.setTimeMax(0.05);
100  twoParticleElasticCollisionInteractionProblem.setSaveCount(10);
101  twoParticleElasticCollisionInteractionProblem.setTimeStep(1e-5);
102  twoParticleElasticCollisionInteractionProblem.fStatFile.setFileType(FileType::ONE_FILE);
103  twoParticleElasticCollisionInteractionProblem.getInteractionFile().setFileType(FileType::ONE_FILE);
104  twoParticleElasticCollisionInteractionProblem.setParticlesWriteVTK(true);
105  twoParticleElasticCollisionInteractionProblem.interactionHandler.setWriteVTK(true);
106  twoParticleElasticCollisionInteractionProblem.wallHandler.setWriteVTK(FileType::ONE_FILE);
107 
108  twoParticleElasticCollisionInteractionProblem.solve();
109 
110 }
Array< double, 1, 3 > e(1./3., 0.5, 2.)
@ 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:386
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
WallHandler wallHandler
An object of the class WallHandler. Contains pointers to all the walls created.
Definition: DPMBase.h:1453
File & getInteractionFile()
Return a reference to the file InteractionsFile.
Definition: DPMBase.cc:323
InteractionHandler interactionHandler
An object of the class InteractionHandler.
Definition: DPMBase.h:1473
void setParticlesWriteVTK(bool writeParticlesVTK)
Sets whether particles are written in a VTK file.
Definition: DPMBase.cc:933
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
void setWriteVTK(FileType f)
Definition: InteractionHandler.cc:529
In this file two particles are symmetrically placed in a bi-axial box are allowed to jump around unde...
Definition: TwoParticleElasticCollisionInteractionSelfTest.cpp:13
double radius
Definition: TwoParticleElasticCollisionInteractionWithLiquidMigrationLSSelfTest.cpp:16
void setWriteVTK(FileType)
Sets whether walls are written into a VTK file.
Definition: WallHandler.cc:445

References e(), 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.