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.
updated_lagrangian_U_Pw_axisymmetric_element.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_U_PW_UPDATED_LAGRANGIAN_AXISYMMETRIC_ELEMENT_H_INCLUDED)
14 #define KRATOS_GEO_U_PW_UPDATED_LAGRANGIAN_AXISYMMETRIC_ELEMENT_H_INCLUDED
15 
16 // Project includes
17 #include "includes/serializer.h"
18 
19 // Application includes
21 #include "custom_utilities/element_utilities.hpp"
24 
25 namespace Kratos
26 {
27 
28 template <unsigned int TDim, unsigned int TNumNodes>
29 class KRATOS_API(GEO_MECHANICS_APPLICATION) UPwUpdatedLagrangianAxisymmetricElement
30  : public UPwUpdatedLagrangianElement<TDim, TNumNodes>
31 {
32 public:
34 
35  using IndexType = std::size_t;
37  using NodeType = Node;
40  using VectorType = Vector;
41  using MatrixType = Matrix;
43  using SizeType = std::size_t;
45 
47 
50  : UPwUpdatedLagrangianElement<TDim, TNumNodes>(NewId)
51  {
52  }
53 
56  : UPwUpdatedLagrangianElement<TDim, TNumNodes>(NewId, ThisNodes)
57  {
58  }
59 
61  UPwUpdatedLagrangianAxisymmetricElement(IndexType NewId, GeometryType::Pointer pGeometry)
62  : UPwUpdatedLagrangianElement<TDim, TNumNodes>(NewId, pGeometry)
63  {
64  }
65 
67  UPwUpdatedLagrangianAxisymmetricElement(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties)
68  : UPwUpdatedLagrangianElement<TDim, TNumNodes>(NewId, pGeometry, pProperties)
69  {
70  }
71 
74 
76 
77  Element::Pointer Create(IndexType NewId,
78  NodesArrayType const& ThisNodes,
79  PropertiesType::Pointer pProperties) const override;
80 
81  Element::Pointer Create(IndexType NewId, GeometryType::Pointer pGeom, PropertiesType::Pointer pProperties) const override;
82 
84 
85  // Turn back information as a string.
86  std::string Info() const override
87  {
88  std::stringstream buffer;
89  buffer << "Updated-Lagrangian axisymmetric U-Pw Element #" << this->Id()
90  << "\nConstitutive law: " << mConstitutiveLawVector[0]->Info();
91  return buffer.str();
92  }
93 
94  // Print information about this object.
95  void PrintInfo(std::ostream& rOStream) const override
96  {
97  rOStream << "Updated-Lagrangian axisymmetric U-Pw Element #" << this->Id()
98  << "\nConstitutive law: " << mConstitutiveLawVector[0]->Info();
99  }
100 
102 
103 protected:
105 
107 
108  void CalculateBMatrix(Matrix& rB, const Matrix& GradNpT, const Vector& Np) override;
109 
110  double CalculateIntegrationCoefficient(const GeometryType::IntegrationPointsArrayType& IntegrationPoints,
111  unsigned int PointNumber,
112  double detJ) override;
113 
115 
116 private:
118 
120 
122 
123  friend class Serializer;
124 
125  void save(Serializer& rSerializer) const override
126  {
128  }
129 
130  void load(Serializer& rSerializer) override{KRATOS_SERIALIZE_LOAD_BASE_CLASS(rSerializer, Element)}
131 
132  // Assignment operator.
133  UPwUpdatedLagrangianAxisymmetricElement&
134  operator=(UPwUpdatedLagrangianAxisymmetricElement const& rOther);
135 
136  // Copy constructor.
137  UPwUpdatedLagrangianAxisymmetricElement(UPwUpdatedLagrangianAxisymmetricElement const& rOther);
138 
139  // Private Operations
140 
141 }; // Class UPwUpdatedLagrangianAxisymmetricElement
142 
143 } // namespace Kratos
144 
145 #endif // KRATOS_GEO_U_PW_UPDATED_LAGRANGIAN_AXISYMMETRIC_ELEMENT_H_INCLUDED defined
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Base class for all Elements.
Definition: element.h:60
std::size_t SizeType
Definition: element.h:94
std::size_t IndexType
Definition: flags.h:74
Geometry base class.
Definition: geometry.h:71
std::vector< IntegrationPointType > IntegrationPointsArrayType
Definition: geometry.h:161
PointerVector< TPointType > PointsArrayType
Definition: geometry.h:118
This class defines the node.
Definition: node.h:65
PointerVector is a container like stl vector but using a vector to store pointers to its data.
Definition: pointer_vector.h:72
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
Definition: U_Pw_base_element.hpp:36
Definition: updated_lagrangian_U_Pw_axisymmetric_element.hpp:31
UPwUpdatedLagrangianAxisymmetricElement(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties)
Constructor using Properties.
Definition: updated_lagrangian_U_Pw_axisymmetric_element.hpp:67
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(UPwUpdatedLagrangianAxisymmetricElement)
UPwUpdatedLagrangianAxisymmetricElement(IndexType NewId=0)
Default Constructor.
Definition: updated_lagrangian_U_Pw_axisymmetric_element.hpp:49
UPwUpdatedLagrangianAxisymmetricElement(IndexType NewId, GeometryType::Pointer pGeometry)
Constructor using Geometry.
Definition: updated_lagrangian_U_Pw_axisymmetric_element.hpp:61
std::string Info() const override
Definition: updated_lagrangian_U_Pw_axisymmetric_element.hpp:86
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: updated_lagrangian_U_Pw_axisymmetric_element.hpp:95
UPwUpdatedLagrangianAxisymmetricElement(IndexType NewId, const NodesArrayType &ThisNodes)
Constructor using an array of nodes.
Definition: updated_lagrangian_U_Pw_axisymmetric_element.hpp:55
~UPwUpdatedLagrangianAxisymmetricElement() override
Destructor.
Definition: updated_lagrangian_U_Pw_axisymmetric_element.hpp:73
Updated Lagrangian element for 2D and 3D geometries.
Definition: U_Pw_updated_lagrangian_element.hpp:56
#define KRATOS_SERIALIZE_SAVE_BASE_CLASS(Serializer, BaseType)
Definition: define.h:812
#define KRATOS_SERIALIZE_LOAD_BASE_CLASS(Serializer, BaseType)
Definition: define.h:815
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
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
Internals::Matrix< double, AMatrix::dynamic, 1 > Vector
Definition: amatrix_interface.h:472
Internals::Matrix< double, AMatrix::dynamic, AMatrix::dynamic > Matrix
Definition: amatrix_interface.h:470
ModelPart::NodesContainerType NodesArrayType
Definition: gid_gauss_point_container.h:42
def load(f)
Definition: ode_solve.py:307