9 #ifndef PZ_mixedpoisson_h 10 #define PZ_mixedpoisson_h 81 virtual void Print(std::ostream & out)
override;
83 virtual std::string
Name()
override{
return "TPZMixedPoisson"; }
91 for (
int i=0; i<3; i++) {
102 if(K.
Rows() != 3 || invK.
Rows() != 3)
132 fIsStabilized =
true;
146 fPermeabilityFunction = fp;
182 int nref = datavec.
size();
183 for (
int iref = 0; iref <nref; iref++) {
184 datavec[iref].SetAllRequirements(
false);
185 datavec[iref].fNeedsSol =
true;
187 datavec[0].fNeedsNormal =
true;
190 for(
int iref = 0; iref<nref; iref++){
191 datavec[iref].fNeedsSol =
true;
204 virtual int ClassId()
const override;
virtual int NEvalErrors() override
Returns the number of norm errors. Default is 3: energy, L2 and H1.
TPZFNMatrix< 9, REAL > fInvK
inverse of the permeability tensor.
virtual TPZMaterial * NewMaterial() override
To create another material of the same type.
REAL fvisc
fluid viscosity
clarg::argBool bc("-bc", "binary checkpoints", false)
virtual void FillBoundaryConditionDataRequirement(int type, TPZVec< TPZMaterialData > &datavec) override
This method defines which parameters need to be initialized in order to compute the contribution of t...
void SetViscosity(REAL visc)
void GetPermeability(TPZVec< REAL > &x, TPZFMatrix< REAL > &K, TPZFMatrix< REAL > &invK)
return the permeability and compute it if there is permeability function
virtual void ContributeBC(TPZVec< TPZMaterialData > &datavec, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef, TPZBndCond &bc) override
It computes a contribution to the stiffness matrix and load vector at one BC integration point to mul...
REAL fh2
Coeficient that multiplies the Stabilization term fdelta1.
void SetStabilizationCoeficients(REAL delta1, REAL delta2)
TPZAutoPointer< TPZFunction< STATE > > PermeabilityFunction()
virtual std::string Name() override
Returns the name of the material.
Contains the TPZMatPoisson3d class.
void GetMaxPermeability(REAL &perm)
virtual int VariableIndex(const std::string &name) override
virtual void FillDataRequirements(TPZVec< TPZMaterialData > &datavec) override
Fill material data parameter with necessary requirements for the Contribute method. Here, in base class, all requirements are considered as necessary. Each derived class may optimize performance by selecting only the necessary data.
This abstract class defines the behaviour which each derived class needs to implement.
int Zero() override
Makes Zero all the elements.
int64_t size() const
Returns the number of elements of the vector.
virtual void Solution(TPZVec< TPZMaterialData > &datavec, int var, TPZVec< STATE > &Solout) override
It return a solution to multiphysics simulation.
STATE fK
Coeficient which multiplies the Laplacian operator.
void SetPermeabilityFunction(TPZAutoPointer< TPZFunction< STATE > > fp)
#define DebugStop()
Returns a message to user put a breakpoint in.
This class defines the boundary condition for TPZMaterial objects.
int64_t Rows() const
Returns number of rows.
void SetInternalFlux(REAL flux)
REAL ff
Forcing function value.
Material to solve a mixed poisson problem 2d by multiphysics simulation.
void SetPermeability(REAL perm)
virtual void Contribute(TPZVec< TPZMaterialData > &datavec, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef) override
It computes a contribution to the stiffness matrix and load vector at one integration point to multip...
TPZFNMatrix< 9, REAL > fTensorK
permeability tensor. Coeficient which multiplies the gradient operator
virtual int NStateVariables() const override
Returns the number of state variables associated with the material.
TPZAutoPointer< TPZFunction< STATE > > fPermeabilityFunction
post-processing procedure for error estimation as Ainsworth
void SetPermeabilityTensor(const TPZFMatrix< REAL > &K, const TPZFMatrix< REAL > &invK)
virtual int NSolutionVariables(int var) override
Returns the number of variables associated with the variable indexed by var.
virtual ~TPZMixedPoisson()
virtual void Print(std::ostream &out) override
Prints out the data associated with the material.
Contains the TPZDiscontinuousGalerkin class which implements the interface for discontinuous Galerkin...
void SetStabilizedMethod()
bool fIsStabilized
Choose Stabilized method.
REAL fdelta1
Coeficient of Stabilization.
virtual void Errors(TPZVec< TPZMaterialData > &data, TPZVec< STATE > &u_exact, TPZFMatrix< STATE > &du_exact, TPZVec< REAL > &errors) override
virtual int ClassId() const override
Unique identifier for serialization purposes.
TPZMixedPoisson & operator=(const TPZMixedPoisson ©)
This class implements a reference counter mechanism to administer a dynamically allocated object...