3 #ifndef TPZLinearConvecDiffH 4 #define TPZLinearConvecDiffH 53 virtual void Print(std::ostream & out)
override;
55 virtual std::string
Name()
override {
return "TPZLinearConvecDiff"; }
66 virtual int NFluxes()
override {
return 2;}
77 virtual int ClassId()
const override;
virtual void ContributeBC(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef, TPZBndCond &bc) override
void
virtual int NEvalErrors() override
Returns the number of norm errors. Default is 3: energy, L2 and H1.
virtual TPZMaterial * NewMaterial() override
To create another material of the same type.
clarg::argBool bc("-bc", "binary checkpoints", false)
REAL fConvDir[2]
Convection vector.
virtual std::string Name() override
Returns the name of the material.
virtual int NStateVariables() const override
Returns the number of state variables associated with the material.
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 NFluxes() override
Returns the number of components which form the flux function.
STATE fK
Coeficient which multiplies the Laplacian operator.
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 abstract class defines the behaviour which each derived class needs to implement.
virtual int ClassId() const override
Define the class id associated with the class.
virtual void Write(TPZStream &buf, int withclassid) const override
Writes this object to the TPZStream buffer. Include the classid if withclassid = true.
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 int VariableIndex(const std::string &name) override
Returns the variable index associated with the name.
virtual void Print(std::ostream &out) override
Prints out the data associated with the material.
virtual void Read(TPZStream &buf, void *context) override
read objects from the stream
virtual int Dimension() const override
Returns the integrable dimension of the material.
virtual ~TPZLinearConvecDiff()
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...
Defines the interface for saving and reading data. Persistency.
Convecção-difusão linear 2D.
STATE fXf
Forcing function value.
STATE fSD
Multiplication value for the streamline diffusion term.
virtual int NSolutionVariables(int var) override
Returns the number of variables associated with the variable indexed by var.