NeoPZ
|
To export a graphical three dimensional mesh to use at V3D package. Post processing. More...
#include <pzv3dmesh.h>
Public Member Functions | |
TPZV3DGraphMesh (TPZCompMesh *cmesh, int dimension, const std::set< int > &matids, const TPZVec< std::string > &scalarnames, const TPZVec< std::string > &vecnames) | |
Constructor for graphical mesh using 3D Image Visualization format. More... | |
TPZV3DGraphMesh (TPZCompMesh *cmesh, int dim, TPZV3DGraphMesh *graph) | |
Copy constructor for graphical mesh using 3D Image Visualization format. More... | |
virtual | ~TPZV3DGraphMesh () |
Default destructor. More... | |
virtual void | DrawMesh (int numcases) |
Draw the nodal coordinates and the connectivity. More... | |
virtual void | DrawSolution (TPZBlock< REAL > &Sol) |
Draw the solution associated with Sol (not implemented) More... | |
virtual void | DrawSolution (char *var=0) |
Draw the solution associated with the variable name. More... | |
virtual void | DrawSolution (int step, REAL time) |
Draw the solution sequence. More... | |
virtual void | SequenceNodes () |
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... | |
virtual void | SetFileName (const std::string &filename) |
Sets the filename to output of graph. 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 Attributes | |
TPZCompMesh * | fMesh |
int | fNumCases |
int | fInterval |
int | fLoadStep |
int | fTotScal |
int | fNumScal [6] |
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 | |
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 |
To export a graphical three dimensional mesh to use at V3D package. Post processing.
V3D is a 3D Image Visualization package.
You can to download from http://penglab.janelia.org/proj/v3d/V3D/Download.html
Definition at line 20 of file pzv3dmesh.h.
TPZV3DGraphMesh::TPZV3DGraphMesh | ( | TPZCompMesh * | cmesh, |
int | dimension, | ||
const std::set< int > & | matids, | ||
const TPZVec< std::string > & | scalarnames, | ||
const TPZVec< std::string > & | vecnames | ||
) |
Constructor for graphical mesh using 3D Image Visualization format.
Definition at line 17 of file pzv3dmesh.cpp.
References EV3DStyle, fInterval, fLoadStep, fMesh, fNumCases, fNumScal, TPZGraphMesh::fStyle, and fTotScal.
TPZV3DGraphMesh::TPZV3DGraphMesh | ( | TPZCompMesh * | cmesh, |
int | dim, | ||
TPZV3DGraphMesh * | graph | ||
) |
Copy constructor for graphical mesh using 3D Image Visualization format.
Definition at line 28 of file pzv3dmesh.cpp.
References EV3DStyle, fInterval, fLoadStep, fMesh, fNumCases, fNumScal, TPZGraphMesh::fStyle, and fTotScal.
|
inlinevirtual |
Default destructor.
Definition at line 30 of file pzv3dmesh.h.
References DrawMesh(), DrawSolution(), and SequenceNodes().
|
virtual |
Draw the nodal coordinates and the connectivity.
Reimplemented from TPZGraphMesh.
Definition at line 39 of file pzv3dmesh.cpp.
References TPZGraphMesh::DrawConnectivity(), TPZGraphMesh::DrawNodes(), ENoType, EOned, EQuadrilateral, ETriangle, fInterval, fLoadStep, fNumCases, TPZGraphMesh::fOutFile, TPZGraphMesh::NElements(), and TPZGraphMesh::NPoints().
Referenced by ~TPZV3DGraphMesh().
|
virtual |
Draw the solution associated with Sol (not implemented)
Definition at line 58 of file pzv3dmesh.cpp.
Referenced by ~TPZV3DGraphMesh().
|
virtual |
Draw the solution associated with the variable name.
Definition at line 62 of file pzv3dmesh.cpp.
|
virtual |
Draw the solution sequence.
partial solution
Reimplemented from TPZGraphMesh.
Definition at line 66 of file pzv3dmesh.cpp.
References TPZGraphNode::DrawSolution(), TPZGraphMesh::fCompMesh, TPZVec< T >::Fill(), TPZCompMesh::FindMaterial(), fInterval, fLoadStep, TPZGraphMesh::fNodeMap, fNumCases, fNumScal, TPZGraphMesh::fOutFile, TPZGraphMesh::fScalarNames, TPZGraphMesh::fStyle, fTotScal, TPZGraphMesh::fVecNames, TPZGraphMesh::MaterialIds(), TPZVec< T >::NElements(), TPZChunkVector< T, EXP >::NElements(), TPZGraphMesh::NPoints(), rdt::values, and TPZMaterial::VariableIndex().
|
virtual |
Reimplemented from TPZGraphMesh.
Definition at line 162 of file pzv3dmesh.cpp.
References TPZGraphNode::FirstPoint(), TPZGraphMesh::fNodeMap, TPZChunkVector< T, EXP >::NElements(), TPZGraphMesh::SequenceNodes(), and TPZGraphNode::SetPointNumber().
Referenced by ~TPZV3DGraphMesh().
|
private |
Definition at line 48 of file pzv3dmesh.h.
Referenced by DrawMesh(), DrawSolution(), and TPZV3DGraphMesh().
|
private |
Definition at line 49 of file pzv3dmesh.h.
Referenced by DrawMesh(), DrawSolution(), and TPZV3DGraphMesh().
|
private |
Definition at line 46 of file pzv3dmesh.h.
Referenced by TPZV3DGraphMesh().
|
private |
Definition at line 47 of file pzv3dmesh.h.
Referenced by DrawMesh(), DrawSolution(), and TPZV3DGraphMesh().
|
private |
Definition at line 51 of file pzv3dmesh.h.
Referenced by DrawSolution(), and TPZV3DGraphMesh().
|
private |
Definition at line 50 of file pzv3dmesh.h.
Referenced by DrawSolution(), and TPZV3DGraphMesh().