17 TPZGraphMesh(cmesh, dimension, graph->fMaterialIds, graph->ScalarNames(),graph->VecNames(), graph->TensorNames()) {
23 TPZVTKGraphMesh::TPZVTKGraphMesh(
TPZCompMesh *cmesh,
int dimension,
const std::set<int> & matids,
const TPZVec<std::string> &scalnames,
const TPZVec<std::string> &vecnames,
const TPZVec<std::string> &tensnames):
TPZGraphMesh(cmesh, dimension, matids,scalnames,vecnames,tensnames) {
42 if(matids.size() == 0) {
43 cout <<
"TPZMVGraphMesh no material found\n";
46 set<int>::iterator it = matids.begin();
54 std::stringstream sout;
58 (
fOutFile) <<
"# vtk DataFile Version 3.0" << endl;
59 (
fOutFile) <<
"Arquivo gerado por PZ" << endl;
61 (
fOutFile) <<
"DATASET UNSTRUCTURED_GRID" << endl;
71 scalind.
Fill(-1,0,numscal);
73 for(n=0; n<numscal; n++) {
75 if (scalind[n] == -1) {
76 std::cout <<
fScalarNames[n] <<
" not recognized as post processing name\n";
79 for(n=0; n<numscal; n++)
97 vecind.
Fill(-1,0,numvec);
98 for(n=0; n<numvec; n++) {
102 std::cout <<
"Post processing vector name " <<
fVecNames[n] <<
" not found\n";
106 for(n=0; n<numvec; n++)
112 for(i=0;i<nnod;i++) {
124 tensind.
Fill(-1,0,numtens);
125 for(n=0; n<numtens; n++) {
129 std::cout <<
"Post processing name " <<
fTensorNames[n] <<
" not found\n";
133 for(n=0; n<numtens; n++)
137 for(i=0;i<nnod;i++) {
158 for(i=0;i<nnod;i++) {
163 (
fOutFile) << nn <<
" float" << endl;
165 for(i=0;i<nnod;i++) {
189 (
fOutFile) << nelem <<
" " << nint << std::endl;
195 (
fOutFile) <<
"CELL_TYPES " << nelem << std::endl;
208 cout <<
"TPZMVGraphMesh::DrawSolution not Implemented\n";
212 cout <<
"TPZMVGraphMesh::DrawSolution not Implemented\n";
Represents a graphical mesh used for post processing purposes. Post processing.
TPZVTKGraphMesh(TPZCompMesh *cmesh, int dimension, const std::set< int > &matids, const TPZVec< std::string > &scalnames, const TPZVec< std::string > &vecnames, const TPZVec< std::string > &tensnames)
Constructor for graphical mesh using VTK format with tensor variables.
TPZVec< std::string > fScalarNames
Vectors of the variables names (scalar, vectorial, and tensorial)
void DrawSolution(int solutionid, TPZDrawStyle st=EDXStyle)
Draw solution on the current connect for solutionid variable.
virtual void DrawConnectivity(MElementType type)
Draw the connectivity information.
clarg::argInt dimension("-d", "Matrices dimension M x M", 1000)
Contains the TPZVTKGraphMesh class which implements the graphical mesh to VTK environment.
virtual int VariableIndex(const std::string &name)
Returns the variable index associated with the name.
To export a graphical mesh to VTK environment. Post processing.
Contains the TPZGraphEl class which implements the graphical one-, two- and three-dimensional element...
Contains the TPZGraphNode class which implements the graphical node.
int64_t NElements() const
Access method to query the number of elements of the vector.
virtual void DrawNodes()
Draw the graphical nodes information.
virtual void Resize(const int64_t newsize, const T &object)
Resizes the vector object.
virtual int NElements()=0
std::set< int > MaterialIds()
Get material ids.
This abstract class defines the behaviour which each derived class needs to implement.
virtual void SequenceNodes()
virtual void Resize(const int64_t newsize, const T &object)
Resizes the vector object reallocating the necessary storage, copying the existing objects to the new...
TPZDrawStyle fStyle
Style of the graphical file.
virtual int NNodes()=0
Number of corner nodes (geometric information)
#define DebugStop()
Returns a message to user put a breakpoint in.
TPZMaterial * FindMaterial(int id)
Find the material with identity id.
TPZVec< std::string > fVecNames
Contains declaration of TPZCompMesh class which is a repository for computational elements...
virtual void SequenceNodes()
virtual void Connectivity(TPZDrawStyle st=EDXStyle)=0
Set dx style for connectivity information.
virtual void DrawSolution(int step, REAL time)
Draw solution depending on the resolution.
virtual void DrawMesh(int numcases)
Draw the graphical mesh.
TPZAdmChunkVector< TPZGraphNode > fNodeMap
Vector of graphical nodes (connects)
void DrawCo(TPZDrawStyle st=EDXStyle)
Draw coordinates of the graphical node.
Implements block matrices. Matrix utility.
MElementType
Define the element types.
Implements computational mesh. Computational Mesh.
virtual int ExportType(TPZDrawStyle st)=0
Sets the style to export (format)
TPZVec< std::string > fTensorNames
void Fill(const T ©, const int64_t from=0, const int64_t numelem=-1)
Will fill the elements of the vector with a copy object.
Abstract class to graphical one-, two- and three-dimensional element. Post processing.
int64_t NElements() const
Returns the number of elements of the vector.
TPZCompMesh * fCompMesh
Computational mesh associated.
int64_t NPoints()
Number of points to drawing, depending on the resolution.
To export a graphical node. Post processing.
TPZAdmChunkVector< TPZGraphEl * > fElementList
Vector of graphical elements.