12 #ifndef __GRID_HEADER__
13 #define __GRID_HEADER__
81 Points.reserve(numPoints);
83 vector<Point3D> Points;
114 void SetupOrthogonalGrid();
116 void CalDepthVOrthogonalGrid();
118 void SetupNeighborOrthogonalGrid();
121 void SetupCornerGrid();
123 void SetupBasicCornerGrid(
const OCP_COORD& CoTmp);
125 void SetupNeighborCornerGrid(
const OCP_COORD& CoTmp);
133 void SetupGridLocation();
136 OCP_USI GetGridNum()
const {
return numGrid; }
209 void SetHexaherdronGridOrthogonal();
210 void SetHexaherdronGridCorner(
214 void OutputBaiscInfo()
const;
215 void CalNumDigutIJK();
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.
unsigned int OCP_BOOL
OCP_BOOL in OCP.
ParamOutput class declaration.
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()=default
Default constructor.
OCP_BOOL IsAct() const
Return whether this cell is active or not.
OCP_USI GetId() const
Return the index of this cell among active cells.
GB_Pair(const OCP_BOOL &act, const OCP_USI &i)
Constructor with given information.
Effective area of intersection surfaces with neighboring cells.
OCP_DBL areaB
Effective intersection area between this cell and the neighbor, self.
OCP_USI id
Id of a neighboring cell.
USI direction
direction: 1-x, 2-y, 3-z
OCP_BOOL IfUseVtk() const
return if use vtk format for outputing
vector< OCP_DBL > ky
Absolute permeability in y-direction: numGrid.
vector< OCP_DBL > v
Volume of cells: numGrid.
vector< OCP_USI > map_Act2All
Mapping from active grid to all grid: activeGridNum.
vector< USI > ROCKNUM
index of rock table for each grid: numGrid
USI nx
Number of cells in x-direction.
USI numDigutIJK
number of digits of maximum nx,ny,nz
OCP_USI activeGridNum
Num of active grid.
vector< OCP_DBL > SwatInit
Initial water saturation.
vector< USI > PVTNUM
Identify PVT region for the blackoil model: numGrid.
vector< OCP_DBL > depth
Depth of center of grid cells: numGrid.
vector< USI > SATNUM
Identify SAT region: numGrid.
vector< OCP_DBL > kz
Absolute permeability in z-direction: numGrid.
USI gridType
Orthogonal or Corner grid.
OCP_USI fluidGridNum
Num of fluid grids.
vector< USI > gLocation
Top face, bottom face, side face, numGrid.
USI GetNumDigitIJK() const
Return numDigutIJK.
vector< OCP_DBL > dz
Size of cell in z-direction: numGrid.
USI nz
Number of cells in z-direction.
vector< OCPpolyhedron > polyhedronGrid
Coordinates of grid points.
vector< USI > gridTag
Tag of grid: dead, live(fluid), live(rock)
vector< OCP_DBL > zcorn
ZValues of a corner-point grid.
vector< GB_Pair > map_All2Flu
Mapping from all grid to fluid grid: numGrid.
vector< OCP_DBL > coord
Lines of a corner-point grid.
vector< OCP_DBL > thconr
Rock if Thermal conductivity: numGrid.
vector< OCP_DBL > poro
Initial porosity of rock cells: numGrid.
USI ny
Number of cells in y-direction.
vector< OCP_DBL > dy
Size of cell in y-direction: numGrid.
vector< GB_Pair > map_All2Act
Mapping from grid to active all grid: numGrid.
vector< OCP_DBL > tops
Depth of center of grid cells: numGrid.
vector< OCP_DBL > dx
Size of cell in x-direction: numGrid.
OCP_USI numGrid
Number of all cells.
vector< OCP_DBL > ntg
Net to gross ratio of cells: numGrid.
vector< vector< GPair > > gNeighbor
Neighboring information of grid.
vector< OCP_DBL > kx
Absolute permeability in x-direction: numGrid.
Record the initial grid information, all of grids are contained.
Collect more detailed information of each time step.