70 static std::string
TypeName() {
return "Quad";}
132 int space = nodes.
Rows();
134 for(
int i = 0; i < space; i++) {
136 for(
int j = 0; j < 4; j++) {
137 x[i] += phi(j,0)*nodes.
GetVal(i,j);
146 int space = nodes.
Rows();
147 int ncol = nodes.
Cols();
154 std::cout <<
"Objects of incompatible lengths, gradient cannot be computed." << std::endl;
155 std::cout <<
"nodes matrix must be spacex4." << std::endl;
163 for(
int i = 0; i < 4; i++)
165 for(
int j = 0; j < space; j++)
167 gradx(j,0) += nodes.
GetVal(j,i)*dphi(0,i);
168 gradx(j,1) += nodes.
GetVal(j,i)*dphi(1,i);
TPZGeoQuad(const TPZGeoQuad &cp)
Copy constructor.
static void ComputeNormal(TPZVec< REAL > &p1, TPZVec< REAL > &p2, TPZVec< REAL > &p3, TPZVec< REAL > &result)
Computes normal vector to plane determinated by three points.
Templated vector implementation.
TPZGeoQuad(const TPZGeoQuad &cp, std::map< int64_t, int64_t > &gl2lcNdMap)
Constructor with node map.
Defines enum MElementType and contains the implementation of MElementType_NNodes(...) functions.
static void GradX(const TPZFMatrix< REAL > &nodes, TPZVec< T > &loc, TPZFMatrix< T > &gradx)
Compute gradient of x mapping from element nodes and local parametric coordinates.
void Write(TPZStream &buf, int withclassid) const override
Writes this object to the TPZStream buffer. Include the classid if withclassid = true.
static void X(const TPZFMatrix< REAL > &nodes, TPZVec< T > &loc, TPZVec< T > &x)
Compute x mapping from element nodes and local parametric coordinates.
static void VectorialProduct(TPZVec< REAL > &v1, TPZVec< REAL > &v2, TPZVec< REAL > &result)
Method which creates a geometric boundary condition element based on the current geometric element...
static std::string TypeName()
Returns the type name of the element.
pztopology::TPZQuadrilateral Top
int Zero() override
Makes Zero all the elements.
Groups all classes defining the structure of the master element.
int ClassId() const override
Creates a geometric element according to the type of the father element.
Defines the behaviour of all geometric elements. GeometryTPZGeoEl is the common denominator for all g...
Contains TPZMatrixclass which implements full matrix (using column major representation).
#define DebugStop()
Returns a message to user put a breakpoint in.
Contains the TPZQuadrilateral class which defines the topology of a quadrilateral element...
TPZGeoQuad()
Empty constructor.
int64_t Rows() const
Returns number of rows.
Contains the TPZNodeRep class which implements ... Clase intermediaria que guarda.
Implements the geometry of a quadrilateral element. Geometry.
static void InsertExampleElement(TPZGeoMesh &gmesh, int matid, TPZVec< REAL > &lowercorner, TPZVec< REAL > &size)
create an example element based on the topology
TPZGeoQuad(const TPZGeoQuad &cp, TPZGeoMesh &)
Copy constructor.
Implements ... Geometry Topology.
void Read(TPZStream &buf, void *context) override
read objects from the stream
This class implements a geometric mesh for the pz environment. Geometry.
static void TShape(const TPZVec< T > &loc, TPZFMatrix< T > &phi, TPZFMatrix< T > &dphi)
Compute the shape being used to construct the x mapping from local parametric coordinates.
Defines the topology of a quadrilateral element. Topology Sides 0 to 3 are vertices, sides 4 to 7 are lines, side 8 is the quadrilateral.
int64_t Cols() const
Returns number of cols.
int Resize(const int64_t newRows, const int64_t wCols) override
Redimension a matrix, but maintain your elements.
Defines the interface for saving and reading data. Persistency.
TPZGeoQuad(TPZVec< int64_t > &nodeindexes)
Constructor with list of nodes.
Groups all classes which model the geometry.
TPZQuadrilateral()
Default constructor.
const TVar & GetVal(const int64_t row, const int64_t col) const override
Get values without bounds checking This method is faster than "Get" if DEBUG is defined.
static bool IsLinearMapping(int side)
Non abstract class which implements full matrices with preallocated storage with (N+1) entries...