23 #include "NamespaceHeader.H" 43 const Real a_A[SpaceDim][SpaceDim],
bool a_test);
50 static void getMinor(
Real a_Aminor[SpaceDim-1][SpaceDim-1],
51 const Real a_A[SpaceDim ][SpaceDim ],
57 Real a_Jinverse[SpaceDim][SpaceDim],
63 for (
int icol = 0; icol <
SpaceDim; icol++)
65 a_Jacobian[0][icol] = a_normal[icol];
66 for (
int irow = 1; irow <
SpaceDim; irow++)
68 a_Jacobian[irow][icol] = a_tangents[irow-1][icol];
83 a_tangen[0][1] = a_normal[0];
84 a_tangen[0][0] = -a_normal[1];
91 if (
Abs(dotProd) < 1.0e-6)
93 for (
int idir = 0; idir <
SpaceDim; idir++)
95 notNormal[idir] +=
Real(idir+1);
218 const Real& a_bndryArea);
311 const Real& a_norm2);
331 #include "NamespaceFooter.H" static Real determinant(const Vector< Vector< Real > > &a_A)
static Real matrixSolveComp(const Vector< Vector< Real > > &a_A, const Vector< Real > &a_rhs, const int &a_icomp)
static void getMinor(Real a_Aminor[SpaceDim-1][SpaceDim-1], const Real a_A[SpaceDim][SpaceDim], int a_row, int acol)
#define CH_SPACEDIM
Definition: SPACE.H:51
#define CH_assert(cond)
Definition: CHArray.H:37
static RealVect cross(const RealVect &a_xvec1, const RealVect &a_xvec0)
static Real bndryArea(const VolIndex &a_vof, const EBISBox &a_ebisBox)
static void setVectDx(const RealVect &a_vectDx)
one dimensional dynamic array
Definition: Vector.H:53
static Real s_areatolerance
Definition: PolyGeom.H:319
static const RealVect & getVectDx()
static RealVect tetCentroid(const RealVect &normal, const Real &alpha)
PolyGeom()
Definition: PolyGeom.H:281
static void getJacobianAndInverse(Real a_Jacobian[SpaceDim][SpaceDim], Real a_Jinverse[SpaceDim][SpaceDim], RealVect &a_normal, RealVect a_tangents[SpaceDim-1])
Definition: PolyGeom.H:56
static void getTangentVectors(RealVect a_tangen[CH_SPACEDIM-1], const RealVect &a_normal)
Definition: PolyGeom.H:79
static void invertMatrix(Real a_AInverse[SpaceDim][SpaceDim], const Real a_A[SpaceDim][SpaceDim], bool a_test)
static RealVect normal(const VolIndex &a_vof, const EBISBox &a_ebisBox, const Real &a_bndryArea)
~PolyGeom()
Definition: PolyGeom.H:284
static Real s_lengthtolerance
Definition: PolyGeom.H:317
static Real computeVolume(const Real &a_alpha, const RealVect &a_normal)
const int SpaceDim
Definition: SPACE.H:38
static const RealVect Unit
Definition: RealVect.H:427
static const Real & getTolerance()
static void setLengthTolerance(const Real &a_tolerance)
Definition: PolyGeom.H:34
static Real s_tolerance
Definition: PolyGeom.H:315
static void sortVector(RealVect &vect, IntVect &ivmap)
static Real determinantSD(const Real a_A[SpaceDim][SpaceDim])
static Real threeDFunc(const Real &arg)
double Real
Definition: REAL.H:33
static Tuple< int, CH_SPACEDIM-1 > computeTanDirs(int upDir)
static Real computeAnyVolume(const Real &a_alpha, const Real &a_norm0, const Real &a_norm1, const Real &a_norm2)
static Real dot(const RealVect &a_xvec1, const RealVect &a_xvec0)
Ordered Tuples for Types T.
Definition: Tuple.H:30
T Abs(const T &a_a)
Definition: Misc.H:53
static const Real & getVolumeTolerance()
static void setAreaTolerance(const Real &a_tolerance)
A Real vector in SpaceDim-dimensional space.
Definition: RealVect.H:41
static const Real & getLengthTolerance()
static void computeNormalAndAlpha(Real &a_alpha, RealVect &a_normal, const int &a_upDir, const Tuple< RealVect, CH_SPACEDIM > &a_poly)
static Real twoDFunc(const Real &arg)
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
Volume of Fluid Index.
Definition: VolIndex.H:31
static void setTolerance(const Real &a_tolerance)
static Real distancePointToPlane(const RealVect &a_point, const RealVect &a_normal, const RealVect &a_pointOnLine)
return distance from point to a plane
static RealVect s_vectDx
Definition: PolyGeom.H:313
static void posifyVector(RealVect &vect, IntVect &signs)
make vector all pos and return the signs
static Real determinantSDM1(const Real a_A[SpaceDim-1][SpaceDim-1])
static const Real & getAreaTolerance()
static Real tetVolume(const RealVect &normal, const Real &alpha)
static void pointToLine(RealVect &a_closestPt, RealVect &a_normal, const RealVect &a_point, const RealVect &a_pointOnLine, const RealVect &a_direction)
static void unifyVector(RealVect &normal, Real &sumSquare)
make vector into a unit vector and return the sum of squares
static Real computeAlpha(const Real &a_volFrac, const RealVect &a_normal)
static Real sAndZVolume(const Real &a_alpha, const RealVect &a_normal)
static void setVolumeTolerance(const Real &a_tolerance)