inflowFromPeriodic.cpp File Reference

Functions

int main (int, char **)
 

Function Documentation

◆ main()

int main ( int  ,
char **   
)
29 {
30  inflowFromPeriodic problem;
31  problem.setTimeMax(1e4);
32  problem.setSaveCount(500);
33  problem.setXBallsAdditionalArguments("-v0 -solidf");
34  problem.write(std::cout,false);
38  problem.solve();
39 }
@ 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 fStatFile
An instance of class File to handle in- and output into a .fstat file.
Definition: DPMBase.h:1483
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
void setXBallsAdditionalArguments(std::string newXBArgs)
Set the additional arguments for xballs.
Definition: DPMBase.cc:1347
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
Definition: inflowFromPeriodic.h:29

References DPMBase::dataFile, DPMBase::fStatFile, ONE_FILE, DPMBase::restartFile, File::setFileType(), DPMBase::setSaveCount(), DPMBase::setTimeMax(), DPMBase::setXBallsAdditionalArguments(), DPMBase::solve(), and Chute::write().