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_2D_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_2D_CONDITION_H_INCLUDED )
11 #define KRATOS_POINT_RIGID_CONTACT_PENALTY_2D_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) PointRigidContactPenalty2DCondition
47 {
48 protected:
49 
50  typedef struct
51  {
52  bool Slip;
53  double Sign;
54 
55  double DeltaTime;
57 
61 
63 
64 
65 
66 public:
67 
69 
72 
74  // Counted pointer of PointRigidContactPenalty3DCondition
77 
81 
84 
86  PointRigidContactPenalty2DCondition(IndexType NewId, GeometryType::Pointer pGeometry);
87 
88  PointRigidContactPenalty2DCondition(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties);
89 
90  PointRigidContactPenalty2DCondition(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties, SpatialBoundingBox::Pointer pRigidWall);
91 
92 
95 
96 
99 
100 
104 
105 
109 
117  Condition::Pointer Create(IndexType NewId, NodesArrayType const&
118  ThisNodes, PropertiesType::Pointer pProperties) const override;
119 
120 
128  Condition::Pointer Clone(IndexType NewId,
129  NodesArrayType const& ThisNodes) const override;
130 
144 
145 protected:
157 
158 
159 
163  double& CalculateIntegrationWeight(double& rIntegrationWeight) override;
164 
165 
166 
177 
178 private:
181 
185 
189 
190 
194 
195 
199 
200 
204 
208 
209  friend class Serializer;
210 
211  void save(Serializer& rSerializer) const override
212  {
214  }
215 
216  void load(Serializer& rSerializer) override
217  {
219  }
220 
221 
222 }; // Class PointRigidContactPenalty2DCondition
223 
225 
228 
229 
233 
234 
236 /* inline std::istream& operator >> (std::istream& rIStream,
237  PointRigidContactPenalty2DCondition& rThis);
238 */
240 /* inline std::ostream& operator << (std::ostream& rOStream,
241  const PointRigidContactPenalty2DCondition& rThis)
242  {
243  rThis.PrintInfo(rOStream);
244  rOStream << std::endl;
245  rThis.PrintData(rOStream);
246 
247  return rOStream;
248  }*/
250 
251 } // namespace Kratos.
252 
253 #endif // KRATOS_POINT_RIGID_CONTACT_PENALTY_2D_CONDITION_H_INCLUDED defined
Definition: amatrix_interface.h:41
Short class definition.
Definition: point_rigid_contact_penalty_2D_condition.hpp:47
BoundedVector< double, 3 > PointType
Tensor order 1 definition.
Definition: point_rigid_contact_penalty_2D_condition.hpp:71
PointRigidContactPenalty2DCondition()
Serialization constructor.
Definition: point_rigid_contact_penalty_2D_condition.hpp:83
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(PointRigidContactPenalty2DCondition)
Short class definition.
Definition: point_rigid_contact_penalty_3D_condition.hpp:47
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
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
Definition: point_rigid_contact_penalty_2D_condition.hpp:51
double PreviousTangentForceModulus
Definition: point_rigid_contact_penalty_2D_condition.hpp:56
double StaticFrictionCoefficient
Definition: point_rigid_contact_penalty_2D_condition.hpp:60
double DeltaTime
Definition: point_rigid_contact_penalty_2D_condition.hpp:55
double FrictionCoefficient
Definition: point_rigid_contact_penalty_2D_condition.hpp:58
bool Slip
Definition: point_rigid_contact_penalty_2D_condition.hpp:52
double DynamicFrictionCoefficient
Definition: point_rigid_contact_penalty_2D_condition.hpp:59
double Sign
Definition: point_rigid_contact_penalty_2D_condition.hpp:53