44 int a = ((1 <<
res)-1);
62 for(
int is=0;is<4;is++) {
71 else if(co[0]==imax) loc=1;
72 else if(co[1]==imax) loc=2;
73 else if(co[0]==0) loc=3;
79 neq = first + (co[0]-1) + orient[loc]*(imax-1-co[0]-co[0]+1);
82 neq = first + (co[1]-1) + orient[loc]*(imax-1-co[1]-co[1]+1);
85 neq = first + (imax-1-co[0]) + orient[loc]*(co[0]-1-imax+1+co[0]);
88 neq = first + (imax-1-co[1]) + orient[loc]*(co[1]-1-imax+1+co[1]);
91 neq = first + (co[1]-1) + (co[0]-1)*(imax-1);
109 for (i=0;i<3;i++) co[i]=0;
116 for (i=1;i<3;i++) co[i]=0;
122 for (i=0;i<2;i++) co[i]= imax;
196 for (i=0;i<2;i++) co[i]= 1;
238 for(
int i=0;i<imax;i++) {
239 for(
int j=0;j<imax;j++) {
241 if(st ==
EMVStyle) out << ip <<
" 1 1 1 ";
245 co1[0]=i+1; co1[1]=j;
246 co2[0]=i; co2[1]=j+1;
247 co3[0]=i+1; co3[1]=j+1;
250 co1[0]=i+1; co1[1]=j;
251 co2[0]=i+1; co2[1]=j+1;
252 co3[0]=i; co3[1]=j+1;
254 out <<
EqNum(co0) <<
" " <<
EqNum(co1) <<
" " <<
virtual int NNodes()
Number of corner nodes (geometric information)
Represents a graphical mesh used for post processing purposes. Post processing.
virtual int ExportType(TPZDrawStyle st)
Sets the style to export (format)
Contains the TPZGraphElQ2d class which implements the graphical two dimensional element.
virtual ~TPZGraphElQ2d(void)
virtual void FirstIJ(int connect, TPZVec< int > &co, int &incr)
Contains declaration of TPZCompEl class which defines the interface of a computational element...
virtual void SetNode(int64_t i, TPZGraphNode *n)
Sets a ith graphical node.
int64_t fId
Id of the graphical element.
virtual void Connectivity(TPZDrawStyle st=EDXStyle)
Set dx style for connectivity information.
int Res()
Get the resolution of the draw.
virtual int NPoints(TPZGraphNode *n)
Number of points to graphical resolution.
TPZGraphMesh * fGraphMesh
Graphical mesh associated with graphical element.
Contains the TPZGraphMesh class which represents a graphical mesh used for post processing purposes...
REAL co[8][3]
Coordinates of the eight nodes.
virtual TPZGraphNode * Connect(int64_t i)
Return the graphical connect.
TPZGraphNode * fConnects[9]
Graphical nodes vector (by connect of the computational element)
int ConnectNum(TPZGraphNode *n)
Returns the number of the graphical node in the vector of connects.
TPZGraphElQ2d(TPZCompEl *cel, TPZGraphMesh *gmesh)
Constructor for graphical element to computational quadrilateral element.
virtual int64_t EqNum(TPZVec< int > &co)
Number of equations.
virtual void NextIJ(int connect, TPZVec< int > &co, int incr)
Abstract class to graphical one-, two- and three-dimensional element. Post processing.
Defines the interface of a computational element. Computational Element.
To export a graphical node. Post processing.