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_J_wP_element.hpp
Go to the documentation of this file.
1 //
2 // Project Name: KratosSolidMechanicsApplication $
3 // Last modified by: $Author: LMonforte $
4 // Date: $Date: July 2015 $
5 // Revision: $Revision: -0.1 $
6 //
7 //
8 
9 #if !defined(KRATOS_UPDATED_LAGRANGIAN_U_J_wP_ELEMENT_H_INCLUDED )
10 #define KRATOS_UPDATED_LAGRANGIAN_U_J_wP_ELEMENT_H_INCLUDED
11 
12 // System includes
13 
14 // External includes
15 
16 // Project includes
18 
19 
20 namespace Kratos
21 {
36 
38 
39 
40  class KRATOS_API(PFEM_SOLID_MECHANICS_APPLICATION) UpdatedLagrangianUJwPElement
42  {
43  public:
44 
50  typedef ConstitutiveLawType::Pointer ConstitutiveLawPointerType;
55 
59 
62 
65 
67  UpdatedLagrangianUJwPElement(IndexType NewId, GeometryType::Pointer pGeometry);
68 
69  UpdatedLagrangianUJwPElement(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties);
70 
73 
74 
77 
81 
84 
85 
89 
100  Element::Pointer Create(IndexType NewId, NodesArrayType const& ThisNodes, PropertiesType::Pointer pProperties) const override;
101 
109  Element::Pointer Clone(IndexType NewId, NodesArrayType const& ThisNodes) const override;
110 
115  void CalculateOnIntegrationPoints(const Variable<Vector>& rVariable, std::vector<Vector>& rValues, const ProcessInfo& rCurrentProcessInfo) override;
116 
117  //************* STARTING - ENDING METHODS
118 
122  void GetDofList(DofsVectorType& rElementalDofList, ProcessInfo& rCurrentProcessInfo) override;
123 
127  void EquationIdVector(EquationIdVectorType& rResult, ProcessInfo& rCurrentProcessInfo) override;
128 
132  void GetValuesVector(Vector& rValues, int Step = 0) const override;
133 
137  void GetFirstDerivativesVector(Vector& rValues, int Step = 0) const override;
138 
142  void GetSecondDerivativesVector(Vector& rValues, int Step = 0) const override;
143 
144 
145  //************* COMPUTING METHODS
146 
153  void CalculateMassMatrix(MatrixType& rMassMatrix, ProcessInfo& rCurrentProcessInfo) override;
154 
161  void CalculateDampingMatrix(MatrixType& rDampingMatrix, ProcessInfo& rCurrentProcessInfo) override;
162 
163 
164  //************************************************************************************
165  //************************************************************************************
173  int Check(const ProcessInfo& rCurrentProcessInfo) override;
174 
178 
189  protected:
195 
196  double mTimeStep; // because I don't kwnow how to do it better
197 
201 
205 
210  void CalculateAndAddLHS(LocalSystemComponents& rLocalSystem,
211  ElementDataType& rVariables,
212  double& rIntegrationWeight) override;
213 
218  void CalculateAndAddRHS(LocalSystemComponents& rLocalSystem,
219  ElementDataType& rVariables,
220  Vector& rVolumeForce,
221  double& rIntegrationWeight) override;
222 
226  void InitializeElementData(ElementDataType & rVariables, const ProcessInfo& rCurrentProcessInfo) override;
227 
228 
229 
233  void InitializeSystemMatrices(MatrixType& rLeftHandSideMatrix,
234  VectorType& rRightHandSideVector,
235  Flags& rCalculationFlags) override;
236 
237 
248 
249  private:
250 
256 
257 
261 
262 
266 
267 
272 
276  friend class Serializer;
277 
278  // A private default constructor necessary for serialization
279 
280  void save(Serializer& rSerializer) const override;
281 
282  void load(Serializer& rSerializer) override;
283 
284 
291 
292 
293 }; // Class UpdatedLagrangianUJwPElement
294 
295 
296 
297 } // namespace Kratos
298 #endif // KRATOS_UPDATED_LAGRANGIAN_U_J_wP_ELEMENT_H_INCLUDED
299 
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Definition: constitutive_law.h:47
StressMeasure
Definition: constitutive_law.h:69
std::vector< DofType::Pointer > DofsVectorType
Definition: element.h:100
std::vector< std::size_t > EquationIdVectorType
Definition: element.h:98
Definition: flags.h:58
std::size_t IndexType
Definition: flags.h:74
IntegrationMethod
Definition: geometry_data.h:76
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 Large Displacement Lagrangian U-wP Element for 3D and 2D geometries....
Definition: updated_lagrangian_U_J_element.hpp:44
Updated Lagrangian Large Displacement Lagrangian U-wP Element for 3D and 2D geometries....
Definition: updated_lagrangian_U_J_wP_element.hpp:42
GeometryData::IntegrationMethod IntegrationMethod
Type definition for integration methods.
Definition: updated_lagrangian_U_J_wP_element.hpp:54
ConstitutiveLaw ConstitutiveLawType
Definition: updated_lagrangian_U_J_wP_element.hpp:48
ConstitutiveLawType::StressMeasure StressMeasureType
StressMeasure from constitutive laws.
Definition: updated_lagrangian_U_J_wP_element.hpp:52
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(UpdatedLagrangianUJwPElement)
Counted pointer of LargeDisplacementUPElement.
ConstitutiveLawType::Pointer ConstitutiveLawPointerType
Pointer type for constitutive laws.
Definition: updated_lagrangian_U_J_wP_element.hpp:50
double mTimeStep
Definition: updated_lagrangian_U_J_wP_element.hpp:196
Variable class contains all information needed to store and retrive data from a data container.
Definition: variable.h:63
Modeler::Pointer Create(const std::string &ModelerName, Model &rModel, const Parameters ModelParameters)
Checks if the modeler is registered.
Definition: modeler_factory.cpp:30
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
Definition: solid_element.hpp:233