1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
#ifndef BASIC_H_
#define BASIC_H_
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <string>
#include <iomanip>
#include <cstdlib>
#include <cmath>
#include <eigen3/Eigen/Dense>
//----------------------------------------------------------------------------------------------------
typedef double numeric_t;
typedef long index_t;
//----------------------------------------------------------------------------------------------------
enum direction_e {e, n, w, s, ne, nw, sw, se};
enum corner_e {NE, NW, SW, SE};
enum neighbour_e {E, N, W, S, EE, NN, WW, SS};
enum PDEBoundaryType_e {nonPDE, Dirichlet, Neumann, Cauchy};
enum boundaryType_e {interface, inlet, outlet, wall, periodicUpstream, periodicDownstream};
enum position_t {liquidSide, inside, meniscus, open};
enum vpStatus_t {none, unknown, found, out, saturated};
enum sStatus_t {empty, partial, liquid};
enum blockType_e {ghost, flowfield, porousmedia};
enum algorithm_e {SIMPLE, SIMPLER, SIMPLEC, PISO};
enum scheme_e {upwind, hybrid, QUICK, HayaseQUICK, TVD};
//----------------------------------------------------------------------------------------------------
const int outputPrecision(4);
const index_t voidIndex(-1);
const numeric_t defaultGrowth(1);
const size_t neighbrNumber(8), nodeNumber(8), sideNumber(4);
const numeric_t pi(3.1415926);
const numeric_t GM(18.02), R(8.3144621);
const numeric_t atm(1.01325e5);
#endif /* BASIC_H_ */
|