12 #ifndef __GRID_HEADER__
13 #define __GRID_HEADER__
38 static bool lessG(
const GPair& G1,
const GPair& G2) {
return G1.
id < G2.
id; }
59 bool IsAct()
const {
return activity; }
90 void SetupOrthogonalGrid();
92 void SetupNeighborOrthogonalGrid();
95 const USI& direction);
97 void CalDepthVOrthogonalGrid();
100 void SetupCornerGrid();
102 void SetupNeighborCornerGrid(
const COORD& CoTmp);
128 void CalSomeInfo()
const;
137 vector<vector<GPair>> gNeighbor;
140 vector<OCP_DBL> tops;
141 vector<OCP_DBL> depth;
147 vector<OCP_DBL> coord;
148 vector<OCP_DBL> zcorn;
153 vector<OCP_DBL> poro;
159 vector<OCP_DBL> SwatInit;
168 vector<OCP_USI> activeMap_B2G;
169 vector<GB_Pair> activeMap_G2B;
176 void CalNumDigutIJK();
177 USI GetNumDigitIJK()
const {
return numDigutIJK; }
Declaration of classes related to the corner grid.
Definition of build-in datatypes and consts.
unsigned int USI
Generic unsigned integer.
double OCP_DBL
Double precision.
unsigned int OCP_USI
Long unsigned integer.
ParamReservoir class declaration.
Supply basic tools used to output files.
Properties and operations on connections between bulks (active grids).
Physical information of each active reservoir bulk.
Active cell indicator and its index among active cells.
GB_Pair(bool act, OCP_USI i)
Constructor with given information. TODO: needed???
GB_Pair()=default
Default constructor.
bool IsAct() const
Return whether this cell is active or not.
OCP_USI GetId() const
Return the index of this cell among active cells.
Effective area of intersection surfaces with neighboring cells.
OCP_DBL area
Effective area between this cell and the neighbor indicated by id.
OCP_USI id
Id of a neighboring cell.
Basic information of computational grid, including the rock properties.
OCP_USI GetGridNy() const
Return ny of grid cell.
OCP_USI GetGridNz() const
Return nz of grid cell.
const GB_Pair & MapG2B(const OCP_USI &i) const
Mapping from grid cells to bulks (active cells).
OCP_USI GetActiveGridNum() const
Return the num of bulks (active cells).
OCP_USI GetGridNum() const
Return the num of grid cells.
Grid()=default
Default constructor.
OCP_USI GetGridNx() const
Return nx of grid cell.
OCP_USI GetConnNum() const
Return the num of connections.
void Setup(const Grid &myGrid, const Bulk &myBulk, const vector< SolventINJ > &sols)
Setup the well after Grid and Bulk finish setupping.