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

#include <MElementCut.h>

Inheritance diagram for MPolyhedron:
Collaboration diagram for MPolyhedron:

Public Member Functions

 MPolyhedron (std::vector< MVertex * > v, int num=0, int part=0, bool owner=false, MElement *orig=nullptr)
 
 MPolyhedron (std::vector< MTetrahedron * > vT, int num=0, int part=0, bool owner=false, MElement *orig=nullptr)
 
 ~MPolyhedron ()
 
virtual int getDim () const
 
virtual std::size_t getNumVertices () const
 
virtual int getNumVolumeVertices () const
 
virtual MVertexgetVertex (int num)
 
virtual const MVertexgetVertex (int num) const
 
virtual int getNumEdges () const
 
virtual MEdge getEdge (int num) 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 getNumFaces ()
 
virtual MFace getFace (int num) 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 getType () const
 
virtual int getTypeForMSH () const
 
virtual void reverse ()
 
virtual double getVolume ()
 
virtual const nodalBasisgetFunctionSpace (int order=-1, bool serendip=false) const
 
virtual const JacobianBasisgetJacobianFuncSpace (int order=-1) const
 
virtual void getShapeFunctions (double u, double v, double w, double s[], int o) const
 
virtual void getGradShapeFunctions (double u, double v, double w, double s[][3], int o) const
 
virtual void getHessShapeFunctions (double u, double v, double w, double s[][3][3], int o) const
 
virtual std::size_t getNumShapeFunctions () const
 
virtual std::size_t getNumPrimaryShapeFunctions () const
 
virtual const MVertexgetShapeFunctionNode (int i) const
 
virtual MVertexgetShapeFunctionNode (int i)
 
virtual bool isInside (double u, double v, double w) const
 
virtual void getIntegrationPoints (int pOrder, int *npts, IntPt **pts)
 
virtual MElementgetParent () const
 
virtual void setParent (MElement *p, bool owner=false)
 
virtual int getNumChildren () const
 
virtual MElementgetChild (int i) const
 
virtual bool ownsParent () const
 
virtual std::size_t getNumVerticesForMSH ()
 
virtual void getVerticesIdForMSH (std::vector< int > &verts)
 
virtual int numCommonNodesInDualGraph (const MElement *const other) const
 
- 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 int getPolynomialOrder () const
 
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 setVertex (int num, MVertex *v)
 
virtual void getVertexInfo (const MVertex *vertex, int &ithVertex) const
 
virtual MVertexgetVertexUNV (int num)
 
virtual MVertexgetVertexVTK (int num)
 
virtual MVertexgetVertexMATLAB (int num)
 
virtual MVertexgetVertexTOCHNOG (int num)
 
virtual MVertexgetVertexBDF (int num)
 
virtual MVertexgetVertexDIFF (int num)
 
virtual MVertexgetVertexINP (int num)
 
virtual MVertexgetVertexKEY (int num)
 
virtual MVertexgetVertexRAD (int num)
 
virtual MVertexgetVertexNEU (int num)
 
virtual int getNumEdgeVertices () const
 
virtual int getNumFaceVertices () 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 int numEdge2numVertex (int numEdge, int numVert) const
 
virtual MEdge getEdgeSolin (int numEdge)
 
virtual MFaceN getHighOrderFace (int num, int sign, int rot)
 
MFaceN getHighOrderFace (const MFace &face)
 
virtual bool getFaceInfo (const MFace &face, int &ithFace, int &sign, int &rot) const
 
virtual MFace getFaceSolin (int numFace)
 
virtual void updateParent (GModel *gm)
 
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 double angleShapeMeasure ()
 
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 getInnerRadius ()
 
virtual double getOuterRadius ()
 
virtual SPoint3 barycenter (bool primary=false) const
 
virtual SPoint3 fastBarycenter (bool primary=false) const
 
virtual SPoint3 barycenterUVW () const
 
virtual SPoint3 barycenter_infty () const
 
virtual int getVolumeSign ()
 
virtual bool setVolumePositive ()
 
int getValidity ()
 
virtual std::string getInfoString (bool multline)
 
virtual const FuncSpaceData getFuncSpaceData (int order=-1, bool serendip=false) const
 
virtual const FuncSpaceData getJacobianFuncSpaceData (int orderElement=-1) const
 
virtual void getNode (int num, double &u, double &v, double &w) 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 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)
 
virtual int getTypeForUNV () const
 
virtual int getTypeForVTK () const
 
virtual const char * getStringForTOCHNOG () const
 
virtual const char * getStringForPOS () const
 
virtual const char * getStringForBDF () const
 
virtual const char * getStringForDIFF () const
 
virtual const char * getStringForINP () const
 
virtual const char * getStringForKEY () const
 
virtual const char * getStringForRAD () const
 
std::string getName ()
 
virtual MElementcopy (std::map< int, MVertex * > &vertexMap, std::map< MElement *, MElement * > &newParents, std::map< MElement *, MElement * > &newDomains)
 

Protected Member Functions

void _init ()
 
- 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)
 

Protected Attributes

bool _owner
 
MElement_orig
 
IntPt_intpt
 
std::vector< MTetrahedron * > _parts
 
std::vector< MVertex * > _vertices
 
std::vector< MVertex * > _innerVertices
 
std::vector< MEdge_edges
 
std::vector< MFace_faces
 

Additional Inherited Members

- Static Public Member Functions inherited from MElement
static unsigned int getInfoMSH (const int typeMSH, const char **const name=nullptr)
 
- 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 21 of file MElementCut.h.

Constructor & Destructor Documentation

◆ MPolyhedron() [1/2]

MPolyhedron::MPolyhedron ( std::vector< MVertex * >  v,
int  num = 0,
int  part = 0,
bool  owner = false,
MElement orig = nullptr 
)
inline

Definition at line 34 of file MElementCut.h.

Here is the call graph for this function:

◆ MPolyhedron() [2/2]

MPolyhedron::MPolyhedron ( std::vector< MTetrahedron * >  vT,
int  num = 0,
int  part = 0,
bool  owner = false,
MElement orig = nullptr 
)
inline

Definition at line 46 of file MElementCut.h.

Here is the call graph for this function:

◆ ~MPolyhedron()

MPolyhedron::~MPolyhedron ( )
inline

Definition at line 53 of file MElementCut.h.

Member Function Documentation

◆ _init()

void MPolyhedron::_init ( )
protected

Definition at line 25 of file MElementCut.cpp.

Referenced by MPolyhedron(), and reverse().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getChild()

virtual MElement* MPolyhedron::getChild ( int  i) const
inlinevirtual

Reimplemented from MElement.

Definition at line 181 of file MElementCut.h.

◆ getDim()

virtual int MPolyhedron::getDim ( ) const
inlinevirtual

Implements MElement.

Definition at line 59 of file MElementCut.h.

◆ getEdge()

virtual MEdge MPolyhedron::getEdge ( int  num) const
inlinevirtual

Implements MElement.

Definition at line 78 of file MElementCut.h.

Referenced by _init(), and getEdgeRep().

Here is the caller graph for this function:

◆ getEdgeRep()

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

Implements MElement.

Definition at line 80 of file MElementCut.h.

Here is the call graph for this function:

◆ getEdgeVertices()

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

Reimplemented from MElement.

Definition at line 89 of file MElementCut.h.

◆ getFace()

virtual MFace MPolyhedron::getFace ( int  num) const
inlinevirtual

Implements MElement.

Definition at line 96 of file MElementCut.h.

Referenced by _init().

Here is the caller graph for this function:

◆ getFaceRep()

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

Implements MElement.

Definition at line 98 of file MElementCut.h.

Here is the call graph for this function:

◆ getFaceVertices()

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

Reimplemented from MElement.

Definition at line 104 of file MElementCut.h.

◆ getFunctionSpace()

virtual const nodalBasis* MPolyhedron::getFunctionSpace ( int  order = -1,
bool  serendip = false 
) const
inlinevirtual

Reimplemented from MElement.

Definition at line 129 of file MElementCut.h.

Here is the call graph for this function:

◆ getGradShapeFunctions()

virtual void MPolyhedron::getGradShapeFunctions ( double  u,
double  v,
double  w,
double  s[][3],
int  o 
) const
inlinevirtual

Reimplemented from MElement.

Definition at line 143 of file MElementCut.h.

Here is the call graph for this function:

◆ getHessShapeFunctions()

virtual void MPolyhedron::getHessShapeFunctions ( double  u,
double  v,
double  w,
double  s[][3][3],
int  o 
) const
inlinevirtual

Reimplemented from MElement.

Definition at line 148 of file MElementCut.h.

Here is the call graph for this function:

◆ getIntegrationPoints()

void MPolyhedron::getIntegrationPoints ( int  pOrder,
int *  npts,
IntPt **  pts 
)
virtual

Reimplemented from MElement.

Definition at line 107 of file MElementCut.cpp.

Here is the call graph for this function:

◆ getJacobianFuncSpace()

virtual const JacobianBasis* MPolyhedron::getJacobianFuncSpace ( int  order = -1) const
inlinevirtual

Reimplemented from MElement.

Definition at line 134 of file MElementCut.h.

Here is the call graph for this function:

◆ getNumChildren()

virtual int MPolyhedron::getNumChildren ( ) const
inlinevirtual

Reimplemented from MElement.

Definition at line 180 of file MElementCut.h.

◆ getNumEdges()

virtual int MPolyhedron::getNumEdges ( ) const
inlinevirtual

Implements MElement.

Definition at line 77 of file MElementCut.h.

◆ getNumEdgesRep()

virtual int MPolyhedron::getNumEdgesRep ( bool  curved)
inlinevirtual

Implements MElement.

Definition at line 79 of file MElementCut.h.

◆ getNumFaces()

virtual int MPolyhedron::getNumFaces ( )
inlinevirtual

Implements MElement.

Definition at line 95 of file MElementCut.h.

◆ getNumFacesRep()

virtual int MPolyhedron::getNumFacesRep ( bool  curved)
inlinevirtual

Implements MElement.

Definition at line 97 of file MElementCut.h.

◆ getNumPrimaryShapeFunctions()

virtual std::size_t MPolyhedron::getNumPrimaryShapeFunctions ( ) const
inlinevirtual

Reimplemented from MElement.

Definition at line 157 of file MElementCut.h.

Here is the call graph for this function:

◆ getNumShapeFunctions()

virtual std::size_t MPolyhedron::getNumShapeFunctions ( ) const
inlinevirtual

Reimplemented from MElement.

Definition at line 153 of file MElementCut.h.

Here is the call graph for this function:

◆ getNumVertices()

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

Implements MElement.

Definition at line 60 of file MElementCut.h.

◆ getNumVerticesForMSH()

virtual std::size_t MPolyhedron::getNumVerticesForMSH ( )
inlinevirtual

Reimplemented from MElement.

Definition at line 183 of file MElementCut.h.

Referenced by getVerticesIdForMSH().

Here is the caller graph for this function:

◆ getNumVolumeVertices()

virtual int MPolyhedron::getNumVolumeVertices ( ) const
inlinevirtual

Reimplemented from MElement.

Definition at line 64 of file MElementCut.h.

◆ getParent()

virtual MElement* MPolyhedron::getParent ( ) const
inlinevirtual

Reimplemented from MElement.

Definition at line 174 of file MElementCut.h.

◆ getShapeFunctionNode() [1/2]

virtual MVertex* MPolyhedron::getShapeFunctionNode ( int  i)
inlinevirtual

Reimplemented from MElement.

Definition at line 165 of file MElementCut.h.

Here is the call graph for this function:

◆ getShapeFunctionNode() [2/2]

virtual const MVertex* MPolyhedron::getShapeFunctionNode ( int  i) const
inlinevirtual

Reimplemented from MElement.

Definition at line 161 of file MElementCut.h.

Here is the call graph for this function:

◆ getShapeFunctions()

virtual void MPolyhedron::getShapeFunctions ( double  u,
double  v,
double  w,
double  s[],
int  o 
) const
inlinevirtual

Reimplemented from MElement.

Definition at line 138 of file MElementCut.h.

Here is the call graph for this function:

◆ getType()

virtual int MPolyhedron::getType ( ) const
inlinevirtual

Implements MElement.

Definition at line 111 of file MElementCut.h.

◆ getTypeForMSH()

virtual int MPolyhedron::getTypeForMSH ( ) const
inlinevirtual

Reimplemented from MElement.

Definition at line 112 of file MElementCut.h.

◆ getVertex() [1/2]

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

Implements MElement.

Definition at line 65 of file MElementCut.h.

Referenced by _init(), getFaceRep(), and getVerticesIdForMSH().

Here is the caller graph for this function:

◆ getVertex() [2/2]

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

Implements MElement.

Definition at line 71 of file MElementCut.h.

◆ getVerticesIdForMSH()

virtual void MPolyhedron::getVerticesIdForMSH ( std::vector< int > &  verts)
inlinevirtual

Reimplemented from MElement.

Definition at line 184 of file MElementCut.h.

Here is the call graph for this function:

◆ getVolume()

virtual double MPolyhedron::getVolume ( )
inlinevirtual

Reimplemented from MElement.

Definition at line 122 of file MElementCut.h.

Referenced by _init().

Here is the caller graph for this function:

◆ isInside()

bool MPolyhedron::isInside ( double  u,
double  v,
double  w 
) const
virtual

Implements MElement.

Definition at line 84 of file MElementCut.cpp.

Here is the call graph for this function:

◆ numCommonNodesInDualGraph()

virtual int MPolyhedron::numCommonNodesInDualGraph ( const MElement *const  other) const
inlinevirtual

Implements MElement.

Definition at line 192 of file MElementCut.h.

◆ ownsParent()

virtual bool MPolyhedron::ownsParent ( ) const
inlinevirtual

Reimplemented from MElement.

Definition at line 182 of file MElementCut.h.

◆ reverse()

virtual void MPolyhedron::reverse ( )
inlinevirtual

Reimplemented from MElement.

Definition at line 113 of file MElementCut.h.

Here is the call graph for this function:

◆ setParent()

virtual void MPolyhedron::setParent ( MElement p,
bool  owner = false 
)
inlinevirtual

Reimplemented from MElement.

Definition at line 175 of file MElementCut.h.

Member Data Documentation

◆ _edges

std::vector<MEdge> MPolyhedron::_edges
protected

Definition at line 29 of file MElementCut.h.

Referenced by _init(), getEdge(), getEdgeVertices(), getNumEdges(), getNumEdgesRep(), and reverse().

◆ _faces

std::vector<MFace> MPolyhedron::_faces
protected

◆ _innerVertices

std::vector<MVertex *> MPolyhedron::_innerVertices
protected

Definition at line 28 of file MElementCut.h.

Referenced by _init(), getNumVertices(), getNumVolumeVertices(), getVertex(), and reverse().

◆ _intpt

IntPt* MPolyhedron::_intpt
protected

Definition at line 25 of file MElementCut.h.

Referenced by getIntegrationPoints(), and ~MPolyhedron().

◆ _orig

◆ _owner

bool MPolyhedron::_owner
protected

Definition at line 23 of file MElementCut.h.

Referenced by ownsParent(), setParent(), and ~MPolyhedron().

◆ _parts

◆ _vertices

std::vector<MVertex *> MPolyhedron::_vertices
protected

Definition at line 27 of file MElementCut.h.

Referenced by _init(), getNumVertices(), getVertex(), and reverse().


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