|
| Initializer (const std::string &inputfileName, const std::string &debugfileName="debug", bool ifDebug=false) |
| Constructor. More...
|
|
| ~Initializer () |
| Destructor.
|
|
bool | getIfDebug () const |
| Getter function of the boolean value on whether to print debug information. More...
|
|
std::string | getDebugfileName () const |
| Getter function of the filename for printing debug information. More...
|
|
int | getNumThreads () const |
| Getter function of the specified number of threads. More...
|
|
double | getStartTime () const |
| Getter function of the specified simulation physical start time. More...
|
|
double | getEndTime () const |
| Getter function of the specified simulation physical end time. More...
|
|
double | getWriteTimeInterval () const |
| Getter function of the specified physical time interval between writes. More...
|
|
double | getCFLCoeff () const |
| Getter function of the specified CFL coefficient. More...
|
|
int | getDimension () const |
| Getter function of the specified dimension of simulation. More...
|
|
bool | getRandomDirSplitOrder () const |
| Getter function of the specified boolean value on whether to use random order of Strang splitting or not. More...
|
|
int | getLPFOrder () const |
| Getter function of the specified order of Local Polynomial Fitting. More...
|
|
int | getEOSChoice () const |
| Getter function of the specified choice of equation of state (eos) More...
|
|
double | getInitParticleSpacing () const |
| Getter function of the specified initial inter-particle spacing. More...
|
|
double | getGravity () const |
| Getter function of the specified gravity value. More...
|
|
bool | getMovingBoxForGhostParticle () const |
| Getter function of the specified boolean value on whether to update the bounding box of fluid objects. More...
|
|
bool | getUseLimiter () const |
| Getter function of the specified boolean value on whether to use limiter or not. More...
|
|
double | getThresholdP () const |
| Getter function of the specified threshold value on pressure if limiter is used. More...
|
|
std::size_t | getMaxNeighbourNum () const |
| Getter function of the specified maximum number of neighbours of a particle. More...
|
|
std::size_t | getMaxNeighbourNumInOneDir () const |
| Getter function of the specified maximum number of neighbours in one direction (eg. right-hand-side in the x-coordinate) of a particle. More...
|
|
std::size_t | getNumRow2ndOrder () const |
| Getter function of the specified minimum number of neighbours in one direction of a particle for using 2nd order local polynomial fitting to compute the one-sided spatial derivatives. More...
|
|
std::size_t | getNumRow1stOrder () const |
| Getter function of the specified minimum number of neighbours in one direction of a particle for using 1st order local polynomial fitting to compute the one-sided spatial derivatives. More...
|
|
std::size_t | getNumCol2ndOrder () const |
| Getter function of the theoretical minimum number of neighbours required in one direction of a particle for 2nd order local polynomial fitting for the computation of one-sided spatial derivatives. More...
|
|
std::size_t | getNumCol1stOrder () const |
| Getter function of the theoretical minimum number of neighbours required in one direction of a particle for using 1st order local polynomial fitting to compute the one-sided spatial derivatives. More...
|
|
double | getNeiSearchRadius () const |
| Getter function of the specified radius for neighbour search. More...
|
|
double | getInvalidPressure () const |
| Getter function of the specified maximum/minimum pressure value a particle can possibly attain. More...
|
|
double | getInvalidVolume () const |
| Getter function of the specified maximum/minimum volume value a particle can possibly attain. More...
|
|
int | getTreeDepth () const |
| Getter function of the specified tree depth for the octree neighbour search algorithm. More...
|
|
double | getContactLength () const |
| Getter function of the specified length such that if the distance between two particles coming from different fluid objects is less than this length, they are considered as "in contact". More...
|
|
std::size_t | getCapacity () const |
| Getter function of the specified array length for particle data arrays such as x, y, and z-coordinates, pressure, volume, and sound speeds. More...
|
|
std::size_t | getFluidNum () const |
| Getter function of the number of fluid particles initialized. More...
|
|
std::size_t | getBoundaryNum () const |
| Getter function of the number of boundary particles initialized. More...
|
|
std::size_t | getFluidStartIndex () const |
| Getter function of the start index of fluid particles in the particle data arrays. More...
|
|
std::size_t | getBoundaryStartIndex () const |
| Getter function of the start index of boundary particles in the particle data arrays. More...
|
|
std::size_t | getGhostStartIndex () const |
| Getter function of the start index of ghost particles in the particle arrays of the ParticleData class. More...
|
|
std::size_t | getNumParticleWithinSearchRadius () const |
| Getter function of the number of particles located inside the specified radius of neighbour search at the time of initialization. More...
|
|
double * | getPositionX () const |
| Getter function of the array of x-coordinates of the initialized particles. More...
|
|
double * | getPositionY () const |
| Getter function of the array of y-coordinates of the initialized particles. More...
|
|
double * | getPositionZ () const |
| Getter function of the array of z-coordinates of the initialized particles. More...
|
|
double * | getVelocityU () const |
| Getter function of the array of velocity in x-coordinate of the initialized particles. More...
|
|
double * | getVelocityV () const |
| Getter function of the array of velocity in y-coordinate of the initialized particles. More...
|
|
double * | getVelocityW () const |
| Getter function of the array of velocity in z-coordinate of the initialized particles. More...
|
|
double * | getVolume () const |
| Getter function of the array of volume of the initialized particles. More...
|
|
double * | getPressure () const |
| Getter function of the array of pressure of the initialized particles. More...
|
|
double * | getSoundSpeed () const |
| Getter function of the array of sound speed of the initialized particles. More...
|
|
int * | getObjectTag () const |
| Getter function of the array of "object tags" of the initialized particles. More...
|
|
EOS * | getEOS () const |
| Getter function of the pointer to an object in the EOS family. More...
|
|
const std::vector< BoundingBox * > & | getFluidBoundingBox () const |
| Getter function of the bounding boxes for the initialized fluid objects. More...
|
|
const std::vector< std::string > & | getBoundaryObjTypes () const |
| Getter function of the types of the initialized boundary objects. More...
|
|
This class initializes the simulation.
The task of initialization of the simulation includes:
- Reading the input file
- Initializing the geometry of fluid objects
- Initializing the state of fluid objects
- Specifying some pre-determined parameters and calculate some parameters
- Author
- Chen, Hsin-Chiang (morri.nosp@m.sche.nosp@m.n2008.nosp@m.@gma.nosp@m.il.co.nosp@m.m)
- Version
- 1.0
- Date
- 2014/06/09
Created on: 2014/06/01