32 TPZMat1dLin(
int num) :
TPZRegisterClassId(&
TPZMat1dLin::
ClassId),
TPZMaterial(num) , fXk(1,1,0.), fXc(1,1,0.), fXb(1,1,0.), fXf(1,1,0.) {
36 TPZMaterial(copy), fXk(copy.fXk), fXc(copy.fXc), fXb(copy.fXb), fXf(copy.fXf)
64 void Print(std::ostream & out)
override ;
73 virtual std::string
Name()
override {
return "TPZMat1dLin"; }
116 virtual int ClassId()
const override ;
TPZMat1dLin & operator=(const TPZMat1dLin ©)
TPZMat1dLin(const TPZMat1dLin ©)
clarg::argBool bc("-bc", "binary checkpoints", false)
void Print(std::ostream &out) override
Prints out the data associated with the material.
int NFluxes() override
Returns the number of components which form the flux function.
Templated vector implementation.
TPZMaterial & operator=(const TPZMaterial ©)
operator =
virtual void ContributeBC(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef, TPZBndCond &bc) override
Computes contribution to the stiffness matrix and right hand side at the integration point of a bound...
virtual void Flux(TPZVec< REAL > &x, TPZVec< STATE > &u, TPZFMatrix< STATE > &dudx, TPZFMatrix< REAL > &axes, TPZVec< STATE > &fl) override
Computes the value of the flux function to be used by ZZ error estimator.
This class implements a simple vector storage scheme for a templated class T. Utility.
void SetMaterial(TPZFMatrix< STATE > &xkin, TPZFMatrix< STATE > &xcin, TPZFMatrix< STATE > &xbin, TPZFMatrix< STATE > &xfin)
virtual void ContributeBC(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ef, TPZBndCond &bc) override
Computes contribution to the stiffness matrix and right hand side at the integration point of a bound...
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...
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).
This class defines the boundary condition for TPZMaterial objects.
int64_t Rows() const
Returns number of rows.
virtual std::string Name() override
Returns the name of the material.
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)=0
It computes a contribution to the stiffness matrix and load vector at one BC integration point...
This class associates an element matrix with the coeficients of its contribution in the global stiffn...
virtual void Contribute(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef) override
Computes contribution to the stiffness matrix and right hand side at an integration point...
virtual void Contribute(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ef) override
Computes contribution to the stiffness matrix and right hand side at an integration point...
Implements a one dimensional linear problem.
virtual TPZMaterial * NewMaterial() override
To create another material of the same type.
virtual int Dimension() const override
Returns the integrable dimension of the material.
virtual int NStateVariables() const override
Returns the number of state variables associated with the material.