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_updated_lagrangian_U_P_element.hpp
Go to the documentation of this file.
1 //
2 // Project Name: KratosPfemSolidMechanicsApplication $
3 // Created by: $Author: JMCarbonell $
4 // Last modified by: $Co-Author: $
5 // Date: $Date: July 2015 $
6 // Revision: $Revision: 0.0 $
7 //
8 //
9 
10 #if !defined(KRATOS_TOTAL_UPDATED_LAGRANGIAN_U_P_ELEMENT_H_INCLUDED )
11 #define KRATOS_TOTAL_UPDATED_LAGRANGIAN_U_P_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(PFEM_SOLID_MECHANICS_APPLICATION) TotalUpdatedLagrangianUPElement
47 {
48 public:
49 
55  typedef ConstitutiveLawType::Pointer ConstitutiveLawPointerType;
64 
67 
71 
73  TotalUpdatedLagrangianUPElement(IndexType NewId, GeometryType::Pointer pGeometry);
74 
75  TotalUpdatedLagrangianUPElement(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties);
76 
79 
82 
86 
89 
93 
104  Element::Pointer Create(IndexType NewId, NodesArrayType const& ThisNodes, PropertiesType::Pointer pProperties) const override;
105 
106 
114  Element::Pointer Clone(IndexType NewId, NodesArrayType const& ThisNodes) const override;
115 
116  //************* STARTING - ENDING METHODS
117 
125  //int Check(const ProcessInfo& rCurrentProcessInfo);
126 
127 
131 
142 
143 protected:
149 
150 
155  {
156  }
157 
161 
162 
166  void CalculateAndAddLHS(LocalSystemComponents& rLocalSystem,
167  ElementDataType& rVariables,
168  double& rIntegrationWeight) override;
169 
173  void CalculateAndAddRHS(LocalSystemComponents& rLocalSystem,
174  ElementDataType& rVariables,
175  Vector& rVolumeForce,
176  double& rIntegrationWeight) override;
177 
181  void InitializeElementData(ElementDataType & rVariables,
182  const ProcessInfo& rCurrentProcessInfo) override;
183 
184 
188  void TransformElementData(ElementDataType & rVariables,
189  const double& rPointNumber) override;
190 
194  void CalculateKinematics(ElementDataType& rVariables,
195  const double& rPointNumber) override;
196 
197 
201  void CalculateDeformationMatrix(Matrix& rB,
202  Matrix& rF,
203  Matrix& rDN_DX);
204 
205 
209  void GetHistoricalVariables( ElementDataType& rVariables,
210  const double& rPointNumber ) override;
211 
212 
216  double& CalculateVolumeChange(double& rVolumeChange, ElementDataType& rVariables) override;
217 
221  void CalculatePushForwardDN_DX(ElementDataType& rVariables);
222 
233 
234 private:
235 
241 
242 
246 
247 
251 
252 
257 
261  friend class Serializer;
262 
263  // A private default constructor necessary for serialization
264 
265  void save(Serializer& rSerializer) const override;
266 
267  void load(Serializer& rSerializer) override;
268 
269 
276 
277 }; // Class TotalUpdatedLagrangianUPElement
278 
286 
287 } // namespace Kratos.
288 #endif // KRATOS_TOTAL_UPDATED_LAGRANGIAN_U_P_ELEMENT_H_INCLUDED defined
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
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
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 Updated Lagrangian U-P Element for 3D and 2D geometries. Linear Triangles and Tetrahedra.
Definition: total_updated_lagrangian_U_P_element.hpp:47
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(TotalUpdatedLagrangianUPElement)
Counted pointer of TotalUpdatedLagrangianUPElement.
GeometryData::SizeType SizeType
Type for size.
Definition: total_updated_lagrangian_U_P_element.hpp:61
GeometryData::IntegrationMethod IntegrationMethod
Type definition for integration methods.
Definition: total_updated_lagrangian_U_P_element.hpp:59
TotalUpdatedLagrangianUPElement()
Definition: total_updated_lagrangian_U_P_element.hpp:154
ConstitutiveLawType::Pointer ConstitutiveLawPointerType
Pointer type for constitutive laws.
Definition: total_updated_lagrangian_U_P_element.hpp:55
ConstitutiveLaw ConstitutiveLawType
Definition: total_updated_lagrangian_U_P_element.hpp:53
ConstitutiveLawType::StressMeasure StressMeasureType
StressMeasure from constitutive laws.
Definition: total_updated_lagrangian_U_P_element.hpp:57
UpdatedLagrangianUPElement::ElementDataType ElementDataType
Type for element variables.
Definition: total_updated_lagrangian_U_P_element.hpp:63
Spatial Lagrangian U-P Element for 3D and 2D geometries. Linear Triangles and Tetrahedra.
Definition: updated_lagrangian_U_P_element.hpp:47
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