7 #ifndef TPZMatDualHybridPoissonH 8 #define TPZMatDualHybridPoissonH 51 REAL
Beta(
int p, REAL size)
const{
52 return p*p*this->fBetaZero/size;
65 virtual void Print(std::ostream & out)
override;
67 virtual std::string
Name()
override {
return "TPZMatDualHybridPoisson"; }
88 virtual int NFluxes()
override {
return 2;}
106 virtual int ClassId()
const override;
Defines the interface which material objects need to implement for discontinuous Galerkin formulation...
clarg::argBool bc("-bc", "binary checkpoints", false)
void SetDimension(int dim)
virtual int Dimension() const override
Returns the integrable dimension of the material.
REAL fXf
Forcing function value.
virtual int NStateVariables() const override
Returns the number of state variables associated with the material.
virtual void Read(TPZStream &buf, void *context) override
Reads the element data from a stream.
virtual int VariableIndex(const std::string &name) override
Returns the variable index associated with the name.
This abstract class defines the behaviour which each derived class needs to implement.
virtual void Solution(TPZMaterialData &data, int var, TPZVec< STATE > &Solout) override
Returns the solution associated with the var index based on the finite element approximation.
virtual int ClassId() const override
Unique identifier for serialization purposes.
virtual void Flux(TPZVec< REAL > &x, TPZVec< STATE > &Sol, TPZFMatrix< STATE > &DSol, TPZFMatrix< REAL > &axes, TPZVec< STATE > &flux) override
Computes the value of the flux function to be used by ZZ error estimator.
REAL Beta(int p, REAL size) const
virtual void ContributeInterface(TPZMaterialData &data, TPZMaterialData &dataleft, TPZMaterialData &dataright, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef) override
void
virtual int NFluxes() override
Returns the number of components which form the flux function.
virtual void ContributeBC(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef, TPZBndCond &bc) override
void
Contains TPZMatrixclass which implements full matrix (using column major representation).
#define DebugStop()
Returns a message to user put a breakpoint in.
This class defines the boundary condition for TPZMaterial objects.
virtual TPZMaterial * NewMaterial() override
To create another material of the same type.
virtual void Contribute(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef) override
It computes a contribution to the stiffness matrix and load vector at one integration point...
void Errors(TPZVec< REAL > &x, TPZVec< STATE > &u, TPZFMatrix< STATE > &dudx, TPZFMatrix< REAL > &axes, TPZVec< STATE > &flux, TPZVec< STATE > &u_exact, TPZFMatrix< STATE > &du_exact, TPZVec< REAL > &values) override
Computes the error due to the difference between the interpolated flux and the flux computed based o...
virtual int NSolutionVariables(int var) override
Returns the number of variables associated with the variable indexed by var.
virtual ~TPZMatDualHybridPoisson() override
virtual void Print(std::ostream &out) override
Prints out the data associated with the material.
virtual void Write(TPZStream &buf, int withclassid) const override
Saves the element data to a stream.
Defines the interface for saving and reading data. Persistency.
TPZMatDualHybridPoisson()
virtual void ContributeBCInterface(TPZMaterialData &data, TPZMaterialData &dataleft, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef, TPZBndCond &bc) override
void
Contains the TPZDiscontinuousGalerkin class which implements the interface for discontinuous Galerkin...
virtual std::string Name() override
Returns the name of the material.
virtual int NEvalErrors() override
Returns the number of norm errors. Default is 3: energy, L2 and H1.