52 virtual void Print(std::ostream & out)
override;
54 virtual std::string
Name()
override {
return "TPZConsLawTest"; }
85 virtual int NFluxes()
override {
return 1;}
92 int numbersol = data.
sol.
size();
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.
void SetMaterial(TPZFMatrix< STATE > &xfin)
int fTest
Integer for integration degree of the initial solution.
clarg::argBool bc("-bc", "binary checkpoints", false)
virtual void Contribute(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ef) override
Contributes to the residual vector and tangent matrix the volume-based quantities.
Only to test a material as conservation law. It was used for testing purposes.
Templated vector implementation.
void ComputeSolRight(TPZVec< STATE > &solr, TPZVec< STATE > &soll, TPZVec< REAL > &normal, TPZBndCond *bcright)
void degree(int root, int adj_num, int adj_row[], int adj[], int mask[], int deg[], int *iccsze, int ls[], int node_num)
TPZGradSolVec dsol
vector of the derivatives of the solution at the integration point
virtual void ContributeInterface(TPZMaterialData &data, TPZMaterialData &dataleft, TPZMaterialData &dataright, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef) override
Contributes to the residual vector and tangent matrix the face-based quantities.
virtual void Contribute(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef) override
Contributes to the residual vector and tangent matrix the volume-based quantities.
virtual int NStateVariables() const override
Number of state variables according to the dimension.
virtual int VariableIndex(const std::string &name) override
virtual void Solution(TPZVec< STATE > &Sol, TPZFMatrix< STATE > &DSol, TPZFMatrix< REAL > &axes, int var, TPZVec< STATE > &Solout) override
virtual void Print(std::ostream &out) override
Prints the state of internal variables.
void ComputeSolLeft(TPZVec< STATE > &solr, TPZVec< STATE > &soll, TPZVec< REAL > &normal, TPZBndCond *bcleft)
int64_t size() const
Returns the number of elements of the vector.
virtual void Flux(TPZVec< REAL > &x, TPZVec< STATE > &Sol, TPZFMatrix< STATE > &DSol, TPZFMatrix< REAL > &axes, TPZVec< STATE > &flux) override
Compute the value of the flux function to be used by ZZ error estimator.
STATE B(int i, TPZVec< REAL > &x)
Contains TPZMatrixclass which implements full matrix (using column major representation).
#define DebugStop()
Returns a message to user put a breakpoint in.
virtual void Contribute(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef) override=0
Contributes to the residual vector and tangent matrix the volume-based quantities.
This class defines the boundary condition for TPZMaterial objects.
TPZConsLawTest(int nummat, TPZVec< STATE > B, int artdiff, STATE delta_t, int dim, STATE delta, int test=0)
TPZFNMatrix< 9, REAL > axes
axes indicating the directions of the derivatives of the shapefunctions
virtual void ContributeBC(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef, TPZBndCond &bc) override=0
Contributes to the residual vector the boundary conditions.
virtual int NFluxes() override
Returns the number of fluxes associated to this material.
virtual ~TPZConsLawTest()
STATE T(int jn, TPZVec< REAL > &x)
Implements the interface for conservation laws, keeping track of the timestep as well.
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 void ContributeBC(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ef, TPZBndCond &bc) override
Contributes to the residual vector the boundary conditions.
REAL CFL()
Returns the CFL number.
Contains the TPZConservationLaw class which implements the interface for conservation laws...
TPZSolVec sol
vector of the solutions at the integration point
virtual int NSolutionVariables(int var) override
Returns the number of variables associated with the variable indexed by var.
virtual std::string Name() override
Returns the material name.
virtual void ContributeBC(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef, TPZBndCond &bc) override
Contributes to the residual vector the boundary conditions.