76 problem.setFixedParticleRadius(
problem.particleHandler.getObject(0)->getRadius());
77 problem.setInflowParticleRadius(
problem.particleHandler.getObject(0)->getRadius());
92 problem.setDoPeriodicWalls(
false);
97 problem.setStressTypeForFixedParticles(3);
101 problem.readStatArguments(argc, argv);
117 std::stringstream ss;
118 ss <<
name.substr(
found + 1).c_str() <<
"Y";
119 problemY.
setName(ss.str().c_str());
153 ss <<
name.substr(
found + 1).c_str() <<
"X";
154 problemX.
setName(ss.str().c_str());
@ NO_FILE
file will not be created/read
@ ONE_FILE
all data will be written into/ read from a single file called name_
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
T * getObject(const unsigned int id)
Gets a pointer to the Object at the specified index in the BaseHandler.
Definition: BaseHandler.h:621
Mdouble getRadius() const
Returns the particle's radius.
Definition: BaseParticle.h:331
void setInflowParticleRadius(Mdouble inflowParticleRadius)
Sets the radius of the inflow particles to a single one (i.e. ensures a monodisperse inflow).
Definition: Chute.cc:827
void setFixedParticleRadius(Mdouble fixedParticleRadius)
Sets the particle radius of the fixed particles which constitute the (rough) chute bottom.
Definition: Chute.cc:632
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:386
File eneFile
An instance of class File to handle in- and output into a .ene file.
Definition: DPMBase.h:1494
File fStatFile
An instance of class File to handle in- and output into a .fstat file.
Definition: DPMBase.h:1489
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:400
const std::string & getName() const
Returns the name of the file. Does not allow to change it though.
Definition: DPMBase.cc:377
Mdouble getTime() const
Returns the current simulation time.
Definition: DPMBase.cc:799
File dataFile
An instance of class File to handle in- and output into a .data file.
Definition: DPMBase.h:1484
File restartFile
An instance of class File to handle in- and output into a .restart file.
Definition: DPMBase.h:1499
virtual void writeRestartFile()
Stores all the particle data for current save time step to a "restart" file, which is a file simply i...
Definition: DPMBase.cc:2979
ParticleHandler particleHandler
An object of the class ParticleHandler, contains the pointers to all the particles created.
Definition: DPMBase.h:1443
void setTimeMax(Mdouble newTMax)
Sets a new value for the maximum simulation duration.
Definition: DPMBase.cc:864
void solve()
The work horse of the code.
Definition: DPMBase.cc:4334
bool readRestartFile(ReadOptions opt=ReadOptions::ReadAll)
Reads all the particle data corresponding to a given, existing . restart file (for more details regar...
Definition: DPMBase.cc:3043
void setFileType(FileType fileType)
Sets the type of file needed to write into or read from. File::fileType_.
Definition: File.cc:193
void readStatArguments(int argc, char *argv[])
void setN(int n)
Definition: StatisticsVector.h:158
void setStressTypeForFixedParticles(int new_)
Definition: StatisticsVector.h:393
void setCGTimeMin(Mdouble t)
Definition: StatisticsVector.h:202
void setCGWidth(Mdouble w)
Set CG variables w2 and CG_invvolume.
Definition: StatisticsVector.h:296
void setDoPeriodicWalls(bool new_)
Definition: StatisticsVector.h:542
void auto_set_domain()
Definition: statXY.cpp:27
#define INFO(i)
Definition: mumps_solver.h:54
bool found
Definition: MergeRestartFiles.py:24
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286
string name
Definition: plotDoE.py:33
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213