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

Classes

class  ParameterStudy1DDemo
 [PAR_SIM1D:headers] More...
 

Functions

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

Function Documentation

◆ main()

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

[PAR_SIM1D:class]

[PAR_SIM1D:main]

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

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