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

Classes

class  FreeCooling2DinWallsDemo
 [FCD_2D_Walls:headers] More...
 

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

[FCD_2D_Walls:class] [FCD_2D_Walls:main]

[FCD_2D_Walls_problemSetup]

[FCD_2D_WallsproblemSetup] [FCD_2D_Walls:solve]

[FCD_2D_Walls:solve]

124 {
126  // Problem setup
127  FreeCooling2DinWallsDemo problem;
128  problem.setName("FreeCooling2DinWallsDemo");
129  problem.N=2000;
130  problem.setGravity(Vec3D(0.0,0.0,0.0));
131  problem.setTimeStep(5e-5);
132  problem.setSaveCount(4000);
133  problem.setTimeMax(100.0);
134  problem.setMax({0.032,0.032,0.032});
135  problem.setHGridMaxLevels(1);
136  problem.setHGridCellOverSizeRatio(1.2);
137  problem.setHGridUpdateEachTimeStep(false);
141  problem.setParticlesWriteVTK(true);
142  problem.wallHandler.setWriteVTK(true);
143  //Uncomment to set the number of threads (cores) for the identity-based OpenMP framework
144  //problem.setNumberOfOMPThreads(4);
145  problem.solve();
147 }
@ 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
WallHandler wallHandler
An object of the class WallHandler. Contains pointers to all the walls created.
Definition: DPMBase.h:1447
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_Walls:headers]
Definition: FreeCooling2DinWallsDemo.cpp:43
int N
Definition: FreeCooling2DinWallsDemo.cpp:117
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
void setWriteVTK(FileType)
Sets whether walls are written into a VTK file.
Definition: WallHandler.cc:467

References FreeCooling2DinWallsDemo::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(), WallHandler::setWriteVTK(), DPMBase::solve(), and DPMBase::wallHandler.