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.
axisym_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_AXISYM_UPDATED_LAGRANGIAN_U_P_wP_ELEMENT_H_INCLUDED )
10 #define KRATOS_AXISYM_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) AxisymUpdatedLagrangianUPwPElement
42  {
43  public:
44 
50  typedef ConstitutiveLawType::Pointer ConstitutiveLawPointerType;
55 
59 
62 
65 
67  AxisymUpdatedLagrangianUPwPElement(IndexType NewId, GeometryType::Pointer pGeometry);
68 
69  AxisymUpdatedLagrangianUPwPElement(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 
141 
142  //************************************************************************************
143  //************************************************************************************
151  int Check(const ProcessInfo& rCurrentProcessInfo) override;
152 
156 
167  protected:
173 
174  double mTimeStep; // because I don't kwnow how to do it better
175 
179 
180 
184 
189  virtual void CalculateAndAddLHS(LocalSystemComponents& rLocalSystem,
190  ElementDataType& rVariables,
191  double& rIntegrationWeight) override;
192 
197  virtual void CalculateAndAddRHS(LocalSystemComponents& rLocalSystem,
198  ElementDataType& rVariables,
199  Vector& rVolumeForce,
200  double& rIntegrationWeight) override;
201 
205  virtual void InitializeElementData(ElementDataType & rVariables, const ProcessInfo& rCurrentProcessInfo) override;
206 
210  virtual void CalculateAndAddUnconsideredKuuTerms(MatrixType& rK,
211  ElementDataType & rVariables,
212  double& rIntegrationWeight
213  );
214 
218  virtual void CalculateAndAddKuwP(MatrixType& rK,
219  ElementDataType & rVariables,
220  double& rIntegrationWeight
221  );
222 
226  virtual void CalculateAndAddKwPu(MatrixType& rK,
227  ElementDataType & rVariables,
228  double& rIntegrationWeight
229  );
230 
234  virtual void CalculateAndAddKwPP(MatrixType& rK,
235  ElementDataType & rVariables,
236  double& rIntegrationWeight
237  );
238 
242  virtual void CalculateAndAddKwPwP(MatrixType& rK,
243  ElementDataType & rVariables,
244  double& rIntegrationWeight
245  );
246 
250  virtual void CalculateAndAddKwPwPStab(MatrixType& rK,
251  ElementDataType & rVariables,
252  double& rIntegrationWeight
253  );
254 
258  void CalculateAndAddExternalForces(VectorType& rRightHandSideVector,
259  ElementDataType& rVariables,
260  Vector& rVolumeForce,
261  double& rIntegrationWeight
262  ) override;
263 
264 
268  virtual void CalculateAndAddPressureForces(VectorType& rRightHandSideVector,
269  ElementDataType & rVariables,
270  double& rIntegrationWeight
271  ) override;
272 
273 
277  virtual void CalculateAndAddStabilizedPressure(VectorType& rRightHandSideVector,
278  ElementDataType & rVariables,
279  double& rIntegrationWeight
280  ) override;
281 
285  virtual void CalculateAndAddInternalForces(VectorType& rRightHandSideVector,
286  ElementDataType & rVariables,
287  double& rIntegrationWeight
288  ) override;
289 
293  virtual void CalculateAndAddWaterPressureForces( VectorType& rRightHandSideVector,
294  ElementDataType& rVariables,
295  double& rIntegrationWeight
296  );
300  virtual void CalculateAndAddStabilizedWaterPressure( VectorType& rRightHandSideVector,
301  ElementDataType& rVariables,
302  double& rIntegartionWeight
303  );
304 
308  void InitializeSystemMatrices(MatrixType& rLeftHandSideMatrix,
309  VectorType& rRightHandSideVector,
310  Flags& rCalculationFlags) override;
311 
312 
316  virtual double& CalculateVolumeChange(double& rVolumeChange, ElementDataType& rVariables) override;
317 
318 
319  void GetConstants( double& rScalingConstant, double& rWaterBulk, double& rDeltaTime, double& rPermeability);
320 
321  virtual double GetElementSize( const Matrix& rDN_DX);
322 
333 
334  private:
335 
341 
342 
346 
347 
351 
352 
357 
361  friend class Serializer;
362 
363  // A private default constructor necessary for serialization
364 
365  virtual void save(Serializer& rSerializer) const override;
366 
367  virtual void load(Serializer& rSerializer) override;
368 
369 
376 
377 
378 }; // Class AxisymUpdatedLagrangianUPwPElement
379 
380 
381 
382 } // namespace Kratos
383 #endif // KRATOS_UPDATED_LAGRANGIAN_U_P_wP_ELEMENT_H_INCLUDED
384 
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Definition: axisym_updated_lagrangian_U_Pressure_element.hpp:43
Updated Lagrangian Large Displacement Lagrangian U-wP Element for 3D and 2D geometries....
Definition: axisym_updated_lagrangian_U_P_wP_element.hpp:42
ConstitutiveLawType::Pointer ConstitutiveLawPointerType
Pointer type for constitutive laws.
Definition: axisym_updated_lagrangian_U_P_wP_element.hpp:50
ConstitutiveLawType::StressMeasure StressMeasureType
StressMeasure from constitutive laws.
Definition: axisym_updated_lagrangian_U_P_wP_element.hpp:52
GeometryData::IntegrationMethod IntegrationMethod
Type definition for integration methods.
Definition: axisym_updated_lagrangian_U_P_wP_element.hpp:54
double mTimeStep
Definition: axisym_updated_lagrangian_U_P_wP_element.hpp:174
ConstitutiveLaw ConstitutiveLawType
Definition: axisym_updated_lagrangian_U_P_wP_element.hpp:48
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(AxisymUpdatedLagrangianUPwPElement)
Counted pointer of LargeDisplacementUPElement.
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
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