FreeCoolingDemo.cpp File Reference
#include <iostream>
#include <Species/LinearViscoelasticSpecies.h>
#include <Boundaries/PeriodicBoundary.h>
#include "Mercury2D.h"

Classes

class  FreeCoolingDemoProblem
 [FCD_2D:headers] More...
 

Functions

int main ()
 [FCD_2D:class] More...
 

Function Documentation

◆ main()

int main ( )

[FCD_2D:class]

[FCD_2D:main]

[FCD_2DproblemSetup]

[FCD_2DproblemSetup] [FCD_2D:solve]

[FCD_2D:solve]

115 {
117  // Problem setup
118  FreeCoolingDemoProblem problem;
119  problem.setName("FreeCoolingDemo");
120  problem.N=2000;
121  problem.setGravity(Vec3D(0.0,0.0,0.0));
122  problem.setTimeStep(5e-5);
123  problem.setSaveCount(4000);
124  problem.setTimeMax(100.0);
125  problem.setMax({0.032,0.032,0.032});
126  problem.setHGridMaxLevels(1);
127  problem.setHGridCellOverSizeRatio(1.2);
128  problem.setHGridUpdateEachTimeStep(false);
132  problem.setParticlesWriteVTK(true);
133  problem.solve();
135 }
@ 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
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:422
void setFileType(FileType fileType)
Sets File::fileType_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:459
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 setMax(const Vec3D &max)
Sets the maximum coordinates of the problem domain.
Definition: DPMBase.cc:1082
void setGravity(Vec3D newGravity)
Sets a new value for the gravitational acceleration.
Definition: DPMBase.cc:1383
[FCD_2D:headers]
Definition: FreeCoolingDemo.cpp:40
int N
[FCD_2D:aftertime]
Definition: FreeCoolingDemo.cpp:106
void setHGridUpdateEachTimeStep(bool updateEachTimeStep)
Sets whether or not the HGrid must be updated every time step.
Definition: MercuryBase.cc:176
void setHGridMaxLevels(unsigned int HGridMaxLevels)
Sets the maximum number of levels of the HGrid in this MercuryBase.
Definition: MercuryBase.cc:476
void setHGridCellOverSizeRatio(Mdouble cellOverSizeRatio)
Sets the ratio of the smallest cell over the smallest particle.
Definition: MercuryBase.cc:463
Definition: Vector.h:51

References FreeCoolingDemoProblem::N, ONE_FILE, DPMBase::setFileType(), DPMBase::setGravity(), MercuryBase::setHGridCellOverSizeRatio(), MercuryBase::setHGridMaxLevels(), MercuryBase::setHGridUpdateEachTimeStep(), DPMBase::setMax(), DPMBase::setName(), DPMBase::setParticlesWriteVTK(), DPMBase::setSaveCount(), DPMBase::setTimeMax(), DPMBase::setTimeStep(), and DPMBase::solve().