6 #ifndef TPZLINEARCONVECTION_H 7 #define TPZLINEARCONVECTION_H 20 virtual int ClassId()
const override;
34 virtual int NFluxes()
override {
return 2;}
64 virtual void Print(std::ostream &out = std::cout)
override;
76 int numbersol = data.
sol.
size();
90 virtual void SetData(std::istream &data)
override;
97 #endif //TPZLINEARCONVECTION_H virtual void SetData(std::istream &data) override
Reads data of the material from a istream (file data)
virtual int NStateVariables() const override
Returns the number of state variables associated with the material.
clarg::argBool bc("-bc", "binary checkpoints", false)
TPZLinearConvection(TPZLinearConvection ©)
Copy constructor.
TPZGradSolVec dsol
vector of the derivatives of the solution at the integration point
virtual int Dimension() const override
Returns the integrable dimension of the material.
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...
Implements a linear scalar convection equation with modified SUPG difusion.
virtual int ClassId() const override
Define the class id associated with the class.
This abstract class defines the behaviour which each derived class needs to implement.
int64_t size() const
Returns the number of elements of the vector.
virtual void Print(std::ostream &out=std::cout) override
Print out the data associated with the material.
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.
TPZFNMatrix< 9, REAL > axes
axes indicating the directions of the derivatives of the shapefunctions
virtual int NSolutionVariables(int var) override
Returns the number of variables associated with the variable indexed by var.
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 NFluxes() override
Returns the number of components which form the flux function.
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 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 Solution(TPZVec< STATE > &Sol, TPZFMatrix< STATE > &DSol, TPZFMatrix< REAL > &axes, int var, TPZVec< STATE > &Solout) override
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 TPZMaterial * NewMaterial() override
To create another material of the same type.
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...
TPZSolVec sol
vector of the solutions at the integration point
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 > &ef) override
It computes a contribution to the residual vector at one integration point.