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_V_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: April 2018 $
6 // Revision: $Revision: 0.0 $
7 //
8 //
9 
10 #if !defined(KRATOS_UPDATED_LAGRANGIAN_V_ELEMENT_H_INCLUDED)
11 #define KRATOS_UPDATED_LAGRANGIAN_V_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) UpdatedLagrangianVElement
47 {
48 public:
49 
55  typedef ConstitutiveLawType::Pointer ConstitutiveLawPointerType;
62 
68 
70  UpdatedLagrangianVElement(IndexType NewId, GeometryType::Pointer pGeometry);
71 
72  UpdatedLagrangianVElement(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties);
73 
76 
78  ~UpdatedLagrangianVElement() 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  //************* GETTING METHODS
114  //SET
118  void SetValuesOnIntegrationPoints(const Variable<double>& rVariable, const std::vector<double>& rValues, const ProcessInfo& rCurrentProcessInfo) override;
119 
120  //GET:
121 
125  void CalculateOnIntegrationPoints(const Variable<double>& rVariable, std::vector<double>& rValues, const ProcessInfo& rCurrentProcessInfo) override;
126 
127  //************* STARTING - ENDING METHODS
132  void Initialize(const ProcessInfo& rCurrentProcessInfo) override;
133 
134  //************************************************************************************
135  //************************************************************************************
143  int Check(const ProcessInfo& rCurrentProcessInfo) const override;
144 
148 
156  std::string Info() const override
157  {
158  std::stringstream buffer;
159  buffer << "Updated Lagrangian V Element #" << Id();
160  return buffer.str();
161  }
162 
164  void PrintInfo(std::ostream& rOStream) const override
165  {
166  rOStream << "Updated Lagrangian V Element #" << Id();
167  }
168 
170  void PrintData(std::ostream& rOStream) const override
171  {
172  GetGeometry().PrintData(rOStream);
173  }
174 
179 
180 protected:
186 
190  std::vector< Matrix > mDeformationGradientF0;
191 
196 
201  {
202  }
203 
207  void InitializeElementData(ElementDataType& rVariables,
208  const ProcessInfo& rCurrentProcessInfo) override;
209 
210 
211 
215  void FinalizeStepVariables(ElementDataType & rVariables,
216  const double& rPointNumber ) override;
217 
218 
222  void CalculateKinematics(ElementDataType& rVariables,
223  const double& rPointNumber) override;
224 
225 
229  void CalculateKinetics(ElementDataType& rVariables,
230  const double& rPointNumber) override;
231 
235  void GetHistoricalVariables( ElementDataType& rVariables,
236  const double& rPointNumber ) override;
237 
241  double& CalculateVolumeChange(double& rVolumeChange, ElementDataType& rVariables) override;
242 
253 
254 private:
255 
271 
275  friend class Serializer;
276 
277  void save(Serializer& rSerializer) const override;
278 
279  void load(Serializer& rSerializer) override;
280 
287 
288 }; // Class UpdatedLagrangianVElement
289 
297 
298 } // namespace Kratos.
299 #endif // KRATOS_UPDATED_LAGRANGIAN_V_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 V Element for 3D and 2D geometries.
Definition: large_displacement_V_element.hpp:47
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
Updated Lagrangian Element for 3D and 2D geometries.
Definition: updated_lagrangian_V_element.hpp:47
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(UpdatedLagrangianVElement)
Counted pointer of UpdatedLagrangianVElement.
std::string Info() const override
Turn back information as a string.
Definition: updated_lagrangian_V_element.hpp:156
ConstitutiveLaw ConstitutiveLawType
Definition: updated_lagrangian_V_element.hpp:53
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: updated_lagrangian_V_element.hpp:164
std::vector< Matrix > mDeformationGradientF0
Definition: updated_lagrangian_V_element.hpp:190
Vector mDeterminantF0
Definition: updated_lagrangian_V_element.hpp:195
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: updated_lagrangian_V_element.hpp:170
UpdatedLagrangianVElement()
Definition: updated_lagrangian_V_element.hpp:200
GeometryData::SizeType SizeType
Type for size.
Definition: updated_lagrangian_V_element.hpp:59
GeometryData::IntegrationMethod IntegrationMethod
Type definition for integration methods.
Definition: updated_lagrangian_V_element.hpp:57
LargeDisplacementVElement::ElementDataType ElementDataType
Type for element variables.
Definition: updated_lagrangian_V_element.hpp:61
ConstitutiveLawType::Pointer ConstitutiveLawPointerType
Pointer type for constitutive laws.
Definition: updated_lagrangian_V_element.hpp: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