29 fKyx() , fKyy(), fKx0(), fK0x(), fKy0(), fK0y(), fK00(), fXf() {
34 fKxx(copy.fKxx), fKxy(copy.fKxy), fKyx(copy.fKyx), fKyy(copy.fKyy),
35 fKx0(copy.fKx0), fK0x(copy.fK0x), fKy0(copy.fKy0),
36 fK0y(copy.fK0y), fK00(copy.fK00), fXf(copy.fXf){}
40 virtual int Dimension()
const override {
return 2; }
42 void Print(std::ostream & out = std::cout)
override;
64 virtual std::string
Name()
override {
return "TPZMat2dLin"; }
113 virtual int ClassId()
const override;
117 virtual void Write(
TPZStream &buf,
int withclassid)
const override;
void Solution(TPZVec< STATE > &Sol, TPZFMatrix< STATE > &DSol, TPZFMatrix< REAL > &axes, int var, TPZVec< STATE > &Solout) 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 void Contribute(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ef) override
It computes a contribution to the residual vector at one integration point.
virtual int VariableIndex(const std::string &name) override
Returns the variable index associated with the name.
clarg::argBool bc("-bc", "binary checkpoints", false)
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.
This class implements a simple vector storage scheme for a templated class T. Utility.
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 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...
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 ClassId() const override
returns the unique identifier for reading/writing objects to streams
TPZBndCond * OutflowFlux(TPZMaterial *&reference, int bc)
This abstract class defines the behaviour which each derived class needs to implement.
virtual void Write(TPZStream &buf, int withclassid) const override
Saves the element data to a stream.
TPZFMatrix< STATE > & Xf()
virtual int NSolutionVariables(int index) override
Returns the number of variables associated with the variable indexed by var.
virtual int NStateVariables() const override
Returns the number of state variables associated with the material.
Contains TPZMatrixclass which implements full matrix (using column major representation).
virtual TPZMaterial * NewMaterial() override
Creates a copy of the material object.
virtual void Read(TPZStream &buf, void *context) override
Reads the element data from a stream.
This class defines the boundary condition for TPZMaterial objects.
int64_t Rows() const
Returns number of rows.
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...
void ConvectionDiffusion(REAL angle, REAL diff)
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...
int Redim(const int64_t newRows, const int64_t newCols) override
Redimension a matrix and ZERO your elements.
void SetMaterial(TPZFMatrix< STATE > &xkin, TPZFMatrix< STATE > &xcin, TPZFMatrix< STATE > &xfin)
void Print(std::ostream &out=std::cout) override
Prints out the data associated with the material.
This class associates an element matrix with the coeficients of its contribution in the global stiffn...
static REAL angle
Angle in radians to test.
virtual int Dimension() const override
Returns the integrable dimension of the material.
TPZFMatrix< STATE > & Xk()
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.
TPZMat2dLin(TPZMat2dLin ©)
Implements a bi-dimensional linear problem.
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...
Defines the interface for saving and reading data. Persistency.
virtual int NFluxes() override
Returns the number of components which form the flux function.
TPZFMatrix< STATE > & Ck()