NeoPZ
tpzchangeel.h
Go to the documentation of this file.
1 
6 #ifndef TPZCHANGEEL_H
7 #define TPZCHANGEEL_H
8 
9 #include "pzgeotriangle.h"
10 #include "tpzgeoblend.h"
11 #include "pzgeoel.h"
12 #include "pznoderep.h"
13 
14 #include <iostream>
15 
23 class TPZChangeEl {
24 public:
25 
26  TPZChangeEl();
27  ~TPZChangeEl();
28 
30  static TPZGeoEl * ChangeToQuadratic(TPZGeoMesh *Mesh, int64_t ElemIndex);
31 
33  static TPZGeoEl * ChangeToGeoBlend(TPZGeoMesh *Mesh, int64_t ElemIndex);
34 
36  static TPZGeoEl * ChangeToQuarterPoint(TPZGeoMesh *Mesh, int64_t ElemIndex, int targetSide);
37 
45  static bool NearestNode(TPZGeoEl * gel, TPZVec<REAL> &x, int64_t &meshNode, double tol);
52  static int64_t NearestNode(TPZGeoMesh * gmesh, TPZVec<REAL> &x, double tol);
53  static bool CreateMiddleNodeAtEdge(TPZGeoMesh *Mesh, int64_t ElemIndex, int edge, int64_t &middleNodeId);
54 };
55 
56 #endif
static const double tol
Definition: pzgeoprism.cpp:23
static TPZGeoEl * ChangeToQuadratic(TPZGeoMesh *Mesh, int64_t ElemIndex)
Turns an linear geoelement to quadratic.
Defines the behaviour of all geometric elements. GeometryTPZGeoEl is the common denominator for all g...
Definition: pzgeoel.h:43
Contains the TPZGeoBlend class which implements a blending map from curved boundaries to the interior...
static bool CreateMiddleNodeAtEdge(TPZGeoMesh *Mesh, int64_t ElemIndex, int edge, int64_t &middleNodeId)
Contains the TPZNodeRep class which implements ... Clase intermediaria que guarda.
Special map. It is util to convert a linear element for quadratic element, but the same topology...
Definition: tpzchangeel.h:23
static bool NearestNode(TPZGeoEl *gel, TPZVec< REAL > &x, int64_t &meshNode, double tol)
Return if a given point x is near to some node of a given geo element.
static TPZGeoEl * ChangeToGeoBlend(TPZGeoMesh *Mesh, int64_t ElemIndex)
Turns a regular element into a geoblend.
This class implements a geometric mesh for the pz environment. Geometry.
Definition: pzgmesh.h:48
static TPZGeoEl * ChangeToQuarterPoint(TPZGeoMesh *Mesh, int64_t ElemIndex, int targetSide)
Slide middle nodes of an quadratic geoelement to the quarterpoint with respect to a given side...