28 if(timeStep < 0 || timeStep > 1)
30 PZError <<
"TPZConservationLaw::TPZConservationLaw time step parameter > 1 , default 1.0\n";
34 if(dim < 1 || dim > 3)
36 PZError <<
"TPZConservationLaw::TPZConservationLaw (abort) error dimension = " << dim << endl;
51 out <<
"name of material : " <<
Name() <<
"\n";
52 out <<
"properties : \n";
53 out <<
"\tdimension: " <<
fDim << endl;
54 out <<
"\ttime step: " <<
fTimeStep << endl;
55 out <<
"\tCFL: " <<
fCFL << endl;
57 out <<
"\tGamma: " <<
fGamma << endl;
64 out <<
"Advanced Contribution\n";
67 out <<
"Last state Contribution\n";
70 out <<
"Contribution undefined\n";
Defines the interface which material objects need to implement for discontinuous Galerkin formulation...
void Read(TPZStream &buf, void *context) override
Read the element data from a stream.
TPZResidualType fResidualType
Variable to indicate the type of residual to be computed by Assemble.
void Write(TPZStream &buf, int withclassid) const override
Saves the element data to a stream.
virtual void Print(std::ostream &out=std::cout)
Prints out the data associated with the material.
Contains declaration of TPZElementMatrix struct which associates an element matrix with the coeficien...
int fDim
Dimension of the problem.
Contains the TPZBndCond class which implements a boundary condition for TPZMaterial objects...
void Read(TPZStream &buf, void *context) override
Reads the element data from a stream.
virtual void Write(const bool val)
Contains TPZMatrixclass which implements full matrix (using column major representation).
#define DebugStop()
Returns a message to user put a breakpoint in.
TPZConservationLaw(int nummat, REAL timeStep, int dim)
Simple constructor with material id, time step (dt) and dimension of the spatial domain.
virtual ~TPZConservationLaw()
Default destructor.
Contains TPZMatrix<TVar>class, root matrix class.
virtual std::string Name() override=0
Returns the material name.
void Write(TPZStream &buf, int withclassid) const override
Save the element data to a stream.
REAL fTimeStep
Time step used for time integration.
REAL fGamma
Ratio between specific heat is constant and the specific heat the constant volume of a polytropic gas...
Defines the interface for saving and reading data. Persistency.
Contains the TPZConservationLaw class which implements the interface for conservation laws...
TPZContributeTime fContributionTime
Variable indicating the context of the solution.
virtual void Print(std::ostream &out) override
Prints the state of internal variables.
#define PZError
Defines the output device to error messages and the DebugStop() function.
virtual void Read(bool &val)