9 #ifndef __PZ__TPZCompElLagrange__ 10 #define __PZ__TPZCompElLagrange__ 59 fDef[0].fConnect[0] = connect1;
60 fDef[0].fConnect[1] = connect2;
61 fDef[0].fIdf[0] = idf1;
62 fDef[0].fIdf[1] = idf2;
63 mesh.
ConnectVec()[connect1].IncrementElConnected();
64 mesh.
ConnectVec()[connect2].IncrementElConnected();
78 TPZCompEl(mesh,0,index), fDef(Dependencies)
137 std::map<int64_t,int64_t> & gl2lcConMap,
138 std::map<int64_t,int64_t> & gl2lcElMap)
const override;
143 return 2*fDef.
size();
152 if (i>=0 && i < 2*fDef.
size()) {
153 return fDef[i/2].fConnect[i%2];
179 for (int64_t i=0; i<fDef.
size(); i++) {
180 connectindexes.insert(fDef[i].
fConnect[0]);
181 connectindexes.insert(fDef[i].fConnect[1]);
192 if (inode >= 0 && inode < 2*fDef.
size()) {
193 fDef[inode/2].fConnect[inode%2] = index;
Represents a graphical mesh used for post processing purposes. Post processing.
Represents a set of shape functions associated with a computational element/side. Computational Eleme...
Implements a vector class which allows to use external storage provided by the user. Utility.
virtual ~TPZCompElLagrange()
Contains declaration of TPZCompEl class which defines the interface of a computational element...
virtual int64_t ConnectIndex(int i) const override
Returns the index of the ith connectivity of the element.
virtual void CalcStiff(TPZElementMatrix &ek, TPZElementMatrix &ef) override
Computes the element stifness matrix and right hand side.
int ClassId() const override
Define the class id associated with the class.
This class implements a simple vector storage scheme for a templated class T. Utility.
REAL val(STATE &number)
Returns value of the variable.
virtual int Dimension() const override
Dimension of the element.
virtual TPZCompEl * Clone(TPZCompMesh &mesh) const override
Method for creating a copy of the element.
TPZCompElLagrange(TPZCompMesh &mesh, int64_t connect1, int idf1, int64_t connect2, int idf2, int64_t &index)
TPZCompElLagrange(TPZCompMesh &mesh, const TPZCompEl ©, std::map< int64_t, int64_t > &gl2lcElMap)
Put a copy of the element in the patch mesh.
virtual TPZCompEl * ClonePatchEl(TPZCompMesh &mesh, std::map< int64_t, int64_t > &gl2lcConMap, std::map< int64_t, int64_t > &gl2lcElMap) const override
Method for creating a copy of the element in a patch mesh.
int64_t size() const
Returns the number of elements of the vector.
#define DebugStop()
Returns a message to user put a breakpoint in.
virtual int NConnects() const override
Returns the number of nodes of the element.
unsigned int NShape() const
TPZAdmChunkVector< TPZConnect > & ConnectVec()
Return a reference to the connect pointers vector.
Contains declaration of TPZCompMesh class which is a repository for computational elements...
unsigned char NState() const
Number of state variables associated with the connect.
TPZCompElLagrange(TPZCompMesh &mesh, const TPZCompEl ©, int64_t &index)
Copy of the element in the new mesh with alocated index.
This class associates an element matrix with the coeficients of its contribution in the global stiffn...
virtual void SetConnectIndex(int inode, int64_t index) override
Set the index i to node inode.
TPZCompElLagrange(const TPZCompElLagrange ©)
TPZManVector< TLagrange, 3 > fDef
TPZCompElLagrange(TPZCompMesh &mesh, const TPZVec< TLagrange > &Dependencies, int64_t &index)
Implements computational mesh. Computational Mesh.
TPZCompElLagrange(TPZCompMesh &mesh, const TPZCompEl ©)
Put a copy of the element in the referred mesh.
int fIdf[2]
Degree of freedom which is connected.
void InitializeElementMatrix(TPZElementMatrix &ek, TPZElementMatrix &ef)
Computes the element right hand side.
void EvaluateError(std::function< void(const TPZVec< REAL > &loc, TPZVec< STATE > &val, TPZFMatrix< STATE > &deriv)> fp, TPZVec< REAL > &, bool store_error) override
Performs an error estimate on the elemen.
virtual void BuildCornerConnectList(std::set< int64_t > &connectindexes) const override
adds the connect indexes associated with base shape functions to the set
Defines the interface of a computational element. Computational Element.
int64_t fConnect[2]
Which connects are linked by a Lagrange multiplier.
void CreateGraphicalElement(TPZGraphMesh &, int) override
Creates corresponding graphical element(s) if the dimension matches graphical elements are used to ge...