CubicCell.cpp File Reference

Classes

class  CubicCell
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
102 {
103  CubicCell problem;
104  problem.setName("CubicCell");
105  problem.setSystemDimensions(3);
106  problem.setGravity(Vec3D(0.0, 0.0, 0.0));
107  problem.setXMax(problem.n);
108  problem.setYMax(problem.n);
109  problem.setZMax(problem.n);
110  problem.setTimeStep(1e-3);
111  problem.setTimeMax(10.0);
113  problem.solve();
114  return 0;
115 }
@ NO_FILE
file will not be created/read
Definition: CubicCell.cpp:34
unsigned int n
Definition: CubicCell.cpp:97
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
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 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 setSystemDimensions(unsigned int newDim)
Sets the system dimensionality.
Definition: DPMBase.cc:1417
void solve()
The work horse of the code.
Definition: DPMBase.cc:4270
void setGravity(Vec3D newGravity)
Sets a new value for the gravitational acceleration.
Definition: DPMBase.cc:1383
void setFileType(FileType fileType)
Sets the type of file needed to write into or read from. File::fileType_.
Definition: File.cc:215
Definition: Vector.h:51

References DPMBase::fStatFile, CubicCell::n, NO_FILE, File::setFileType(), DPMBase::setGravity(), DPMBase::setName(), DPMBase::setSystemDimensions(), DPMBase::setTimeMax(), DPMBase::setTimeStep(), DPMBase::setXMax(), DPMBase::setYMax(), DPMBase::setZMax(), and DPMBase::solve().