AxisymmetricHopperSelfTest.cpp File Reference

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)

A three-dimensional, axisymmetric hopper.

31 {
32  //Print description
33  logger(INFO, "\nDescription: A quasi-2D inclined plane with inflow "
34  "conditions on the left boundary, and deletion of particles when "
35  "they exit the domain.");
36 
37  // Problem parameters
38  AxisymmetricHopper axisymmetricHopper;
39  axisymmetricHopper.setName("AxisymmetricHopperSelfTest");
40  axisymmetricHopper.setTimeMax(
41  std::sqrt(6.0 * axisymmetricHopper.getZMax())); //let the particles fall to at most 16 times the domain size
42 
43  // Particle properties
44  axisymmetricHopper.setFixedParticleRadius(0);
45  axisymmetricHopper.setInflowParticleRadius(0.5);
46 
47  // Chute properties
48  axisymmetricHopper.setChuteAngleAndMagnitudeOfGravity(0.0,1.0);
49 
50  //Output parameters
51  axisymmetricHopper.setLastSavedTimeStep(1);
52  axisymmetricHopper.fStatFile.setFileType(FileType::NO_FILE);
53  axisymmetricHopper.setXBallsAdditionalArguments("-sort -v0 -solidf");
54 
55  //solve
56  axisymmetricHopper.solve(argc,argv);
57 }
@ NO_FILE
file will not be created/read
LL< Log::INFO > INFO
Info log level.
Definition: Logger.cc:55
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
Definition: AxisymmetricHopper.h:36
void setInflowParticleRadius(Mdouble inflowParticleRadius)
Sets the radius of the inflow particles to a single one (i.e. ensures a monodisperse inflow).
Definition: Chute.cc:848
void setChuteAngleAndMagnitudeOfGravity(Mdouble chuteAngle, Mdouble gravity)
Sets gravity vector according to chute angle (in degrees)
Definition: Chute.cc:789
void setFixedParticleRadius(Mdouble fixedParticleRadius)
Sets the particle radius of the fixed particles which constitute the (rough) chute bottom.
Definition: Chute.cc:653
void setLastSavedTimeStep(unsigned int nextSavedTimeStep)
Sets the next time step for all the files (ene, data, fstat, restart, stat) at which the data is to b...
Definition: DPMBase.cc:519
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 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
Mdouble getZMax() const
If the length of the problem domain in z-direction is ZMax - ZMin, then getZMax() returns ZMax.
Definition: DPMBase.h:650
void setFileType(FileType fileType)
Sets the type of file needed to write into or read from. File::fileType_.
Definition: File.cc:215

References DPMBase::fStatFile, DPMBase::getZMax(), INFO, logger, NO_FILE, Chute::setChuteAngleAndMagnitudeOfGravity(), File::setFileType(), Chute::setFixedParticleRadius(), Chute::setInflowParticleRadius(), DPMBase::setLastSavedTimeStep(), DPMBase::setName(), DPMBase::setTimeMax(), DPMBase::setXBallsAdditionalArguments(), and DPMBase::solve().