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.
small_displacement_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_SMALL_DISPLACEMENT_U_W_WP_ELEMENT_H_INCLUDED )
11 #define KRATOS_SMALL_DISPLACEMENT_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) SmallDisplacementUWwPElement
42 {
43 public:
44 
50  typedef ConstitutiveLawType::Pointer ConstitutiveLawPointerType;
59 
63 
66 
69 
71  SmallDisplacementUWwPElement(IndexType NewId, GeometryType::Pointer pGeometry);
72 
73  SmallDisplacementUWwPElement(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 
281 
285  virtual void InitializeElementData(ElementDataType & rVariables, const ProcessInfo& rCurrentProcessInfo) override;
286 
287 
288 
292  void InitializeSystemMatrices(MatrixType& rLeftHandSideMatrix,
293  VectorType& rRightHandSideVector,
294  Flags& rCalculationFlags) override;
295 
296 
300  double & CalculateStabilizationFactor( ElementDataType & rVariables, double & rStabilizationFactor);
301 
312 
313 private:
314 
320 
321 
325 
326 
330 
331 
336 
340  friend class Serializer;
341 
342  // A private default constructor necessary for serialization
343 
344  virtual void save(Serializer& rSerializer) const override;
345 
346  virtual void load(Serializer& rSerializer) override;
347 
348 
355 
356 
357 }; // Class SmallDisplacementUWwPElement
358 
359 
360 
361 } // namespace Kratos
362 #endif // KRATOS_SMALL_DISPLACEMENT_U_W_wP_ELEMENT_H_INCLUDED
363 
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
Small Displacement Element for 3D and 2D geometries.
Definition: small_displacement_element.hpp:47
Updated Lagrangian Large Displacement Lagrangian U-W Element for 3D and 2D geometries....
Definition: small_displacement_U_W_wP_element.hpp:42
SmallDisplacementElement::ElementDataType ElementDataType
Type for element variables.
Definition: small_displacement_U_W_wP_element.hpp:58
GeometryData::SizeType SizeType
Type for size.
Definition: small_displacement_U_W_wP_element.hpp:56
GeometryData::IntegrationMethod IntegrationMethod
Type definition for integration methods.
Definition: small_displacement_U_W_wP_element.hpp:54
ConstitutiveLaw ConstitutiveLawType
Definition: small_displacement_U_W_wP_element.hpp:48
ConstitutiveLawType::StressMeasure StressMeasureType
StressMeasure from constitutive laws.
Definition: small_displacement_U_W_wP_element.hpp:52
double mTimeStep
Definition: small_displacement_U_W_wP_element.hpp:199
ConstitutiveLawType::Pointer ConstitutiveLawPointerType
Pointer type for constitutive laws.
Definition: small_displacement_U_W_wP_element.hpp:50
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(SmallDisplacementUWwPElement)
Counted pointer of LargeDisplacementUPElement.
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