21 else PZError <<
"Error! - " << __PRETTY_FUNCTION__ << endl;
47 out <<
"name of material : " <<
Name() <<
"\n";
48 out <<
"Base Class properties : \n";
56 int numbersol = dataleft.
dsol.
size();
69 int numbersol = dataleft.
dsol.
size();
143 for(i = 0; i < dim; i++){
145 dir[i] *= -1. * K0 * this->
fAlpha;
155 int nrows = dsolL.
Rows();
156 int ncols = dsolL.
Cols();
158 for(i = 0; i < nrows; i++)
for(j = 0; j < ncols; j++) dsol(i,j) = 0.5 * ( dsolL(i,j) + dsolR(i,j) );
Defines the interface which material objects need to implement for discontinuous Galerkin formulation...
Contains the TPZCoupledTransportDarcyBC class.
TPZMatPoisson3d * GetCurrentMaterial() const
int ClassId() const override
Unique identifier for serialization purposes.
virtual void ContributeBCInterface(TPZMaterialData &data, TPZMaterialData &dataleft, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef, TPZBndCond &bc) override
It computes a contribution to stiffness matrix and load vector at one BC integration point...
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...
clarg::argBool bc("-bc", "binary checkpoints", false)
virtual void ContributeInterface(TPZMaterialData &data, TPZMaterialData &dataleft, TPZMaterialData &dataright, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef) override
It computes a contribution to stiffness matrix and load vector at one integration point...
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.
TPZMaterial * fMaterialRefs[2]
virtual void ContributeInterface(TPZMaterialData &data, TPZMaterialData &dataleft, TPZMaterialData &dataright, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef) override
It computes a contribution to stiffness matrix and load vector at one integration point...
TPZMatPoisson3d * GetMaterial(int eq)
void GetParameters(STATE &diff, REAL &conv, TPZVec< REAL > &convdir)
virtual std::string Name() override
Returns the name of 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...
TPZMatPoisson3d * fMaterials[2]
void UpdateConvectionDir(TPZFMatrix< STATE > &dsol)
virtual int NSolutionVariables(int var) override
Returns the number of variables associated with the variable indexed by var.
static void SetCurrentMaterial(const int i)
TPZGradSolVec dsol
vector of the derivatives of the solution at the integration point
virtual void Resize(const int64_t newsize, const T &object)
Resizes the vector object.
virtual int VariableIndex(const std::string &name) override
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...
Contains the TPZBndCond class which implements a boundary condition for TPZMaterial objects...
int64_t size() const
Returns the number of elements of the vector.
virtual ~TPZCoupledTransportDarcy()
virtual void Contribute(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ef) override
It computes a contribution to the residual vector at one integration point.
virtual int NStateVariables() const override
Returns the number of state variables associated with the material.
virtual void ContributeBCInterface(TPZMaterialData &data, TPZMaterialData &dataleft, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef, TPZBndCond &bc) override
virtual void SetParameters(STATE diff, REAL conv, TPZVec< REAL > &convdir)
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.
Free store vector implementation.
int64_t Rows() const
Returns number of rows.
void UpdateConvectionDirInterface(TPZFMatrix< STATE > &dsolL, TPZFMatrix< STATE > &dsolR)
TPZFNMatrix< 9, REAL > axes
axes indicating the directions of the derivatives of the shapefunctions
virtual int VariableIndex(const std::string &name) override
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...
virtual int Dimension() const override
Returns the integrable dimension of the material.
virtual void Solution(TPZVec< TPZMaterialData > &datavec, int var, TPZVec< STATE > &Solout) override
Returns the solution associated with the var index based on the finite element approximation.
int32_t Hash(std::string str)
Implements two equations where the second one requires the solution of the first. ...
Contains TPZMatrix<TVar>class, root matrix class.
virtual int NSolutionVariables(int var) override
Returns the number of variables associated with the variable indexed by var.
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...
TPZCoupledTransportDarcyBC * CreateBC2(int id)
virtual 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...
void SetAlpha(REAL alpha)
TPZCoupledTransportDarcy(int nummat, int nummat0, int nummat1, int dim)
int64_t Cols() const
Returns number of cols.
Contains the TPZCoupledTransportDarcy class which implements two equations to transport problem...
virtual int ClassId() const override
Unique identifier for serialization purposes.
virtual int NStateVariables() const override
Returns the number of state variables associated with the material.
virtual void Print(std::ostream &out) override
Prints out the data associated with the material.
virtual void Solution(TPZVec< STATE > &Sol, TPZFMatrix< STATE > &DSol, TPZFMatrix< REAL > &axes, int var, TPZVec< STATE > &Solout) override
REAL fAlpha
In second equation: . Here alpha is stored.
TPZSolVec sol
vector of the solutions at the integration point
Non abstract class which implements full matrices with preallocated storage with (N+1) entries...
static int CurrentEquation()
#define PZError
Defines the output device to error messages and the DebugStop() function.