gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
MHexahedron20 Class Reference

#include <MHexahedron.h>

Inheritance diagram for MHexahedron20:
Collaboration diagram for MHexahedron20:

Public Member Functions

 MHexahedron20 (MVertex *v0, MVertex *v1, MVertex *v2, MVertex *v3, MVertex *v4, MVertex *v5, MVertex *v6, MVertex *v7, MVertex *v8, MVertex *v9, MVertex *v10, MVertex *v11, MVertex *v12, MVertex *v13, MVertex *v14, MVertex *v15, MVertex *v16, MVertex *v17, MVertex *v18, MVertex *v19, int num=0, int part=0)
 
 MHexahedron20 (const std::vector< MVertex * > &v, int num=0, int part=0)
 
 ~MHexahedron20 ()
 
virtual int getPolynomialOrder () const
 
virtual std::size_t getNumVertices () const
 
virtual MVertexgetVertex (int num)
 
virtual const MVertexgetVertex (int num) const
 
virtual void setVertex (int num, MVertex *v)
 
virtual MVertexgetVertexUNV (int num)
 
virtual MVertexgetVertexBDF (int num)
 
virtual MVertexgetVertexINP (int num)
 
virtual MVertexgetVertexKEY (int num)
 
virtual MVertexgetVertexRAD (int num)
 
virtual MVertexgetVertexDIFF (int num)
 
virtual MVertexgetVertexVTK (int num)
 
virtual int getNumEdgeVertices () const
 
virtual int getNumEdgesRep (bool curved)
 
virtual void getEdgeRep (bool curved, int num, double *x, double *y, double *z, SVector3 *n)
 
virtual void getEdgeVertices (const int num, std::vector< MVertex * > &v) const
 
virtual int getNumFacesRep (bool curved)
 
virtual void getFaceRep (bool curved, int num, double *x, double *y, double *z, SVector3 *n)
 
virtual void getFaceVertices (const int num, std::vector< MVertex * > &v) const
 
virtual int getTypeForMSH () const
 
virtual int getTypeForUNV () const
 
virtual int getTypeForVTK () const
 
virtual const char * getStringForBDF () const
 
virtual const char * getStringForINP () const
 
virtual const char * getStringForKEY () const
 
virtual const char * getStringForRAD () const
 
virtual const char * getStringForDIFF () const
 
virtual void reverse ()
 
virtual void getNode (int num, double &u, double &v, double &w) const
 
- Public Member Functions inherited from MHexahedron
 MHexahedron (MVertex *v0, MVertex *v1, MVertex *v2, MVertex *v3, MVertex *v4, MVertex *v5, MVertex *v6, MVertex *v7, int num=0, int part=0)
 
 MHexahedron (const std::vector< MVertex * > &v, int num=0, int part=0)
 
 ~MHexahedron ()
 
virtual int getDim () const
 
virtual int getNumEdges () const
 
virtual MEdge getEdge (int num) const
 
virtual int numEdge2numVertex (int numEdge, int numVert) const
 
virtual int getNumFaces ()
 
virtual MFace getFace (int num) const
 
virtual double getInnerRadius ()
 
virtual double angleShapeMeasure ()
 
virtual bool getFaceInfo (const MFace &face, int &ithFace, int &sign, int &rot) const
 
virtual int getType () const
 
virtual const char * getStringForPOS () const
 
virtual const char * getStringForTOCHNOG () const
 
virtual int getVolumeSign ()
 
virtual SPoint3 barycenterUVW () const
 
virtual bool isInside (double u, double v, double w) const
 
virtual void getIntegrationPoints (int pOrder, int *npts, IntPt **pts)
 
virtual int numCommonNodesInDualGraph (const MElement *const other) const
 
virtual MEdge getEdgeSolin (int num)
 
virtual MFace getFaceSolin (int num)
 
virtual MVertexgetVertexNEU (int num)
 
- Public Member Functions inherited from MElement
 MElement (std::size_t num=0, int part=0)
 
virtual ~MElement ()
 
double getTolerance () const
 
virtual std::size_t getNum () const
 
void forceNum (std::size_t num)
 
virtual bool getIsAssimilatedSerendipity () const
 
virtual bool getIsOnlySerendipity () const
 
virtual int getPartition () const
 
virtual void setPartition (int num)
 
virtual char getVisibility () const
 
virtual void setVisibility (char val)
 
void getVertices (std::vector< MVertex * > &verts)
 
virtual void getVertexInfo (const MVertex *vertex, int &ithVertex) const
 
virtual MVertexgetVertexMATLAB (int num)
 
virtual MVertexgetVertexTOCHNOG (int num)
 
virtual int getNumFaceVertices () const
 
virtual int getNumVolumeVertices () const
 
std::size_t getNumPrimaryVertices () const
 
virtual MEdgeN getHighOrderEdge (int num, int sign)
 
MEdgeN getHighOrderEdge (const MEdge &edge)
 
virtual bool getEdgeInfo (const MEdge &edge, int &ithEdge, int &sign) const
 
virtual MFaceN getHighOrderFace (int num, int sign, int rot)
 
MFaceN getHighOrderFace (const MFace &face)
 
virtual MElementgetParent () const
 
virtual void setParent (MElement *p, bool owner=false)
 
virtual void updateParent (GModel *gm)
 
virtual int getNumChildren () const
 
virtual MElementgetChild (int i) const
 
virtual bool ownsParent () const
 
virtual const MElementgetBaseElement () const
 
virtual MElementgetBaseElement ()
 
virtual MElementgetDomain (int i) const
 
virtual void setDomain (MElement *e, int i)
 
virtual double maxEdge ()
 
virtual double minEdge ()
 
double maxDistToStraight () const
 
double skewness ()
 
virtual double gammaShapeMeasure ()
 
virtual double etaShapeMeasure ()
 
double minSICNShapeMeasure ()
 
double minSIGEShapeMeasure ()
 
double distoShapeMeasure ()
 
double minIsotropyMeasure (bool knownValid=false, bool reversedOk=false)
 
double minScaledJacobian (bool knownValid=false, bool reversedOk=false)
 
virtual void scaledJacRange (double &jmin, double &jmax, GEntity *ge=nullptr) const
 
virtual void idealJacRange (double &jmin, double &jmax, GEntity *ge=nullptr)
 
virtual void signedInvCondNumRange (double &iCNMin, double &iCNMax, GEntity *ge=nullptr)
 
virtual void signedInvGradErrorRange (double &minSIGE, double &maxSIGE)
 
virtual double getOuterRadius ()
 
virtual SPoint3 barycenter (bool primary=false) const
 
virtual SPoint3 fastBarycenter (bool primary=false) const
 
virtual SPoint3 barycenter_infty () const
 
virtual double getVolume ()
 
virtual bool setVolumePositive ()
 
int getValidity ()
 
virtual std::string getInfoString (bool multline)
 
virtual const nodalBasisgetFunctionSpace (int order=-1, bool serendip=false) const
 
virtual const FuncSpaceData getFuncSpaceData (int order=-1, bool serendip=false) const
 
virtual const JacobianBasisgetJacobianFuncSpace (int orderElement=-1) const
 
virtual const FuncSpaceData getJacobianFuncSpaceData (int orderElement=-1) const
 
virtual void getShapeFunctions (double u, double v, double w, double s[], int order=-1) const
 
virtual void getGradShapeFunctions (double u, double v, double w, double s[][3], int order=-1) const
 
virtual void getHessShapeFunctions (double u, double v, double w, double s[][3][3], int order=-1) const
 
virtual void getThirdDerivativeShapeFunctions (double u, double v, double w, double s[][3][3][3], int order=-1) const
 
virtual double getJacobian (const fullMatrix< double > &gsf, double jac[3][3]) const
 
virtual double getJacobian (const std::vector< SVector3 > &gsf, double jac[3][3]) const
 
virtual double getJacobian (const std::vector< SVector3 > &gsf, double *jac) const
 
virtual double getJacobian (double u, double v, double w, double jac[3][3]) const
 
double getJacobian (double u, double v, double w, fullMatrix< double > &j) const
 
virtual double getPrimaryJacobian (double u, double v, double w, double jac[3][3]) const
 
double getJacobianDeterminant (double u, double v, double w) const
 
void getSignedJacobian (fullVector< double > &jacobian, int o=-1) const
 
void getNodesCoord (fullMatrix< double > &nodesXYZ) const
 
void getNodesCoordNonSerendip (fullMatrix< double > &nodesXYZ) const
 
bezierCoeffgetBezierVerticesCoord () const
 
virtual std::size_t getNumShapeFunctions () const
 
virtual std::size_t getNumPrimaryShapeFunctions () const
 
virtual const MVertexgetShapeFunctionNode (int i) const
 
virtual MVertexgetShapeFunctionNode (int i)
 
virtual double getEigenvaluesMetric (double u, double v, double w, double values[3]) const
 
virtual void pnt (double u, double v, double w, SPoint3 &p) const
 
virtual void pnt (double u, double v, double w, double *p) const
 
virtual void pnt (const std::vector< double > &sf, SPoint3 &p) const
 
virtual void primaryPnt (double u, double v, double w, SPoint3 &p)
 
virtual void xyz2uvw (double xyz[3], double uvw[3]) const
 
virtual void movePointFromParentSpaceToElementSpace (double &u, double &v, double &w) const
 
virtual void movePointFromElementSpaceToParentSpace (double &u, double &v, double &w) const
 
double interpolate (double val[], double u, double v, double w, int stride=1, int order=-1)
 
void interpolateGrad (double val[], double u, double v, double w, double f[], int stride=1, double invjac[3][3]=nullptr, int order=-1)
 
void interpolateCurl (double val[], double u, double v, double w, double f[], int stride=3, int order=-1)
 
double interpolateDiv (double val[], double u, double v, double w, int stride=3, int order=-1)
 
double integrate (double val[], int pOrder, int stride=1, int order=-1)
 
double integrateCirc (double val[], int edge, int pOrder, int order=-1)
 
double integrateFlux (double val[], int face, int pOrder, int order=-1)
 
virtual void writeMSH2 (FILE *fp, double version=1.0, bool binary=false, int num=0, int elementary=1, int physical=1, int parentNum=0, int dom1Num=0, int dom2Num=0, std::vector< short > *ghosts=nullptr)
 
virtual void writeMSH3 (FILE *fp, bool binary=false, int elementary=1, std::vector< short > *ghosts=nullptr)
 
virtual void writePOS (FILE *fp, bool printElementary, bool printElementNumber, bool printSICN, bool printSIGE, bool printGamma, bool printDisto, double scalingFactor=1.0, int elementary=1)
 
virtual void writeSTL (FILE *fp, bool binary=false, double scalingFactor=1.0)
 
virtual void writeX3D (FILE *fp, double scalingFactor=1.0)
 
virtual void writeVRML (FILE *fp)
 
virtual void writePLY2 (FILE *fp)
 
virtual void writeUNV (FILE *fp, int num=0, int elementary=1, int physical=1)
 
virtual void writeVTK (FILE *fp, bool binary=false, bool bigEndian=false)
 
virtual void writeMATLAB (FILE *fp, int filetype, int elementary=0, int physical=0, bool binary=false)
 
virtual void writeTOCHNOG (FILE *fp, int num)
 
virtual void writeMESH (FILE *fp, int elementTagType=1, int elementary=1, int physical=0)
 
virtual void writeNEU (FILE *fp, unsigned gambitType, int adjust, int phys=0)
 
virtual void writeIR3 (FILE *fp, int elementTagType, int num, int elementary, int physical)
 
virtual void writeBDF (FILE *fp, int format=0, int elementTagType=1, int elementary=1, int physical=0)
 
virtual void writeDIFF (FILE *fp, int num, bool binary=false, int physical_property=1)
 
virtual void writeINP (FILE *fp, int num)
 
virtual void writeKEY (FILE *fp, int pid, int num)
 
virtual void writeRAD (FILE *fp, int num)
 
virtual void writeSU2 (FILE *fp, int num)
 
std::string getName ()
 
virtual std::size_t getNumVerticesForMSH ()
 
virtual void getVerticesIdForMSH (std::vector< int > &verts)
 
virtual MElementcopy (std::map< int, MVertex * > &vertexMap, std::map< MElement *, MElement * > &newParents, std::map< MElement *, MElement * > &newDomains)
 

Protected Attributes

MVertex_vs [12]
 
- Protected Attributes inherited from MHexahedron
MVertex_v [8]
 

Additional Inherited Members

- Static Public Member Functions inherited from MHexahedron
static int edges_hexa (const int edge, const int vert)
 
static int faces_hexa (const int face, const int vert)
 
static int faces2edge_hexa (const int face, const int edge)
 
- Static Public Member Functions inherited from MElement
static unsigned int getInfoMSH (const int typeMSH, const char **const name=nullptr)
 
- Protected Member Functions inherited from MHexahedron
void _getEdgeVertices (const int num, std::vector< MVertex * > &v) const
 
void _getFaceVertices (const int num, std::vector< MVertex * > &v) const
 
- Protected Member Functions inherited from MElement
void _getEdgeRep (MVertex *v0, MVertex *v1, double *x, double *y, double *z, SVector3 *n, int faceIndex=-1)
 
void _getFaceRep (MVertex *v0, MVertex *v1, MVertex *v2, double *x, double *y, double *z, SVector3 *n)
 
- Static Protected Member Functions inherited from MElement
static bool _getFaceInfo (const MFace &face, const MFace &other, int &sign, int &rot)
 
- Static Protected Attributes inherited from MElement
static double _isInsideTolerance
 

Detailed Description

Definition at line 251 of file MHexahedron.h.

Constructor & Destructor Documentation

◆ MHexahedron20() [1/2]

MHexahedron20::MHexahedron20 ( MVertex v0,
MVertex v1,
MVertex v2,
MVertex v3,
MVertex v4,
MVertex v5,
MVertex v6,
MVertex v7,
MVertex v8,
MVertex v9,
MVertex v10,
MVertex v11,
MVertex v12,
MVertex v13,
MVertex v14,
MVertex v15,
MVertex v16,
MVertex v17,
MVertex v18,
MVertex v19,
int  num = 0,
int  part = 0 
)
inline

Definition at line 256 of file MHexahedron.h.

◆ MHexahedron20() [2/2]

MHexahedron20::MHexahedron20 ( const std::vector< MVertex * > &  v,
int  num = 0,
int  part = 0 
)
inline

Definition at line 277 of file MHexahedron.h.

◆ ~MHexahedron20()

MHexahedron20::~MHexahedron20 ( )
inline

Definition at line 283 of file MHexahedron.h.

Member Function Documentation

◆ getEdgeRep()

void MHexahedron20::getEdgeRep ( bool  curved,
int  num,
double *  x,
double *  y,
double *  z,
SVector3 n 
)
virtual

Reimplemented from MHexahedron.

Definition at line 152 of file MHexahedron.cpp.

Here is the call graph for this function:

◆ getEdgeVertices()

virtual void MHexahedron20::getEdgeVertices ( const int  num,
std::vector< MVertex * > &  v 
) const
inlinevirtual

Reimplemented from MHexahedron.

Definition at line 347 of file MHexahedron.h.

Here is the call graph for this function:

◆ getFaceRep()

void MHexahedron20::getFaceRep ( bool  curved,
int  num,
double *  x,
double *  y,
double *  z,
SVector3 n 
)
virtual

Reimplemented from MHexahedron.

Definition at line 374 of file MHexahedron.cpp.

Here is the call graph for this function:

◆ getFaceVertices()

virtual void MHexahedron20::getFaceVertices ( const int  num,
std::vector< MVertex * > &  v 
) const
inlinevirtual

Reimplemented from MHexahedron.

Definition at line 356 of file MHexahedron.h.

Here is the call graph for this function:

◆ getNode()

virtual void MHexahedron20::getNode ( int  num,
double &  u,
double &  v,
double &  w 
) const
inlinevirtual

Reimplemented from MHexahedron.

Definition at line 397 of file MHexahedron.h.

Here is the call graph for this function:

◆ getNumEdgesRep()

int MHexahedron20::getNumEdgesRep ( bool  curved)
virtual

Reimplemented from MHexahedron.

Definition at line 179 of file MHexahedron.cpp.

Here is the call graph for this function:

◆ getNumEdgeVertices()

virtual int MHexahedron20::getNumEdgeVertices ( ) const
inlinevirtual

Reimplemented from MElement.

Definition at line 343 of file MHexahedron.h.

◆ getNumFacesRep()

int MHexahedron20::getNumFacesRep ( bool  curved)
virtual

Reimplemented from MHexahedron.

Definition at line 412 of file MHexahedron.cpp.

Here is the call graph for this function:

◆ getNumVertices()

virtual std::size_t MHexahedron20::getNumVertices ( ) const
inlinevirtual

Reimplemented from MHexahedron.

Definition at line 285 of file MHexahedron.h.

◆ getPolynomialOrder()

virtual int MHexahedron20::getPolynomialOrder ( ) const
inlinevirtual

Reimplemented from MElement.

Definition at line 284 of file MHexahedron.h.

◆ getStringForBDF()

virtual const char* MHexahedron20::getStringForBDF ( ) const
inlinevirtual

Reimplemented from MHexahedron.

Definition at line 370 of file MHexahedron.h.

◆ getStringForDIFF()

virtual const char* MHexahedron20::getStringForDIFF ( ) const
inlinevirtual

Reimplemented from MHexahedron.

Definition at line 374 of file MHexahedron.h.

◆ getStringForINP()

virtual const char* MHexahedron20::getStringForINP ( ) const
inlinevirtual

Reimplemented from MHexahedron.

Definition at line 371 of file MHexahedron.h.

◆ getStringForKEY()

virtual const char* MHexahedron20::getStringForKEY ( ) const
inlinevirtual

Reimplemented from MHexahedron.

Definition at line 372 of file MHexahedron.h.

◆ getStringForRAD()

virtual const char* MHexahedron20::getStringForRAD ( ) const
inlinevirtual

Reimplemented from MHexahedron.

Definition at line 373 of file MHexahedron.h.

◆ getTypeForMSH()

virtual int MHexahedron20::getTypeForMSH ( ) const
inlinevirtual

Reimplemented from MHexahedron.

Definition at line 367 of file MHexahedron.h.

◆ getTypeForUNV()

virtual int MHexahedron20::getTypeForUNV ( ) const
inlinevirtual

Reimplemented from MHexahedron.

Definition at line 368 of file MHexahedron.h.

◆ getTypeForVTK()

virtual int MHexahedron20::getTypeForVTK ( ) const
inlinevirtual

Reimplemented from MHexahedron.

Definition at line 369 of file MHexahedron.h.

◆ getVertex() [1/2]

virtual MVertex* MHexahedron20::getVertex ( int  num)
inlinevirtual

Reimplemented from MHexahedron.

Definition at line 286 of file MHexahedron.h.

Referenced by getVertexBDF(), getVertexDIFF(), getVertexINP(), getVertexKEY(), getVertexRAD(), getVertexUNV(), and getVertexVTK().

Here is the caller graph for this function:

◆ getVertex() [2/2]

virtual const MVertex* MHexahedron20::getVertex ( int  num) const
inlinevirtual

Reimplemented from MHexahedron.

Definition at line 290 of file MHexahedron.h.

◆ getVertexBDF()

virtual MVertex* MHexahedron20::getVertexBDF ( int  num)
inlinevirtual

Reimplemented from MElement.

Definition at line 307 of file MHexahedron.h.

Here is the call graph for this function:

◆ getVertexDIFF()

virtual MVertex* MHexahedron20::getVertexDIFF ( int  num)
inlinevirtual

Reimplemented from MHexahedron.

Definition at line 331 of file MHexahedron.h.

Here is the call graph for this function:

◆ getVertexINP()

virtual MVertex* MHexahedron20::getVertexINP ( int  num)
inlinevirtual

Reimplemented from MElement.

Definition at line 313 of file MHexahedron.h.

Here is the call graph for this function:

◆ getVertexKEY()

virtual MVertex* MHexahedron20::getVertexKEY ( int  num)
inlinevirtual

Reimplemented from MElement.

Definition at line 319 of file MHexahedron.h.

Here is the call graph for this function:

◆ getVertexRAD()

virtual MVertex* MHexahedron20::getVertexRAD ( int  num)
inlinevirtual

Reimplemented from MElement.

Definition at line 325 of file MHexahedron.h.

Here is the call graph for this function:

◆ getVertexUNV()

virtual MVertex* MHexahedron20::getVertexUNV ( int  num)
inlinevirtual

Reimplemented from MElement.

Definition at line 301 of file MHexahedron.h.

Here is the call graph for this function:

◆ getVertexVTK()

virtual MVertex* MHexahedron20::getVertexVTK ( int  num)
inlinevirtual

Reimplemented from MElement.

Definition at line 337 of file MHexahedron.h.

Here is the call graph for this function:

◆ reverse()

virtual void MHexahedron20::reverse ( )
inlinevirtual

Reimplemented from MHexahedron.

Definition at line 375 of file MHexahedron.h.

◆ setVertex()

virtual void MHexahedron20::setVertex ( int  num,
MVertex v 
)
inlinevirtual

Reimplemented from MHexahedron.

Definition at line 294 of file MHexahedron.h.

Member Data Documentation

◆ _vs

MVertex* MHexahedron20::_vs[12]
protected

The documentation for this class was generated from the following files: