NeoPZ
Public Types | Public Member Functions | Static Public Member Functions | List of all members
pzgeom::TPZGeoPyramid Class Reference

Implements the geometry of pyramid element. Geometry. More...

#include <pzgeopyramid.h>

Inheritance diagram for pzgeom::TPZGeoPyramid:
[legend]
Collaboration diagram for pzgeom::TPZGeoPyramid:
[legend]

Public Types

enum  { NNodes }
 Number of corner nodes. More...
 
typedef pztopology::TPZPyramid Top
 
- Public Types inherited from pztopology::TPZPyramid
enum  {
  NSides, NCornerNodes, Dimension, NFaces,
  NPermutations
}
 Enumerate for topological characteristics. More...
 
typedef TPZIntPyram3D IntruleType
 Typedef to numerical integration rule. More...
 
typedef TPZGraphElPyramidMapped GraphElType
 Typedef to graphical element type. More...
 

Public Member Functions

int ClassId () const override
 Define the class id associated with the class. More...
 
void Read (TPZStream &buf, void *context) override
 read objects from the stream More...
 
void Write (TPZStream &buf, int withclassid) const override
 Writes this object to the TPZStream buffer. Include the classid if withclassid = true. More...
 
 TPZGeoPyramid (TPZVec< int64_t > &nodeindexes)
 Constructor with list of nodes. More...
 
 TPZGeoPyramid ()
 Empty constructor. More...
 
 TPZGeoPyramid (const TPZGeoPyramid &cp, std::map< int64_t, int64_t > &gl2lcNdMap)
 Constructor with node map. More...
 
 TPZGeoPyramid (const TPZGeoPyramid &cp)
 Copy constructor. More...
 
 TPZGeoPyramid (const TPZGeoPyramid &cp, TPZGeoMesh &)
 Copy constructor. More...
 
- Public Member Functions inherited from pzgeom::TPZNodeRep< 5, pztopology::TPZPyramid >
virtual void SetNeighbourInfo (int side, TPZGeoElSide &neigh, TPZTransform<> &trans)
 
bool IsLinearMapping () const
 
bool IsGeoBlendEl () const
 
bool ResetBlendConnectivity (const int64_t &side, const int64_t &index)
 
 TPZNodeRep (TPZVec< int64_t > &nodeindexes)
 Constructor with list of nodes. More...
 
 TPZNodeRep ()
 Empty constructor. More...
 
 TPZNodeRep (const TPZNodeRep &cp, std::map< int64_t, int64_t > &gl2lcNdMap)
 Constructor with node map. More...
 
 TPZNodeRep (const TPZNodeRep< N, pztopology::TPZPyramid > &cp)
 Copy constructor. More...
 
void Read (TPZStream &buf, void *context) override
 
void Write (TPZStream &buf, int withclassid) const override
 
void Initialize (TPZVec< int64_t > &nodeindexes)
 
void Initialize (TPZGeoEl *)
 
void Print (std::ostream &out) const
 
int ClassId () const override
 
- Public Member Functions inherited from pztopology::TPZPyramid
 TPZPyramid ()
 Default constructor. More...
 
virtual ~TPZPyramid ()
 Default destructor. More...
 
- Public Member Functions inherited from TPZSavable
 TPZSavable ()
 
virtual ~TPZSavable ()
 
virtual std::list< std::map< std::string, uint64_t > > VersionHistory () const
 
virtual std::pair< std::string, uint64_t > Version () const
 
virtual bool Compare (TPZSavable *copy, bool override=false)
 Compares the object for identity with the object pointed to, eventually copy the object. More...
 
virtual bool Compare (TPZSavable *copy, bool override=false) const
 Compares the object for identity with the object pointed to, eventually copy the object. More...
 
- Public Member Functions inherited from TPZRegisterClassId
template<typename T >
 TPZRegisterClassId (int(T::*)() const)
 
 TPZRegisterClassId ()=default
 

Static Public Member Functions

static bool IsLinearMapping (int side)
 
static std::string TypeName ()
 Returns the type name of the element. More...
 
static void Jacobian (const TPZFMatrix< REAL > &coord, TPZVec< REAL > &par, TPZFMatrix< REAL > &jacobian, TPZFMatrix< REAL > &axes, REAL &detjac, TPZFMatrix< REAL > &jacinv)
 Computes the jacobian. More...
 
template<class T >
static void X (const TPZFMatrix< REAL > &nodes, TPZVec< T > &loc, TPZVec< T > &x)
 Computes the geometric location. More...
 
template<class T >
static void GradX (const TPZFMatrix< REAL > &nodes, TPZVec< T > &loc, TPZFMatrix< T > &gradx)
 Compute gradient of x mapping from element nodes and local parametric coordinates. More...
 
static void InsertExampleElement (TPZGeoMesh &gmesh, int matid, TPZVec< REAL > &lowercorner, TPZVec< REAL > &size)
 create an example element based on the topology More...
 
- Static Public Member Functions inherited from pztopology::TPZPyramid
static void GetSideHDivPermutation (int transformationid, TPZVec< int > &permgather)
 Identifies the permutation of the nodes needed to make neighbouring elements compatible in terms of order of shape functions. More...
 
static constexpr REAL RefElVolume ()
 Volume of the master element. More...
 
static void ComputeDirections (int side, TPZFMatrix< REAL > &gradx, TPZFMatrix< REAL > &directions, TPZVec< int > &sidevectors)
 
static void GetSideHDivDirections (TPZVec< int > &sides, TPZVec< int > &dir, TPZVec< int > &bilinearounao)
 
static void GetSideHDivDirections (TPZVec< int > &sides, TPZVec< int > &dir, TPZVec< int > &bilinearounao, TPZVec< int > &sidevectors)
 
template<class TVar >
static void ComputeHDivDirections (TPZFMatrix< TVar > &gradx, TPZFMatrix< TVar > &directions)
 Compute the directions of the HDiv vectors. More...
 
template<class TVar >
static void AdjustTopDirections (int ConstrainedFace, TPZFMatrix< TVar > &gradx, TPZFMatrix< TVar > &directions)
 Adjust the directions associated with the tip of the pyramid, considering that one of the faces is constrained. More...
 
static int NBilinearSides ()
 
static void CornerShape (const TPZVec< REAL > &pt, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi)
 Computes the corner shape functions of the element. More...
 
static int SideDimension (int side)
 Returns the dimension of the side. More...
 
static void LowerDimensionSides (int side, TPZStack< int > &smallsides)
 Get all sides with lower dimension on side. More...
 
static void LowerDimensionSides (int side, TPZStack< int > &smallsides, int DimTarget)
 Get all sides with lower dimension but equal to DimTarget on side. More...
 
static void HigherDimensionSides (int side, TPZStack< int > &high)
 Returns all sides whose closure contains side. More...
 
static int NSideNodes (int side)
 Returns the number of nodes (not connectivities) associated with a side. More...
 
static int SideNodeLocId (int side, int node)
 Returns the local node number of the node "node" along side "side". More...
 
static int NumSides ()
 Number of connects of the element (21) More...
 
static int NumSides (int dimension)
 Returns the number of connects for a set dimension. More...
 
static int NContainedSides (int side)
 Returns the number of nodes (not connectivities) associated with a side. More...
 
static int ContainedSideLocId (int side, int c)
 Returns the local connect number of the connect "c" along side "side". More...
 
static void Shape (TPZVec< REAL > &loc, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi)
 Compute the shape being used to construct the x mapping from local parametric coordinates. More...
 
template<class T >
static void TShape (const TPZVec< T > &loc, TPZFMatrix< T > &phi, TPZFMatrix< T > &dphi)
 Compute the shape being used to construct the x mapping from local parametric coordinates. More...
 
template<class T >
static void BlendFactorForSide (const int &side, const TPZVec< T > &xi, T &blendFactor, TPZVec< T > &corrFactorDxi)
 
static void CenterPoint (int side, TPZVec< REAL > &center)
 Returns the barycentric coordinates in the master element space of the original element. More...
 
static bool IsInParametricDomain (const TPZVec< REAL > &pt, REAL tol=pztopology::gTolerance)
 Verifies if the parametric point pt is in the element parametric domain. More...
 
static void RandomPoint (TPZVec< REAL > &pt)
 Generates a random point in the master domain. More...
 
template<class T >
static bool CheckProjectionForSingularity (const int &side, const TPZVec< T > &xiInterior)
 
template<class T >
static void MapToSide (int side, TPZVec< T > &InternalPar, TPZVec< T > &SidePar, TPZFMatrix< T > &JacToSide)
 
static void ParametricDomainNodeCoord (int node, TPZVec< REAL > &nodeCoord)
 
static MElementType Type ()
 Returns the type of the element as specified in file pzeltype.h. More...
 
static MElementType Type (int side)
 Returns the type of the element side as specified in file pzeltype.h. More...
 
static TPZTransform SideToSideTransform (int sidefrom, int sideto)
 Returns the transformation which takes a point from the side sidefrom to the side sideto. More...
 
static TPZTransform TransformSideToElement (int side)
 Returns the transformation which transform a point from the side to the interior of the element. More...
 
static TPZTransform TransformElementToSide (int side)
 Returns the transformation which projects a point from the interior of the element to the side. More...
 
static int GetTransformId (TPZVec< int64_t > &id)
 Method which identifies the transformation based on the IDs of the corner nodes. More...
 
static int GetTransformId (int side, TPZVec< int64_t > &id)
 Method which identifies the transformation of a side based on the IDs of the corner nodes. More...
 
static TPZIntPointsCreateSideIntegrationRule (int side, int order)
 Create an integration rule over side. More...
 
- Static Public Member Functions inherited from TPZSavable
static std::set< TPZRestoreClassBase * > & RestoreClassSet ()
 This static function guarantees that the gMap object is available when needed. More...
 
static std::map< int, TPZRestore_t > & ClassIdMap ()
 This static function guarantees that the gMap object is available when needed. More...
 
static std::pair< std::string, uint64_t > NeoPZVersion ()
 
static void Register (TPZRestoreClassBase *restore)
 
static void RegisterClassId (int classid, TPZRestore_t fun)
 
static TPZSavableCreateInstance (const int &classId)
 

Additional Inherited Members

- Public Attributes inherited from pzgeom::TPZNodeRep< 5, pztopology::TPZPyramid >
int64_t fNodeIndexes [N]
 Node indexes of the element. More...
 
- Static Public Attributes inherited from pzgeom::TPZNodeRep< 5, pztopology::TPZPyramid >
static const int NNodes
 
- Static Public Attributes inherited from pztopology::TPZPyramid
static int FaceNodes [5][4]
 Nodes over quadrilateral sides (2d - faces). More...
 
static int SideNodes [8][2]
 Nodes over lines sides (1d) More...
 
- Static Protected Attributes inherited from pztopology::TPZPyramid
static int ShapeFaceId [5][4]
 Ids of the shape face. More...
 
static int fPermutations [8][19]
 Valid permutations between nodes. More...
 

Detailed Description

Implements the geometry of pyramid element. Geometry.

Definition at line 24 of file pzgeopyramid.h.

Member Typedef Documentation

◆ Top

Definition at line 27 of file pzgeopyramid.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Number of corner nodes.

Enumerator
NNodes 

Definition at line 29 of file pzgeopyramid.h.

Constructor & Destructor Documentation

◆ TPZGeoPyramid() [1/5]

pzgeom::TPZGeoPyramid::TPZGeoPyramid ( TPZVec< int64_t > &  nodeindexes)
inline

Constructor with list of nodes.

Definition at line 37 of file pzgeopyramid.h.

◆ TPZGeoPyramid() [2/5]

pzgeom::TPZGeoPyramid::TPZGeoPyramid ( )
inline

Empty constructor.

Definition at line 43 of file pzgeopyramid.h.

◆ TPZGeoPyramid() [3/5]

pzgeom::TPZGeoPyramid::TPZGeoPyramid ( const TPZGeoPyramid cp,
std::map< int64_t, int64_t > &  gl2lcNdMap 
)
inline

Constructor with node map.

Definition at line 49 of file pzgeopyramid.h.

◆ TPZGeoPyramid() [4/5]

pzgeom::TPZGeoPyramid::TPZGeoPyramid ( const TPZGeoPyramid cp)
inline

Copy constructor.

Definition at line 56 of file pzgeopyramid.h.

◆ TPZGeoPyramid() [5/5]

pzgeom::TPZGeoPyramid::TPZGeoPyramid ( const TPZGeoPyramid cp,
TPZGeoMesh  
)
inline

Copy constructor.

Definition at line 62 of file pzgeopyramid.h.

Member Function Documentation

◆ ClassId()

int pzgeom::TPZGeoPyramid::ClassId ( ) const
overridevirtual

Define the class id associated with the class.

This id has to be unique for all classes A non unique id is flagged at the startup of the program

Implements TPZSavable.

Definition at line 124 of file pzgeopyramid.cpp.

References Hash().

◆ GradX()

template<class T >
void pzgeom::TPZGeoPyramid::GradX ( const TPZFMatrix< REAL > &  nodes,
TPZVec< T > &  loc,
TPZFMatrix< T > &  gradx 
)
inlinestatic

Compute gradient of x mapping from element nodes and local parametric coordinates.

Definition at line 127 of file pzgeopyramid.h.

References TPZMatrix< TVar >::Cols(), DebugStop, TPZFMatrix< TVar >::GetVal(), TPZFMatrix< TVar >::Resize(), TPZMatrix< TVar >::Rows(), pztopology::TPZPyramid::TShape(), and TPZFMatrix< TVar >::Zero().

Referenced by TypeName().

◆ InsertExampleElement()

void pzgeom::TPZGeoPyramid::InsertExampleElement ( TPZGeoMesh gmesh,
int  matid,
TPZVec< REAL > &  lowercorner,
TPZVec< REAL > &  size 
)
static

create an example element based on the topology

Definition at line 104 of file pzgeopyramid.cpp.

References TPZAdmChunkVector< T, EXP >::AllocateNewElement(), co, TPZGeoMesh::CreateGeoElement(), EPiramide, and TPZGeoMesh::NodeVec().

Referenced by TypeName().

◆ IsLinearMapping()

static bool pzgeom::TPZGeoPyramid::IsLinearMapping ( int  side)
inlinestatic

Definition at line 67 of file pzgeopyramid.h.

◆ Jacobian()

static void pzgeom::TPZGeoPyramid::Jacobian ( const TPZFMatrix< REAL > &  coord,
TPZVec< REAL > &  par,
TPZFMatrix< REAL > &  jacobian,
TPZFMatrix< REAL > &  axes,
REAL &  detjac,
TPZFMatrix< REAL > &  jacinv 
)
static

Computes the jacobian.

Referenced by TypeName().

◆ Read()

void pzgeom::TPZGeoPyramid::Read ( TPZStream buf,
void *  context 
)
overridevirtual

read objects from the stream

Reimplemented from TPZSavable.

Definition at line 128 of file pzgeopyramid.cpp.

◆ TypeName()

static std::string pzgeom::TPZGeoPyramid::TypeName ( )
inlinestatic

Returns the type name of the element.

Definition at line 73 of file pzgeopyramid.h.

References GradX(), InsertExampleElement(), Jacobian(), and X().

◆ Write()

void pzgeom::TPZGeoPyramid::Write ( TPZStream buf,
int  withclassid 
) const
overridevirtual

Writes this object to the TPZStream buffer. Include the classid if withclassid = true.

Writes this object to the TPZStream buffer. Include the classid if withclassid = true

Reimplemented from TPZSavable.

Definition at line 132 of file pzgeopyramid.cpp.

◆ X()

template<class T >
void pzgeom::TPZGeoPyramid::X ( const TPZFMatrix< REAL > &  nodes,
TPZVec< T > &  loc,
TPZVec< T > &  x 
)
inlinestatic

Computes the geometric location.

Definition at line 110 of file pzgeopyramid.h.

References TPZFMatrix< TVar >::GetVal(), TPZMatrix< TVar >::Rows(), and pztopology::TPZPyramid::TShape().

Referenced by TypeName().


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