AngledPeriodicBoundaryUnitTest.cpp File Reference

Classes

class  AngledPeriodicBoundaryUnitTest
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  UNUSED,
char *argv[]  UNUSED 
)
106 {
108  dpm.setName("AngledPeriodicBoundaryUnitTest");
109  dpm.setTimeMax(4.0*constants::pi);
110  dpm.setTimeMax(9.5*dpm.getTimeStep());
111  dpm.setXMin(0);
112  dpm.setXMax( 5);
113  dpm.setYMin(0);
114  dpm.setYMax( 5);
115  dpm.setZMin(0);
116  dpm.setZMax( 5);
117  dpm.setGravity({0,0,0});
118  dpm.solve(argc, argv);
119 
120  //Note:: currently the rolling spring is not conserved!!
121  return 0;
122 }
Definition: AngledPeriodicBoundaryUnitTest.cpp:38
void setYMin(Mdouble newYMin)
Sets the value of YMin, the lower bound of the problem domain in the y-direction.
Definition: DPMBase.cc:1034
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:422
Mdouble getTimeStep() const
Returns the simulation time step.
Definition: DPMBase.cc:1250
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 setZMin(Mdouble newZMin)
Sets the value of ZMin, the lower bound of the problem domain in the z-direction.
Definition: DPMBase.cc:1058
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 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 setXMin(Mdouble newXMin)
Sets the value of XMin, the lower bound of the problem domain in the x-direction.
Definition: DPMBase.cc:1010
void setGravity(Vec3D newGravity)
Sets a new value for the gravitational acceleration.
Definition: DPMBase.cc:1383
const Mdouble pi
Definition: ExtendedMath.h:45

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