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_P_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_P_wP_ELEMENT_H_INCLUDED )
10 #define KRATOS_UPDATED_LAGRANGIAN_U_P_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) UpdatedLagrangianUPwPElement
42  {
43  public:
44 
50  typedef ConstitutiveLawType::Pointer ConstitutiveLawPointerType;
55 
59 
62 
65 
67  UpdatedLagrangianUPwPElement(IndexType NewId, GeometryType::Pointer pGeometry);
68 
69  UpdatedLagrangianUPwPElement(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 
111  //************* GETTING METHODS
112 
113 
114  //************* STARTING - ENDING METHODS
115 
119  void GetDofList(DofsVectorType& rElementalDofList, ProcessInfo& rCurrentProcessInfo) override;
120 
124  void EquationIdVector(EquationIdVectorType& rResult, ProcessInfo& rCurrentProcessInfo) override;
125 
129  void GetValuesVector(Vector& rValues, int Step = 0) const override;
130 
134  void GetFirstDerivativesVector(Vector& rValues, int Step = 0) const override;
135 
139  void GetSecondDerivativesVector(Vector& rValues, int Step = 0) const override;
140 
144  void FinalizeSolutionStep(ProcessInfo& rCurrentProcessInfo) override;
145 
146  //************************************************************************************
147  //************************************************************************************
155  int Check(const ProcessInfo& rCurrentProcessInfo) override;
156 
160 
171  protected:
177 
178  double mTimeStep; // because I don't kwnow how to do it better
179 
183 
189  void CalculateElementalSystem(LocalSystemComponents& rLocalSystem,
190  ProcessInfo& rCurrentProcessInfo) override;
191 
195 
200  void CalculateAndAddLHS(LocalSystemComponents& rLocalSystem,
201  ElementDataType& rVariables,
202  double& rIntegrationWeight) override;
203 
208  void CalculateAndAddRHS(LocalSystemComponents& rLocalSystem,
209  ElementDataType& rVariables,
210  Vector& rVolumeForce,
211  double& rIntegrationWeight) override;
212 
216  void InitializeElementData(ElementDataType & rVariables, const ProcessInfo& rCurrentProcessInfo) override;
217 
221  virtual void CalculateAndAddUnconsideredKuuTerms(MatrixType& rK,
222  ElementDataType & rVariables,
223  double& rIntegrationWeight
224  );
225 
229  virtual void CalculateAndAddKuwP(MatrixType& rK,
230  ElementDataType & rVariables,
231  double& rIntegrationWeight
232  );
233 
237  virtual void CalculateAndAddKwPu(MatrixType& rK,
238  ElementDataType & rVariables,
239  double& rIntegrationWeight
240  );
241 
245  virtual void CalculateAndAddKwPP(MatrixType& rK,
246  ElementDataType & rVariables,
247  double& rIntegrationWeight
248  );
249 
253  virtual void CalculateAndAddKwPwP(MatrixType& rK,
254  ElementDataType & rVariables,
255  double& rIntegrationWeight
256  );
257 
261  virtual void CalculateAndAddKwPwPStab(MatrixType& rK,
262  ElementDataType & rVariables,
263  double& rIntegrationWeight
264  );
265 
269  void CalculateAndAddExternalForces(VectorType& rRightHandSideVector,
270  ElementDataType& rVariables,
271  Vector& rVolumeForce,
272  double& rIntegrationWeight
273  ) override;
274 
275 
279  void CalculateAndAddPressureForces(VectorType& rRightHandSideVector,
280  ElementDataType & rVariables,
281  double& rIntegrationWeight
282  ) override;
283 
284 
288  void CalculateAndAddStabilizedPressure(VectorType& rRightHandSideVector,
289  ElementDataType & rVariables,
290  double& rIntegrationWeight
291  ) override;
292 
296  void CalculateAndAddInternalForces(VectorType& rRightHandSideVector,
297  ElementDataType & rVariables,
298  double& rIntegrationWeight
299  ) override;
300 
304  virtual void CalculateAndAddWaterPressureForces( VectorType& rRightHandSideVector,
305  ElementDataType& rVariables,
306  double& rIntegrationWeight
307  );
311  virtual void CalculateAndAddStabilizedWaterPressure( VectorType& rRightHandSideVector,
312  ElementDataType& rVariables,
313  double& rIntegartionWeight
314  );
315 
319  void InitializeSystemMatrices(MatrixType& rLeftHandSideMatrix,
320  VectorType& rRightHandSideVector,
321  Flags& rCalculationFlags) override;
322 
323 
327  double& CalculateVolumeChange(double& rVolumeChange, ElementDataType& rVariables) override;
328 
329 
330  void GetConstants( double& rScalingConstant, double& rWaterBulk, double& rDeltaTime, double& rPermeability);
331 
332  virtual double GetElementSize( const Matrix& rDN_DX);
333 
344 
345  private:
346 
352 
353 
357 
358 
362 
363 
368 
372  friend class Serializer;
373 
374  // A private default constructor necessary for serialization
375 
376  void save(Serializer& rSerializer) const override;
377 
378  void load(Serializer& rSerializer) override;
379 
380 
387 
388 
389 }; // Class UpdatedLagrangianUPwPElement
390 
391 
392 
393 } // namespace Kratos
394 #endif // KRATOS_UPDATED_LAGRANGIAN_U_P_wP_ELEMENT_H_INCLUDED
395 
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
Large Displacement Lagrangian U-P Element for 3D and 2D geometries. Linear Triangles and Tetrahedra (...
Definition: updated_lagrangian_U_Pressure_element.hpp:46
Updated Lagrangian Large Displacement Lagrangian U-wP Element for 3D and 2D geometries....
Definition: updated_lagrangian_U_P_wP_element.hpp:42
GeometryData::IntegrationMethod IntegrationMethod
Type definition for integration methods.
Definition: updated_lagrangian_U_P_wP_element.hpp:54
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(UpdatedLagrangianUPwPElement)
Counted pointer of LargeDisplacementUPElement.
double mTimeStep
Definition: updated_lagrangian_U_P_wP_element.hpp:178
ConstitutiveLawType::StressMeasure StressMeasureType
StressMeasure from constitutive laws.
Definition: updated_lagrangian_U_P_wP_element.hpp:52
ConstitutiveLawType::Pointer ConstitutiveLawPointerType
Pointer type for constitutive laws.
Definition: updated_lagrangian_U_P_wP_element.hpp:50
ConstitutiveLaw ConstitutiveLawType
Definition: updated_lagrangian_U_P_wP_element.hpp:48
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