25 static LoggerPtr logdata(Logger::getLogger(
"pz.material.elasticity.data"));
50 std::cout<<
" Passou pelo Contribute"<<std::endl;
61 int phc,phr,dphc,dphr,efr,efc,ekr,ekc;
70 if(phc != 1 || dphr != 2 || phr != dphc ||
71 ekr != phr*2 || ekc != phr*2 ||
73 PZError <<
"\nTPZElasticityMaterial.contr, inconsistent input data : \n" <<
74 "phi.Cols() = " << phi.
Cols() <<
" dphi.Cols() = " << dphi.
Cols() <<
75 " phi.Rows = " << phi.
Rows() <<
" dphi.Rows = " <<
76 dphi.
Rows() <<
"\nek.Rows() = " << ek.
Rows() <<
" ek.Cols() = " 78 "\nef.Rows() = " << ef.
Rows() <<
" ef.Cols() = " 96 REAL nu2 = (1-2*
fnu)/2;
99 for(
int in = 0; in < phr; in++ ) {
100 du(0,0) = dphi(0,in)*axes(0,0)+dphi(1,in)*axes(1,0);
101 du(1,0) = dphi(0,in)*axes(0,1)+dphi(1,in)*axes(1,1);
103 for (
int col = 0; col < efc; col++)
108 for(
int jn = 0; jn < phr; jn++ ) {
109 du(0,1) = dphi(0,jn)*axes(0,0)+dphi(1,jn)*axes(1,0);
110 du(1,1) = dphi(0,jn)*axes(0,1)+dphi(1,jn)*axes(1,1);
115 ek(2*in,2*jn) += weight * (
116 nu1 * du(0,0)*du(0,1)+ nu2 * du(1,0)*du(1,1)
119 ek(2*in,2*jn+1) += weight * (
120 fnu*du(0,0)*du(1,1)+ nu2*du(1,0)*du(0,1)
123 ek(2*in+1,2*jn) += weight * (
124 fnu*du(1,0)*du(0,1)+ nu2*du(0,0)*du(1,1)
127 ek(2*in+1,2*jn+1) += weight * (
128 nu1*du(1,0)*du(1,1)+ nu2*du(0,0)*du(0,1)
133 ek(2*in,2*jn) += weight * (
137 ek(2*in,2*jn+1) += weight * (
141 ek(2*in+1,2*jn) += weight * (
145 ek(2*in+1,2*jn+1) += weight * (
165 std::cout<<
"Passou ContributeInterface"<< std::endl;
169 std::cout<<
"Passou ContributeBCInterface"<< std::endl;
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
REAL fPreStressXX
Pre Stress Tensor - Sigma XX.
Implements a vector class which allows to use external storage provided by the user. Utility.
virtual void Contribute(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef) override
Calculates the element stiffness matrix.
clarg::argBool bc("-bc", "binary checkpoints", false)
REAL ff[3]
Forcing vector.
This class implements a two dimensional elastic material to hybrid method. It is derived from the cla...
MShapeFunctionType fShapeType
REAL fnu
Poison coeficient.
REAL fPreStressXY
Pre Stress Tensor - Sigma XY.
virtual ~TPZElasticityHybridMaterial()
Default destructor.
TPZFNMatrix< 220, REAL > phi
vector of shapefunctions (format is dependent on the value of shapetype)
TPZFNMatrix< 660, REAL > dphix
values of the derivative of the shape functions
Contains declaration of TPZElementMatrix struct which associates an element matrix with the coeficien...
int fPlaneStress
Uses plain stress.
Contains the TPZBndCond class which implements a boundary condition for TPZMaterial objects...
virtual int ClassId() const override
Unique identifier for serialization purposes.
REAL fE
Elasticity modulus.
Contains TPZMatrixclass which implements full matrix (using column major representation).
This class defines the boundary condition for TPZMaterial objects.
Contains the TPZElasticityMaterial class which implements a two dimensional elastic material in plane...
REAL fPreStressYY
Pre Stress Tensor - Sigma YY.
void ContributeVecShape(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef)
Calculates the element stiffness matrix - simulate compaction as aditional variable.
int64_t Rows() const
Returns number of rows.
TPZFNMatrix< 9, REAL > axes
axes indicating the directions of the derivatives of the shapefunctions
REAL E()
Returns the elasticity modulus E.
int32_t Hash(std::string str)
Contains TPZMatrix<TVar>class, root matrix class.
TPZAutoPointer< TPZFunction< STATE > > fForcingFunction
Pointer to forcing function, it is the right member at differential equation.
virtual int NStateVariables() const override
Returns the number of state variables associated with the material.
This class implements a two dimensional elastic material in plane stress or strain.
int64_t Cols() const
Returns number of cols.
TPZElasticityHybridMaterial()
Default constructor.
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...
Contains the TPZElasticityHybridMaterial class which implements a two dimensional elastic material to...
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 int ClassId() const override
Unique identifier for serialization purposes.
#define PZError
Defines the output device to error messages and the DebugStop() function.