6 #ifndef PZELCHDIVBOUND_H_ 7 #define PZELCHDIVBOUND_H_ 22 template<
class TSHAPE>
46 std::map<int64_t,int64_t> & gl2lcConMap,
47 std::map<int64_t,int64_t> & gl2lcElMap);
82 return TSHAPE::Dimension;
94 virtual void SetSideOrient(
int side,
int sideorient)
override;
105 virtual void SetSideOrder(
int side,
int order)
override;
144 std::cout <<
"****************** Overwriting a constraint\n";
146 fRestraint = restraint;
153 std::list<TPZOneShapeRestraint> loc;
155 loc.push_back(fRestraint);
177 virtual void Print(std::ostream &out)
const override;
181 template<
class TSHAPE>
Contains declaration of TPZIntelGen class which implements a generic computational element...
Implements computational element and a side. Computational Element.
virtual int NConnectShapeF(int connect, int order) const override
Returns the number of shapefunctions associated with a connect.
void ComputeShape(TPZVec< REAL > &intpoint, TPZMaterialData &data) override
Compute Shape for boundary of a hdiv computational element.
void Read(TPZStream &buf, void *context) override
Reads the element data from a stream.
virtual MElementType Type() override
Return the type of the element.
TPZCompElHDivBound2()
Default constructor.
virtual int SideConnectLocId(int node, int side) const override
Returns the local node number of icon along is.
TPZCompEl * CreateRefHDivBoundQuadEl(TPZGeoEl *gel, TPZCompMesh &mesh, int64_t &index)
Creates computational quadrilateral element for HDiv approximate space.
bool IsInitialized() const
Definition of the retraint associated with the top of the pyramid.
virtual int ClassId() const override
returns the unique identifier for reading/writing objects to streams
virtual std::list< TPZOneShapeRestraint > GetShapeRestraints() const override
Return a list with the shape restraints.
virtual void SetSideOrient(int side, int sideorient) override
It set the normal orientation of the element by the side. Only side that has dimension equal to my di...
virtual int NCornerConnects() const override
Returns the number of corner connects of the element.
void Append(TPZFMatrix< REAL > &u1, TPZFMatrix< REAL > &u2, TPZFMatrix< REAL > &u12)
Method to append vectors.
virtual int NSideConnects(int side) const override
Returns the number of dof nodes along side iside.
void Write(TPZStream &buf, int withclassid) const override
Saves the element data to a stream.
virtual void GetInterpolationOrder(TPZVec< int > &ord) override
Identifies the interpolation order on the interior of the element.
TPZOneShapeRestraint fRestraint
Restraint on a single shape function for pyramid implementation.
virtual void SetCreateFunctions(TPZCompMesh *mesh) override
Set create function in TPZCompMesh to create elements of this type.
void Shape(TPZVec< REAL > &pt, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi) override
Compute the shape function at the integration point.
virtual void SetConnectIndex(int i, int64_t connectindex) override
Sets the node pointer of node i to nod.
TPZCompEl * CreateRefHDivBoundLinearEl(TPZGeoEl *gel, TPZCompMesh &mesh, int64_t &index)
Creates computational linear element for HDiv approximate space.
virtual int PreferredSideOrder(int iside) override
Returns the preferred order of the polynomial along side iside.
int ClassId() const override
Returns the unique identifier for reading/writing objects to streams.
Defines the behaviour of all geometric elements. GeometryTPZGeoEl is the common denominator for all g...
virtual TPZCompEl * ClonePatchEl(TPZCompMesh &mesh, std::map< int64_t, int64_t > &gl2lcConMap, std::map< int64_t, int64_t > &gl2lcElMap) const override
Create a copy of the given element. The clone copy have the connect indexes mapped to the local clone...
virtual int Dimension() const override
Returns the dimension of the element.
TPZCompEl * CreateRefHDivBoundPointEl(TPZGeoEl *gel, TPZCompMesh &mesh, int64_t &index)
Creates computational point element for HDiv approximate space.
virtual int ConnectOrder(int connect) const override
virtual int EffectiveSideOrder(int side) const override
Returns the actual interpolation order of the polynomial along the side.
virtual void Print(std::ostream &out) const override
Prints the relevant data of the element to the output stream.
int64_t Index() const
Returns element index of the mesh fELementVec list.
Implements a generic computational element to HDiv scope. Computational Element.
void FirstShapeIndex(TPZVec< int64_t > &Index)
Returns the vector index of the first index shape associate to element.
int32_t Hash(std::string str)
virtual void ResetShapeRestraints() override
Return a list with the shape restraints.
virtual int GetSideOrient(int side) override
It returns the normal orientation of the reference element by the side. Only side that has dimension ...
virtual TPZCompEl * Clone(TPZCompMesh &mesh) const override
Method for creating a copy of the element.
virtual void SideShapeFunction(int side, TPZVec< REAL > &point, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi) override
Compute the values of the shape function of the side.
MElementType
Define the element types.
virtual void InitMaterialData(TPZMaterialData &data) override
Initialize a material data and its attributes based on element dimension, number of state variables a...
Implements computational mesh. Computational Mesh.
void ComputeShapeIndex(TPZVec< int > &sides, TPZVec< int64_t > &shapeindex)
Compute the correspondence between the normal vectors and the shape functions.
Defines the interface for saving and reading data. Persistency.
virtual void SetSideOrder(int side, int order) override
Sets the interpolation order of side to order.
TPZCompEl * CreateRefHDivBoundTriangleEl(TPZGeoEl *gel, TPZCompMesh &mesh, int64_t &index)
Creates computational triangular element for HDiv approximate space.
Defines the interface of a computational element. Computational Element.
void IndexShapeToVec(TPZVec< int > &fVectorSide, TPZVec< std::pair< int, int64_t > > &IndexVecShape)
Returns a matrix index of the shape and vector associate to element.
virtual ~TPZCompElHDivBound2()
Default destructor.
virtual int NConnects() const override
Returns the number of connect objects of the element.
virtual void AddShapeRestraint(TPZOneShapeRestraint restraint) override
Add a shape restraint (meant to fit the pyramid to restraint.
Implements a generic computational element. Computational Element.