7 #ifndef TPZNULLMATERIALH 8 #define TPZNULLMATERIALH 54 virtual std::string
Name()
override {
return "TPZNullMaterial"; }
82 virtual void Print(std::ostream &out = std::cout)
override;
145 virtual int ClassId()
const override;
148 virtual void Write(
TPZStream &buf,
int withclassid)
const override;
virtual int ClassId() const override
Unique identifier for serialization purposes.
virtual std::string Name() override
Returns the name of the material.
virtual void Contribute(TPZVec< TPZMaterialData > &datavec, REAL weight, TPZFMatrix< STATE > &ef) override
It computes a contribution to the stiffness matrix and load vector at one integration point to multip...
clarg::argBool bc("-bc", "binary checkpoints", false)
TPZMaterial & operator=(const TPZMaterial ©)
operator =
virtual int NSolutionVariables(int var) override
Returns the number of variables associated with the variable indexed by var.
void ErrorsHdiv(TPZMaterialData &data, TPZVec< STATE > &u_exact, TPZFMatrix< STATE > &du_exact, TPZVec< REAL > &values) override
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 Print(std::ostream &out=std::cout) override
Prints out the data associated with the material.
virtual void Write(TPZStream &buf, int withclassid) const override
Saves the element data to a stream.
int fNState
Number of state variables.
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...
This abstract class defines the behaviour which each derived class needs to implement.
void SetNStateVariables(int nstate)
TPZNullMaterial(const TPZNullMaterial ©)
virtual int Dimension() const override
Returns the integrable dimension of the material.
This class defines the boundary condition for TPZMaterial objects.
int64_t Rows() const
Returns number of rows.
void SetDimension(int dim)
virtual TPZMaterial * NewMaterial() override
To create another material of the same type.
virtual void Read(TPZStream &buf, void *context) override
Reads the element data from a stream.
virtual int NStateVariables() const override
Returns the number of state variables associated with the material.
virtual void ContributeBC(TPZVec< TPZMaterialData > &datavec, 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 to mul...
int fDim
Problem dimension.
TPZNullMaterial & operator=(const TPZNullMaterial ©)
Defines the interface for saving and reading data. Persistency.
virtual ~TPZNullMaterial()
Default destructor.
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 int VariableIndex(const std::string &name) override
Returns the variable index associated with the name.
TPZNullMaterial()
Creates a material object and inserts it in the vector of material pointers of the mesh...
Defines the interface of a computational element. Computational Element.
virtual int NFluxes() override
Returns the number of components which form the flux function.