granular_jet_thomas.cpp File Reference
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cmath>
#include "scr/ChuteWithHopper.h"
#include <sys/types.h>
#include <sys/stat.h>

Classes

class  GranularJet
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
60 {
62 
63  // Particle properties
64  problem.set_silbert();
65  // Problem parameters
66  problem.setName("granular_jet");
67 
68  //Corrections
69  problem.setRoughBottomType(MONOLAYER_DISORDERED); //to save base particles
70  problem.setAlignBase(false);
71 
72  // Chute properties
73  problem.setChuteAngle(20);
74  problem.setChuteLength(700); //700=40cm
75  problem.setChuteWidth(400); //400=24cm
76  problem.setMaxFailed(6);
77  problem.makeChutePeriodic();
78  problem.setHopperDimension(2);
79  problem.setHopperLift(250); //250=15cm
80  double ExitHeight = 25.0, //25=15mm
81  ExitLength = 3.0 * ExitHeight,
82  hopperAngle_ = 45.0,
83  hopperLength_ = 4.0 * ExitLength;
84  problem.set_Hopper(ExitLength,ExitHeight,hopperAngle_,hopperLength_);
85  problem.setZMax(200);
86 
87  //solve
88  problem.setTimeStep();
89  problem.setSaveCount(5000);
90  problem.dataFile.setFileType(FileType::ONE_FILE);
91  problem.fStatFile.setFileType(FileType::NO_FILE);
92  problem.restartFile.setFileType(FileType::ONE_FILE);
93  problem.setXBallsAdditionalArguments("-v0 ");
94  cout << "Maximum allowed speed of particles: " << problem.getMaximumVelocity()
95  << endl; // speed allowed before particles move through each other!
96  cout << "dt=" << problem.getTimeStep() << endl;
97 
98  problem.auto_number();
99 
100  //solve
101  problem.readArguments(argc, argv);
102  problem.solve();
103 }
@ MONOLAYER_DISORDERED
Definition: Chute.h:32
@ NO_FILE
file will not be created/read
@ ONE_FILE
all data will be written into/ read from a single file called name_
Definition: granular_jet_thomas.cpp:17
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References MONOLAYER_DISORDERED, NO_FILE, ONE_FILE, and problem.