10 #if !defined(KRATOS_BEAM_ELEMENT_H_INCLUDED)
11 #define KRATOS_BEAM_ELEMENT_H_INCLUDED
21 #include "custom_utilities/element_utilities.hpp"
128 const Matrix* pNcontainer;
196 pNcontainer=&rNcontainer;
202 Directors=&rDirectors;
225 const unsigned int& number_of_nodes )
235 StrainVector.
resize(voigt_size,
false);
236 StressVector.
resize(voigt_size,
false);
237 N.resize(number_of_nodes,
false);
242 B.resize(voigt_size, (
dimension-1) * 3 * number_of_nodes,
false);
243 DN_DX.
resize(number_of_nodes, 1,
false);
244 ConstitutiveMatrix.
resize(voigt_size, voigt_size,
false);
328 BeamElement(
IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties);
374 void GetValuesVector(
Vector& rValues,
int Step = 0)
const override;
379 void GetFirstDerivativesVector(
Vector& rValues,
int Step = 0)
const override;
384 void GetSecondDerivativesVector(
Vector& rValues,
int Step = 0)
const override;
393 void Initialize(
const ProcessInfo& rCurrentProcessInfo)
override;
403 void InitializeNonLinearIteration(
const ProcessInfo& rCurrentProcessInfo)
override;
408 void FinalizeNonLinearIteration(
const ProcessInfo& rCurrentProcessInfo)
override;
413 void FinalizeSolutionStep(
const ProcessInfo& rCurrentProcessInfo)
override;
434 void CalculateRightHandSide(
VectorType& rRightHandSideVector,
const ProcessInfo& rCurrentProcessInfo)
override;
443 void CalculateLeftHandSide(
MatrixType& rLeftHandSideMatrix,
const ProcessInfo& rCurrentProcessInfo)
override;
453 void CalculateSecondDerivativesContributions(
MatrixType& rLeftHandSideMatrix,
463 void CalculateSecondDerivativesLHS(
MatrixType& rLeftHandSideMatrix,
473 void CalculateSecondDerivativesRHS(
VectorType& rRightHandSideVector,
505 std::vector<double>& rOutput,
526 int Check(
const ProcessInfo& rCurrentProcessInfo)
const override;
539 std::string
Info()
const override
541 std::stringstream buffer;
542 buffer <<
"Large Displacement Beam Element #" << Id();
549 rOStream <<
"Large Displacement Beam Element #" << Id();
555 GetGeometry().PrintData(rOStream);
595 unsigned int increment)
const;
604 virtual void CalculateElementalSystem( LocalSystemComponents& rLocalSystem,
611 virtual void CalculateDynamicSystem( LocalSystemComponents& rLocalSystem,
617 virtual unsigned int GetDofsSize()
const;
622 void InitializeSystemMatrices(
MatrixType& rLeftHandSideMatrix,
624 Flags& rCalculationFlags);
630 Vector& MapToInitialLocalFrame(
Vector& rVariable,
unsigned int PointNumber = 0);
635 virtual void MapLocalToGlobal(ElementDataType& rVariables,
Matrix& rVariable);
640 virtual void MapLocalToGlobal(ElementDataType& rVariables,
VectorType& rVector);
664 const unsigned int& rNode);
671 const unsigned int& rNode);
676 virtual void InitializeElementData(ElementDataType & rVariables,
const ProcessInfo& rCurrentProcessInfo);
682 void CalculateSectionProperties(SectionProperties & rSection);
688 virtual void CalculateKinematics(ElementDataType& rVariables,
689 const unsigned int& rPointNumber);
694 virtual void CalculateConstitutiveMatrix(ElementDataType& rVariables);
700 void CalculateMaterialConstitutiveMatrix(
Matrix& rConstitutiveMatrix, ElementDataType& rVariables);
706 virtual void CalculateStressResultants(ElementDataType& rVariables,
const unsigned int& rPointNumber);
711 virtual void CalculateAndAddLHS(LocalSystemComponents& rLocalSystem, ElementDataType& rVariables,
double& rIntegrationWeight);
716 virtual void CalculateAndAddRHS(LocalSystemComponents& rLocalSystem, ElementDataType& rVariables,
Vector& VolumeForce,
double& rIntegrationWeight);
721 virtual double& CalculateIntegrationWeight(
double& rIntegrationWeight);
727 virtual void CalculateAndAddKuum(
MatrixType& rLeftHandSideMatrix,
728 ElementDataType& rVariables,
729 double& rIntegrationWeight);
736 virtual void CalculateAndAddKuug(
MatrixType& rLeftHandSideMatrix,
737 ElementDataType& rVariables,
738 double& rIntegrationWeight);
743 virtual void CalculateAndAddExternalForces(
VectorType& rRightHandSideVector,
744 ElementDataType& rVariables,
746 double& rIntegrationWeight);
752 virtual void CalculateAndAddInertiaLHS(
MatrixType& rLeftHandSideMatrix,
753 ElementDataType& rVariables,
755 double& rIntegrationWeight);
760 virtual void CalculateAndAddInertiaRHS(
VectorType& rRightHandSideVector,
761 ElementDataType& rVariables,
763 double& rIntegrationWeight);
768 virtual void CalculateAndAddInternalForces(
VectorType& rRightHandSideVector,
769 ElementDataType & rVariables,
770 double& rIntegrationWeight);
776 void CalculateLocalAxesMatrix(
Matrix& rRotationMatrix);
787 double& CalculateTotalMass( SectionProperties& Section,
double& rTotalMass );
792 void CalculateInertiaDyadic(SectionProperties& rSection,
Matrix& rInertiaDyadic);
832 void save(
Serializer& rSerializer)
const override;
Beam Element for 2D and 3D space dimensions.
Definition: beam_element.hpp:44
BeamMathUtils< double > BeamMathUtilsType
Type definition for beam utilities.
Definition: beam_element.hpp:58
ConstitutiveLawType::Pointer ConstitutiveLawPointerType
Pointer type for constitutive laws.
Definition: beam_element.hpp:52
BeamElement()
Definition: beam_element.hpp:583
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: beam_element.hpp:547
KRATOS_DEFINE_LOCAL_FLAG(COMPUTE_LHS_MATRIX)
IntegrationMethod mThisIntegrationMethod
Definition: beam_element.hpp:573
Quaternion< double > QuaternionType
Type definition for quaternion.
Definition: beam_element.hpp:60
GeometryData::IntegrationMethod IntegrationMethod
Type definition for integration methods.
Definition: beam_element.hpp:56
KRATOS_DEFINE_LOCAL_FLAG(COMPUTE_RHS_VECTOR)
ElementData ElementDataType
Type for element variables.
Definition: beam_element.hpp:320
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(BeamElement)
Counted pointer of BeamElement.
ConstitutiveLawType::StressMeasure StressMeasureType
StressMeasure from constitutive laws.
Definition: beam_element.hpp:54
QuaternionType mInitialLocalQuaternion
Definition: beam_element.hpp:578
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: beam_element.hpp:553
std::string Info() const override
Turn back information as a string.
Definition: beam_element.hpp:539
KRATOS_DEFINE_LOCAL_FLAG(FINALIZED_STEP)
ConstitutiveLaw ConstitutiveLawType
Definition: beam_element.hpp:50
GeometryData::SizeType SizeType
Type for size.
Definition: beam_element.hpp:62
Definition: beam_math_utilities.hpp:31
Definition: constitutive_law.h:47
StressMeasure
Definition: constitutive_law.h:69
Base class for all Elements.
Definition: element.h:60
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
Variable class contains all information needed to store and retrive data from a data container.
Definition: variable.h:63
Modeler::Pointer Create(const std::string &ModelerName, Model &rModel, const Parameters ModelParameters)
Checks if the modeler is registered.
Definition: modeler_factory.cpp:30
pybind11::list CalculateOnIntegrationPoints(TObject &dummy, const Variable< TDataType > &rVariable, const ProcessInfo &rProcessInfo)
Definition: add_mesh_to_python.cpp:142
void InitializeSolutionStep(ConstructionUtility &rThisUtil, std::string ThermalSubModelPartName, std::string MechanicalSubModelPartName, std::string HeatFluxSubModelPartName, std::string HydraulicPressureSubModelPartName, bool thermal_conditions, bool mechanical_conditions, int phase)
Definition: add_custom_utilities_to_python.cpp:45
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
KratosZeroVector< double > ZeroVector
Definition: amatrix_interface.h:561
KratosZeroMatrix< double > ZeroMatrix
Definition: amatrix_interface.h:559
T & noalias(T &TheMatrix)
Definition: amatrix_interface.h:484
int dimension
Definition: isotropic_damage_automatic_differentiation.py:123
def load(f)
Definition: ode_solve.py:307
def Alpha(n, j)
Definition: quadrature.py:93
int j
Definition: quadrature.py:648
J
Definition: sensitivityMatrix.py:58
N
Definition: sensitivityMatrix.py:29
B
Definition: sensitivityMatrix.py:76
Definition: beam_element.hpp:94
std::vector< Vector > InitialDerivatives
Definition: beam_element.hpp:101
std::vector< Vector > Current
Definition: beam_element.hpp:96
std::vector< Matrix > PreviousNode
Definition: beam_element.hpp:111
std::vector< Matrix > PreviousNodeVelocities
Definition: beam_element.hpp:114
std::vector< Vector > Initial
Definition: beam_element.hpp:100
std::vector< Vector > Previous
Definition: beam_element.hpp:104
std::vector< Matrix > CurrentNode
Definition: beam_element.hpp:110
std::vector< Vector > CurrentDerivatives
Definition: beam_element.hpp:97
std::vector< Matrix > CurrentNodeVelocities
Definition: beam_element.hpp:113
std::vector< Vector > PreviousDerivatives
Definition: beam_element.hpp:105
std::vector< Matrix > InitialNode
Definition: beam_element.hpp:109
Definition: beam_element.hpp:123
DirectorsVariables & GetDirectors()
Definition: beam_element.hpp:218
Vector StressVector
Definition: beam_element.hpp:150
double Alpha
Definition: beam_element.hpp:146
double DeltaTime
Definition: beam_element.hpp:139
double Length
Definition: beam_element.hpp:142
Vector PreviousStrainResultantsVector
Definition: beam_element.hpp:165
Matrix PreviousRotationMatrix
Definition: beam_element.hpp:176
Vector CurrentStepRotationVector
Definition: beam_element.hpp:162
Vector PreviousAxisPositionDerivatives
Definition: beam_element.hpp:169
Vector CurrentCurvatureVector
Definition: beam_element.hpp:159
Matrix DeltaPosition
Definition: beam_element.hpp:156
Matrix AlphaRotationMatrixAsterisk
Definition: beam_element.hpp:173
const GeometryType::ShapeFunctionsGradientsType & GetShapeFunctionsGradients()
Definition: beam_element.hpp:208
Vector CurrentStrainResultantsVector
Definition: beam_element.hpp:164
void SetShapeFunctions(const Matrix &rNcontainer)
Definition: beam_element.hpp:194
Vector StrainVector
Definition: beam_element.hpp:149
Matrix ConstitutiveMatrix
Definition: beam_element.hpp:155
GeometryType::JacobiansType j
Definition: beam_element.hpp:181
Vector N
Definition: beam_element.hpp:151
unsigned int PointNumber
Definition: beam_element.hpp:136
void SetShapeFunctionsGradients(const GeometryType::ShapeFunctionsGradientsType &rDN_De)
Definition: beam_element.hpp:189
Matrix AlphaRotationMatrix
Definition: beam_element.hpp:172
SectionProperties Section
Definition: beam_element.hpp:184
Vector CurrentAxisPositionDerivatives
Definition: beam_element.hpp:168
const Matrix & GetShapeFunctions()
Definition: beam_element.hpp:213
Matrix CurrentRotationMatrix
Definition: beam_element.hpp:175
Vector InitialAxisPositionDerivatives
Definition: beam_element.hpp:167
Vector PreviousCurvatureVector
Definition: beam_element.hpp:160
double detJ
Definition: beam_element.hpp:143
Matrix B
Definition: beam_element.hpp:153
void Initialize(const unsigned int &voigt_size, const unsigned int &dimension, const unsigned int &number_of_nodes)
Definition: beam_element.hpp:223
Matrix DN_DX
Definition: beam_element.hpp:154
void SetDirectors(DirectorsVariables &rDirectors)
Definition: beam_element.hpp:200
GeometryType::JacobiansType J
Definition: beam_element.hpp:180
Definition: beam_element.hpp:287
void SetLeftHandSideMatrix(MatrixType &rLeftHandSideMatrix)
Definition: beam_element.hpp:302
void SetRightHandSideVector(VectorType &rRightHandSideVector)
Definition: beam_element.hpp:304
Flags CalculationFlags
Definition: beam_element.hpp:297
VectorType & GetRightHandSideVector()
Definition: beam_element.hpp:312
MatrixType & GetLeftHandSideMatrix()
Definition: beam_element.hpp:310
Definition: beam_element.hpp:82
double Rotational_Inertia
Definition: beam_element.hpp:87
double Inertia_z
Definition: beam_element.hpp:84
double Area
Definition: beam_element.hpp:83
double Inertia_y
Definition: beam_element.hpp:85
double Polar_Inertia
Definition: beam_element.hpp:86