10 #if !defined(KRATOS_SOLID_ELEMENT_H_INCLUDED)
11 #define KRATOS_SOLID_ELEMENT_H_INCLUDED
21 #include "custom_utilities/element_utilities.hpp"
48 class KRATOS_API(SOLID_MECHANICS_APPLICATION) SolidElement
97 double IntegrationWeight;
100 double CurrentRadius;
101 double ReferenceRadius;
116 Matrix ConstitutiveMatrix;
134 pNcontainer=&rNcontainer;
139 pProcessInfo=&rProcessInfo;
159 return *pProcessInfo;
164 const unsigned int& number_of_nodes )
172 IntegrationWeight = 1;
185 StrainVector.
resize(voigt_size,
false);
186 StressVector.
resize(voigt_size,
false);
187 N.resize(number_of_nodes,
false);
193 B.resize(voigt_size,
dimension*number_of_nodes,
false);
198 ConstitutiveMatrix.
resize(voigt_size, voigt_size,
false);
233 struct LocalSystemComponents
244 Flags CalculationFlags;
385 const std::vector<ConstitutiveLaw::Pointer>& rValues,
395 std::vector<ConstitutiveLaw::Pointer>& rValues,
578 std::string
Info()
const override
580 std::stringstream buffer;
581 buffer <<
"Large Displacement Element #" << Id();
588 rOStream <<
"Large Displacement Element #" << Id();
594 GetGeometry().PrintData(rOStream);
616 std::vector<ConstitutiveLaw::Pointer> mConstitutiveLawVector;
633 unsigned int increment)
const;
665 double& rIntegrationWeight);
674 double& rIntegrationWeight);
685 double& rIntegrationWeight);
694 double& rIntegrationWeight);
704 double& rIntegrationWeight);
711 double& rIntegrationWeight);
720 double& rIntegrationWeight);
728 double& rIntegrationWeight);
736 const int & rPointNumber);
743 const int & rPointNumber);
755 if( this->IsDefined(SELECTED) )
756 return this->Is(SELECTED);
766 Flags& rCalculationFlags);
792 const double& rPointNumber);
798 const double& rPointNumber);
810 const double& rPointNumber);
816 const double& rPointNumber);
894 void save(
Serializer& rSerializer)
const override;
Definition: constitutive_law.h:47
StressMeasure
Definition: constitutive_law.h:69
@ StressMeasure_PK2
Definition: constitutive_law.h:71
std::size_t SizeType
Definition: element.h:94
std::vector< DofType::Pointer > DofsVectorType
Definition: element.h:100
std::vector< std::size_t > EquationIdVectorType
Definition: element.h:98
std::size_t IndexType
Definition: flags.h:74
IntegrationMethod
Definition: geometry_data.h:76
std::size_t SizeType
Definition: geometry_data.h:173
Definition: amatrix_interface.h:41
void resize(std::size_t NewSize1, std::size_t NewSize2, bool preserve=0)
Definition: amatrix_interface.h:224
PointerVector is a container like stl vector but using a vector to store pointers to its data.
Definition: pointer_vector.h:72
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
Large Displacement Lagrangian Element for 3D and 2D geometries. (base class)
Definition: solid_element.hpp:49
KRATOS_DEFINE_LOCAL_FLAG(COMPUTE_LHS_MATRIX)
ElementData ElementDataType
Type for element variables.
Definition: solid_element.hpp:268
void InitializeConstitutiveLaw()
void CalculateLeftHandSide(MatrixType &rLeftHandSideMatrix, const ProcessInfo &rCurrentProcessInfo) override
Element::Pointer Clone(IndexType NewId, NodesArrayType const &ThisNodes) const override
void CalculateSecondDerivativesRHS(VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
void FinalizeSolutionStep(const ProcessInfo &rCurrentProcessInfo) override
KRATOS_DEFINE_LOCAL_FLAG(COMPUTE_RHS_VECTOR)
void CalculateOnIntegrationPoints(const Variable< Vector > &rVariable, std::vector< Vector > &rOutput, const ProcessInfo &rCurrentProcessInfo) override
virtual void CalculateKinematics(ElementDataType &rVariables, const double &rPointNumber)
virtual void CalculateAndAddDynamicLHS(MatrixType &rLeftHandSideMatrix, ElementDataType &rVariables, const ProcessInfo &rCurrentProcessInfo, double &rIntegrationWeight)
virtual void CalculateAndAddDynamicRHS(VectorType &rRightHandSideVector, ElementDataType &rVariables, const ProcessInfo &rCurrentProcessInfo, double &rIntegrationWeight)
virtual void InitializeSystemMatrices(MatrixType &rLeftHandSideMatrix, VectorType &rRightHandSideVector, Flags &rCalculationFlags)
void SetValuesOnIntegrationPoints(const Variable< Vector > &rVariable, const std::vector< Vector > &rValues, const ProcessInfo &rCurrentProcessInfo) override
virtual void CalculateAndAddLHS(LocalSystemComponents &rLocalSystem, ElementDataType &rVariables, double &rIntegrationWeight)
virtual void CalculateAndAddInternalForces(VectorType &rRightHandSideVector, ElementDataType &rVariables, double &rIntegrationWeight)
void InitializeNonLinearIteration(const ProcessInfo &rCurrentProcessInfo) override
void ResetConstitutiveLaw() override
void CalculateOnIntegrationPoints(const Variable< double > &rVariable, std::vector< double > &rOutput, const ProcessInfo &rCurrentProcessInfo) override
std::string Info() const override
Turn back information as a string.
Definition: solid_element.hpp:578
void IncreaseIntegrationMethod(IntegrationMethod &rThisIntegrationMethod, unsigned int increment) const
KRATOS_DEFINE_LOCAL_FLAG(FINALIZED_STEP)
virtual double & CalculateTotalMass(double &rTotalMass, const ProcessInfo &rCurrentProcessInfo)
virtual void CalculateElementalSystem(LocalSystemComponents &rLocalSystem, const ProcessInfo &rCurrentProcessInfo)
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: solid_element.hpp:592
virtual double & CalculateIntegrationWeight(double &rIntegrationWeight)
void CalculateFirstDerivativesContributions(MatrixType &rLeftHandSideMatrix, VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
bool IsSliver()
Definition: solid_element.hpp:753
void GetSecondDerivativesVector(Vector &rValues, int Step=0) const override
virtual Matrix & CalculateTotalDeltaPosition(Matrix &rDeltaPosition)
virtual void FinalizeStepVariables(ElementDataType &rVariables, const double &rPointNumber)
ConstitutiveLaw ConstitutiveLawType
Definition: solid_element.hpp:56
void EquationIdVector(EquationIdVectorType &rResult, const ProcessInfo &rCurrentProcessInfo) const override
void AddExplicitContribution(const VectorType &rRHSVector, const Variable< VectorType > &rRHSVariable, const Variable< array_1d< double, 3 > > &rDestinationVariable, const ProcessInfo &rCurrentProcessInfo) override
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: solid_element.hpp:586
SolidElement()
Empty constructor needed for serialization.
GeometryData::SizeType SizeType
Type for size.
Definition: solid_element.hpp:64
GeometryData::IntegrationMethod IntegrationMethod
Type definition for integration methods.
Definition: solid_element.hpp:62
virtual void CalculateAndAddExternalForces(VectorType &rRightHandSideVector, ElementDataType &rVariables, Vector &rVolumeForce, double &rIntegrationWeight)
Element::Pointer Create(IndexType NewId, NodesArrayType const &ThisNodes, PropertiesType::Pointer pProperties) const override
virtual Matrix & CalculateDeltaPosition(Matrix &rDeltaPosition)
void CalculateMassMatrix(MatrixType &rMassMatrix, const ProcessInfo &rCurrentProcessInfo) override
ConstitutiveLawType::Pointer ConstitutiveLawPointerType
Pointer type for constitutive laws.
Definition: solid_element.hpp:58
int Check(const ProcessInfo &rCurrentProcessInfo) const override
virtual void InitializeElementData(ElementDataType &rVariables, const ProcessInfo &rCurrentProcessInfo)
IntegrationMethod GetIntegrationMethod() const override
void SetValuesOnIntegrationPoints(const Variable< Matrix > &rVariable, const std::vector< Matrix > &rValues, const ProcessInfo &rCurrentProcessInfo) override
void CalculateDampingMatrix(MatrixType &rDampingMatrix, const ProcessInfo &rCurrentProcessInfo) override
void FinalizeNonLinearIteration(const ProcessInfo &rCurrentProcessInfo) override
~SolidElement() override
Destructor.
void CalculateOnIntegrationPoints(const Variable< Matrix > &rVariable, std::vector< Matrix > &rOutput, const ProcessInfo &rCurrentProcessInfo) override
virtual void CalculateMaterialResponse(ElementDataType &rVariables, ConstitutiveLaw::Parameters &rValues, const int &rPointNumber)
void Initialize(const ProcessInfo &rCurrentProcessInfo) override
void GetValuesVector(Vector &rValues, int Step=0) const override
SolidElement(SolidElement const &rOther)
Copy constructor.
virtual void TransformElementData(ElementDataType &rVariables, const double &rPointNumber)
void PrintElementCalculation(LocalSystemComponents &rLocalSystem, ElementDataType &rVariables)
void SetValuesOnIntegrationPoints(const Variable< ConstitutiveLaw::Pointer > &rVariable, const std::vector< ConstitutiveLaw::Pointer > &rValues, const ProcessInfo &rCurrentProcessInfo) override
void CalculateSecondDerivativesLHS(MatrixType &rLeftHandSideMatrix, const ProcessInfo &rCurrentProcessInfo) override
void SetValuesOnIntegrationPoints(const Variable< double > &rVariable, const std::vector< double > &rValues, const ProcessInfo &rCurrentProcessInfo) override
void InitializeSolutionStep(const ProcessInfo &rCurrentProcessInfo) override
void CalculatePerturbedLeftHandSide(MatrixType &rLeftHandSideMatrix, const ProcessInfo &rCurrentProcessInfo)
SolidElement(IndexType NewId, GeometryType::Pointer pGeometry)
Default constructors.
void CalculateSecondDerivativesContributions(MatrixType &rLeftHandSideMatrix, VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
virtual void CalculateAndAddRHS(LocalSystemComponents &rLocalSystem, ElementDataType &rVariables, Vector &rVolumeForce, double &rIntegrationWeight)
SolidElement(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties)
void InitializeExplicitContributions()
virtual void CalculateKinetics(ElementDataType &rVariables, const double &rPointNumber)
virtual void SetElementData(ElementDataType &rVariables, ConstitutiveLaw::Parameters &rValues, const int &rPointNumber)
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(SolidElement)
Counted pointer of SolidElement.
virtual void CalculateAndAddKuug(MatrixType &rLeftHandSideMatrix, ElementDataType &rVariables, double &rIntegrationWeight)
void CalculateRightHandSide(VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
virtual void CalculateAndAddKuum(MatrixType &rLeftHandSideMatrix, ElementDataType &rVariables, double &rIntegrationWeight)
ConstitutiveLawType::StressMeasure StressMeasureType
StressMeasure from constitutive laws.
Definition: solid_element.hpp:60
void GetDofList(DofsVectorType &rElementalDofList, const ProcessInfo &rCurrentProcessInfo) const override
virtual double & CalculateVolumeChange(double &rVolumeChange, ElementDataType &rVariables)
virtual void CalculateDynamicSystem(LocalSystemComponents &rLocalSystem, const ProcessInfo &rCurrentProcessInfo)
virtual Vector & CalculateVolumeForce(Vector &rVolumeForce, ElementDataType &rVariables)
virtual SizeType GetDofsSize() const
void GetFirstDerivativesVector(Vector &rValues, int Step=0) const override
SolidElement & operator=(SolidElement const &rOther)
Assignment operator.
void CalculateLocalSystem(MatrixType &rLeftHandSideMatrix, VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
pybind11::list CalculateOnIntegrationPoints(TObject &dummy, const Variable< TDataType > &rVariable, const ProcessInfo &rProcessInfo)
Definition: add_mesh_to_python.cpp:142
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
KratosZeroVector< double > ZeroVector
Definition: amatrix_interface.h:561
AMatrix::IdentityMatrix< double > IdentityMatrix
Definition: amatrix_interface.h:564
KratosZeroMatrix< double > ZeroMatrix
Definition: amatrix_interface.h:559
T & noalias(T &TheMatrix)
Definition: amatrix_interface.h:484
H
Definition: generate_droplet_dynamics.py:257
F
Definition: hinsberg_optimization.py:144
int dimension
Definition: isotropic_damage_automatic_differentiation.py:123
def load(f)
Definition: ode_solve.py:307
int j
Definition: quadrature.py:648
J
Definition: sensitivityMatrix.py:58
N
Definition: sensitivityMatrix.py:29
B
Definition: sensitivityMatrix.py:76
Definition: constitutive_law.h:189
Definition: solid_element.hpp:83
void SetShapeFunctionsGradients(const GeometryType::ShapeFunctionsGradientsType &rDN_De)
Definition: solid_element.hpp:127
void SetShapeFunctions(const Matrix &rNcontainer)
Definition: solid_element.hpp:132
const GeometryType::ShapeFunctionsGradientsType & GetShapeFunctionsGradients()
Definition: solid_element.hpp:147
const ProcessInfo & GetProcessInfo()
Definition: solid_element.hpp:157
void SetProcessInfo(const ProcessInfo &rProcessInfo)
Definition: solid_element.hpp:137
const Matrix & GetShapeFunctions()
Definition: solid_element.hpp:152
void Initialize(const unsigned int &voigt_size, const unsigned int &dimension, const unsigned int &number_of_nodes)
Definition: solid_element.hpp:162
Definition: solid_element.hpp:233
void SetRightHandSideVector(VectorType &rRightHandSideVector)
Definition: solid_element.hpp:251
MatrixType & GetLeftHandSideMatrix()
Definition: solid_element.hpp:257
VectorType & GetRightHandSideVector()
Definition: solid_element.hpp:259
void SetLeftHandSideMatrix(MatrixType &rLeftHandSideMatrix)
Definition: solid_element.hpp:249