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.
hydraulic_rigid_contact_penalty_3D_condition.hpp
Go to the documentation of this file.
1 //
2 // Project Name: KratosContactMechanicsApplication $
3 // Created by: $Author: LMonforte $
4 // Last modified by: $Co-Author: $
5 // Date: $Date: January 2018 $
6 // Revision: $Revision: 0.0 $
7 //
8 //
9 
10 #if !defined(KRATOS_HYDRAULIC_RIGID_CONTACT_PENALTY_CONDITION_H_INCLUDED )
11 #define KRATOS_HYDRAULIC_RIGID_CONTACT_PENALTY_CONDITION_H_INCLUDED
12 
13 // System includes
14 
15 // External includes
16 
17 // Project includes
19 
20 namespace Kratos
21 {
22 
25 
29 
33 
37 
41 
43 
45 class KRATOS_API(CONTACT_MECHANICS_APPLICATION) HydraulicRigidContactPenalty3DCondition
47 {
48 public:
49 
51 
54 
56  // Counted pointer of WaterPointRigidContactCondition
59 
62 
65 
67  HydraulicRigidContactPenalty3DCondition(IndexType NewId, GeometryType::Pointer pGeometry);
68 
69  HydraulicRigidContactPenalty3DCondition(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties);
70 
71  HydraulicRigidContactPenalty3DCondition(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties, SpatialBoundingBox::Pointer pRigidWall);
72 
73 
76 
77 
80 
81 
85 
86 
90 
98  Condition::Pointer Create(IndexType NewId, NodesArrayType const&
99  ThisNodes, PropertiesType::Pointer pProperties) const override;
100 
108  Condition::Pointer Clone(IndexType NewId,
109  NodesArrayType const& ThisNodes) const override;
110 
111 
112 
116  virtual void InitializeNonLinearIteration(const ProcessInfo& rCurrentProcessInfo) override;
117 
118  //************* GETTING METHODS
119 
123  void GetDofList(DofsVectorType& rConditionDofList,
124  const ProcessInfo& rCurrentProcessInfo ) const override;
125 
129  void EquationIdVector(EquationIdVectorType& rResult,
130  const ProcessInfo& rCurrentProcessInfo ) const override;
131 
135  void GetValuesVector(Vector& rValues,
136  int Step = 0 ) const override;
137 
141  void GetFirstDerivativesVector(Vector& rValues,
142  int Step = 0 ) const override;
143 
147  void GetSecondDerivativesVector(Vector& rValues,
148  int Step = 0 ) const override;
149 
150 
151 
164 
165 protected:
168 
172 
176 
180 
184  virtual void CalculateKinematics(ConditionVariables& rVariables,
185  const ProcessInfo& rCurrentProcessInfo,
186  const double& rPointNumber) override;
187 
188 
189 
193  virtual void CalculateAndAddKuug(MatrixType& rLeftHandSideMatrix,
194  ConditionVariables& rVariables,
195  double& rIntegrationWeight) override;
196 
200  virtual void CalculateAndAddContactForces(Vector& rRightHandSideVector,
201  ConditionVariables& rVariables,
202  double& rIntegrationWeight ) override;
203 
204 
205  void CalculateAndAddNormalContactForce(Vector& rRightHandSideVector, ConditionVariables& rVariables, double& rIntegrationWeight);
206 
207  double& CalculateNormalForceModulus( double& rNormalForceModulus, ConditionVariables& rVariables );
208 
209 
213  virtual void CalculateContactFactors(ConditionVariables &rContact);
214 
225 
226 private:
229 
233 
237 
238 
242 
243 
247 
248 
252 
256 
257  friend class Serializer;
258 
259  virtual void save(Serializer& rSerializer) const override
260  {
262  }
263 
264  virtual void load(Serializer& rSerializer) override
265  {
267  }
268 
269 
270 }; // Class HydraulicRigidContactPenalty3DCondition
271 
273 
276 
277 
281 
282 
284 /* inline std::istream& operator >> (std::istream& rIStream,
285  HydraulicRigidContactPenalty3DCondition& rThis);
286 */
288 /* inline std::ostream& operator << (std::ostream& rOStream,
289  const HydraulicRigidContactPenalty3DCondition& rThis)
290  {
291  rThis.PrintInfo(rOStream);
292  rOStream << std::endl;
293  rThis.PrintData(rOStream);
294 
295  return rOStream;
296  }*/
298 
299 } // namespace Kratos.
300 
301 #endif // KRATOS_HYDRAULIC_RIGID_CONTACT_PENALTY_CONDITION_H_INCLUDED defined
Short class definition.
Definition: hydraulic_rigid_contact_penalty_3D_condition.hpp:47
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(HydraulicRigidContactPenalty3DCondition)
HydraulicRigidContactPenalty3DCondition()
Serialization constructor.
Definition: hydraulic_rigid_contact_penalty_3D_condition.hpp:64
BoundedVector< double, 3 > PointType
Tensor order 1 definition.
Definition: hydraulic_rigid_contact_penalty_3D_condition.hpp:53
Definition: amatrix_interface.h:41
Point Rigid Contact Condition for 3D and 2D geometries. (base class)
Definition: point_rigid_contact_condition.hpp:53
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
#define KRATOS_SERIALIZE_SAVE_BASE_CLASS(Serializer, BaseType)
Definition: define.h:812
#define KRATOS_SERIALIZE_LOAD_BASE_CLASS(Serializer, BaseType)
Definition: define.h:815
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
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