NeoPZ
|
Abstract class to graphical one-, two- and three-dimensional element. Post processing. More...
#include <pzgraphel.h>
Public Member Functions | |
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... | |
virtual int | NConnects ()=0 |
Number of connects for the element. More... | |
int64_t | Id () |
Get the Id of the graphical element. More... | |
virtual MElementType | Type ()=0 |
Get the type of the graphical element. More... | |
virtual int | ExportType (TPZDrawStyle st)=0 |
Sets the style to export (format) More... | |
virtual int | NNodes ()=0 |
Number of corner nodes (geometric information) More... | |
virtual TPZGraphNode * | Connect (int64_t con)=0 |
Return the graphical connect. More... | |
void | SetId (int64_t id) |
Set graphical element id. More... | |
virtual int | NPoints (TPZGraphNode *n)=0 |
Number of points to graphical resolution. More... | |
virtual int | NElements ()=0 |
virtual void | SetNode (int64_t i, TPZGraphNode *n) |
Sets a ith graphical node. More... | |
virtual int | Dimension ()=0 |
the parametric dimension of the element More... | |
virtual void | Connectivity (TPZDrawStyle st=EDXStyle)=0 |
Set dx style for connectivity information. 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... | |
virtual int64_t | EqNum (TPZVec< int > &co)=0 |
Number of equations. 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 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 TPZSavable * | CreateInstance (const int &classId) |
Protected Member Functions | |
virtual void | FirstIJ (int connect, TPZVec< int > &co, int &incr)=0 |
virtual void | NextIJ (int connect, TPZVec< int > &co, int incr)=0 |
int | ConnectNum (TPZGraphNode *n) |
Returns the number of the graphical node in the vector of connects. More... | |
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... | |
Protected Attributes | |
TPZCompEl * | fCompEl |
Computational element associated with graphical element. More... | |
TPZGraphMesh * | fGraphMesh |
Graphical mesh associated with graphical element. More... | |
int64_t | fId |
Id of the graphical element. More... | |
Abstract class to graphical one-, two- and three-dimensional element. Post processing.
Definition at line 23 of file pzgraphel.h.
TPZGraphEl::TPZGraphEl | ( | TPZCompEl * | cel, |
TPZGraphMesh * | gmesh, | ||
TPZGraphNode ** | connectvec | ||
) |
Constructor of the graphical element.
Definition at line 14 of file pzgraphel.cpp.
References TPZAdmChunkVector< T, EXP >::AllocateNewElement(), TPZCompEl::Connect(), TPZGraphMesh::ElementList(), TPZCompEl::Index(), TPZChunkVector< T, EXP >::NElements(), TPZGraphMesh::NodeMap(), TPZGeoEl::NSides(), TPZCompEl::Reference(), TPZAdmChunkVector< T, EXP >::Resize(), TPZGraphNode::SequenceNumber(), TPZConnect::SequenceNumber(), TPZGraphNode::SetConnect(), TPZGraphNode::SetElement(), TPZGraphNode::SetGraphMesh(), and TPZGraphNode::SetSequenceNumber().
TPZGraphEl::TPZGraphEl | ( | TPZCompEl * | cel, |
TPZGraphMesh * | gmesh, | ||
TPZGraphNode *& | connect | ||
) |
Constructor of the graphical element.
Definition at line 39 of file pzgraphel.cpp.
References TPZAdmChunkVector< T, EXP >::AllocateNewElement(), TPZGraphMesh::ElementList(), TPZCompEl::Index(), TPZGraphMesh::NodeMap(), TPZGraphNode::SetConnect(), TPZGraphNode::SetElement(), TPZGraphNode::SetGraphMesh(), and TPZGraphNode::SetSequenceNumber().
|
virtual |
Default destructor.
Definition at line 58 of file pzgraphel.cpp.
|
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 188 of file pzgraphel.cpp.
|
pure virtual |
Return the graphical connect.
Implemented in TPZGraphEl1dd, TPZGraphElQ3dd, TPZGraphElT, TPZGraphEl1d, TPZGraphElTd, TPZGraphElQ2dd, and TPZGraphElQ2d.
Referenced by Id().
|
pure virtual |
Set dx style for connectivity information.
Implemented in TPZGraphEl1d, TPZGraphElQ3dd, TPZGraphElQ2dd, TPZGraphElQ2d, TPZGraphElT, TPZGraphElTd, and TPZGraphEl1dd.
Referenced by TPZVTKGraphMesh::DrawConnectivity(), TPZMVGraphMesh::DrawConnectivity(), TPZGraphMesh::DrawConnectivity(), and SetId().
|
protected |
Returns the number of the graphical node in the vector of connects.
Definition at line 72 of file pzgraphel.cpp.
Referenced by TPZGraphElQ2d::NPoints(), TPZGraphElT::NPoints(), and TPZGraphEl1d::NPoints().
|
pure virtual |
the parametric dimension of the element
Implemented in TPZGraphElQ3dd, TPZGraphElQ2dd, TPZGraphEl1dd, TPZGraphElQ2d, TPZGraphElT, TPZGraphEl1d, and TPZGraphElTd.
Referenced by SetId().
void TPZGraphEl::DrawCo | ( | TPZGraphNode * | n, |
TPZDrawStyle | st | ||
) |
Draw coordinates of the graphical node.
Definition at line 79 of file pzgraphel.cpp.
References co, EMVStyle, EV3DStyle, TPZGraphNode::FirstPoint(), and test::res.
Referenced by SetId().
void TPZGraphEl::DrawSolution | ( | TPZGraphNode * | n, |
TPZBlock< REAL > & | Sol, | ||
TPZDrawStyle | st | ||
) |
Draw solution of the graphical node.
Definition at line 110 of file pzgraphel.cpp.
Referenced by SetId().
void TPZGraphEl::DrawSolution | ( | TPZGraphNode * | n, |
int | solind, | ||
TPZDrawStyle | st | ||
) |
Definition at line 105 of file pzgraphel.cpp.
void TPZGraphEl::DrawSolution | ( | TPZGraphNode * | n, |
TPZVec< int > & | solind, | ||
TPZDrawStyle | st | ||
) |
Definition at line 113 of file pzgraphel.cpp.
References co, EMVStyle, EV3DStyle, EVTKStyle, fabs, TPZGraphNode::FirstPoint(), TPZVec< T >::NElements(), and test::res.
|
pure virtual |
Number of equations.
Implemented in TPZGraphEl1d, TPZGraphElQ3dd, TPZGraphElT, TPZGraphElQ2dd, TPZGraphElTd, TPZGraphElQ2d, and TPZGraphEl1dd.
Referenced by SetId().
|
pure virtual |
Sets the style to export (format)
Implemented in TPZGraphEl1dd, TPZGraphElQ3dd, TPZGraphEl1d, TPZGraphElTd, TPZGraphElT, TPZGraphElQ2dd, and TPZGraphElQ2d.
Referenced by TPZVTKGraphMesh::DrawConnectivity(), and Id().
|
protectedpure virtual |
Implemented in TPZGraphElQ3dd, TPZGraphEl1d, TPZGraphElQ2dd, TPZGraphElT, TPZGraphElTd, TPZGraphEl1dd, and TPZGraphElQ2d.
|
inline |
Get the Id of the graphical element.
Definition at line 42 of file pzgraphel.h.
References Connect(), ExportType(), fId, NNodes(), and Type().
Referenced by TPZGraphMesh::FindElement().
|
pure virtual |
Number of connects for the element.
Implemented in TPZGraphEl1dd, TPZGraphElQ3dd, TPZGraphEl1d, TPZGraphElT, TPZGraphElQ2dd, TPZGraphElTd, and TPZGraphElQ2d.
Referenced by TPZMVGraphMesh::DrawConnectivity().
|
pure virtual |
Implemented in TPZGraphElQ3dd, TPZGraphEl1d, TPZGraphElQ2dd, TPZGraphElQ2d, TPZGraphElT, TPZGraphEl1dd, and TPZGraphElTd.
Referenced by TPZVTKGraphMesh::DrawConnectivity(), TPZGraphMesh::NElements(), TPZGraphMesh::SequenceNodes(), and SetId().
|
protectedpure virtual |
Implemented in TPZGraphElQ3dd, TPZGraphEl1d, TPZGraphElQ2dd, TPZGraphElT, TPZGraphElTd, TPZGraphEl1dd, and TPZGraphElQ2d.
|
pure virtual |
Number of corner nodes (geometric information)
Implemented in TPZGraphEl1dd, TPZGraphElQ3dd, TPZGraphEl1d, TPZGraphElTd, TPZGraphElT, TPZGraphElQ2dd, and TPZGraphElQ2d.
Referenced by TPZVTKGraphMesh::DrawConnectivity(), and Id().
|
pure virtual |
Number of points to graphical resolution.
Implemented in TPZGraphElQ3dd, TPZGraphEl1d, TPZGraphElTd, TPZGraphElT, TPZGraphElQ2dd, TPZGraphElQ2d, and TPZGraphEl1dd.
Referenced by SetId().
void TPZGraphEl::Print | ( | std::ostream & | out | ) |
Print the information of the graphical element.
Definition at line 170 of file pzgraphel.cpp.
Referenced by TPZGraphMesh::Print(), and SetId().
This method maps the index of a point to parameter space as a function of the number of divisions.
Reimplemented in TPZGraphElT, TPZGraphElTd, TPZGraphElT2dMapped, TPZGraphElT3d, TPZGraphElPrismMapped, and TPZGraphElPyramidMapped.
Definition at line 62 of file pzgraphel.cpp.
References TPZVec< T >::NElements().
Referenced by TPZGraphElPrismMapped::QsiEta(), TPZGraphElPyramidMapped::QsiEta(), TPZGraphElT2dMapped::QsiEta(), and TPZGraphElT3d::QsiEta().
|
overridevirtual |
read objects from the stream
Reimplemented from TPZSavable.
Definition at line 192 of file pzgraphel.cpp.
References TPZPersistenceManager::GetInstance(), and TPZStream::Read().
|
inline |
Set graphical element id.
Definition at line 54 of file pzgraphel.h.
References co, Connectivity(), Dimension(), DrawCo(), DrawSolution(), EDXStyle, EqNum(), fId, NElements(), NPoints(), Print(), and SetNode().
Referenced by TPZGraphMesh::SequenceNodes().
|
virtual |
Sets a ith graphical node.
Reimplemented in TPZGraphEl1d, TPZGraphEl1dd, TPZGraphElT, TPZGraphElTd, TPZGraphElQ3dd, TPZGraphElQ2dd, and TPZGraphElQ2d.
Definition at line 55 of file pzgraphel.cpp.
Referenced by SetId().
|
static |
Definition at line 184 of file pzgraphel.cpp.
References Hash().
|
pure virtual |
Get the type of the graphical element.
Implemented in TPZGraphEl1dd, TPZGraphElQ3dd, TPZGraphEl1d, TPZGraphElTd, TPZGraphElT, TPZGraphElQ2dd, and TPZGraphElQ2d.
Referenced by TPZGraphMesh::DrawConnectivity(), Id(), and TPZGraphMesh::NElements().
|
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 198 of file pzgraphel.cpp.
References TPZStream::Write(), and TPZPersistenceManager::WritePointer().
|
protected |
Computational element associated with graphical element.
Definition at line 85 of file pzgraphel.h.
|
protected |
Graphical mesh associated with graphical element.
Definition at line 87 of file pzgraphel.h.
Referenced by TPZGraphEl1dd::Connectivity(), TPZGraphElTd::Connectivity(), TPZGraphElT::Connectivity(), TPZGraphElQ2d::Connectivity(), TPZGraphElQ2dd::Connectivity(), TPZGraphElQ3dd::Connectivity(), TPZGraphEl1d::Connectivity(), TPZGraphElQ2d::EqNum(), TPZGraphElTd::EqNum(), TPZGraphElQ2dd::EqNum(), TPZGraphElT::EqNum(), TPZGraphElQ3dd::EqNum(), TPZGraphEl1d::EqNum(), TPZGraphElQ2d::FirstIJ(), TPZGraphElT::FirstIJ(), TPZGraphEl1d::FirstIJ(), TPZGraphElTd::NElements(), TPZGraphEl1dd::NElements(), TPZGraphElT::NElements(), TPZGraphElQ2d::NElements(), TPZGraphElQ2dd::NElements(), TPZGraphEl1d::NElements(), TPZGraphElQ3dd::NElements(), TPZGraphElQ2d::NextIJ(), TPZGraphElTd::NextIJ(), TPZGraphElT::NextIJ(), TPZGraphElQ2dd::NextIJ(), TPZGraphElQ3dd::NextIJ(), TPZGraphEl1dd::NPoints(), TPZGraphElQ2d::NPoints(), TPZGraphElQ2dd::NPoints(), TPZGraphElT::NPoints(), TPZGraphElTd::NPoints(), TPZGraphEl1d::NPoints(), and TPZGraphElQ3dd::NPoints().
|
protected |
Id of the graphical element.
Definition at line 98 of file pzgraphel.h.
Referenced by TPZGraphEl1dd::Connectivity(), TPZGraphElTd::Connectivity(), TPZGraphElT::Connectivity(), TPZGraphElQ2d::Connectivity(), TPZGraphElQ2dd::Connectivity(), TPZGraphElQ3dd::Connectivity(), TPZGraphEl1d::Connectivity(), Id(), TPZGraphEl1dd::Print(), TPZGraphEl1d::Print(), and SetId().