Overture  Version 25
SphereLoading.h
Go to the documentation of this file.
1 #ifndef SPHERE_LOADING_H
2 #define SPHERE_LOADING_H
3 
4 #include "Overture.h"
5 
6 // ==================================================================================================
7 // This class holds information defining the spheres that fill a liner geometry.
8 // It is used as an argument to the ModelBuilder::linerGeometry function.
9 // ==================================================================================================
10 
12 {
13 public:
14 
15  SphereLoading(int sizeOfDistribution=1, bool fromGUI=true);
17 
18  //SphereLoading(int &);
19  //SphereLoading(RealArray, RealArray, RealArray, RealArray, RealArray);
20 
21  void resize(int &);
23  void printSpheres(aString &);
25  void printDuneSpheres(aString &);
26 
27  RealArray sphereCenter; // holds sphere centers, sphereCenter(i,0:2)
28  RealArray sphereRadius; // sphere radius, sphereRadius(i)
29  RealArray sphereDistribution; // sphereDistribution(j,0) = radius, sphereDistribution(j,1)=probability distribution for radius
30 
31  RealArray sphereVelocity; // sphereVelocity(i,0:2) : initial velocity of the sphere
32  RealArray sphereStartTime; // sphere starts to move at this time.
33  double volumeFraction; // total volume fraction for all spheres
34  bool fromGUI;
35  int RNGSeed; // initial seed for RNG
36 };
37 
38 #endif