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.
point_rigid_contact_penalty_3D_condition.hpp
Go to the documentation of this file.
1 //
2 // Project Name: KratosContactMechanicsApplication $
3 // Created by: $Author: JMCarbonell $
4 // Last modified by: $Co-Author: $
5 // Date: $Date: July 2016 $
6 // Revision: $Revision: 0.0 $
7 //
8 //
9 
10 #if !defined(KRATOS_POINT_RIGID_CONTACT_PENALTY_3D_CONDITION_H_INCLUDED )
11 #define KRATOS_POINT_RIGID_CONTACT_PENALTY_3D_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) PointRigidContactPenalty3DCondition
47 {
48 public:
49 
51 
54 
56  // Counted pointer of PointRigidContactCondition
59 
62 
65 
67  PointRigidContactPenalty3DCondition(IndexType NewId, GeometryType::Pointer pGeometry);
68 
69  PointRigidContactPenalty3DCondition(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties);
70 
71  PointRigidContactPenalty3DCondition(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 
123 
124 protected:
127 
131 
135 
139 
143  void CalculateKinematics(ConditionVariables& rVariables,
144  const ProcessInfo& rCurrentProcessInfo,
145  const double& rPointNumber) override;
146 
147 
148 
152  void CalculateAndAddKuug(MatrixType& rLeftHandSideMatrix,
153  ConditionVariables& rVariables,
154  double& rIntegrationWeight) override;
155 
156  virtual void CalculateAndAddKuugTangent(MatrixType& rLeftHandSideMatrix,
157  ConditionVariables& rVariables,
158  double& rIntegrationWeight);
159 
163  void CalculateAndAddContactForces(Vector& rRightHandSideVector,
164  ConditionVariables& rVariables,
165  double& rIntegrationWeight ) override;
166 
167 
168  virtual void CalculateAndAddNormalContactForce(Vector& rRightHandSideVector, ConditionVariables& rVariables, double& rIntegrationWeight);
169 
170 
171  virtual void CalculateAndAddTangentContactForce(Vector& rRightHandSideVector, ConditionVariables& rVariables, double& rIntegrationWeight);
172 
173 
174 
175  double& CalculateNormalForceModulus( double& rNormalForceModulus, ConditionVariables& rVariables );
176 
177  double& CalculateEffectiveNormalForceModulus( double& rNormalForceModulus, ConditionVariables& rVariables );
178 
179 
180 
181  double CalculateCoulombsFrictionLaw( double& rTangentForceModulus, double& rNormalForceModulus, ConditionVariables& rVariables );
182 
183  double CalculateFrictionCoefficient(const double& rTangentRelativeMovement, const double& rDeltaTime);
184 
185 
189  virtual void CalculateContactFactors(ConditionVariables &rContact);
190 
201 
202 private:
205 
209 
213 
214 
218 
219 
223 
224 
228 
232 
233  friend class Serializer;
234 
235  void save(Serializer& rSerializer) const override
236  {
238  }
239 
240  void load(Serializer& rSerializer) override
241  {
243  }
244 
245 
246 }; // Class PointRigidContactPenalty3DCondition
247 
249 
252 
253 
257 
258 
260 /* inline std::istream& operator >> (std::istream& rIStream,
261  PointRigidContactPenalty3DCondition& rThis);
262 */
264 /* inline std::ostream& operator << (std::ostream& rOStream,
265  const PointRigidContactPenalty3DCondition& rThis)
266  {
267  rThis.PrintInfo(rOStream);
268  rOStream << std::endl;
269  rThis.PrintData(rOStream);
270 
271  return rOStream;
272  }*/
274 
275 } // namespace Kratos.
276 
277 #endif // KRATOS_POINT_RIGID_CONTACT_PENALTY_3D_CONDITION_H_INCLUDED defined
Definition: amatrix_interface.h:41
Point Rigid Contact Condition for 3D and 2D geometries. (base class)
Definition: point_rigid_contact_condition.hpp:53
Short class definition.
Definition: point_rigid_contact_penalty_3D_condition.hpp:47
BoundedVector< double, 3 > PointType
Tensor order 1 definition.
Definition: point_rigid_contact_penalty_3D_condition.hpp:53
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(PointRigidContactPenalty3DCondition)
PointRigidContactPenalty3DCondition()
Serialization constructor.
Definition: point_rigid_contact_penalty_3D_condition.hpp:64
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