NeoPZ
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
pzgeom::TPZTriangleTorus Class Reference

#include <TPZTriangleTorus.h>

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

Public Member Functions

int ClassId () const override
 Creates a geometric element according to the type of the father element. More...
 
 TPZTriangleTorus (TPZVec< int64_t > &nodeindexes)
 Constructor with list of nodes. More...
 
 TPZTriangleTorus ()
 Empty constructor. More...
 
 TPZTriangleTorus (const TPZTriangleTorus &cp, std::map< int64_t, int64_t > &gl2lcNdMap)
 Constructor with node map. More...
 
 TPZTriangleTorus (const TPZTriangleTorus &cp)
 Copy constructor. More...
 
 TPZTriangleTorus (const TPZTriangleTorus &cp, TPZGeoMesh &)
 Copy constructor. More...
 
TPZTriangleTorusoperator= (const TPZTriangleTorus &cp)
 
void SetDataPhiTheta (const TPZFMatrix< REAL > &phitheta)
 
void SetDataRadius (const REAL &R, const REAL &r)
 
void SetOrigin (TPZVec< REAL > &origin)
 
template<class T >
void X (TPZFMatrix< REAL > &coord, TPZVec< T > &loc, TPZVec< T > &result) const
 
template<class T >
void GradX (TPZFMatrix< REAL > &cornerco, TPZVec< T > &par, TPZFMatrix< T > &gradx) const
 
template<class T >
void X (const TPZFMatrix< REAL > &nodes, TPZVec< T > &loc, TPZVec< T > &result) const
 
void Read (TPZStream &buf, void *context) override
 Creates a geometric element according to the type of the father element. More...
 
void Write (TPZStream &buf, int withclassid) const override
 Writes this object to the TPZStream buffer. Include the classid if withclassid = true. More...
 
- Public Member Functions inherited from pzgeom::TPZGeoTriangle
 TPZGeoTriangle (TPZVec< int64_t > &nodeindexes)
 Constructor with list of nodes. More...
 
 TPZGeoTriangle ()
 Empty constructor. More...
 
 TPZGeoTriangle (const TPZGeoTriangle &cp, std::map< int64_t, int64_t > &gl2lcNdMap)
 Constructor with node map. More...
 
 TPZGeoTriangle (const TPZGeoTriangle &cp)
 Copy constructor. More...
 
 TPZGeoTriangle (const TPZGeoTriangle &cp, TPZGeoMesh &)
 Copy constructor. More...
 
void Jacobian (const TPZFMatrix< REAL > &coord, TPZVec< REAL > &param, TPZFMatrix< REAL > &jacobian, TPZFMatrix< REAL > &axes, REAL &detjac, TPZFMatrix< REAL > &jacinv)
 
- Public Member Functions inherited from pzgeom::TPZNodeRep< 3, pztopology::TPZTriangle >
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::TPZTriangle > &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::TPZTriangle
 TPZTriangle ()
 Default constructor. More...
 
virtual ~TPZTriangle ()
 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 std::string TypeName ()
 Returns the type name of the element. More...
 
static void InsertExampleElement (TPZGeoMesh &gmesh, int matid, TPZVec< REAL > &lowercorner, TPZVec< REAL > &size)
 
- Static Public Member Functions inherited from pzgeom::TPZGeoTriangle
static bool IsLinearMapping (int side)
 
static std::string TypeName ()
 Returns the type name of the element. More...
 
template<class T >
static void X (const TPZFMatrix< REAL > &nodes, TPZVec< T > &loc, TPZVec< T > &x)
 
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 ComputeNormal (TPZVec< REAL > &p1, TPZVec< REAL > &p2, TPZVec< REAL > &p3, TPZVec< REAL > &result)
 Compute the jacoabina associated to the x mapping from local parametric coordinates. More...
 
static void VectorialProduct (TPZVec< REAL > &v1, TPZVec< REAL > &v2, TPZVec< REAL > &result)
 
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::TPZTriangle
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 (measure) More...
 
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 ComputeHCurlDirections (TPZFMatrix< TVar > &gradx, TPZFMatrix< TVar > &directions, const TPZVec< int > &transformationIds)
 
template<class TVar >
static void ComputeHCurlFaceDirections (TPZVec< TVar > &v1, TPZVec< TVar > &v2, int transformationId)
 
static int NBilinearSides ()
 
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 ()
 Returns the number of connects of the element (7) 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)
 Returns the local connect along side "side" especial for hdivspace. 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 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 of 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 transform 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 void GetHDivGatherPermute (int transformid, TPZVec< int > &permute)
 return the vector which permutes the connects according to the transformation id 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)
 

Private Attributes

REAL fR
 
REAL fr
 
TPZManVector< REAL > fOrigin
 
TPZFNMatrix< 12, REAL > fPhiTheta
 

Additional Inherited Members

- Public Types inherited from pzgeom::TPZGeoTriangle
enum  { NNodes }
 Number of corner nodes. More...
 
typedef pztopology::TPZTriangle Top
 
- Public Types inherited from pztopology::TPZTriangle
enum  {
  NSides, NCornerNodes, Dimension, NFaces,
  NPermutations
}
 Enumerate for topological characteristics. More...
 
typedef TPZIntTriang IntruleType
 Typedef to numerical integration rule. More...
 
typedef TPZGraphElT2dMapped GraphElType
 Typedef to graphical element type. More...
 
- Public Attributes inherited from pzgeom::TPZNodeRep< 3, pztopology::TPZTriangle >
int64_t fNodeIndexes [N]
 Node indexes of the element. More...
 
- Static Public Attributes inherited from pzgeom::TPZNodeRep< 3, pztopology::TPZTriangle >
static const int NNodes
 
- Static Public Attributes inherited from pztopology::TPZTriangle
static int SideNodes [3][2]
 
static int FaceNodes [1][3]
 
static REAL gTrans2dT [6][2][2]
 
- Static Protected Attributes inherited from pztopology::TPZTriangle
static int fPermutations [6][7]
 Valid permutations between nodes. More...
 
static REAL fTangentVectors [12][2]
 

Detailed Description

Definition at line 17 of file TPZTriangleTorus.h.

Constructor & Destructor Documentation

◆ TPZTriangleTorus() [1/5]

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

Constructor with list of nodes.

Definition at line 33 of file TPZTriangleTorus.h.

◆ TPZTriangleTorus() [2/5]

pzgeom::TPZTriangleTorus::TPZTriangleTorus ( )
inline

Empty constructor.

Definition at line 38 of file TPZTriangleTorus.h.

◆ TPZTriangleTorus() [3/5]

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

Constructor with node map.

Definition at line 43 of file TPZTriangleTorus.h.

◆ TPZTriangleTorus() [4/5]

pzgeom::TPZTriangleTorus::TPZTriangleTorus ( const TPZTriangleTorus cp)
inline

Copy constructor.

Definition at line 49 of file TPZTriangleTorus.h.

◆ TPZTriangleTorus() [5/5]

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

Copy constructor.

Definition at line 54 of file TPZTriangleTorus.h.

Member Function Documentation

◆ ClassId()

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

Creates a geometric element according to the type of the father element.

Creates a geometric element according to the type of the father element

Reimplemented from pzgeom::TPZGeoTriangle.

Definition at line 54 of file TPZTriangleTorus.cpp.

References pzgeom::TPZGeoTriangle::ClassId(), and Hash().

◆ GradX()

template<class T >
void pzgeom::TPZTriangleTorus::GradX ( TPZFMatrix< REAL > &  cornerco,
TPZVec< T > &  par,
TPZFMatrix< T > &  gradx 
) const
inline

◆ InsertExampleElement()

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

◆ operator=()

TPZTriangleTorus& pzgeom::TPZTriangleTorus::operator= ( const TPZTriangleTorus cp)
inline

Definition at line 58 of file TPZTriangleTorus.h.

References fOrigin, fPhiTheta, fR, and fr.

◆ Read()

void pzgeom::TPZTriangleTorus::Read ( TPZStream buf,
void *  context 
)
inlineoverridevirtual

Creates a geometric element according to the type of the father element.

Reimplemented from pzgeom::TPZGeoTriangle.

Definition at line 162 of file TPZTriangleTorus.h.

References TPZStream::Read(), pzgeom::TPZGeoTriangle::Read(), and TPZFNMatrix< N, TVar >::Read().

◆ SetDataPhiTheta()

void pzgeom::TPZTriangleTorus::SetDataPhiTheta ( const TPZFMatrix< REAL > &  phitheta)
inline

Definition at line 68 of file TPZTriangleTorus.h.

References TPZMatrix< TVar >::Cols(), DebugStop, and TPZMatrix< TVar >::Rows().

Referenced by InsertExampleElement().

◆ SetDataRadius()

void pzgeom::TPZTriangleTorus::SetDataRadius ( const REAL &  R,
const REAL &  r 
)
inline

Definition at line 78 of file TPZTriangleTorus.h.

References DebugStop.

Referenced by InsertExampleElement().

◆ SetOrigin()

void pzgeom::TPZTriangleTorus::SetOrigin ( TPZVec< REAL > &  origin)
inline

Definition at line 90 of file TPZTriangleTorus.h.

Referenced by InsertExampleElement().

◆ TypeName()

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

Returns the type name of the element.

Definition at line 98 of file TPZTriangleTorus.h.

◆ Write()

void pzgeom::TPZTriangleTorus::Write ( TPZStream buf,
int  withclassid 
) const
inlineoverridevirtual

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 pzgeom::TPZGeoTriangle.

Definition at line 170 of file TPZTriangleTorus.h.

References InsertExampleElement(), TPZStream::Write(), pzgeom::TPZGeoTriangle::Write(), and TPZFNMatrix< N, TVar >::Write().

◆ X() [1/2]

template<class T >
void pzgeom::TPZTriangleTorus::X ( TPZFMatrix< REAL > &  coord,
TPZVec< T > &  loc,
TPZVec< T > &  result 
) const
inline

Definition at line 102 of file TPZTriangleTorus.h.

References cos(), sin, and pzgeom::TPZGeoTriangle::X().

Referenced by InsertExampleElement().

◆ X() [2/2]

template<class T >
void pzgeom::TPZTriangleTorus::X ( const TPZFMatrix< REAL > &  nodes,
TPZVec< T > &  loc,
TPZVec< T > &  result 
) const
inline

Definition at line 141 of file TPZTriangleTorus.h.

References cos(), sin, and pzgeom::TPZGeoTriangle::X().

Member Data Documentation

◆ fOrigin

TPZManVector<REAL> pzgeom::TPZTriangleTorus::fOrigin
private

Definition at line 22 of file TPZTriangleTorus.h.

Referenced by operator=().

◆ fPhiTheta

TPZFNMatrix<12,REAL> pzgeom::TPZTriangleTorus::fPhiTheta
private

Definition at line 24 of file TPZTriangleTorus.h.

Referenced by operator=().

◆ fR

REAL pzgeom::TPZTriangleTorus::fR
private

Definition at line 19 of file TPZTriangleTorus.h.

Referenced by operator=().

◆ fr

REAL pzgeom::TPZTriangleTorus::fr
private

Definition at line 20 of file TPZTriangleTorus.h.

Referenced by operator=().


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