obsolete_codes/AngleOfRepose.cpp File Reference
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cmath>
#include "scr/ChuteWithHopper.h"
#include "scr/Statistics.h"

Classes

class  AngleOfRepose
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
235 {
237 
238  //Problem parameters
239  //~ problem.setTimeMax(1000.0);
240  problem.setTimeMax(1.0);
241 
242  //Chute properties
243  problem.setChuteAngle(0.0);
244  //~ problem.setChuteLength(200.0);
245  problem.setChuteLength(20.0);
246  problem.setChuteWidth(problem.getChuteLength());
247  problem.Height = max(5.,problem.getChuteLength() * 0.5 * tan( 25.0 *constants::pi/180.0));
248  problem.setMaxFailed(1);
249 
250  int study_num;
251  if (argc>1) {
252  study_num=atoi(argv[1]);
253  } else {
254  study_num=0;
255  //~ cout << "Please enter study number" << endl;
256  //exit(-1);
257  }
258  problem.run(study_num);
259 }
Definition: AngleOfRepose.cpp:14
#define max(a, b)
Definition: datatypes.h:23
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 tan(const bfloat16 &a)
Definition: BFloat16.h:633
const Mdouble pi
Definition: ExtendedMath.h:23
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References max, constants::pi, problem, and Eigen::bfloat16_impl::tan().