9 #ifndef __PZ__TPZMatElasticity2D__ 10 #define __PZ__TPZMatElasticity2D__ 64 virtual int ClassId()
const override;
93 virtual void Print(std::ostream & out)
override;
95 virtual std::string
Name()
override {
return "TPZMatElasticity2D"; }
111 m_E = (mu*(3.0*Lambda+2.0*mu))/(Lambda+mu);
112 m_nu = (Lambda)/(2*(Lambda+mu));
139 m_lambda = (Ey*nu)/((1+nu)*(1-2*nu));
140 m_mu = Ey/(2*(1+nu));
159 void SetPreStress(REAL SigmaXX, REAL SigmaXY, REAL SigmaYY, REAL SigmaZZ)
238 virtual void Write(
TPZStream &buf,
int withclassid)
const override;
void SetPreStress(REAL SigmaXX, REAL SigmaXY, REAL SigmaYY, REAL SigmaZZ)
Set Initial Stress.
virtual void Write(TPZStream &buf, int withclassid) const 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 int NStateVariables() const override
Returns the number of state variables associated with the material.
REAL m_E
Elasticity modulus.
clarg::argBool bc("-bc", "binary checkpoints", false)
TPZMatElasticity2D & operator=(const TPZMatElasticity2D ©)
virtual void Print(std::ostream &out) override
Prints out the data associated with the material.
virtual std::string Name() override
Returns the name of the material.
int m_plane_stress
plain stress directive
void SetParameters(REAL Lambda, REAL mu, REAL fx, REAL fy)
Set parameters of elastic material:
Templated vector implementation.
REAL m_s0_xx
Initial Stress.
virtual int ClassId() const override
Define the class id associated with the class.
virtual void Solution(TPZMaterialData &data, TPZVec< TPZMaterialData > &dataleftvec, TPZVec< TPZMaterialData > &datarightvec, int var, TPZVec< STATE > &Solout, TPZCompEl *Left, TPZCompEl *Right) override
Returns the solution associated with the var index based on the finite element approximation around o...
REAL val(STATE &number)
Returns value of the variable.
int Dimension() const override
Returns the integrable dimension of the material.
virtual void FillDataRequirements(TPZMaterialData &data) override
Fill material data parameter with necessary requirements for the.
void SetElasticity(REAL Ey, REAL nu)
Set parameters of elastic material:
virtual int NSolutionVariables(int var) override
Returns the number of variables associated with the variable indexed by var.
This abstract class defines the behaviour which each derived class needs to implement.
virtual void Errors(TPZVec< REAL > &x, TPZVec< STATE > &sol, TPZFMatrix< STATE > &dsol, TPZFMatrix< REAL > &axes, TPZVec< STATE > &flux, TPZVec< STATE > &uexact, TPZFMatrix< STATE > &duexact, TPZVec< REAL > &val) override
Computes the error due to the difference between the interpolated flux and the flux computed based o...
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.
void Read(TPZStream &buf, void *context) override
#define DebugStop()
Returns a message to user put a breakpoint in.
This class defines the boundary condition for TPZMaterial objects.
void ComputeSigma(const TPZFMatrix< STATE > &dudx, TPZFMatrix< STATE > &sigma)
compute the stress tensor as a function of the solution gradient
REAL m_nu
Poison coeficient.
void ContributeVec(TPZMaterialData &data, REAL weight, TPZFMatrix< STATE > &ek, TPZFMatrix< STATE > &ef)
REAL m_lambda
first Lame Parameter
STATE GetLambda()
Get lame parameters Lambda first lame Mu Second lame.
virtual TPZMaterial * NewMaterial() override
To create another material of the same type.
void GetElasticParameters(REAL &Ey, REAL &nu, REAL &Lambda, REAL &G)
void SetPlaneStrain()
Set plane strain problem.
REAL m_mu
Second Lame Parameter.
TPZManVector< STATE, 2 > m_f
Forcing vector.
virtual void FillBoundaryConditionDataRequirement(int type, TPZMaterialData &data) override
This method defines which parameters need to be initialized in order to compute the contribution of t...
virtual int VariableIndex(const std::string &name) override
Defines the interface for saving and reading data. Persistency.
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 to multip...
virtual ~TPZMatElasticity2D()
STATE GetEyoung()
Get Eyoung and Poisson m_E young modulus m_nu Poisson ratio.
void SetPlaneStress()
Set plane stress problem.
Defines the interface of a computational element. Computational Element.
Description Linear elastic equations.
void SetElasticParameters(REAL Eyoung, REAL nu)
Set parameters of elastic material: