NeoPZ
|
Implements the interface of the graphmesh to the OpenDX graphics package. Post processing. More...
#include <pzdxmesh.h>
Public Member Functions | |
TPZDXGraphMesh (TPZCompMesh *mesh, int dimension, const std::set< int > &matids, const TPZVec< std::string > &scalarnames, const TPZVec< std::string > &vecnames) | |
Constructor for output in DX format. More... | |
TPZDXGraphMesh (TPZCompMesh *cmesh, int dim, TPZDXGraphMesh *graph) | |
Copy constructor. More... | |
virtual | ~TPZDXGraphMesh () |
Default destructor. More... | |
virtual void | SetFileName (const std::string &filename) |
Sets the name of the output file. More... | |
virtual void | DrawMesh (int numcases) |
Draw mesh as dx file. More... | |
virtual void | DrawSolution (TPZBlock< REAL > &Sol) |
Draw solution as dx file. More... | |
virtual void | DrawSolution (char *var=0) |
Draw solution as dx file for variable name indicated. More... | |
virtual void | DrawSolution (int step, REAL time) |
Draw solution as dx file for step and time given. More... | |
int | NNodes () |
Number of nodes. More... | |
std::string | ElementName () |
void | Close () |
void | SetNumCases (int numcases) |
Public Member Functions inherited from TPZGraphMesh | |
TPZGraphMesh (TPZCompMesh *cm, int dimension, const std::set< int > &matids, const TPZVec< std::string > &scalarnames, const TPZVec< std::string > &vecnames) | |
Constructor for graphical mesh. More... | |
TPZGraphMesh (TPZCompMesh *cm, int dimension, const std::set< int > &matids, const TPZVec< std::string > &scalarnames, const TPZVec< std::string > &vecnames, const TPZVec< std::string > &tensornames) | |
Constructor with tensorial names for graphical mesh. More... | |
virtual | ~TPZGraphMesh (void) |
Default destructor. More... | |
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... | |
TPZGraphNode & | FindNode (int64_t side) |
Find graphical node (connect) More... | |
TPZGraphEl * | FindElement (int64_t sid) |
TPZAdmChunkVector< TPZGraphEl * > & | ElementList () |
Vector of the graphical elements. More... | |
TPZAdmChunkVector< TPZGraphNode > & | NodeMap () |
Vector of the graphical nodes. More... | |
int64_t | NPoints () |
Number of points to drawing, depending on the resolution. More... | |
int64_t | NElements (MElementType type) |
int | Res () |
Get the resolution of the draw. More... | |
virtual void | SetCompMesh (TPZCompMesh *mesh, const std::set< int > &matids) |
Sets the computational mesh to associate. More... | |
virtual void | DrawNodes () |
Draw the graphical nodes information. More... | |
virtual void | DrawConnectivity (MElementType type) |
Draw the connectivity information. More... | |
TPZDrawStyle | Style () |
Gets the style of the graphical mesh. More... | |
std::ostream & | Out () |
void | SetResolution (int res) |
Sets resolution. More... | |
void | Print (std::ostream &out) |
Print object attributes. More... | |
void | SetNames (const TPZVec< std::string > &scalarnames, const TPZVec< std::string > &vecnames) |
Set names with scalar and vector variable names. More... | |
void | SetNames (const TPZVec< std::string > &scalarnames, const TPZVec< std::string > &vecnames, const TPZVec< std::string > &tensornames) |
Set names with scalar, vectorial and tensorial variable names. More... | |
void | SetMaterialIds (const std::set< int > &matids) |
Set material ids. More... | |
std::set< int > | MaterialIds () |
Get material ids. More... | |
bool | Material_Is_PostProcessed (int matid) |
Return a directive if the material id is being postprocessed. More... | |
virtual TPZCompMesh * | Mesh () |
Return of the material for graphical mesh. More... | |
TPZVec< std::string > | ScalarNames () |
Return scalar variable names. More... | |
TPZVec< std::string > | VecNames () |
Return vectorial variable names. More... | |
TPZVec< std::string > | TensorNames () |
Return tensorial variable names. 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 | |
Private Member Functions | |
void | DrawNormals (int numnormals) |
Private Attributes | |
int | fNextDataField |
int | fNumConnectObjects [8] |
int | fElConnectivityObject [8] |
int | fNodePosObject [8] |
int | fNormalObject |
TPZStack< REAL > | fTimes |
TPZStack< int > | fFirstFieldValues [3] |
int | fNumCases |
std::string | fElementType |
Additional Inherited Members | |
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 inherited from TPZGraphMesh | |
virtual void | SequenceNodes () |
TPZCompEl * | FindFirstInterpolatedElement (TPZCompMesh *mesh, int dimension) |
Protected Attributes inherited from TPZGraphMesh | |
TPZCompMesh * | fCompMesh |
Computational mesh associated. More... | |
TPZGeoMesh * | fGeoMesh |
Geometric mesh related. More... | |
std::set< int > | fMaterialIds |
Set of material ids being post-processed. More... | |
int | fDimension |
Dimension of the graphical mesh. More... | |
TPZAdmChunkVector< TPZGraphEl * > | fElementList |
Vector of graphical elements. More... | |
TPZAdmChunkVector< TPZGraphNode > | fNodeMap |
Vector of graphical nodes (connects) More... | |
int | fResolution |
Resolution of the graphical object. More... | |
TPZDrawStyle | fStyle |
Style of the graphical file. More... | |
std::ofstream | fOutFile |
std::string | fFileName |
TPZVec< std::string > | fScalarNames |
Vectors of the variables names (scalar, vectorial, and tensorial) More... | |
TPZVec< std::string > | fVecNames |
TPZVec< std::string > | fTensorNames |
Implements the interface of the graphmesh to the OpenDX graphics package. Post processing.
This is the most actively supported graphics interface of the pz environment
Definition at line 17 of file pzdxmesh.h.
TPZDXGraphMesh::TPZDXGraphMesh | ( | TPZCompMesh * | mesh, |
int | dimension, | ||
const std::set< int > & | matids, | ||
const TPZVec< std::string > & | scalarnames, | ||
const TPZVec< std::string > & | vecnames | ||
) |
Constructor for output in DX format.
Definition at line 19 of file pzdxmesh.cpp.
References EAgglomerate, ECube, EDiscontinuous, EDXStyle, EOned, EPrisma, EQuadrilateral, ETriangle, fElConnectivityObject, fElementType, TPZGraphMesh::FindFirstInterpolatedElement(), fNextDataField, fNormalObject, fNumCases, fNumConnectObjects, TPZGraphMesh::fStyle, TPZGeoEl::NNodes(), TPZCompEl::Reference(), and TPZCompEl::Type().
TPZDXGraphMesh::TPZDXGraphMesh | ( | TPZCompMesh * | cmesh, |
int | dim, | ||
TPZDXGraphMesh * | graph | ||
) |
Copy constructor.
independing the transfered output file from old graphmesh
Load output file from old graphmesh to new graphmesh
Definition at line 51 of file pzdxmesh.cpp.
References EDXStyle, fElConnectivityObject, fElementType, TPZGraphMesh::fFileName, fFirstFieldValues, fNextDataField, fNumCases, fNumConnectObjects, TPZGraphMesh::fOutFile, TPZGraphMesh::fStyle, and fTimes.
|
virtual |
void TPZDXGraphMesh::Close | ( | ) |
Definition at line 294 of file pzdxmesh.cpp.
References TPZGraphMesh::fDimension, fFirstFieldValues, fNextDataField, fNormalObject, fNumCases, fNumConnectObjects, TPZGraphMesh::fOutFile, TPZGraphMesh::fScalarNames, fTimes, TPZGraphMesh::fVecNames, TPZVec< T >::NElements(), and TPZManVector< T, NumExtAlloc >::Resize().
Referenced by ~TPZDXGraphMesh().
|
virtual |
Draw mesh as dx file.
partial solution
Reimplemented from TPZGraphMesh.
Definition at line 93 of file pzdxmesh.cpp.
References TPZMaterial::Dimension(), TPZGraphMesh::DrawConnectivity(), TPZGraphMesh::DrawNodes(), ECube, ENoType, EOned, EQuadrilateral, ETriangle, TPZGraphMesh::fCompMesh, fElConnectivityObject, TPZCompMesh::FindMaterial(), fNextDataField, fNodePosObject, fNormalObject, fNumCases, TPZGraphMesh::fOutFile, TPZGraphMesh::MaterialIds(), TPZGraphMesh::NElements(), and TPZGraphMesh::NPoints().
Referenced by TPZAnalysis::AnimateRun(), TPZMulticamadaOrthotropic::ComputeSolution(), TPZEulerAnalysis::PrepareDXMesh(), and TPZNonLinMultGridAnalysis::TwoGridAlgorithm().
|
private |
Definition at line 411 of file pzdxmesh.cpp.
References TPZGraphMesh::fOutFile.
Referenced by SetNumCases().
|
virtual |
Draw solution as dx file.
Definition at line 384 of file pzdxmesh.cpp.
Referenced by TPZAnalysis::AnimateRun(), TPZMulticamadaOrthotropic::ComputeSolution(), TPZEulerAnalysis::Run(), and TPZNonLinMultGridAnalysis::TwoGridAlgorithm().
|
virtual |
Draw solution as dx file for variable name indicated.
partial solution
Definition at line 353 of file pzdxmesh.cpp.
References TPZCompMesh::ConnectVec(), TPZGraphNode::DrawSolution(), TPZGraphMesh::fCompMesh, TPZCompMesh::FindMaterial(), fNextDataField, TPZGraphMesh::fNodeMap, TPZGraphMesh::fOutFile, TPZGraphMesh::fStyle, TPZGraphMesh::MaterialIds(), TPZChunkVector< T, EXP >::NElements(), TPZGraphMesh::NPoints(), TPZMaterial::NSolutionVariables(), and TPZMaterial::VariableIndex().
|
virtual |
Draw solution as dx file for step and time given.
partial solution
Reimplemented from TPZGraphMesh.
Definition at line 149 of file pzdxmesh.cpp.
References TPZMaterial::Dimension(), TPZGraphNode::DrawSolution(), ECube, EOned, EQuadrilateral, ETriangle, TPZGraphMesh::fCompMesh, fElConnectivityObject, fFirstFieldValues, TPZVec< T >::Fill(), TPZCompMesh::FindMaterial(), fNextDataField, TPZGraphMesh::fNodeMap, fNodePosObject, fNormalObject, TPZGraphMesh::fOutFile, TPZGraphMesh::fScalarNames, TPZGraphMesh::fStyle, fTimes, TPZGraphMesh::fVecNames, TPZGraphMesh::MaterialIds(), TPZVec< T >::NElements(), TPZChunkVector< T, EXP >::NElements(), NNodes(), TPZGraphMesh::NPoints(), TPZMaterial::NSolutionVariables(), TPZStack< T, NumExtAlloc >::Push(), TPZVec< T >::Resize(), and TPZMaterial::VariableIndex().
std::string TPZDXGraphMesh::ElementName | ( | ) |
Definition at line 89 of file pzdxmesh.cpp.
References fElementType.
int TPZDXGraphMesh::NNodes | ( | ) |
Number of nodes.
Definition at line 80 of file pzdxmesh.cpp.
References fElementType.
Referenced by DrawSolution().
|
virtual |
Sets the name of the output file.
Reimplemented from TPZGraphMesh.
Definition at line 418 of file pzdxmesh.cpp.
References TPZGraphMesh::fOutFile, and TPZGraphMesh::SetFileName().
Referenced by TPZAnalysis::AnimateRun(), TPZMulticamadaOrthotropic::ComputeSolution(), TPZEulerAnalysis::PrepareDXMesh(), and TPZNonLinMultGridAnalysis::TwoGridAlgorithm().
|
inline |
Definition at line 55 of file pzdxmesh.h.
References DrawNormals().
|
private |
Definition at line 21 of file pzdxmesh.h.
Referenced by DrawMesh(), DrawSolution(), and TPZDXGraphMesh().
|
private |
Definition at line 27 of file pzdxmesh.h.
Referenced by ElementName(), NNodes(), and TPZDXGraphMesh().
|
private |
Definition at line 25 of file pzdxmesh.h.
Referenced by Close(), DrawSolution(), and TPZDXGraphMesh().
|
private |
Definition at line 19 of file pzdxmesh.h.
Referenced by Close(), DrawMesh(), DrawSolution(), and TPZDXGraphMesh().
|
private |
Definition at line 22 of file pzdxmesh.h.
Referenced by DrawMesh(), and DrawSolution().
|
private |
Definition at line 23 of file pzdxmesh.h.
Referenced by Close(), DrawMesh(), DrawSolution(), and TPZDXGraphMesh().
|
private |
Definition at line 26 of file pzdxmesh.h.
Referenced by Close(), DrawMesh(), and TPZDXGraphMesh().
|
private |
Definition at line 20 of file pzdxmesh.h.
Referenced by Close(), and TPZDXGraphMesh().
|
private |
Definition at line 24 of file pzdxmesh.h.
Referenced by Close(), DrawSolution(), and TPZDXGraphMesh().