44 virtual void Print(std::ostream & out)
override;
46 virtual std::string
Name()
override {
return "TPZMaterialTest3D"; }
70 virtual int NFluxes()
override {
return 3;}
96 virtual int ClassId()
const override;
101 virtual void Write(
TPZStream &buf,
int withclassid)
const override;
virtual void Solution(TPZMaterialData &data, int var, TPZVec< STATE > &Solout)
Returns the solution associated with the var index based on the finite element approximation.
virtual int ClassId() const override
Define the class id associated with the class.
virtual void ContributeBC(TPZMaterialData &data, 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...
virtual void Print(std::ostream &out) override
Prints the object data structure.
virtual int NFluxes() override
Returns the number of components which form the flux function.
clarg::argBool bc("-bc", "binary checkpoints", false)
virtual void Solution(TPZVec< STATE > &Sol, TPZFMatrix< STATE > &DSol, TPZFMatrix< REAL > &axes, int var, TPZVec< STATE > &Solout) override
virtual void Contribute(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ef) override
It computes a contribution to the residual vector at one integration point.
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.
virtual std::string Name() override
Returns the name of the material.
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 void Contribute(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef)=0
It computes a contribution to the stiffness matrix and load vector at one integration point...
static int geq3
Cedric : para testes no programa main 3dmaterial.c.
void SetMaterial(TPZFMatrix< STATE > &xfin)
Set the flow.
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...
virtual 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...
This abstract class defines the behaviour which each derived class needs to implement.
Contains TPZMatrixclass which implements full matrix (using column major representation).
Implements a three dimensional linear material for test.
This class defines the boundary condition for TPZMaterial objects.
virtual int Dimension() const override
Returns the integrable dimension of the material.
virtual void ContributeBC(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ef, TPZBndCond &bc) override
It computes a contribution to the stiffness matrix and load vector at one BC integration point...
virtual void ContributeBC(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef, TPZBndCond &bc)=0
It computes a contribution to the stiffness matrix and load vector at one BC integration point...
virtual int NStateVariables() const override
Returns the number of state variables associated with the material.
TPZMaterialTest3D()
Default empty constructor.
virtual int VariableIndex(const std::string &name) override
virtual int NSolutionVariables(int var) override
Returns the number of variables associated with the variable indexed by var.
TPZFMatrix< STATE > fXf
Source.
Defines the interface for saving and reading data. Persistency.
virtual TPZMaterial * NewMaterial() override
To create another material of the same type.
virtual void Read(TPZStream &buf, void *context) override
read objects from the stream
virtual ~TPZMaterialTest3D()
Destructor.
virtual void Write(TPZStream &buf, int withclassid) const override
Writes this object to the TPZStream buffer. Include the classid if withclassid = true.