109 MbVec3d ipcoord = getIsoParametricCoord(meshGeometry,wedgeCell,point);
110 getWeight(ipcoord,weights);
155 MbVec3d pcoord = getIsoParametricCoord(meshGeometry,wedgeCell,point);
156 bool inside = ( -1.E-5 < pcoord[0] && pcoord[0] < 1 + 1.E-5 &&
157 -1.E-5 < pcoord[1] && pcoord[1] < 1 + 1.E-5 &&
158 -1.E-5 < pcoord[2] && pcoord[2] < 1 + 1.E-5 &&
159 -1.E-5 < (pcoord[0]+pcoord[1]) && (pcoord[0]+pcoord[1]) < 1 + 1.E-5);
161 getWeight(pcoord,weights);
174 facetNodes.assign(s_linearNodesPerFacet[facet],s_linearNodesPerFacet[facet]+s_numLinearNodesPerFacet[facet]);
175 return s_numLinearNodesPerFacet[facet];
188 triangleNodeIds.assign(s_subTrianglePerFacet[face],s_subTrianglePerFacet[face]+(3*s_numSubTrianglePerFacet[face]));
189 return s_numSubTrianglePerFacet[face];
202 tetrahedronNodeIds.assign(s_subTetrahedronNodeIds,s_subTetrahedronNodeIds+(24*4));
214 static void get18Derivs(
double r,
double s,
double t,
size_t numNodes, std::vector<double>& derivs);
219 static bool initClass();
220 static void exitClass();
222 static void computeSubTetrahedronNodesIndex();
223 static void addSubWedge(
size_t n0,
size_t n1,
size_t n2,
size_t n3,
size_t n4,
size_t n5,
size_t orient, std::vector<size_t>& wedgeNodeIds);
225 template <
typename _F>
226 static void addSymetricWedgesByPlane(_F& symetricByPlane, std::vector<size_t>& wedgeNodeIds);
227 static void decomposeWedge(
size_t orient,
size_t n0,
size_t n1,
size_t n2,
size_t n3,
size_t n4,
size_t n5, std::vector<size_t>& tetraNodeIds);
229 static void computeSubTriangleNodesIndex();
230 template <
typename _F>
231 static std::vector<size_t> getSymetricTriangles(_F& symetricFunctor,
const std::vector<size_t>& triangleNodeIds);
232 template <
typename _F>
233 static std::vector<size_t> getRotateTriangles(_F& rotateFunctor,
const std::vector<size_t>& triangleNodeIds);
234 static void addTriangle(
size_t n0,
size_t n1,
size_t n2, std::vector<size_t>& triangleNodeIds);
236 static bool s_isInit;
238 static double s_nodesIsoParametricCoords[18][3];
240 static size_t s_linearNodesPerFacet[5][4];
241 static size_t s_numLinearNodesPerFacet[5];
243 static size_t s_numSubTrianglePerFacet[5];
244 static size_t s_subTrianglePerFacet[5][24];
246 static size_t s_subTetrahedronNodeIds[24*4];
248 static int s_imat0[36];
249 static int s_imat1[24];
250 static int s_imat2[24];
251 static int s_imat3[18];
252 static int s_iperm[24];