MercuryDPM  0.11
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AngledPeriodicBoundaryUnitTest.cpp File Reference

Go to the source code of this file.

Classes

class  AngledPeriodicBoundaryUnitTest
 

Functions

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

Function Documentation

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

Definition at line 106 of file AngledPeriodicBoundaryUnitTest.cpp.

References DPMBase::getTimeStep(), constants::pi, DPMBase::setGravity(), Files::setName(), DPMBase::setTimeMax(), DPMBase::setXMax(), DPMBase::setXMin(), DPMBase::setYMax(), DPMBase::setYMin(), DPMBase::setZMax(), DPMBase::setZMin(), and DPMBase::solve().

107 {
109  dpm.setName("AngledPeriodicBoundaryUnitTest");
110  dpm.setTimeMax(4.0*constants::pi);
111  dpm.setTimeMax(9.5*dpm.getTimeStep());
112  dpm.setXMin(-5);
113  dpm.setXMax( 5);
114  dpm.setYMin(-5);
115  dpm.setYMax( 5);
116  dpm.setZMin(-5);
117  dpm.setZMax( 5);
118  dpm.setGravity({0,0,0});
119  dpm.solve(argc, argv);
120 
121  //Note:: currently the rolling spring is not conserved!!
122  return 0;
123 }
void setXMax(Mdouble newXMax)
If the length of the problem domain in x-direction is XMax - XMin, this method sets XMax...
Definition: DPMBase.cc:309
void solve()
The work horse of the code.
Definition: DPMBase.cc:1895
void setTimeMax(Mdouble newTMax)
Allows the upper time limit to be changed.
Definition: DPMBase.cc:179
void setYMin(Mdouble newYMin)
If the length of the problem domain in y-direction is YMax - YMin, this method sets YMin...
Definition: DPMBase.cc:280
void setZMax(Mdouble newZMax)
If the length of the problem domain in z-direction is XMax - XMin, this method sets ZMax...
Definition: DPMBase.cc:338
void setGravity(Vec3D newGravity)
Allows to modify the gravity vector.
Definition: DPMBase.cc:431
void setYMax(Mdouble newYMax)
If the length of the problem domain in y-direction is YMax - YMin, this method sets YMax...
Definition: DPMBase.cc:324
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: Files.cc:149
const Mdouble pi
Definition: ExtendedMath.h:42
void setXMin(Mdouble newXMin)
If the length of the problem domain in x-direction is XMax - XMin, this method sets XMin...
Definition: DPMBase.cc:266
void setZMin(Mdouble newZMin)
If the length of the problem domain in z-direction is ZMax - ZMin, this method sets ZMin...
Definition: DPMBase.cc:295
Mdouble getTimeStep() const
Allows the time step dt to be accessed.
Definition: DPMBase.cc:368