23 static LoggerPtr logger(Logger::getLogger(
"pz.material"));
41 out << __PRETTY_FUNCTION__ << std::endl;
77 if(var == 0) Solout = Sol;
81 for(
int i=0; i<
fDim; i++){
113 if (fDim < 1 || fDim >3) {
125 if (fDim < 1 || fDim >3) {
141 int phr = phi.
Rows();
144 v2[0] = bc.
Val2()(0,0);
154 for(in = 0 ; in < phr; in++) {
155 ef(in,0) += (STATE)(
gBigNumber* phi(in,0) * weight) * v2[0];
156 for (jn = 0 ; jn < phr; jn++) {
157 ek(in,jn) +=
gBigNumber * phi(in,0) * phi(jn,0) * weight;
162 std::cout<<
"Not implemented yet!"<<std::endl;
165 std::cout<<
"Not implemented yet!"<<std::endl;
virtual int ClassId() const override
Unique identifier for serialization purposes.
virtual void Solution(TPZMaterialData &data, int var, TPZVec< STATE > &Solout)
Returns the solution associated with the var index based on the finite element approximation.
virtual void Execute(const TPZVec< REAL > &x, TPZVec< TVar > &f, TPZFMatrix< TVar > &df)
Performs function computation.
Contains definitions to LOGPZ_DEBUG, LOGPZ_INFO, LOGPZ_WARN, LOGPZ_ERROR and LOGPZ_FATAL, and the implementation of the inline InitializePZLOG(string) function using log4cxx library or not. It must to be called out of "#ifdef LOG4CXX" scope.
TPZManVector< REAL, 3 > x
value of the coordinate at the integration point
Implements a vector class which allows to use external storage provided by the user. Utility.
clarg::argBool bc("-bc", "binary checkpoints", false)
Templated vector implementation.
virtual int VariableIndex(const std::string &name)
Returns the variable index associated with the name.
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
void Write(TPZStream &buf, int withclassid) const override
Saves the element data to a stream.
TPZGradSolVec dsol
vector of the derivatives of the solution at the integration point
Declarates the TPZBlock<REAL>class which implements block matrices.
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.
REAL val(STATE &number)
Returns value of the variable.
Contains the TPZMatPoisson3d class.
TPZFMatrix< STATE > & Val2(int loadcase=0)
TPZFNMatrix< 220, REAL > phi
vector of shapefunctions (format is dependent on the value of shapetype)
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...
virtual void Print(std::ostream &out=std::cout)
Prints out the data associated with the material.
This abstract class defines the behaviour which each derived class needs to implement.
Contains the TPZBndCond class which implements a boundary condition for TPZMaterial objects...
TPZAutoPointer< TPZFunction< STATE > > & ForcingFunction()
Returns a procedure as source function for the material.
int64_t size() const
Returns the number of elements of the vector.
void Read(TPZStream &buf, void *context) override
Reads the element data from a stream.
virtual void Write(const bool val)
#define DebugStop()
Returns a message to user put a breakpoint in.
This class defines the boundary condition for TPZMaterial objects.
int64_t Rows() const
Returns number of rows.
TPZFNMatrix< 9, REAL > axes
axes indicating the directions of the derivatives of the shapefunctions
Contains the TPZMaterialData class which implements an interface between TPZCompEl::CalcStiff and TPZ...
virtual int HasForcingFunction()
Directive that gives true if the material has a forcing function.
static REAL gBigNumber
Big number to penalization method, used for Dirichlet conditions.
int32_t Hash(std::string str)
virtual void Read(TPZStream &buf, void *context) override
Reads the element data from a stream.
int ClassId() const override
Unique identifier for serialization purposes.
virtual int NSolutionVariables(int var)
Returns the number of variables associated with the variable indexed by var.
int fDim
Problem dimension.
Contains the TPZIntPoints class which defines integration rules.
Defines the interface for saving and reading data. Persistency.
Contains the declaration of TPZFlopCounter class and TPZCounter struct.
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.
TPZSolVec sol
vector of the solutions at the integration point
virtual void Read(bool &val)