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.
axisymmetric_updated_lagrangian_element.hpp
Go to the documentation of this file.
1 //
2 // Project Name: KratosSolidMechanicsApplication $
3 // Created by: $Author: JMCarbonell $
4 // Last modified by: $Co-Author: $
5 // Date: $Date: July 2013 $
6 // Revision: $Revision: 0.0 $
7 //
8 //
9 
10 #if !defined(KRATOS_AXISYMMETRIC_UPDATED_LAGRANGIAN_ELEMENT_H_INCLUDED)
11 #define KRATOS_AXISYMMETRIC_UPDATED_LAGRANGIAN_ELEMENT_H_INCLUDED
12 
13 // System includes
14 
15 // External includes
16 
17 // Project includes
19 
20 
21 namespace Kratos
22 {
37 
39 
45 class KRATOS_API(SOLID_MECHANICS_APPLICATION) AxisymmetricUpdatedLagrangianElement
47 {
48 public:
49 
55  typedef ConstitutiveLawType::Pointer ConstitutiveLawPointerType;
64 
67 
71 
73  AxisymmetricUpdatedLagrangianElement(IndexType NewId, GeometryType::Pointer pGeometry);
74 
75  AxisymmetricUpdatedLagrangianElement(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties);
76 
79 
82 
86 
89 
93 
101  Element::Pointer Create(IndexType NewId, NodesArrayType const& ThisNodes, PropertiesType::Pointer pProperties) const override;
102 
110  Element::Pointer Clone(IndexType NewId, NodesArrayType const& ThisNodes) const override;
111 
112  // //************* GETTING METHODS
113 
114  //SET
115 
119  void SetValuesOnIntegrationPoints(const Variable<double>& rVariable, const std::vector<double>& rValues, const ProcessInfo& rCurrentProcessInfo) override;
120 
121 
122  //GET:
123 
127  void CalculateOnIntegrationPoints(const Variable<double>& rVariable, std::vector<double>& rValues, const ProcessInfo& rCurrentProcessInfo) override;
128 
129 
130  //************* STARTING - ENDING METHODS
131 
136  void Initialize(const ProcessInfo& rCurrentProcessInfo) override;
137 
138  //************************************************************************************
139  //************************************************************************************
147  int Check(const ProcessInfo& rCurrentProcessInfo) const override;
148 
162 
163 protected:
169 
173  std::vector< Matrix > mDeformationGradientF0;
174 
179 
184  {
185  }
186 
190 
191 
196  void CalculateAndAddLHS(LocalSystemComponents& rLocalSystem,
197  ElementDataType& rVariables,
198  double& rIntegrationWeight) override;
199 
204  void CalculateAndAddRHS(LocalSystemComponents& rLocalSystem,
205  ElementDataType& rVariables,
206  Vector& rVolumeForce,
207  double& rIntegrationWeight) override;
208 
212  double& CalculateTotalMass(double& rTotalMass, const ProcessInfo& rCurrentProcessInfo) override;
213 
214 
218  void CalculateAndAddKuug(MatrixType& rK,
219  ElementDataType & rVariables,
220  double& rIntegrationWeight
221  ) override;
222 
223 
224 
228  void InitializeElementData(ElementDataType & rVariables, const ProcessInfo& rCurrentProcessInfo) override;
229 
230 
234  void FinalizeStepVariables(ElementDataType & rVariables, const double& rPointNumber ) override;
235 
236 
240  void CalculateKinematics(ElementDataType& rVariables,
241  const double& rPointNumber) override;
242 
243 
247  void CalculateRadius(double & rCurrentRadius,
248  double & rReferenceRadius,
249  const Vector& rN);
250 
254  void CalculateDeformationGradient(Matrix& rF,
255  const Matrix& rDN_DX,
256  const Matrix& rDeltaPosition,
257  const double & rCurrentRadius,
258  const double & rReferenceRadius);
259 
263  void CalculateDeformationMatrix(Matrix& rB,
264  const Matrix& rDN_DX,
265  const Vector& rN,
266  const double & rCurrentRadius);
267 
271  void GetHistoricalVariables( ElementDataType& rVariables,
272  const double& rPointNumber ) override;
273 
274 
278  void CalculateGreenLagrangeStrain(const Matrix& rF,
279  Vector& rStrainVector) override;
280 
284  void CalculateAlmansiStrain(const Matrix& rF,
285  Vector& rStrainVector) override;
286 
287 
291  double& CalculateVolumeChange(double& rVolumeChange, ElementDataType& rVariables) override;
292 
303 
304 private:
305 
311 
312 
316 
317 
321 
322 
327 
331  friend class Serializer;
332 
333  // A private default constructor necessary for serialization
334 
335  void save(Serializer& rSerializer) const override;
336 
337  void load(Serializer& rSerializer) override;
338 
339 
346 
347 }; // Class AxisymmetricUpdatedLagrangianElement
348 
356 
357 } // namespace Kratos.
358 #endif // KRATOS_AXISYMMETRIC_UPDATED_LAGRANGIAN_ELEMENT_H_INCLUDED defined
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Axisymmetric Updated Lagrangian Element 2D geometries.
Definition: axisymmetric_updated_lagrangian_element.hpp:47
std::vector< Matrix > mDeformationGradientF0
Definition: axisymmetric_updated_lagrangian_element.hpp:173
LargeDisplacementElement::ElementDataType ElementDataType
Type for element variables.
Definition: axisymmetric_updated_lagrangian_element.hpp:63
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(AxisymmetricUpdatedLagrangianElement)
Counted pointer of AxisymmetricUpdatedLagrangianElement.
Vector mDeterminantF0
Definition: axisymmetric_updated_lagrangian_element.hpp:178
GeometryData::IntegrationMethod IntegrationMethod
Type definition for integration methods.
Definition: axisymmetric_updated_lagrangian_element.hpp:59
ConstitutiveLawType::StressMeasure StressMeasureType
StressMeasure from constitutive laws.
Definition: axisymmetric_updated_lagrangian_element.hpp:57
ConstitutiveLawType::Pointer ConstitutiveLawPointerType
Pointer type for constitutive laws.
Definition: axisymmetric_updated_lagrangian_element.hpp:55
ConstitutiveLaw ConstitutiveLawType
Definition: axisymmetric_updated_lagrangian_element.hpp:53
AxisymmetricUpdatedLagrangianElement()
Definition: axisymmetric_updated_lagrangian_element.hpp:183
GeometryData::SizeType SizeType
Type for size.
Definition: axisymmetric_updated_lagrangian_element.hpp:61
Definition: constitutive_law.h:47
StressMeasure
Definition: constitutive_law.h:69
std::size_t IndexType
Definition: flags.h:74
IntegrationMethod
Definition: geometry_data.h:76
std::size_t SizeType
Definition: geometry_data.h:173
Large Displacement Lagrangian Element for 3D and 2D geometries. (base class)
Definition: large_displacement_element.hpp:46
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
double CalculateRadius(const PairedCondition *pCondition, const Vector &rNSlave)
Calculates the radius of axisymmetry.
Definition: mortar_explicit_contribution_utilities.cpp:675
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
void SetValuesOnIntegrationPoints(TObject &dummy, const Variable< TDataType > &rVariable, const std::vector< TDataType > &values, const ProcessInfo &rCurrentProcessInfo)
Definition: add_mesh_to_python.cpp:185
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
def load(f)
Definition: ode_solve.py:307
Definition: solid_element.hpp:83