25 for(
int i=0; i<6; i++)
fNumScal[i] = 0;
41 (
fOutFile) <<
"File generated by the PZ environment\n";
42 (
fOutFile) <<
"2 Dimensional grid\n";
49 for(type=1;type<4;type++)nel+=
NElements(eltypes[type]);
50 (
fOutFile) <<
"elem " << nel << endl;
59 cout <<
"TPZV3DGraphMesh::DrawSolution(TPZBlock &) not implemented\n";
63 cout <<
"TPZV3DGraphMesh::DrawSolution(char *) not implemented\n";
71 cout <<
"View3d only allows for 6 scalars numscal = " << numscal << endl;
75 cout <<
"View3d total number of cases cannot exceed 6 values\n";
80 cout <<
"Vector values only allowed at the last step\n";
84 cout <<
"View3d only allows for 1 vector variable = " << numvec << endl;
89 char tempfilename[] =
"temp0.dat";
99 if(matids.size() == 0) {
100 cout <<
"TPZMVGraphMesh no material found\n";
103 set<int>::iterator it = matids.begin();
106 cout <<
"TPZV3DGraphMesh::DrawSolution material not found" << endl;
110 for(n=0; n<numscal; n++) {
113 for(n=0; n<numvec; n++) {
117 (
fOutFile) <<
"nosc " << numscal << endl;
119 for(int64_t i=0;i<nnod;i++) {
124 ifstream *tempread[6];
128 for(icase=0; icase<=
fLoadStep; icase++) {
129 char fname[] =
"temp0.dat";
130 fname[3] += (char) icase;
131 tempread[icase] =
new ifstream(fname);
136 for(icase=0; icase<=
fLoadStep; icase++) tempread[icase]->getline(buf,255);
137 for(int64_t iv=0; iv<nump; iv++) {
138 for(icase=0; icase<=
fLoadStep; icase++) {
140 (*tempread[icase]) >> nodindex;
141 if(icase == 0) (
fOutFile) << nodindex <<
' ';
142 for(
int iscal=0; iscal<
fNumScal[icase]; iscal++) {
143 (*tempread[icase]) >> values; (
fOutFile) << values <<
' ';
148 for(icase=0; icase <=
fLoadStep; icase++)
delete tempread[icase];
153 for(int64_t i=0;i<nnod;i++) {
165 for(int64_t i=0;i<nnod;i++) {
Represents a graphical mesh used for post processing purposes. Post processing.
virtual void SequenceNodes()
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.
clarg::argInt dimension("-d", "Matrices dimension M x M", 1000)
virtual void DrawConnectivity(MElementType type)
Draw the connectivity information.
Templated vector implementation.
TPZVec< std::string > VecNames()
Return vectorial variable names.
virtual int VariableIndex(const std::string &name)
Returns the variable index associated with the name.
To export a graphical three dimensional mesh to use at V3D package. 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.
std::set< int > MaterialIds()
Get material ids.
This abstract class defines the behaviour which each derived class needs to implement.
virtual void DrawNodes()
Draw the graphical nodes information.
virtual void SequenceNodes()
Contains the TPZV3DGraphMesh class which implements the graphical three dimensional mesh to use at V3...
void SetPointNumber(int64_t num)
TPZDrawStyle fStyle
Style of the graphical file.
virtual void DrawMesh(int numcases)
Draw the nodal coordinates and the connectivity.
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...
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.
TPZAdmChunkVector< TPZGraphNode > fNodeMap
Vector of graphical nodes (connects)
Implements block matrices. Matrix utility.
MElementType
Define the element types.
TPZVec< std::string > ScalarNames()
Return scalar variable names.
Implements computational mesh. Computational Mesh.
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.
int64_t NElements(MElementType type)
int64_t NElements() const
Returns the number of elements of the vector.
TPZCompMesh * fCompMesh
Computational mesh associated.
std::set< int > fMaterialIds
Set of material ids being post-processed.
int64_t NPoints()
Number of points to drawing, depending on the resolution.
virtual void DrawSolution(TPZBlock< REAL > &Sol)
Draw the solution associated with Sol (not implemented)
To export a graphical node. Post processing.