NeoPZ
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TPZGraphElT Class Reference

To export a graphical triangular element. Post processing. More...

#include <pztrigraph.h>

Inheritance diagram for TPZGraphElT:
[legend]
Collaboration diagram for TPZGraphElT:
[legend]

Public Member Functions

 TPZGraphElT (TPZCompEl *c, TPZGraphMesh *g)
 Constructor for graphical element to computational triangular element. More...
 
virtual int NConnects ()
 Number of connects for the element. More...
 
virtual MElementType Type ()
 Get the type of the graphical element. More...
 
virtual int ExportType (TPZDrawStyle st)
 Sets the style to export (format) More...
 
virtual int NNodes ()
 Number of corner nodes (geometric information) More...
 
virtual int NElements ()
 
virtual int NPoints (TPZGraphNode *n)
 Number of points to graphical resolution. More...
 
virtual TPZGraphNodeConnect (int64_t i)
 Return the graphical connect. More...
 
virtual void Connectivity (TPZDrawStyle st=EDXStyle)
 Set dx style for connectivity information. More...
 
virtual int64_t EqNum (TPZVec< int > &co)
 Number of equations. More...
 
virtual int Dimension ()
 the parametric dimension of the element More...
 
- Public Member Functions inherited from TPZGraphEl
 TPZGraphEl (TPZCompEl *cel, TPZGraphMesh *gmesh, TPZGraphNode **connectvec)
 Constructor of the graphical element. More...
 
 TPZGraphEl (TPZCompEl *cel, TPZGraphMesh *gmesh, TPZGraphNode *&connect)
 Constructor of the graphical element. More...
 
virtual ~TPZGraphEl (void)
 Default destructor. More...
 
virtual int ClassId () const override
 Define the class id associated with the class. More...
 
virtual void Read (TPZStream &buf, void *context) override
 read objects from the stream More...
 
virtual void Write (TPZStream &buf, int withclassid) const override
 Writes this object to the TPZStream buffer. Include the classid if withclassid = true. More...
 
int64_t Id ()
 Get the Id of the graphical element. More...
 
void SetId (int64_t id)
 Set graphical element id. More...
 
void DrawCo (TPZGraphNode *n, TPZDrawStyle st)
 Draw coordinates of the graphical node. More...
 
void DrawSolution (TPZGraphNode *n, TPZBlock< REAL > &Sol, TPZDrawStyle st)
 Draw solution of the graphical node. More...
 
void DrawSolution (TPZGraphNode *n, int solind, TPZDrawStyle st)
 
void DrawSolution (TPZGraphNode *n, TPZVec< int > &solind, TPZDrawStyle st)
 
void Print (std::ostream &out)
 Print the information of the graphical element. 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
 

Protected Member Functions

virtual void QsiEta (TPZVec< int > &i, int imax, TPZVec< REAL > &qsieta)
 This method maps the index of a point to parameter space as a function of the number of divisions. More...
 
virtual void FirstIJ (int no, TPZVec< int > &co, int &incr)
 
virtual void NextIJ (int no, TPZVec< int > &co, int incr)
 
virtual void SetNode (int64_t i, TPZGraphNode *gno)
 Sets a ith graphical node. More...
 
- Protected Member Functions inherited from TPZGraphEl
int ConnectNum (TPZGraphNode *n)
 Returns the number of the graphical node in the vector of connects. More...
 

Protected Attributes

TPZGraphNodefConnects [7]
 Graphical nodes vector (by connect of the computational element) More...
 
- Protected Attributes inherited from TPZGraphEl
TPZCompElfCompEl
 Computational element associated with graphical element. More...
 
TPZGraphMeshfGraphMesh
 Graphical mesh associated with graphical element. More...
 
int64_t fId
 Id of the graphical element. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from TPZGraphEl
static int StaticClassId ()
 
- 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)
 

Detailed Description

To export a graphical triangular element. Post processing.

Definition at line 16 of file pztrigraph.h.

Constructor & Destructor Documentation

◆ TPZGraphElT()

TPZGraphElT::TPZGraphElT ( TPZCompEl c,
TPZGraphMesh g 
)

Constructor for graphical element to computational triangular element.

Definition at line 11 of file pztrigraph.cpp.

Member Function Documentation

◆ Connect()

virtual TPZGraphNode* TPZGraphElT::Connect ( int64_t  con)
inlinevirtual

Return the graphical connect.

Implements TPZGraphEl.

Definition at line 36 of file pztrigraph.h.

References co, Connectivity(), EDXStyle, EqNum(), and fConnects.

◆ Connectivity()

void TPZGraphElT::Connectivity ( TPZDrawStyle  st = EDXStyle)
virtual

Set dx style for connectivity information.

Implements TPZGraphEl.

Definition at line 43 of file pztrigraph.cpp.

References EMVStyle, EqNum(), EV3DStyle, TPZGraphEl::fGraphMesh, TPZGraphEl::fId, TPZGraphMesh::Out(), TPZGraphMesh::Res(), and test::res.

Referenced by Connect().

◆ Dimension()

virtual int TPZGraphElT::Dimension ( )
inlinevirtual

the parametric dimension of the element

Implements TPZGraphEl.

Definition at line 43 of file pztrigraph.h.

References FirstIJ(), NextIJ(), and QsiEta().

◆ EqNum()

int64_t TPZGraphElT::EqNum ( TPZVec< int > &  co)
virtual

◆ ExportType()

int TPZGraphElT::ExportType ( TPZDrawStyle  st)
virtual

Sets the style to export (format)

Implements TPZGraphEl.

Definition at line 231 of file pztrigraph.cpp.

References EVTKStyle.

Referenced by Type().

◆ FirstIJ()

void TPZGraphElT::FirstIJ ( int  no,
TPZVec< int > &  co,
int &  incr 
)
protectedvirtual

Implements TPZGraphEl.

Definition at line 117 of file pztrigraph.cpp.

References fConnects, TPZGraphEl::fGraphMesh, TPZGraphMesh::Res(), and test::res.

Referenced by Dimension().

◆ NConnects()

int TPZGraphElT::NConnects ( )
virtual

Number of connects for the element.

Implements TPZGraphEl.

Definition at line 14 of file pztrigraph.cpp.

◆ NElements()

int TPZGraphElT::NElements ( )
virtual

Implements TPZGraphEl.

Definition at line 18 of file pztrigraph.cpp.

References TPZGraphEl::fGraphMesh, TPZGraphMesh::Res(), and test::res.

Referenced by Type().

◆ NextIJ()

void TPZGraphElT::NextIJ ( int  no,
TPZVec< int > &  co,
int  incr 
)
protectedvirtual

Implements TPZGraphEl.

Definition at line 202 of file pztrigraph.cpp.

References TPZGraphEl::fGraphMesh, TPZGraphMesh::Res(), and test::res.

Referenced by Dimension().

◆ NNodes()

int TPZGraphElT::NNodes ( )
virtual

Number of corner nodes (geometric information)

Implements TPZGraphEl.

Definition at line 241 of file pztrigraph.cpp.

Referenced by Type().

◆ NPoints()

int TPZGraphElT::NPoints ( TPZGraphNode n)
virtual

Number of points to graphical resolution.

Implements TPZGraphEl.

Definition at line 24 of file pztrigraph.cpp.

References TPZGraphEl::ConnectNum(), TPZGraphEl::fGraphMesh, TPZGraphMesh::Res(), and test::res.

Referenced by Type().

◆ QsiEta()

void TPZGraphElT::QsiEta ( TPZVec< int > &  i,
int  imax,
TPZVec< REAL > &  qsieta 
)
protectedvirtual

This method maps the index of a point to parameter space as a function of the number of divisions.

Reimplemented from TPZGraphEl.

Definition at line 112 of file pztrigraph.cpp.

References TPZVec< T >::NElements().

Referenced by Dimension().

◆ SetNode()

virtual void TPZGraphElT::SetNode ( int64_t  i,
TPZGraphNode n 
)
inlineprotectedvirtual

Sets a ith graphical node.

Reimplemented from TPZGraphEl.

Definition at line 57 of file pztrigraph.h.

References fConnects.

◆ Type()

virtual MElementType TPZGraphElT::Type ( )
inlinevirtual

Get the type of the graphical element.

Implements TPZGraphEl.

Definition at line 26 of file pztrigraph.h.

References ETriangle, ExportType(), NElements(), NNodes(), and NPoints().

Member Data Documentation

◆ fConnects

TPZGraphNode* TPZGraphElT::fConnects[7]
protected

Graphical nodes vector (by connect of the computational element)

Definition at line 62 of file pztrigraph.h.

Referenced by Connect(), EqNum(), FirstIJ(), and SetNode().


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