33 (
fOutFile) <<
"Arquivo gerado por PZ" << endl;
35 (
fOutFile) << 1 <<
" 'Caso Unico'" << endl;
36 (
fOutFile) <<
"%RESULT.CASE" << endl;
37 (
fOutFile) << 1 <<
" " << numcases << endl;
38 for(
int i=0; i<numcases;i++) {
39 (
fOutFile) << (i+1) <<
" 'step" << i <<
"'" << endl;
54 scalind.
Fill(-1,0,numscal);
55 vecind.
Fill(-1,0,numvec);
57 if(matids.size() == 0) {
58 cout <<
"TPZMVGraphMesh no material found\n";
61 set<int>::iterator it = matids.begin();
64 for(n=0; n<numscal; n++) {
67 for(n=0; n<numvec; n++) {
71 (
fOutFile) <<
"%RESULT.CASE.STEP\n" << (step+1) << endl;
72 (
fOutFile) <<
"%RESULT.CASE.STEP.TIME\n" << time << endl;
76 (
fOutFile) <<
"%RESULT.CASE.STEP.NODAL.DISPLACEMENT" << endl;
83 (
fOutFile) <<
"%RESULT.CASE.STEP.NODAL.SCALAR" << endl;
85 for(n=0;n<numscal;n++) {
90 (
fOutFile) <<
"%RESULT.CASE.STEP.NODAL.SCALAR.DATA" << endl;
97 (
fOutFile) <<
"%RESULT.CASE.STEP.NODAL.VECTOR" << endl;
99 for(n=0;n<numvec;n++) {
103 (
fOutFile) <<
"%RESULT.CASE.STEP.NODAL.VECTOR.DATA" << endl;
106 for(i=0;i<nnod;i++) {
117 for(dim=0; dim<3; dim++) {
119 for(int64_t i=0;i<nnod;i++) {
131 for(i=0;i<nnod;i++) {
138 (
fOutFile) <<
"%NODE.COORD" << endl;
140 for(i=0;i<nnod;i++) {
154 (
fOutFile) << ((imax*imax)*nel) << endl;
160 (
fOutFile) << ((imax*imax)*nel) << endl;
161 for(int64_t i=0;i<nel;i++) {
168 cout <<
"TPZMVGraphMesh::DrawSolution not Implemented\n";
172 cout <<
"TPZMVGraphMesh::DrawSolution not Implemented\n";
Represents a graphical mesh used for post processing purposes. Post processing.
Contains the TPZMVGraphMesh class which implements graphical mesh to MVGraph package.
virtual int NConnects()=0
Number of connects for the element.
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)
TPZVec< std::string > VecNames()
Return vectorial variable names.
virtual int VariableIndex(const std::string &name)
Returns the variable index associated with the name.
Contains the TPZGraphEl class which implements the graphical one-, two- and three-dimensional element...
Contains the TPZGraphNode class which implements the graphical node.
TPZMVGraphMesh(TPZCompMesh *cmesh, int dimension, const std::set< int > &matids, const TPZVec< std::string > &scalarnames, const TPZVec< std::string > &vecnames)
Constructor for graphical mesh using MVGraph format.
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 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...
void SetPointNumber(int64_t num)
TPZDrawStyle fStyle
Style of the graphical file.
TPZMaterial * FindMaterial(int id)
Find the material with identity id.
TPZVec< std::string > fVecNames
virtual void DrawMesh(int numcases)
Draw graphical mesh.
Contains declaration of TPZCompMesh class which is a repository for computational elements...
virtual void DrawSolution(int step, REAL time)
Draw solution depending on the resolution.
virtual void DrawConnectivity(MElementType type)
Draw the connectivity information.
int fResolution
Resolution of the graphical object.
virtual void Connectivity(TPZDrawStyle st=EDXStyle)=0
Set dx style for connectivity information.
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.
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.
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.
std::set< int > fMaterialIds
Set of material ids being post-processed.
virtual void DrawNodes()
Draw the graphical nodes information.
int64_t NPoints()
Number of points to drawing, depending on the resolution.
Implements graphical mesh to MVGraph package. Post processing.
To export a graphical node. Post processing.
TPZAdmChunkVector< TPZGraphEl * > fElementList
Vector of graphical elements.