granularJet.cpp File Reference
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cmath>
#include "ChuteWithHopper.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <Species/LinearViscoelasticFrictionSpecies.h>
#include <cstring>

Classes

class  GranularJet
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
98 {
99  GranularJet problem;
100 
101  // Particle properties
102  problem.setSilbert();
103  // Problem parameters
104  problem.setName("GranularJet");
105 
106  //Corrections
108 
109  // Chute properties
110  problem.setChuteAngle(20);
111  problem.setChuteLength(700 * .25); //700=40cm
112  problem.setChuteWidth(400 * .25); //400=24cm
113  problem.setMaxFailed(6);
114  problem.makeChutePeriodic();
115  problem.setHopperDimension(2);
116  problem.setHopperLift(200); //250=15cm
117  Mdouble exitHeight = 25;
118  Mdouble exitLength = 3.0 * exitHeight;
119  Mdouble hopperAngle = 45.0;
120  Mdouble hopperLength = 4.0 * exitLength;
121  Mdouble hopperHeight = hopperLength;
122  problem.setHopper(exitLength, exitHeight, hopperAngle, hopperLength, hopperHeight);
123  problem.setZMax(200);
124 
128 
129  //solve
130  problem.readArguments(argc, argv);
131  problem.solve();
132 }
@ MONOLAYER_DISORDERED
Definition: Chute.h:53
@ MULTIPLE_FILES_PADDED
each time-step will be written into/read from separate files numbered consecutively,...
@ NO_FILE
file will not be created/read
void setHopper(Mdouble exitLength, Mdouble exitHeight, Mdouble angle, Mdouble length, Mdouble height)
Sets the hopper's geometrical properties.
Definition: ChuteWithHopper.cc:389
void setChuteLength(Mdouble chuteLength) override
sets xMax to chuteLength+hopperlength_, and thus specifies the length off the runoff chute
Definition: ChuteWithHopper.cc:541
void setHopperDimension(unsigned int hopperDimension)
Sets whether the hopper should have vertical (1) or inclined (2) walls in Y-direction.
Definition: ChuteWithHopper.cc:724
void setHopperLift(Mdouble hopperLift)
This lifts the hopper above the plane of the chute (after rotation)
Definition: ChuteWithHopper.cc:697
void setChuteWidth(Mdouble chuteWidth)
Sets the chute width (Y-direction)
Definition: Chute.cc:1039
void setRoughBottomType(RoughBottomType roughBottomType)
Sets the type of rough bottom of the chute.
Definition: Chute.cc:714
void setMaxFailed(unsigned int maxFailed)
Sets the number of times a particle will be tried to be added to the insertion boundary.
Definition: Chute.cc:827
void setChuteAngle(Mdouble chuteAngle)
Sets gravity vector according to chute angle (in degrees)
Definition: Chute.cc:768
void makeChutePeriodic()
This makes the chute periodic in Y.
Definition: Chute.cc:632
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
bool readArguments(int argc, char *argv[])
Can interpret main function input arguments that are passed by the driver codes.
Definition: DPMBase.cc:4391
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 setZMax(Mdouble newZMax)
Sets the value of ZMax, the upper bound of the problem domain in the z-direction.
Definition: DPMBase.cc:1217
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: granular_jet_thomas.cpp:38
void setSilbert()
Definition: granularJet.cpp:44

References DPMBase::dataFile, DPMBase::fStatFile, Chute::makeChutePeriodic(), MONOLAYER_DISORDERED, MULTIPLE_FILES_PADDED, NO_FILE, DPMBase::readArguments(), DPMBase::restartFile, Chute::setChuteAngle(), ChuteWithHopper::setChuteLength(), Chute::setChuteWidth(), File::setFileType(), ChuteWithHopper::setHopper(), ChuteWithHopper::setHopperDimension(), ChuteWithHopper::setHopperLift(), Chute::setMaxFailed(), DPMBase::setName(), Chute::setRoughBottomType(), GranularJet::setSilbert(), DPMBase::setZMax(), and DPMBase::solve().