NeoPZ
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
pzgeom::TPZCylinderMap< TGeo > Class Template Reference

#include <TPZCylinder.h>

Inheritance diagram for pzgeom::TPZCylinderMap< TGeo >:
[legend]
Collaboration diagram for pzgeom::TPZCylinderMap< TGeo >:
[legend]

Public Member Functions

 TPZCylinderMap ()
 
 TPZCylinderMap (TPZVec< int64_t > &nodeindices)
 
 TPZCylinderMap (const TPZCylinderMap &cp)
 
TPZCylinderMapoperator= (const TPZCylinderMap &cp)
 
void SetOrigin (TPZVec< REAL > &origin, REAL radius)
 
void SetCylinderAxis (const TPZVec< REAL > &axis)
 axis direction with the vertical axis More...
 
void ComputeCornerCoordinates (TPZGeoMesh &gmesh)
 compute the corner coordinates of the corner nodes More...
 
template<class T >
void X (const TPZGeoEl &gel, TPZVec< T > &loc, TPZVec< T > &result) const
 
template<class T >
void GradX (const TPZGeoEl &gel, 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
 

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)
 

Private Attributes

TPZFNMatrix< TGeo::NNodes *3, REAL > fCornerCo
 corner coordinates in cylindrical system (theta, z) More...
 
TPZManVector< REAL, 3 > fOrigin
 node around which we rotate the coordinates More...
 
REAL fRadius
 radius of the cylinder More...
 
TPZFNMatrix< 9, REAL > fRotation
 rotation matrix More...
 

Detailed Description

template<class TGeo>
class pzgeom::TPZCylinderMap< TGeo >

Definition at line 18 of file TPZCylinder.h.

Constructor & Destructor Documentation

◆ TPZCylinderMap() [1/3]

template<class TGeo >
pzgeom::TPZCylinderMap< TGeo >::TPZCylinderMap ( )
inline

Definition at line 34 of file TPZCylinder.h.

References TPZMatrix< TVar >::Identity().

◆ TPZCylinderMap() [2/3]

template<class TGeo >
pzgeom::TPZCylinderMap< TGeo >::TPZCylinderMap ( TPZVec< int64_t > &  nodeindices)
inline

Definition at line 39 of file TPZCylinder.h.

References TPZMatrix< TVar >::Identity().

◆ TPZCylinderMap() [3/3]

template<class TGeo >
pzgeom::TPZCylinderMap< TGeo >::TPZCylinderMap ( const TPZCylinderMap< TGeo > &  cp)
inline

Definition at line 44 of file TPZCylinder.h.

Member Function Documentation

◆ ComputeCornerCoordinates()

template<class TGeo >
void pzgeom::TPZCylinderMap< TGeo >::ComputeCornerCoordinates ( TPZGeoMesh gmesh)

compute the corner coordinates of the corner nodes

Definition at line 40 of file TPZCylinder.cpp.

References atan2(), co, DebugStop, fabs, TPZGeoMesh::NodeVec(), and sqrt.

Referenced by pzgeom::TPZCylinderMap< TGeo >::SetOrigin().

◆ GradX()

template<class TGeo >
template<class T >
void pzgeom::TPZCylinderMap< TGeo >::GradX ( const TPZGeoEl gel,
TPZVec< T > &  par,
TPZFMatrix< T > &  gradx 
) const
inline

Definition at line 83 of file TPZCylinder.h.

References cos(), TPZFMatrix< TVar >::GetVal(), and sin.

◆ InsertExampleElement()

template<class TGeo >
static void pzgeom::TPZCylinderMap< TGeo >::InsertExampleElement ( TPZGeoMesh gmesh,
int  matid,
TPZVec< REAL > &  lowercorner,
TPZVec< REAL > &  size 
)
static

◆ operator=()

template<class TGeo >
TPZCylinderMap& pzgeom::TPZCylinderMap< TGeo >::operator= ( const TPZCylinderMap< TGeo > &  cp)
inline

◆ Read()

template<class TGeo >
void pzgeom::TPZCylinderMap< TGeo >::Read ( TPZStream buf,
void *  context 
)
inlineoverride

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

Definition at line 137 of file TPZCylinder.h.

References TPZFNMatrix< N, TVar >::Read().

◆ SetCylinderAxis()

template<class TGeo >
void pzgeom::TPZCylinderMap< TGeo >::SetCylinderAxis ( const TPZVec< REAL > &  axis)

axis direction with the vertical axis

Definition at line 15 of file TPZCylinder.cpp.

References Cross(), fabs, Norm(), and sqrt.

Referenced by pzgeom::TPZCylinderMap< TGeo >::SetOrigin().

◆ SetOrigin()

template<class TGeo >
void pzgeom::TPZCylinderMap< TGeo >::SetOrigin ( TPZVec< REAL > &  origin,
REAL  radius 
)
inline

◆ TypeName()

template<class TGeo >
static std::string pzgeom::TPZCylinderMap< TGeo >::TypeName ( )
inlinestatic

Returns the type name of the element.

Definition at line 71 of file TPZCylinder.h.

◆ Write()

template<class TGeo >
void pzgeom::TPZCylinderMap< TGeo >::Write ( TPZStream buf,
int  withclassid 
) const
inlineoverride

◆ X() [1/2]

template<class TGeo >
template<class T >
void pzgeom::TPZCylinderMap< TGeo >::X ( const TPZGeoEl gel,
TPZVec< T > &  loc,
TPZVec< T > &  result 
) const
inline

Definition at line 75 of file TPZCylinder.h.

◆ X() [2/2]

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

Definition at line 110 of file TPZCylinder.h.

References cos(), TPZFMatrix< TVar >::GetVal(), and sin.

Member Data Documentation

◆ fCornerCo

template<class TGeo >
TPZFNMatrix<TGeo::NNodes*3,REAL> pzgeom::TPZCylinderMap< TGeo >::fCornerCo
private

corner coordinates in cylindrical system (theta, z)

Definition at line 21 of file TPZCylinder.h.

Referenced by pzgeom::TPZCylinderMap< TGeo >::operator=().

◆ fOrigin

template<class TGeo >
TPZManVector<REAL,3> pzgeom::TPZCylinderMap< TGeo >::fOrigin
private

node around which we rotate the coordinates

Definition at line 24 of file TPZCylinder.h.

Referenced by pzgeom::TPZCylinderMap< TGeo >::operator=().

◆ fRadius

template<class TGeo >
REAL pzgeom::TPZCylinderMap< TGeo >::fRadius
private

radius of the cylinder

Definition at line 27 of file TPZCylinder.h.

Referenced by pzgeom::TPZCylinderMap< TGeo >::operator=().

◆ fRotation

template<class TGeo >
TPZFNMatrix<9,REAL> pzgeom::TPZCylinderMap< TGeo >::fRotation
private

rotation matrix

Definition at line 30 of file TPZCylinder.h.

Referenced by pzgeom::TPZCylinderMap< TGeo >::operator=().


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