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.
total_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_TOTAL_LAGRANGIAN_ELEMENT_H_INCLUDED)
11 #define KRATOS_TOTAL_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) TotalLagrangianElement
47 {
48 public:
49 
55  typedef ConstitutiveLawType::Pointer ConstitutiveLawPointerType;
62 
68 
70  TotalLagrangianElement(IndexType NewId, GeometryType::Pointer pGeometry);
71 
72  TotalLagrangianElement(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties);
73 
76 
78  ~TotalLagrangianElement() override;
79 
83 
86 
90 
101  Element::Pointer Create(IndexType NewId, NodesArrayType const& ThisNodes, PropertiesType::Pointer pProperties) const override;
102 
103 
111  Element::Pointer Clone(IndexType NewId, NodesArrayType const& ThisNodes) const override;
112 
113  //************* STARTING - ENDING METHODS
114 
119  void Initialize(const ProcessInfo& rCurrentProcessInfo) override;
120 
121 
122  //************************************************************************************
123  //************************************************************************************
131  int Check(const ProcessInfo& rCurrentProcessInfo) const override;
132 
136 
147 
148 protected:
154 
159 
163  std::vector< Matrix > mInvJ0;
164 
169 
174  {
175  }
176 
177 
181  void CalculateKinematics(ElementDataType& rVariables,
182  const double& rPointNumber) override;
183 
187  void CalculateKinetics(ElementDataType& rVariables,
188  const double& rPointNumber) override;
189 
190 
194  void CalculateDeformationMatrix(Matrix& rB,
195  const Matrix& rF,
196  const Matrix& rDN_DX);
197 
198 
202  void GetHistoricalVariables( ElementDataType& rVariables,
203  const double& rPointNumber ) override;
204 
205 
209  double& CalculateTotalMass(double& rTotalMass, const ProcessInfo& rCurrentProcessInfo) override;
210 
211 
215  double& CalculateVolumeChange(double& rVolumeChange, ElementDataType& rVariables) override;
216 
217 
228 
229 private:
230 
249  friend class Serializer;
250 
251  // A private default constructor necessary for serialization
252 
253  void save(Serializer& rSerializer) const override;
254 
255  void load(Serializer& rSerializer) override;
256 
263 
264 }; // Class TotalLagrangianElement
265 
273 
274 } // namespace Kratos.
275 #endif // KRATOS_TOTAL_LAGRANGIAN_ELEMENT_H_INCLUDED defined
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Definition: constitutive_law.h:47
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
Total Lagrangian Element for 3D and 2D geometries.
Definition: total_lagrangian_element.hpp:47
GeometryData::SizeType SizeType
Type for size.
Definition: total_lagrangian_element.hpp:59
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(TotalLagrangianElement)
Counted pointer of TotalLagrangianElement.
TotalLagrangianElement()
Definition: total_lagrangian_element.hpp:173
double mTotalDomainInitialSize
Definition: total_lagrangian_element.hpp:158
LargeDisplacementElement::ElementDataType ElementDataType
Type for element variables.
Definition: total_lagrangian_element.hpp:61
GeometryData::IntegrationMethod IntegrationMethod
Type definition for integration methods.
Definition: total_lagrangian_element.hpp:57
ConstitutiveLaw ConstitutiveLawType
Definition: total_lagrangian_element.hpp:53
std::vector< Matrix > mInvJ0
Definition: total_lagrangian_element.hpp:163
ConstitutiveLawType::Pointer ConstitutiveLawPointerType
Pointer type for constitutive laws.
Definition: total_lagrangian_element.hpp:55
Vector mDetJ0
Definition: total_lagrangian_element.hpp:168
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
def load(f)
Definition: ode_solve.py:307
Definition: solid_element.hpp:83