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_W_wP_element.hpp
Go to the documentation of this file.
1 //
2 // Project Name: KratosPfemSolidMechanicsApplication $
3 // Created by: $Author: PNavas $
4 // Last modified by: $Co-Author: LMonforte $
5 // Date: $Date: October 2017 $
6 // Revision: $Revision: -0.1 $
7 //
8 //
9 
10 #if !defined(KRATOS_UPDATED_LAGRANGIAN_U_W_WP_ELEMENT_H_INCLUDED )
11 #define KRATOS_UPDATED_LAGRANGIAN_U_W_WP_ELEMENT_H_INCLUDED
12 
13 // System includes
14 
15 // External includes
16 
17 // Project includes
19 
20 namespace Kratos
21 {
36 
38 
39 
40 class KRATOS_API(PFEM_SOLID_MECHANICS_APPLICATION) UpdatedLagrangianUWwPElement
42 {
43 public:
44 
50  typedef ConstitutiveLawType::Pointer ConstitutiveLawPointerType;
59 
63 
66 
69 
71  UpdatedLagrangianUWwPElement(IndexType NewId, GeometryType::Pointer pGeometry);
72 
73  UpdatedLagrangianUWwPElement(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties);
74 
77 
78 
81 
85 
88 
89 
93 
104  Element::Pointer Create(IndexType NewId, NodesArrayType const& ThisNodes, PropertiesType::Pointer pProperties) const override;
105 
113  Element::Pointer Clone(IndexType NewId, NodesArrayType const& ThisNodes) const override;
114 
115  //************* STARTING - ENDING METHODS
116 
117 
121  void GetDofList(DofsVectorType& rElementalDofList, ProcessInfo& rCurrentProcessInfo) override;
122 
126  void EquationIdVector(EquationIdVectorType& rResult, ProcessInfo& rCurrentProcessInfo) override;
127 
131  void GetValuesVector(Vector& rValues, int Step = 0) const override;
132 
136  void GetFirstDerivativesVector(Vector& rValues, int Step = 0) const override;
137 
141  void GetSecondDerivativesVector(Vector& rValues, int Step = 0) const override;
142 
143 
144  //************************************************************************************
145  //************************************************************************************
153  int Check(const ProcessInfo& rCurrentProcessInfo) override;
154 
155 
162  void CalculateMassMatrix(MatrixType& rMassMatrix,
163  ProcessInfo& rCurrentProcessInfo) override;
164 
171  void CalculateDampingMatrix(MatrixType& rDampingMatrix,
172  ProcessInfo& rCurrentProcessInfo) override;
173 
177 
188 protected:
194 
195 
196  /****
197  the time step (requiered). It shall be somewhere else.
198  ****/
199  double mTimeStep;
200 
204 
208 
209 
214  virtual void CalculateAndAddLHS(LocalSystemComponents& rLocalSystem,
215  ElementDataType& rVariables,
216  double& rIntegrationWeight) override;
217 
221  virtual void CalculateAndAddKuum(MatrixType& rK,
222  ElementDataType & rVariables,
223  double& rIntegrationWeight
224  ) override;
228  virtual void CalculateAndAddKWwP(MatrixType& rK,
229  ElementDataType & rVariables,
230  double& rIntegrationWeight
231  );
232 
236  virtual void CalculateAndAddKUwP(MatrixType& rK,
237  ElementDataType & rVariables,
238  double& rIntegrationWeight
239  );
244  virtual void CalculateAndAddRHS(LocalSystemComponents& rLocalSystem,
245  ElementDataType& rVariables,
246  Vector& rVolumeForce,
247  double& rIntegrationWeight) override;
248 
252  virtual void CalculateAndAddInternalForces(VectorType& rRightHandSideVector,
253  ElementDataType & rVariables,
254  double& rIntegrationWeight
255  ) override;
256 
260  virtual void CalculateAndAddExternalForces(VectorType& rRightHandSideVector,
261  ElementDataType & rVariables,
262  Vector & rVolumeForces,
263  double& rIntegrationWeight
264  ) override;
268  void CalculateAndAddFluidLinearMomentum(VectorType& rRightHandSideVector,
269  ElementDataType & rVariables,
270  double& rIntegrationWeight
271  );
275  void CalculateAndAddMassBalanceEquation(VectorType& rRightHandSideVector,
276  ElementDataType & rVariables,
277  double& rIntegrationWeight
278  );
279 
280 
284  virtual void CalculateAndAddMassStabilizationMatrix(MatrixType& rMassMatrix,
285  ElementDataType & rVariables,
286  double& rIntegrationWeight
287  );
288 
292  virtual void CalculateAndAddDampingStabilizationMatrix(MatrixType& rDampingMatrix,
293  ElementDataType & rVariables,
294  double& rIntegrationWeight
295  );
296 
297 
301  virtual void InitializeElementData(ElementDataType & rVariables, const ProcessInfo& rCurrentProcessInfo) override;
302 
303 
304 
308  void InitializeSystemMatrices(MatrixType& rLeftHandSideMatrix,
309  VectorType& rRightHandSideVector,
310  Flags& rCalculationFlags) override;
311 
312 
316  double & CalculateStabilizationFactor( ElementDataType & rVariables, double & rStabilizationFactor);
317 
328 
329 private:
330 
336 
337 
341 
342 
346 
347 
352 
356  friend class Serializer;
357 
358  // A private default constructor necessary for serialization
359 
360  virtual void save(Serializer& rSerializer) const override;
361 
362  virtual void load(Serializer& rSerializer) override;
363 
364 
371 
372 
373 }; // Class UpdatedLagrangianUWwPElement
374 
375 
376 
377 } // namespace Kratos
378 #endif // KRATOS_UPDATED_LAGRANGIAN_U_W_wP_ELEMENT_H_INCLUDED
379 
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
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
A stabilized element for the incompressible Navier-Stokes equations.
Definition: updated_lagrangian_element.h:64
Updated Lagrangian Large Displacement Lagrangian U-W Element for 3D and 2D geometries....
Definition: updated_lagrangian_U_W_wP_element.hpp:42
ConstitutiveLawType::Pointer ConstitutiveLawPointerType
Pointer type for constitutive laws.
Definition: updated_lagrangian_U_W_wP_element.hpp:50
GeometryData::IntegrationMethod IntegrationMethod
Type definition for integration methods.
Definition: updated_lagrangian_U_W_wP_element.hpp:54
ConstitutiveLaw ConstitutiveLawType
Definition: updated_lagrangian_U_W_wP_element.hpp:48
GeometryData::SizeType SizeType
Type for size.
Definition: updated_lagrangian_U_W_wP_element.hpp:56
double mTimeStep
Definition: updated_lagrangian_U_W_wP_element.hpp:199
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(UpdatedLagrangianUWwPElement)
Counted pointer of LargeDisplacementUPElement.
UpdatedLagrangianElement::ElementDataType ElementDataType
Type for element variables.
Definition: updated_lagrangian_U_W_wP_element.hpp:58
ConstitutiveLawType::StressMeasure StressMeasureType
StressMeasure from constitutive laws.
Definition: updated_lagrangian_U_W_wP_element.hpp:52
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
Definition: solid_element.hpp:233