Go to the source code of this file.
int main |
( |
int argc |
, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 31 of file Tutorial10.cpp.
References DPMBase::readDataFile(), DPMBase::readRestartFile(), DPMBase::solve(), and helpers::writeToFile().
35 "restart_version 1.0 name Tutorial10\n"
36 "dataFile name Tutorial10.data fileType ONE_FILE saveCount 10 counter 0 nextSavedTimeStep 0\n"
37 "fStatFile name Tutorial10.fstat fileType NO_FILE saveCount 10 counter 0 nextSavedTimeStep 0\n"
38 "eneFile name Tutorial10.ene fileType ONE_FILE saveCount 10 counter 0 nextSavedTimeStep 0\n"
39 "restartFile name Tutorial10.restart fileType ONE_FILE saveCount 10 counter 0 nextSavedTimeStep 0\n"
40 "statFile name Tutorial10.stat fileType ONE_FILE saveCount 10 counter 0 nextSavedTimeStep 0\n"
41 "xMin 0 xMax 2 yMin 0 yMax 2 zMin 0 zMax 2\n"
42 "timeStep 1e-03 time 0 ntimeSteps 0 timeMax 10\n"
43 "systemDimensions 3 particleDimensions 3 gravity 0 0 -1\n"
45 "LinearViscoelasticSpecies id 0 density 1.9098593 stiffness 2000 dissipation 10\n"
47 "InfiniteWall id 0 indSpecies 0 position 0 0 0 orientation 0 0 0 1 velocity 0 0 0 angularVelocity 0 0 0 0 force 0 0 0 torque 0 0 0 normal 0 0 -1 factor 1\n"
55 "1 1 1.5 0 0 0 0.5 0 0 0 0 0 0 0\n"
bool writeToFile(std::string filename, std::string filecontent)
Writes a string to a file.
void solve()
The work horse of the code.
The DPMBase header includes quite a few header files, defining all the handlers, which are essential...
bool readDataFile(const std::string fileName, unsigned int format=0)
This allows particle data to be reloaded from data files.
int readRestartFile()
Reads all the particle data corresponding to the current saved time step. Which is what the restart f...