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

Classes

class  ParameterStudy2DDemo
 [PAR_SIM2D:headers] More...
 

Functions

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

Function Documentation

◆ main()

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

[PAR_SIM2D:class]

[PAR_SIM2D:main]

151 {
152  //Problem constructor, using class definition above
153  ParameterStudy2DDemo problem;
154  // Setup the study dimensions that you want to perform
155  problem.setStudyDimensions(2,2);
156  // Setup the automatic numbering system (create/read COUNTER_DO_NOT_DEL file)
157  problem.autoNumber();
158  // Setup output file name
159  problem.setName("ParameterStudy2DDemo");
160  // General simulation settings
161  problem.setTimeStep(1e-5);
162  problem.setTimeMax(0.1);
163  problem.setSaveCount(5000);
164  problem.setXMin(0.0);
165  problem.setXMax(1.0);
166  problem.setYMin(0.0);
167  problem.setYMax(1.0);
168  problem.setZMin(0.0);
169  problem.setZMax(1.0);
170 
171  // Solve the problem
172  problem.solve();
173  // Give a successful exit code to the terminal
174  return 0;
175 }
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_SIM2D:headers]
Definition: ParameterStudy2DDemo.cpp:35
void setStudyDimensions(int dim1, int dim2)
[PAR_SIM2D:createSpecies]
Definition: ParameterStudy2DDemo.cpp:128

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