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.
large_displacement_segregated_V_P_element.hpp
Go to the documentation of this file.
1 //
2 // Project Name: KratosSolidMechanicsApplication $
3 // Created by: $Author: JMCarbonell $
4 // Last modified by: $Co-Author: $
5 // Date: $Date: April 2018 $
6 // Revision: $Revision: 0.0 $
7 //
8 //
9 
10 #if !defined(KRATOS_LARGE_DISPLACEMENT_SEGREGATED_V_P_ELEMENT_H_INCLUDED)
11 #define KRATOS_LARGE_DISPLACEMENT_SEGREGATED_V_P_ELEMENT_H_INCLUDED
12 
13 // System includes
14 
15 // External includes
16 
17 // Project includes
19 
20 
21 namespace Kratos
22 {
37 
39 
45 class KRATOS_API(SOLID_MECHANICS_APPLICATION) LargeDisplacementSegregatedVPElement
47 {
48 public:
49 
55  typedef ConstitutiveLawType::Pointer ConstitutiveLawPointerType;
64 
68 
69  enum StepType{VELOCITY_STEP = 0, PRESSURE_STEP = 1};
70 
73 
76 
78  LargeDisplacementSegregatedVPElement(IndexType NewId, GeometryType::Pointer pGeometry);
79 
80  LargeDisplacementSegregatedVPElement(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties);
81 
84 
85 
88 
92 
95 
99 
110  Element::Pointer Create(IndexType NewId, NodesArrayType const& ThisNodes, PropertiesType::Pointer pProperties) const override;
111 
119  Element::Pointer Clone(IndexType NewId, NodesArrayType const& ThisNodes) const override;
120 
121  //************* STARTING - ENDING METHODS
122 
126  void InitializeSolutionStep(const ProcessInfo& rCurrentProcessInfo) override;
127 
131  void FinalizeSolutionStep(const ProcessInfo& rCurrentProcessInfo) override;
132 
136  void InitializeNonLinearIteration(const ProcessInfo& rCurrentProcessInfo) override;
137 
141  void FinalizeNonLinearIteration(const ProcessInfo& rCurrentProcessInfo) override;
142 
143 
144  //************* GETTING METHODS
145 
149  void GetDofList(DofsVectorType& rElementalDofList, const ProcessInfo& rCurrentProcessInfo) const override;
150 
154  void EquationIdVector(EquationIdVectorType& rResult, const ProcessInfo& rCurrentProcessInfo) const override;
155 
159  void GetValuesVector(Vector& rValues, int Step = 0) const override;
160 
164  void GetFirstDerivativesVector(Vector& rValues, int Step = 0) const override;
165 
169  void GetSecondDerivativesVector(Vector& rValues, int Step = 0) const override;
170 
171 
172  //************* COMPUTING METHODS
173 
183  void CalculateLocalSystem(MatrixType& rLeftHandSideMatrix,
184  VectorType& rRightHandSideVector,
185  const ProcessInfo& rCurrentProcessInfo) override;
192  void CalculateRightHandSide(VectorType& rRightHandSideVector,
193  const ProcessInfo& rCurrentProcessInfo) override;
200  void CalculateLeftHandSide (MatrixType& rLeftHandSideMatrix,
201  const ProcessInfo& rCurrentProcessInfo) override;
202 
209  void CalculateMassMatrix(MatrixType& rMassMatrix,
210  const ProcessInfo& rCurrentProcessInfo) override;
211 
218  void CalculateDampingMatrix(MatrixType& rDampingMatrix,
219  const ProcessInfo& rCurrentProcessInfo) override;
220 
221 
222  //************************************************************************************
223  //************************************************************************************
231  int Check(const ProcessInfo& rCurrentProcessInfo) const override;
232 
236 
247 
248 protected:
254 
256 
263 
267  virtual void SetProcessInformation(const ProcessInfo& rCurrentProcessInfo);
268 
272  void CalculateAndAddLHS(LocalSystemComponents& rLocalSystem,
273  ElementDataType& rVariables,
274  double& rIntegrationWeight) override;
275 
279  void CalculateAndAddRHS(LocalSystemComponents& rLocalSystem,
280  ElementDataType& rVariables,
281  Vector& rVolumeForce,
282  double& rIntegrationWeight) override;
283 
287  virtual void CalculateAndAddKpp(MatrixType& rLeftHandSideMatrix,
288  ElementDataType& rVariables);
289 
293  virtual void CalculateAndAddPressureForces(VectorType& rRightHandSideVector,
294  ElementDataType & rVariables);
295 
299  SizeType GetDofsSize() const override;
300 
311 
312 private:
313 
332  friend class Serializer;
333 
334  // A private default constructor necessary for serialization
335 
336  void save(Serializer& rSerializer) const override;
337 
338  void load(Serializer& rSerializer) override;
339 
346 
347 }; // Class LargeDisplacementSegregatedVPElement
348 
356 
357 } // namespace Kratos.
358 #endif // KRATOS_LARGE_DISPLACEMENT_SEGREGATED_V_P_ELEMENT_H_INCLUDED defined
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Definition: constitutive_law.h:47
StressMeasure
Definition: constitutive_law.h:69
std::size_t SizeType
Definition: element.h:94
IntegrationMethod
Definition: geometry_data.h:76
std::size_t SizeType
Definition: geometry_data.h:173
Large Displacement Lagrangian V Element for 3D and 2D geometries.
Definition: large_displacement_segregated_V_P_element.hpp:47
StepType
Definition: large_displacement_segregated_V_P_element.hpp:69
LargeDisplacementVElement::ElementDataType ElementDataType
Type for element variables.
Definition: large_displacement_segregated_V_P_element.hpp:63
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(LargeDisplacementSegregatedVPElement)
Counted pointer of LargeDisplacementSegregatedVPElement.
ConstitutiveLawType::Pointer ConstitutiveLawPointerType
Pointer type for constitutive laws.
Definition: large_displacement_segregated_V_P_element.hpp:55
ConstitutiveLawType::StressMeasure StressMeasureType
StressMeasure from constitutive laws.
Definition: large_displacement_segregated_V_P_element.hpp:57
StepType mStepVariable
Definition: large_displacement_segregated_V_P_element.hpp:255
ConstitutiveLaw ConstitutiveLawType
Definition: large_displacement_segregated_V_P_element.hpp:53
GeometryData::SizeType SizeType
Type for size.
Definition: large_displacement_segregated_V_P_element.hpp:61
GeometryData::IntegrationMethod IntegrationMethod
Type definition for integration methods.
Definition: large_displacement_segregated_V_P_element.hpp:59
Large Displacement Lagrangian V Element for 3D and 2D geometries.
Definition: large_displacement_V_element.hpp:47
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
std::size_t IndexType
The definition of the index type.
Definition: key_hash.h:35
Matrix MatrixType
Definition: geometrical_transformation_utilities.h:55
Modeler::Pointer Create(const std::string &ModelerName, Model &rModel, const Parameters ModelParameters)
Checks if the modeler is registered.
Definition: modeler_factory.cpp:30
void InitializeSolutionStep(ConstructionUtility &rThisUtil, std::string ThermalSubModelPartName, std::string MechanicalSubModelPartName, std::string HeatFluxSubModelPartName, std::string HydraulicPressureSubModelPartName, bool thermal_conditions, bool mechanical_conditions, int phase)
Definition: add_custom_utilities_to_python.cpp:45
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
ModelPart::NodesContainerType NodesArrayType
Definition: gid_gauss_point_container.h:42
def load(f)
Definition: ode_solve.py:307
Definition: solid_element.hpp:83
Definition: solid_element.hpp:233