6 #ifndef TPZCONDENSEDCOMPELH 7 #define TPZCONDENSEDCOMPELH 19 #include <Accelerate/Accelerate.h> 57 virtual void Print(std::ostream &out = std::cout)
const override;
158 std::map<int64_t,int64_t> & gl2lcConMap,
159 std::map<int64_t,int64_t> & gl2lcElMap)
const override;
241 virtual bool HasMaterial(
const std::set<int> &materialids)
const override;
261 std::cout <<
"This method should not be called. " << __PRETTY_FUNCTION__ << std::endl;
266 virtual int ClassId()
const override;
virtual TPZVec< STATE > IntegrateSolution(int var) const
Compute the integral of a variable.
Represents a graphical mesh used for post processing purposes. Post processing.
virtual void TransferMultiphysicsElementSolution() override
virtual void ComputeSolution(TPZVec< REAL > &qsi, TPZSolVec &sol, TPZGradSolVec &dsol, TPZFMatrix< REAL > &axes) override
Computes solution and its derivatives in the local coordinate qsi.
virtual void EvaluateError(std::function< void(const TPZVec< REAL > &loc, TPZVec< STATE > &val, TPZFMatrix< STATE > &deriv)> func, TPZVec< REAL > &errors, bool store_error)
Performs an error estimate on the elemen.
virtual void CreateGraphicalElement(TPZGraphMesh &graphmesh, int dimension) override
Creates corresponding graphical element(s) if the dimension matches graphical elements are used to ge...
clarg::argInt dimension("-d", "Matrices dimension M x M", 1000)
Contains declaration of TPZCompEl class which defines the interface of a computational element...
int ComputeIntegrationOrder() const override
virtual int Dimension() const =0
Dimension of the element.
virtual bool NeedsComputing(const std::set< int > &materialids)
return true if the element has a variational statement associated with the material ids ...
virtual int64_t ConnectIndex(int i) const override
Returns the index of the ith connectivity of the element.
TPZCompEl * ReferenceCompEl()
virtual void CreateGraphicalElement(TPZGraphMesh &graphmesh, int dimension)
Creates corresponding graphical element(s) if the dimension matches graphical elements are used to ge...
REAL val(STATE &number)
Returns value of the variable.
Contains TPZMatRed class which implements a simple substructuring of a linear system of equations...
virtual int Dimension() const override
Dimension of the element.
virtual void LoadElementReference()
Loads the geometric element reference.
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.
virtual void LoadSolution() override
Loads the solution within the internal data structure of the element.
virtual void TransferMultiphysicsElementSolution()
virtual void BuildCornerConnectList(std::set< int64_t > &connectindexes) const override
adds the connect indexes associated with base shape functions to the set
TPZMatRed< STATE, TPZFMatrix< STATE > > fCondensed
Contains declaration of TPZElementMatrix struct which associates an element matrix with the coeficien...
virtual int NConnects() const override
Returns the number of nodes of the element.
void Unwrap()
unwrap the condensed element from the computational element and delete the condensed element ...
virtual TPZCompEl * Clone(TPZCompMesh &mesh) const override
Method for creating a copy of the element.
TPZCompEl * fReferenceCompEl
virtual int ClassId() const override
Define the class id associated with the class.
#define DebugStop()
Returns a message to user put a breakpoint in.
virtual void SetConnectIndex(int inode, int64_t index) override
Set the index i to node inode.
Free store vector implementation.
virtual bool NeedsComputing(const std::set< int > &materialids) override
return true if the element has a variational statement associated with the material ids ...
virtual bool HasMaterial(const std::set< int > &materialids) const override
Verifies if the material associated with the element is contained in the set.
virtual TPZVec< STATE > IntegrateSolution(const std::string &varname, const std::set< int > &matids) override
Compute the integral of a variable defined by the string if the material id is included in matids...
Class which implements an element which condenses the internal connects.
TPZManVector< int64_t, 27 > fIndexes
virtual TPZVec< STATE > IntegrateSolution(int var) const override
Compute the integral of a variable defined by the string if the material id is included in matids...
void EvaluateError(std::function< void(const TPZVec< REAL > &loc, TPZVec< STATE > &val, TPZFMatrix< STATE > &deriv)> func, TPZVec< REAL > &errors, bool store_errors) override
Performs an error estimate on the elemen.
virtual int64_t ConnectIndex(int i) const =0
Returns the index of the ith connectivity of the element.
This class associates an element matrix with the coeficients of its contribution in the global stiffn...
virtual void LoadElementReference() override
Loads the geometric element reference.
virtual int NConnects() const =0
Returns the number of nodes of the element.
Implements a simple substructuring of a linear system of equations, composed of 4 submatrices...
virtual void CalcStiff(TPZElementMatrix &ek, TPZElementMatrix &ef) override
Computes the element stifness matrix and right hand side.
Implements computational mesh. Computational Mesh.
virtual void Print(std::ostream &out=std::cout) const override
Prints element data.
TPZCondensedCompEl(TPZCompEl *ref, bool keepmatrix=true)
virtual void Assemble() override
Assemble the stiffness matrix in locally kept datastructure.
Defines the interface of a computational element. Computational Element.
virtual ~TPZCondensedCompEl()
void SetKeepMatrix(bool keep)
Set the flag that determines whether the matrix needs to be kept or not.
virtual void CalcResidual(TPZElementMatrix &ef) override
Computes the element right hand side.