65 for(ind=0; ind<nel; ind++)
67 qsieta[ind] = (-1.0+(i[ind]*2.0/imax));
74 for(
int i=0;i<nn;i++)
if(n==Connect(i))
return i;
81 int in = ConnectNum(n);
84 int dim = this->Dimension();
89 int res = fGraphMesh->Res();
97 fCompEl->Reference()->X(qsi,x);
99 fGraphMesh->Out() << x[0] <<
" " << x[1] <<
" " << x[2] << endl;
107 DrawSolution(n,sol,st);
115 int in = ConnectNum(n);
118 int dim = Dimension();
122 int res = fGraphMesh->Res();
136 for(int64_t is=0; is<numsol; is++)
138 fCompEl->Solution(qsi,solind[is],sol);
139 numvar = fCompEl->Material()->NSolutionVariables(solind[is]);
142 if(numvar > 9) numvar = 9;
145 for(iv=0; iv<numvar;iv++)
147 #ifdef STATE_COMPLEX //AQUIFRAN 148 if(
fabs(sol[iv]) < 1.0e-20) sol[iv] = 0.0;
149 fGraphMesh->Out() << std::real(sol[iv]) <<
" ";
151 if(
fabs(sol[iv]) < 1.0e-20)
155 fGraphMesh->Out() << sol[iv] <<
" ";
158 if((st ==
EMVStyle || st ==
EV3DStyle) && numvar ==2) fGraphMesh->Out() << 0. <<
" ";
161 for(; iv<3; iv++) fGraphMesh->Out() << 0. <<
" ";
164 fGraphMesh->Out() << endl;
171 out <<
"TPZGraphEl element id = " << fId << endl;
172 out <<
"Node numbers : ";
174 for(i=0; i<NConnects(); i++) {
175 out << Connect(i)->SequenceNumber() <<
" ";
178 for(i=0; i<NConnects(); i++) {
179 out << Connect(i)->FirstPoint() <<
" ";
185 return Hash(
"TPZGraphEl");
189 return StaticClassId();
Represents a graphical mesh used for post processing purposes. Post processing.
expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ fabs
int AllocateNewElement()
Makes more room for new elements.
Represents a set of shape functions associated with a computational element/side. Computational Eleme...
void SetGraphMesh(TPZGraphMesh *mesh)
virtual void Read(TPZStream &buf, void *context) override
read objects from the stream
Contains declaration of TPZCompEl class which defines the interface of a computational element...
void SetConnect(TPZConnect *connect)
Contains the TPZGraphEl class which implements the graphical one-, two- and three-dimensional element...
int64_t NElements() const
Access method to query the number of elements of the vector.
virtual int NSides() const =0
Returns the number of connectivities of the element.
static TPZSavable * GetInstance(const int64_t &objId)
void DrawCo(TPZGraphNode *n, TPZDrawStyle st)
Draw coordinates of the graphical node.
static int StaticClassId()
TPZAdmChunkVector< TPZGraphEl * > & ElementList()
Vector of the graphical elements.
void Resize(const int newsize)
Increase the size of the chunk vector.
virtual void SetNode(int64_t i, TPZGraphNode *n)
Sets a ith graphical node.
int64_t SequenceNumber() const
Returns the Sequence number of the connect object.
virtual int ClassId() const override
Define the class id associated with the class.
virtual void QsiEta(TPZVec< int > &i, int imax, TPZVec< REAL > &qsieta)
This method maps the index of a point to parameter space as a function of the number of divisions...
virtual void Write(const bool val)
void SetElement(TPZGraphEl *gel)
TPZAdmChunkVector< TPZGraphNode > & NodeMap()
Vector of the graphical nodes.
Contains the TPZGraphMesh class which represents a graphical mesh used for post processing purposes...
virtual void Write(TPZStream &buf, int withclassid) const override
Writes this object to the TPZStream buffer. Include the classid if withclassid = true.
REAL co[8][3]
Coordinates of the eight nodes.
int64_t Index() const
Returns element index of the mesh fELementVec list.
virtual TPZConnect & Connect(int i) const
Returns a pointer to the ith node.
int32_t Hash(std::string str)
void DrawSolution(TPZGraphNode *n, TPZBlock< REAL > &Sol, TPZDrawStyle st)
Draw solution of the graphical node.
void Print(std::ostream &out)
Print the information of the graphical element.
int ConnectNum(TPZGraphNode *n)
Returns the number of the graphical node in the vector of connects.
TPZGeoEl * Reference() const
Return a pointer to the corresponding geometric element if such exists, return 0 otherwise.
Implements block matrices. Matrix utility.
TPZGraphEl(TPZCompEl *cel, TPZGraphMesh *gmesh, TPZGraphNode **connectvec)
Constructor of the graphical element.
void SetSequenceNumber(int64_t seqnum)
virtual ~TPZGraphEl(void)
Default destructor.
Defines the interface for saving and reading data. Persistency.
int64_t NElements() const
Returns the number of elements of the vector.
Defines the interface of a computational element. Computational Element.
To export a graphical node. Post processing.
static void WritePointer(const TPZSavable *obj, TPZStream *stream)
virtual void Read(bool &val)