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.
axisym_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_AXISYM_POINT_RIGID_CONTACT_PENALTY_2D_CONDITION_H_INCLUDED )
11 #define KRATOS_AXISYM_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) AxisymPointRigidContactPenalty2DCondition
47 {
48 public:
49 
51 
53  typedef Vector VectorType;
54 
56  // Counted pointer of PointRigidContactPenalty2DCondition
59 
63 
66 
68  AxisymPointRigidContactPenalty2DCondition(IndexType NewId, GeometryType::Pointer pGeometry);
69 
70  AxisymPointRigidContactPenalty2DCondition(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties);
71 
72  AxisymPointRigidContactPenalty2DCondition(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties, SpatialBoundingBox::Pointer pRigidWall);
73 
74 
77 
78 
81 
82 
86 
87 
91 
99  Condition::Pointer Create(IndexType NewId, NodesArrayType const&
100  ThisNodes, PropertiesType::Pointer pProperties) const override;
101 
102 
110  Condition::Pointer Clone(IndexType NewId,
111  NodesArrayType const& ThisNodes) const override;
112 
113 
127 
128 protected:
140 
141 
145  void CalculateKinematics(ConditionVariables& rVariables,
146  const ProcessInfo& rCurrentProcessInfo,
147  const double& rPointNumber) override;
148 
149 
153  void CalculateAndAddLHS(LocalSystemComponents& rLocalSystem,
154  ConditionVariables& rVariables,
155  double& rIntegrationWeight) override;
156 
160  void CalculateAndAddRHS(LocalSystemComponents& rLocalSystem,
161  ConditionVariables& rVariables,
162  double& rIntegrationWeight) override;
163 
167  void CalculateRadius(double & rCurrentRadius,
168  double & rReferenceRadius);
169 
170 
174  void CalculateContactFactors(ConditionVariables &rContact) override;
175 
186 
187 private:
190 
194 
198 
199 
203 
207 
208 
212 
216 
217  friend class Serializer;
218 
219  void save(Serializer& rSerializer) const override
220  {
222  }
223 
224  void load(Serializer& rSerializer) override
225  {
227  }
228 
229 
230 }; // Class AxisymPointRigidContactPenalty2DCondition
231 
233 
236 
237 
241 
242 
244 /* inline std::istream& operator >> (std::istream& rIStream,
245  AxisymPointRigidContactPenalty2DCondition& rThis);
246 */
248 /* inline std::ostream& operator << (std::ostream& rOStream,
249  const AxisymPointRigidContactPenalty2DCondition& rThis)
250  {
251  rThis.PrintInfo(rOStream);
252  rOStream << std::endl;
253  rThis.PrintData(rOStream);
254 
255  return rOStream;
256  }*/
258 
259 } // namespace Kratos.
260 
261 #endif // KRATOS_AXISYM_POINT_RIGID_CONTACT_PENALTY_2D_CONDITION_H_INCLUDED defined
Short class definition.
Definition: axisym_point_rigid_contact_penalty_2D_condition.hpp:47
AxisymPointRigidContactPenalty2DCondition()
Serialization constructor.
Definition: axisym_point_rigid_contact_penalty_2D_condition.hpp:65
Vector VectorType
Tensor order 1 definition.
Definition: axisym_point_rigid_contact_penalty_2D_condition.hpp:53
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(AxisymPointRigidContactPenalty2DCondition)
Short class definition.
Definition: point_rigid_contact_penalty_2D_condition.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
#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
double CalculateRadius(const PairedCondition *pCondition, const Vector &rNSlave)
Calculates the radius of axisymmetry.
Definition: mortar_explicit_contribution_utilities.cpp:675
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