12 #ifndef __CORNERGRID_HEADER__
13 #define __CORNERGRID_HEADER__
74 Point3D p0, p1, p2, p3, p4, p5, p6, p7;
127 vector<HalfConn> halfConn;
128 void Allocate(
const USI& max_neighbor);
130 const USI& direction,
const OCP_DBL& flag = 1);
149 void Allocate(
const USI& Nx,
const USI& Ny,
const USI& Nz);
150 void InputData(
const vector<OCP_DBL>& coord,
const vector<OCP_DBL>& zcorn);
151 bool InputCOORDDATA(
const vector<OCP_DBL>& coord);
152 bool InputZCORNDATA(
const vector<OCP_DBL>& zcorn);
154 void SetupCornerPoints();
171 vector<OCP_DBL> depth;
175 vector<Point3D> center;
177 vector<GeneralConnect> connect;
183 OCP_INT flagp0, flagp1, flagp2, flagp3;
OCP_DBL CalAreaNotQuadr(const HexahedronFace &FACE1, const HexahedronFace &FACE2)
???
const OCP_DBL TEENY
Used for checking distance b/w center to face.
Point3D VectorFace(const HexahedronFace &f)
Find the normal vector of a face.
const OCP_DBL SMALL_REAL
Used for checking determinate of a small matrix.
const OCP_DBL SMALL
Small number as tolerance.
Point3D CrossProduct(const Point3D &p1, const Point3D &p2)
Cross product.
Point2D CalCrossingPoint(const Point2D Line1[2], const Point2D Line2[2])
???
Point3D CenterHexahedron(const Hexahedron &h)
Find the center of a hexahedron.
Point3D CenterFace(const HexahedronFace &f)
Find the center of a face.
Point3D operator*(const Point3D &p, const OCP_DBL &a)
Point * a.
OCP_DBL VolumHexahedron(const Hexahedron &h)
Get the volume of a hexahedron.
const USI MAX_NEIGHBOR
Max number of neighbors allowed.
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.
Basic information of computational grid, including the rock properties.
A face of a hexahedron cell.