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.
axisym_small_displacement.h
Go to the documentation of this file.
1 // KRATOS ___| | | |
2 // \___ \ __| __| | | __| __| | | __| _` | |
3 // | | | | | ( | | | | ( | |
4 // _____/ \__|_| \__,_|\___|\__|\__,_|_| \__,_|_| MECHANICS
5 //
6 // License: BSD License
7 // license: StructuralMechanicsApplication/license.txt
8 //
9 // Main authors: Vicente Mataix Ferrandiz
10 //
11 
12 #pragma once
13 
14 // System includes
15 
16 // External includes
17 
18 // Project includes
20 
21 namespace Kratos
22 {
31 
35 
39 
41 
46 class KRATOS_API(STRUCTURAL_MECHANICS_APPLICATION) AxisymSmallDisplacement
47  : public SmallDisplacement
48 {
49 public:
54 
56  typedef ConstitutiveLawType::Pointer ConstitutiveLawPointerType;
57 
60 
62  typedef std::size_t IndexType;
63 
65  typedef std::size_t SizeType;
66 
69 
73 
75  AxisymSmallDisplacement(IndexType NewId, GeometryType::Pointer pGeometry);
76  AxisymSmallDisplacement(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties);
77 
79  ~AxisymSmallDisplacement() override;
80 
87 
94  Element::Pointer Create(
95  IndexType NewId,
96  GeometryType::Pointer pGeom,
97  PropertiesType::Pointer pProperties
98  ) const override;
99 
107  Element::Pointer Create(
108  IndexType NewId,
109  NodesArrayType const& ThisNodes,
110  PropertiesType::Pointer pProperties
111  ) const override;
112 
113  //std::string Info() const;
114 
118 
125 
127  // virtual String Info() const;
128 
130  // virtual void PrintInfo(std::ostream& rOStream) const;
131 
133  // virtual void PrintData(std::ostream& rOStream) const;
138 
139 protected:
145 
149 
151  {
152  }
153 
167 
168 private:
171 
175 
179 
183 
189  void CalculateB(
190  Matrix& rB,
191  const Matrix& DN_DX,
192  const GeometryType::IntegrationPointsArrayType& IntegrationPoints,
193  const IndexType PointNumber
194  ) const override;
195 
201  void ComputeEquivalentF(
202  Matrix& rF,
203  const Vector& StrainVector
204  ) const override;
205 
212  double GetIntegrationWeight(
213  const GeometryType::IntegrationPointsArrayType& IntegrationPoints,
214  const IndexType PointNumber,
215  const double detJ
216  ) const override;
217 
222 
226 
227  friend class Serializer;
228 
229  // A private default constructor necessary for serialization
230 
231  void save(Serializer& rSerializer) const override;
232 
233  void load(Serializer& rSerializer) override;
234 
241  //AxisymSmallDisplacement& operator=(const AxisymSmallDisplacement& rOther);
243  //AxisymSmallDisplacement(const AxisymSmallDisplacement& rOther);
245 
246 }; // Class AxisymSmallDisplacement
247 
255 
256 } // namespace Kratos.
Axisymmetric Kinematic Linear element.
Definition: axisym_small_displacement.h:48
std::size_t SizeType
The definition of the sizetype.
Definition: axisym_small_displacement.h:65
std::size_t IndexType
The definition of the index type.
Definition: axisym_small_displacement.h:62
ConstitutiveLawType::Pointer ConstitutiveLawPointerType
Pointer type for constitutive laws.
Definition: axisym_small_displacement.h:56
GeometryData::IntegrationMethod IntegrationMethod
Type definition for integration methods.
Definition: axisym_small_displacement.h:59
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(AxisymSmallDisplacement)
Counted pointer of AxisymSmallDisplacement.
AxisymSmallDisplacement()
Definition: axisym_small_displacement.h:150
ConstitutiveLaw ConstitutiveLawType
Definition: axisym_small_displacement.h:53
Definition: constitutive_law.h:47
std::size_t IndexType
Definition: flags.h:74
IntegrationMethod
Definition: geometry_data.h:76
std::vector< IntegrationPointType > IntegrationPointsArrayType
Definition: geometry.h:161
PointerVector is a container like stl vector but using a vector to store pointers to its data.
Definition: pointer_vector.h:72
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
Small displacement element for 2D and 3D geometries.
Definition: small_displacement.h:54
std::size_t IndexType
The definition of the index type.
Definition: key_hash.h:35
Modeler::Pointer Create(const std::string &ModelerName, Model &rModel, const Parameters ModelParameters)
Checks if the modeler is registered.
Definition: modeler_factory.cpp:30
void ComputeEquivalentF(const Element &rElement, const TVectorType &rStrainTensor, TMatrixType &rF)
This method computes the deformation gradient F (for small deformation solid elements)
Definition: structural_mechanics_element_utilities.h:69
void CalculateB(const GeometricalObject &rElement, const TMatrixType1 &rDN_DX, TMatrixType2 &rB)
This method computes the deformation tensor B (for small deformation solid elements)
Definition: structural_mechanics_element_utilities.h:105
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
def load(f)
Definition: ode_solve.py:307