ParameterStudy3DDemo.cpp File Reference
#include "Mercury3D.h"
#include "Math/Helpers.h"
#include "Species/LinearViscoelasticFrictionSpecies.h"
#include <iostream>
#include <vector>

Classes

class  ParameterStudy3DDemo
 [PAR_SIM3D:headers] More...
 

Functions

int main (int argc UNUSED, char *argv[] UNUSED)
 [PAR_SIM3D:class] More...
 

Function Documentation

◆ main()

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

[PAR_SIM3D:class]

[PAR_SIM3D:main]

163 {
164  //Problem constructor, using class definition above
165  ParameterStudy3DDemo problem;
166  // Setup the study dimensions that you want to perform
167  problem.setStudyDimensions(2,2,3);
168  // Setup the automatic numbering system (create/read COUNTER_DO_NOT_DEL file)
169  problem.autoNumber();
170  // Setup output file name
171  problem.setName("ParameterStudy3DDemo");
172  // General simulation settings
173  problem.setTimeStep(1e-5);
174  problem.setTimeMax(0.1);
175  problem.setSaveCount(5000);
176  problem.setXMin(0.0);
177  problem.setXMax(1.0);
178  problem.setYMin(0.0);
179  problem.setYMax(1.0);
180  problem.setZMin(0.0);
181  problem.setZMax(1.0);
182 
183  // Solve the problem
184  problem.solve();
185  // Give a successful exit code to the terminal
186  return 0;
187 }
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:408
void setYMin(Mdouble newYMin)
Sets the value of YMin, the lower bound of the problem domain in the y-direction.
Definition: DPMBase.cc:1034
void autoNumber()
The autoNumber() function calls three functions: setRunNumber(), readRunNumberFromFile() and incremen...
Definition: DPMBase.cc:539
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 setYMax(Mdouble newYMax)
Sets the value of YMax, the upper bound of the problem domain in the y-direction.
Definition: DPMBase.cc:1191
void setZMin(Mdouble newZMin)
Sets the value of ZMin, the lower bound of the problem domain in the z-direction.
Definition: DPMBase.cc:1058
void setXMax(Mdouble newXMax)
Sets the value of XMax, the upper bound of the problem domain in the x-direction.
Definition: DPMBase.cc:1165
void setZMax(Mdouble newZMax)
Sets the value of ZMax, the upper bound of the problem domain in the z-direction.
Definition: DPMBase.cc:1217
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 setXMin(Mdouble newXMin)
Sets the value of XMin, the lower bound of the problem domain in the x-direction.
Definition: DPMBase.cc:1010
[PAR_SIM3D:headers]
Definition: ParameterStudy3DDemo.cpp:35
void setStudyDimensions(int dim1, int dim2, int dim3)
[PAR_SIM3D:createSpecies]
Definition: ParameterStudy3DDemo.cpp:138

References DPMBase::autoNumber(), DPMBase::setName(), DPMBase::setSaveCount(), ParameterStudy3DDemo::setStudyDimensions(), DPMBase::setTimeMax(), DPMBase::setTimeStep(), DPMBase::setXMax(), DPMBase::setXMin(), DPMBase::setYMax(), DPMBase::setYMin(), DPMBase::setZMax(), DPMBase::setZMin(), and DPMBase::solve().