NeoPZ
|
To export a graphical mesh to VTK environment to geometric mesh. Post processing. More...
#include <TPZVTKGeoMesh.h>
Static Public Member Functions | |
static void | PrintGMeshVTK (TPZGeoMesh *gmesh, std::ofstream &file, bool matColor=true) |
Default constructor for graphical mesh with VTK format. More... | |
static void | PrintGMeshVTK (TPZAutoPointer< TPZGeoMesh > gmesh, std::ofstream &file, bool matColor=true) |
Generate an output of all geomesh to VTK. More... | |
static void | PrintCMeshVTK (TPZCompMesh *cmesh, std::ofstream &file, bool matColor=true) |
Generate an output of all geometric elements that have a computational counterpart to VTK. More... | |
static void | PrintCMeshVTK (TPZGeoMesh *gmesh, std::ofstream &file, bool matColor=true) |
Generate an output of all geometric elements that have a computational counterpart to VTK. More... | |
static void | PrintGMeshVTK (TPZGeoMesh *gmesh, std::ofstream &file, TPZVec< int > &elData) |
Generate an output of all geomesh to VTK, associating to each one the given data. More... | |
static void | PrintGMeshVTK (TPZGeoMesh *gmesh, std::ofstream &file, TPZVec< int64_t > &elData) |
Generate an output of all geomesh to VTK, associating to each one the given data. More... | |
static void | PrintGMeshVTK (TPZGeoMesh *gmesh, std::ofstream &file, TPZVec< REAL > &elData) |
Generate an output of all geomesh to VTK, associating to each one the given data. More... | |
static void | PrintCMeshVTK (TPZCompMesh *cmesh, std::ofstream &file, TPZVec< REAL > &elData, std::string dataName) |
Generate an output of all geometric elements that have a computational counterpart to VTK. More... | |
static void | PrintGMeshVTK (TPZGeoMesh *gmesh, char *filename, TPZChunkVector< int > &elData) |
Generate an output of all geomesh to VTK, associating to each one the given data (int), creates a file with filename given. More... | |
static void | PrintGMeshVTK (TPZGeoMesh *gmesh, char *filename, TPZVec< REAL > &elData) |
Generate an output of all geomesh to VTK, associating to each one the given data (REAL), creates a file with filename given. More... | |
static void | PrintGMeshVTK (TPZGeoMesh *gmesh, char *filename, TPZVec< TPZVec< REAL > > &elData) |
Generate an output of all geomesh to VTK, associating to each one the given vector data as several substructures, creates a file with filename given. More... | |
static void | PrintGMeshVTK (TPZGeoMesh *gmesh, const char *filename, int var) |
Generate an output of all geomesh to VTK, associating to each one the given data. Print the values of the variable var. More... | |
static void | PrintGMeshVTKneighbour_material (TPZGeoMesh *gmesh, std::ofstream &file, int neighMaterial, bool matColor=false) |
Based on a given geomesh, just the elements that have an neighbour with a given material id will be exported to an VTK file. More... | |
static void | PrintGMeshVTKneighbourhood (TPZGeoMesh *gmesh, int64_t elIndex, std::ofstream &file) |
Print the elements that surround a givel geoel. More... | |
static void | PrintGMeshVTK (TPZGeoMesh *gmesh, std::set< int64_t > &elIndex, std::ofstream &file) |
Print the given elements. More... | |
static void | SetMaterialVTK (TPZGeoEl *gel, int mat) |
static void | PrintGMeshVTKmy_material (TPZGeoMesh *gmesh, std::ofstream &file, std::set< int > myMaterial, bool matColor=true) |
Based on a given geomesh, just the elements that have the given material id will be exported to an VTK file. More... | |
static int | GetVTK_ElType (TPZGeoEl *gel) |
Get type of the geometric element. More... | |
static void | PrintPOrderPoints (TPZCompMesh &cmesh, std::set< int > dimensions, std::ofstream &outfile) |
To export a graphical mesh to VTK environment to geometric mesh. Post processing.
Definition at line 21 of file TPZVTKGeoMesh.h.
|
static |
Get type of the geometric element.
Definition at line 1263 of file TPZVTKGeoMesh.cpp.
References DebugStop, ECube, EOned, EPiramide, EPoint, EPrisma, EQuadrilateral, ETetraedro, ETriangle, and TPZGeoEl::Type().
Referenced by PrintCMeshVTK(), PrintGMeshVTK(), PrintGMeshVTKmy_material(), and PrintGMeshVTKneighbour_material().
|
static |
Generate an output of all geometric elements that have a computational counterpart to VTK.
Generate an output of all geomesh to VTK
Definition at line 17 of file TPZVTKGeoMesh.cpp.
References TPZCompMesh::ElementVec(), GetVTK_ElType(), TPZCompEl::Index(), TPZGeoEl::Index(), TPZCompMesh::LoadReferences(), TPZGeoEl::MaterialId(), MElementType_NNodes(), TPZCompMesh::NElements(), TPZGeoEl::NodeIndex(), TPZGeoMesh::NodeVec(), TPZCompEl::Reference(), TPZCompMesh::Reference(), TPZGeoEl::Reference(), and TPZGeoEl::Type().
Referenced by TPZMHMixedMeshChannelControl::BuildComputationalMesh(), TPZMHMixedHybridMeshControl::BuildComputationalMesh(), TPZMHMixedMeshControl::BuildComputationalMesh(), TPZMHMixedMeshControl::CreateHDivPressureMHMMesh(), TPZMHMixedMeshControl::CreateSkeleton(), and PrintGMeshVTK().
|
static |
Generate an output of all geometric elements that have a computational counterpart to VTK.
Definition at line 110 of file TPZVTKGeoMesh.cpp.
References TPZGeoMesh::ElementVec(), GetVTK_ElType(), TPZCompEl::Index(), TPZGeoEl::Index(), TPZGeoEl::MaterialId(), MElementType_NNodes(), TPZGeoMesh::NElements(), TPZGeoEl::NodeIndex(), TPZGeoMesh::NodeVec(), TPZGeoEl::Reference(), and TPZGeoEl::Type().
|
static |
Generate an output of all geometric elements that have a computational counterpart to VTK.
Definition at line 445 of file TPZVTKGeoMesh.cpp.
References TPZCompMesh::ElementVec(), EOned, GetVTK_ElType(), TPZCompEl::Index(), TPZGeoEl::Index(), TPZGeoEl::IsLinearMapping(), TPZCompMesh::LoadReferences(), MElementType_NNodes(), TPZCompMesh::NElements(), TPZGeoEl::NodeIndex(), TPZGeoMesh::NodeVec(), TPZCompEl::Reference(), TPZCompMesh::Reference(), and TPZGeoEl::Type().
|
static |
Default constructor for graphical mesh with VTK format.
Default destructor Generate an output of all geomesh to VTK
Generate an output of all geomesh to VTK
Definition at line 197 of file TPZVTKGeoMesh.cpp.
References TPZGeoMesh::ElementVec(), GetVTK_ElType(), TPZGeoEl::HasSubElement(), TPZGeoEl::Index(), TPZGeoEl::MaterialId(), MElementType_NNodes(), TPZGeoMesh::NElements(), TPZGeoEl::NodeIndex(), TPZGeoMesh::NodeVec(), and TPZGeoEl::Type().
Referenced by TPZMHMixedMeshControl::CreateHDivMHMMesh(), Hdiv3dPaper201504::CreateOneCubo(), TPZDohrStructMatrix::IdentifyCornerNodes(), main(), hdivCurvedJCompAppMath::MakeCircle(), MalhaCubo(), MalhaGeom(), MalhaPredio(), TPZGeoMeshBuilder::PrintGeometry(), PrintGMeshVTK(), TPZRefPattern::PrintVTK(), PYBIND11_MODULE(), TPZDohrStructMatrix::SubStructure(), and SubStructure().
|
inlinestatic |
Generate an output of all geomesh to VTK.
Definition at line 34 of file TPZVTKGeoMesh.h.
References PrintCMeshVTK(), and PrintGMeshVTK().
|
static |
Generate an output of all geomesh to VTK, associating to each one the given data.
Definition at line 278 of file TPZVTKGeoMesh.cpp.
References TPZGeoMesh::ElementVec(), EOned, GetVTK_ElType(), TPZGeoEl::Index(), TPZGeoEl::IsLinearMapping(), MElementType_NNodes(), TPZGeoMesh::NElements(), TPZVec< T >::NElements(), TPZGeoEl::NodeIndex(), TPZGeoMesh::NodeVec(), and TPZGeoEl::Type().
|
inlinestatic |
Generate an output of all geomesh to VTK, associating to each one the given data.
Definition at line 49 of file TPZVTKGeoMesh.h.
References stats::filename, GetVTK_ElType(), PrintCMeshVTK(), PrintGMeshVTK(), PrintGMeshVTKmy_material(), PrintGMeshVTKneighbour_material(), PrintGMeshVTKneighbourhood(), PrintPOrderPoints(), SetMaterialVTK(), and TPZVec< T >::size().
|
static |
Generate an output of all geomesh to VTK, associating to each one the given data.
Definition at line 362 of file TPZVTKGeoMesh.cpp.
References TPZGeoMesh::ElementVec(), EOned, GetVTK_ElType(), TPZGeoEl::Index(), TPZGeoEl::IsLinearMapping(), MElementType_NNodes(), TPZGeoMesh::NElements(), TPZVec< T >::NElements(), TPZGeoEl::NodeIndex(), TPZGeoMesh::NodeVec(), and TPZGeoEl::Type().
|
static |
Generate an output of all geomesh to VTK, associating to each one the given data (int), creates a file with filename given.
Definition at line 536 of file TPZVTKGeoMesh.cpp.
References TPZGeoNode::Coord(), DebugStop, TPZGeoMesh::ElementVec(), EOned, GetVTK_ElType(), TPZGeoEl::Index(), TPZGeoEl::IsLinearMapping(), MElementType_NNodes(), TPZGeoMesh::NElements(), TPZChunkVector< T, EXP >::NElements(), TPZGeoMesh::NNodes(), TPZGeoEl::NodeIndex(), TPZGeoMesh::NodeVec(), and TPZGeoEl::Type().
|
static |
Generate an output of all geomesh to VTK, associating to each one the given data (REAL), creates a file with filename given.
Definition at line 634 of file TPZVTKGeoMesh.cpp.
References TPZGeoNode::Coord(), DebugStop, TPZGeoMesh::ElementVec(), EOned, GetVTK_ElType(), TPZGeoEl::Index(), TPZGeoEl::IsLinearMapping(), MElementType_NNodes(), TPZGeoMesh::NElements(), TPZVec< T >::NElements(), TPZGeoMesh::NNodes(), TPZGeoEl::NodeIndex(), TPZGeoMesh::NodeVec(), and TPZGeoEl::Type().
|
static |
Generate an output of all geomesh to VTK, associating to each one the given vector data as several substructures, creates a file with filename given.
Definition at line 729 of file TPZVTKGeoMesh.cpp.
References TPZGeoNode::Coord(), DebugStop, TPZGeoMesh::ElementVec(), EOned, GetVTK_ElType(), TPZGeoEl::Index(), TPZGeoEl::IsLinearMapping(), MElementType_NNodes(), TPZGeoMesh::NElements(), TPZGeoMesh::NNodes(), TPZGeoEl::NodeIndex(), TPZGeoMesh::NodeVec(), and TPZGeoEl::Type().
|
static |
Generate an output of all geomesh to VTK, associating to each one the given data. Print the values of the variable var.
Definition at line 837 of file TPZVTKGeoMesh.cpp.
References TPZGeoNode::Coord(), DebugStop, TPZGeoMesh::ElementVec(), EOned, GetVTK_ElType(), TPZGeoEl::HasSubElement(), TPZGeoEl::Index(), TPZGeoEl::IsLinearMapping(), TPZGeoEl::MaterialId(), TPZGeoEl::NCornerNodes(), TPZGeoMesh::NElements(), TPZGeoMesh::NNodes(), TPZGeoEl::NodeIndex(), TPZGeoMesh::NodeVec(), TPZGeoEl::Reference(), and TPZGeoEl::Type().
|
static |
Print the given elements.
Definition at line 1072 of file TPZVTKGeoMesh.cpp.
References TPZGeoMesh::ElementVec(), EOned, GetVTK_ElType(), TPZGeoEl::HasSubElement(), TPZGeoEl::IsLinearMapping(), MElementType_NNodes(), TPZGeoMesh::NElements(), TPZGeoEl::NodeIndex(), TPZGeoMesh::NodeVec(), and TPZGeoEl::Type().
|
static |
Based on a given geomesh, just the elements that have the given material id will be exported to an VTK file.
Based on a given geomesh, just the elements that have the given material id will be exported to an VTK file
Definition at line 1176 of file TPZVTKGeoMesh.cpp.
References TPZGeoEl::Dimension(), TPZGeoMesh::ElementVec(), GetVTK_ElType(), TPZGeoEl::HasSubElement(), TPZGeoEl::Index(), TPZGeoEl::MaterialId(), MElementType_NNodes(), TPZGeoMesh::NElements(), TPZGeoEl::NodeIndex(), TPZGeoMesh::NodeVec(), and TPZGeoEl::Type().
Referenced by PrintGMeshVTK(), and PrintGMeshVTKneighbourhood().
|
static |
Based on a given geomesh, just the elements that have an neighbour with a given material id will be exported to an VTK file.
Based on a given geomesh, just the elements that have an neighbour with a given material id will be exported to an VTK file
Definition at line 941 of file TPZVTKGeoMesh.cpp.
References TPZGeoMesh::ElementVec(), EOned, GetVTK_ElType(), TPZGeoEl::HasSubElement(), TPZGeoEl::Index(), TPZGeoEl::IsLinearMapping(), TPZGeoEl::MaterialId(), MElementType_NNodes(), TPZGeoElSide::Neighbour(), TPZGeoMesh::NElements(), TPZGeoEl::NodeIndex(), TPZGeoMesh::NodeVec(), TPZGeoEl::NSides(), and TPZGeoEl::Type().
Referenced by PrintGMeshVTK().
|
static |
Print the elements that surround a givel geoel.
Definition at line 1043 of file TPZVTKGeoMesh.cpp.
References TPZGeoElSide::Element(), TPZGeoMesh::ElementVec(), TPZGeoElSide::IsAncestor(), TPZGeoElSide::Neighbour(), TPZGeoEl::NSides(), PrintGMeshVTKmy_material(), and SetMaterialVTK().
Referenced by TPZRefPatternTools::PerfectMatchRefPattern(), and PrintGMeshVTK().
|
static |
Print a pointmesh whose values are the polynomial orders
Definition at line 1325 of file TPZVTKGeoMesh.cpp.
References TPZGeoEl::CenterPoint(), TPZGeoEl::Dimension(), TPZCompMesh::ElementVec(), TPZInterpolatedElement::MidSideConnect(), TPZCompMesh::NElements(), TPZInterpolatedElement::NSideConnects(), TPZGeoEl::NSides(), TPZConnect::Order(), TPZCompEl::Reference(), TPZGeoEl::SideDimension(), and TPZGeoEl::X().
Referenced by PrintGMeshVTK().
|
static |
Definition at line 1148 of file TPZVTKGeoMesh.cpp.
References TPZGeoEl::HasSubElement(), TPZGeoEl::Mesh(), TPZGeoEl::NNodes(), TPZGeoEl::NodeIndex(), TPZGeoMesh::NodeVec(), TPZGeoEl::NSubElements(), TPZGeoEl::SetMaterialId(), and TPZGeoEl::SubElement().
Referenced by PrintGMeshVTK(), and PrintGMeshVTKneighbourhood().