KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
geo_cr_beam_element_linear_3D2N.hpp
Go to the documentation of this file.
1 // KRATOS___
2 // // ) )
3 // // ___ ___
4 // // ____ //___) ) // ) )
5 // // / / // // / /
6 // ((____/ / ((____ ((___/ / MECHANICS
7 //
8 // License: geo_mechanics_application/license.txt
9 //
10 // Main authors: Vahid Galavi
11 //
12 
13 #if !defined(KRATOS_GEO_CR_BEAM_ELEMENT_LINEAR_3D2N_H_INCLUDED)
14 #define KRATOS_GEO_CR_BEAM_ELEMENT_LINEAR_3D2N_H_INCLUDED
15 
16 // System includes
17 
18 // External includes
19 
20 // Project includes
21 #include "../StructuralMechanicsApplication/custom_elements/cr_beam_element_linear_3D2N.hpp"
23 #include "includes/define.h"
24 #include "includes/variables.h"
25 
26 namespace Kratos
27 {
36 class KRATOS_API(GEO_MECHANICS_APPLICATION) GeoCrBeamElementLinear3D2N : public CrBeamElement3D2N
37 {
38 public:
40 
49  using EquationIdVectorType = BaseType::EquationIdVectorType;
50  using DofsVectorType = BaseType::DofsVectorType;
51 
53  GeoCrBeamElementLinear3D2N(IndexType NewId, GeometryType::Pointer pGeometry);
54  GeoCrBeamElementLinear3D2N(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties);
55 
56  ~GeoCrBeamElementLinear3D2N() override;
57 
65  Element::Pointer Create(IndexType NewId, GeometryType::Pointer pGeom, PropertiesType::Pointer pProperties) const override;
66 
74  Element::Pointer Create(IndexType NewId,
75  NodesArrayType const& ThisNodes,
76  PropertiesType::Pointer pProperties) const override;
77 
78  void CalculateLocalSystem(MatrixType& rLeftHandSideMatrix,
79  VectorType& rRightHandSideVector,
80  const ProcessInfo& rCurrentProcessInfo) override;
81 
82  void CalculateRightHandSide(VectorType& rRightHandSideVector, const ProcessInfo& rCurrentProcessInfo) override;
83 
85  std::vector<array_1d<double, 3>>& rOutput,
86  const ProcessInfo& rCurrentProcessInfo) override;
87 
88  void ResetConstitutiveLaw() override;
89 
90 protected:
91  Vector mInternalGlobalForcesFinalized = ZeroVector(msElementSize);
92  Vector mInternalGlobalForcesFinalizedPrevious = ZeroVector(msElementSize);
93 
94 private:
95  friend class Serializer;
96  void save(Serializer& rSerializer) const override;
97  void load(Serializer& rSerializer) override;
98 };
99 
100 } // namespace Kratos
101 
102 #endif
This is a 3D-2node beam element with 3 translational dofs and 3 rotational dof per node.
Definition: cr_beam_element_3D2N.hpp:35
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
This is a linear 3D-2node beam element with 3 translational dofs and 3 rotational dof per node inheri...
Definition: geo_cr_beam_element_linear_3D2N.hpp:37
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(GeoCrBeamElementLinear3D2N)
GeoCrBeamElementLinear3D2N()
Definition: geo_cr_beam_element_linear_3D2N.hpp:52
This defines the geometrical object, base definition of the element and condition entities.
Definition: geometrical_object.h:58
Geometry base class.
Definition: geometry.h:71
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
Properties encapsulates data shared by different Elements or Conditions. It can store any type of dat...
Definition: properties.h:69
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
std::size_t IndexType
The definition of the index type.
Definition: key_hash.h:35
std::size_t IndexType
Definition: binary_expression.cpp:25
Vector VectorType
Definition: geometrical_transformation_utilities.h:56
Matrix MatrixType
Definition: geometrical_transformation_utilities.h:55
Modeler::Pointer Create(const std::string &ModelerName, Model &rModel, const Parameters ModelParameters)
Checks if the modeler is registered.
Definition: modeler_factory.cpp:30
std::size_t SizeType
Definition: nurbs_utilities.h:41
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
Properties PropertiesType
Definition: regenerate_pfem_pressure_conditions_process.h:26
Geometry< Node > GeometryType
The definition of the geometry.
Definition: mortar_classes.h:37
ModelPart::NodesContainerType NodesArrayType
Definition: gid_gauss_point_container.h:42
def load(f)
Definition: ode_solve.py:307