VremanRough.cpp File Reference
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cmath>
#include <sys/types.h>
#include <sys/stat.h>
#include "scr/Chute.h"
#include "scr/Time.h"

Classes

class  Vreman
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
129 {
130  Vreman problem;
131  problem.setName("VremanRough");
132  problem.setChuteLength(.7);
133  problem.setChuteWidth(.13);
134  problem.setChuteAngle(19);
135  //problem.makeChutePeriodic();
136  problem.setDensity(2470);
137  problem.setInflowParticleRadius(0.5e-3);
138  problem.setInflowVelocity(.17);
139  problem.setInflowVelocityVariance(.02);
140  problem.setInflowHeight(8e-3);
141  problem.setZMax(10e-3);
142  problem.set_InflowNu(0.29/(problem.getInflowHeight()*problem.getChuteWidth()*problem.getInflowVelocity()*problem.getDensity()));
143  problem.setFixedParticleRadius(0.5e-3);
144  problem.setRoughBottomType(MULTILAYER);
145  problem.setStiffnessAndRestitutionCoefficient(100, 0.97, problem.get_mass_from_Radius(problem.getInflowParticleRadius()));
146  problem.set_HGRID_num_buckets_to_power(4e5);
147  problem.set_HGRID_max_levels(1);
148  problem.setXBallsAdditionalArguments("-v0 -solidf -sort");
149  problem.setTimeStep(problem.getCollisionTime()/50);
150  problem.setSaveCount(helpers::getSaveCountFromNumberOfSavesAndTimeMaxAndTimeStep(2000,problem.getTimeMax(),problem.getTimeStep()));
151  problem.setSaveCount(100);
152  problem.setTimeMax(20);
153  problem.readArguments(argc, argv);
154  problem.solve();
155 }
@ MULTILAYER
Definition: Chute.h:32
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Definition: Vreman.cpp:17
unsigned int getSaveCountFromNumberOfSavesAndTimeMaxAndTimeStep(unsigned int numberOfSaves, Mdouble timeMax, Mdouble timeStep)
Returns the correct saveCount if the total number of saves, the final time and the time step is known...
Definition: FormulaHelpers.cc:75
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References e(), helpers::getSaveCountFromNumberOfSavesAndTimeMaxAndTimeStep(), MULTILAYER, and problem.