12 #ifndef __CORNERGRID_HEADER__
13 #define __CORNERGRID_HEADER__
83 Point3D p0, p1, p2, p3, p4, p5, p6, p7;
134 vector<HalfConn> halfConn;
135 void Allocate(
const USI& max_neighbor);
136 void AddHalfConn(
const OCP_USI& n,
139 const USI& direction,
159 void Allocate(
const USI& Nx,
const USI& Ny,
const USI& Nz);
160 void InputData(
const vector<OCP_DBL>&
coord,
const vector<OCP_DBL>&
zcorn);
164 void SetupCornerPoints();
181 vector<OCP_DBL>
depth;
185 vector<Point3D> center;
187 vector<GeneralConnect> connect;
193 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.
unsigned int OCP_BOOL
OCP_BOOL in OCP.
vector< OCP_DBL > v
Volume of cells: numGrid.
USI nx
Number of cells in x-direction.
vector< OCP_DBL > depth
Depth of center of grid cells: numGrid.
vector< OCP_DBL > dz
Size of cell in z-direction: numGrid.
USI nz
Number of cells in z-direction.
vector< OCP_DBL > zcorn
ZValues of a corner-point grid.
vector< OCP_DBL > coord
Lines of a corner-point grid.
USI ny
Number of cells in y-direction.
vector< OCP_DBL > dy
Size of cell in y-direction: numGrid.
vector< OCP_DBL > dx
Size of cell in x-direction: numGrid.
OCP_USI numGrid
Number of all cells.
A face of a hexahedron cell.