72 static std::string
TypeName() {
return "Linear";}
122 int nrow = nodes.
Rows();
123 for(
int i = 0; i < nrow; i++)
125 x[i] = nodes.
GetVal(i,0)*(1.-xi)*0.5+nodes.
GetVal(i,1)*(1.+xi)*0.5;
134 int nrow = nodes.
Rows();
135 int ncol = nodes.
Cols();
143 for(
int i = 0; i < ncol; i++)
145 for(
int j = 0; j < nrow; j++)
147 gradx(j,0) += nodes.
GetVal(j,i)*dphi(0,i);
void Read(TPZStream &buf, void *context) override
read objects from the stream
TPZGeoLinear()
Empty constructor.
static void Jacobian(const TPZFMatrix< REAL > &nodes, TPZVec< REAL > ¶m, TPZFMatrix< REAL > &jacobian, TPZFMatrix< REAL > &axes, REAL &detjac, TPZFMatrix< REAL > &jacinv)
Compute the jacoabina associated to the x mapping from local parametric coordinates.
Implements a line. Utility.
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.
Templated vector implementation.
Defines enum MElementType and contains the implementation of MElementType_NNodes(...) functions.
Implements the geometry of a one dimensional linear element. Geometry.
TPZGeoLinear(const TPZGeoLinear &cp, std::map< int64_t, int64_t > &gl2lcNdMap)
Constructor with node map.
static bool IsLinearMapping(int side)
answer if the element side is a linear map
static void InsertExampleElement(TPZGeoMesh &gmesh, int matid, TPZVec< REAL > &lowercorner, TPZVec< REAL > &size)
create an example element based on the topology
void Write(TPZStream &buf, int withclassid) const override
Writes this object to the TPZStream buffer. Include the classid if withclassid = true.
TPZGeoLinear(TPZVec< int64_t > &nodeindexes)
Constructor with list of nodes.
int ClassId() const override
Method which creates a geometric boundary condition element based on the current geometric element...
int Zero() override
Makes Zero all the elements.
Groups all classes defining the structure of the master 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).
int64_t Rows() const
Returns number of rows.
Contains the TPZNodeRep class which implements ... Clase intermediaria que guarda.
Defines the topology of a line element. Topology Sides 0 and 1 are vertices, side 2 is the line...
Implements ... Geometry Topology.
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.
This class implements a geometric mesh for the pz environment. Geometry.
static void X(const TPZFMatrix< REAL > &nodes, TPZVec< T > &loc, TPZVec< T > &x)
Compute X mapping from element nodes and local parametric coordinates.
static std::string TypeName()
Returns the type name of the element.
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.
TPZGeoLinear(const TPZGeoLinear &cp)
Copy constructor.
Defines the interface for saving and reading data. Persistency.
Contains the TPZLine class which defines the topology of a line element.
Groups all classes which model the geometry.
TPZGeoLinear(const TPZGeoLinear &cp, TPZGeoMesh &)
Copy 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.