70 if (argc>1) {
name=argv[1]; argv++; argc--;}
else name=
"../ini_statistics/H10A22L1M0.5B0.5";
73 if (argc>1) {tint=atof(argv[1]); argv++; argc--; cout <<
"tint=" << tint << endl;}
76 cout <<
"restart data: " <<
name <<
".restart" << endl;
79 problem.load_restart_data();
84 cout <<
"old name: " << problem.
getName() << endl;
85 size_t found=
name.find_last_of(
"/\\");
87 cout <<
"new name: " << problem.
getName() << endl;
105 problem.
write(std::cout,
false);
@ NO_FILE
file will not be created/read
@ ONE_FILE
all data will be written into/ read from a single file called name_
void write(std::ostream &os, bool writeAllParticles=true) const override
This function writes the Chute properties to an ostream, and adds the properties of ALL chute particl...
Definition: Chute.cc:206
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:408
File eneFile
An instance of class File to handle in- and output into a .ene file.
Definition: DPMBase.h:1488
File fStatFile
An instance of class File to handle in- and output into a .fstat file.
Definition: DPMBase.h:1483
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:422
const std::string & getName() const
Returns the name of the file. Does not allow to change it though.
Definition: DPMBase.cc:399
Mdouble getTime() const
Returns the current simulation time.
Definition: DPMBase.cc:808
File dataFile
An instance of class File to handle in- and output into a .data file.
Definition: DPMBase.h:1478
File restartFile
An instance of class File to handle in- and output into a .restart file.
Definition: DPMBase.h:1493
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:2942
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 setFileType(FileType fileType)
Sets the type of file needed to write into or read from. File::fileType_.
Definition: File.cc:215
void readStatArguments(int argc, char *argv[])
void set_infiniteStressForFixedParticles(bool new_)
Definition: StatisticsVector.h:432
void setCGTimeMin(Mdouble t)
Definition: StatisticsVector.h:223
void setNX(int new_)
Definition: StatisticsVector.h:127
void setCGWidth(Mdouble w)
Set CG variables w2 and CG_invvolume.
Definition: StatisticsVector.h:317
void setNZ(int new_)
Definition: StatisticsVector.h:159
void setDoPeriodicWalls(bool new_)
Definition: StatisticsVector.h:563
Definition: statXY.cpp:30
void auto_set_z()
Definition: obsolete_codes/statistics_while_running.cpp:112
std::string name
Definition: MercuryProb.h:48