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_axisym_rigid_contact_penalty_2D_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_AXISYM_RIGID_CONTACT_PENALTY_CONDITION_H_INCLUDED )
11 #define KRATOS_HYDRAULIC_AXISYM_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) HydraulicAxisymRigidContactPenalty2DCondition
47 {
48 public:
49 
51 
54 
56  // Counted pointer of WaterPointRigidContactCondition
59 
62 
65 
67  HydraulicAxisymRigidContactPenalty2DCondition(IndexType NewId, GeometryType::Pointer pGeometry);
68 
69  HydraulicAxisymRigidContactPenalty2DCondition(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties);
70 
71  HydraulicAxisymRigidContactPenalty2DCondition(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 
124 
125 protected:
128 
132 
136 
140 
144  virtual void CalculateKinematics(ConditionVariables& rVariables,
145  const ProcessInfo& rCurrentProcessInfo,
146  const double& rPointNumber) override;
147 
148 
152  virtual void CalculateAndAddLHS(LocalSystemComponents& rLocalSystem,
153  ConditionVariables& rVariables,
154  double& rIntegrationWeight) override;
155 
159  virtual void CalculateAndAddRHS(LocalSystemComponents& rLocalSystem,
160  ConditionVariables& rVariables,
161  double& rIntegrationWeight) override;
162 
163 
167  void CalculateRadius(double & rCurrentRadius,
168  double & rReferenceRadius);
169 
170 
181 
182 private:
185 
189 
193 
194 
198 
199 
203 
204 
208 
212 
213  friend class Serializer;
214 
215  virtual void save(Serializer& rSerializer) const override
216  {
218  }
219 
220  virtual void load(Serializer& rSerializer) override
221  {
223  }
224 
225 
226 }; // Class HydraulicAxisymRigidContactPenalty2DCondition
227 
229 
232 
233 
237 
238 
240 /* inline std::istream& operator >> (std::istream& rIStream,
241  HydraulicAxisymRigidContactPenalty2DCondition& rThis);
242 */
244 /* inline std::ostream& operator << (std::ostream& rOStream,
245  const HydraulicAxisymRigidContactPenalty2DCondition& rThis)
246  {
247  rThis.PrintInfo(rOStream);
248  rOStream << std::endl;
249  rThis.PrintData(rOStream);
250 
251  return rOStream;
252  }*/
254 
255 } // namespace Kratos.
256 
257 #endif // KRATOS_HYDRAULIC_AXISYM_RIGID_CONTACT_PENALTY_CONDITION_H_INCLUDED defined
Short class definition.
Definition: hydraulic_axisym_rigid_contact_penalty_2D_condition.hpp:47
HydraulicAxisymRigidContactPenalty2DCondition()
Serialization constructor.
Definition: hydraulic_axisym_rigid_contact_penalty_2D_condition.hpp:64
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(HydraulicAxisymRigidContactPenalty2DCondition)
BoundedVector< double, 3 > PointType
Tensor order 1 definition.
Definition: hydraulic_axisym_rigid_contact_penalty_2D_condition.hpp:53
Short class definition.
Definition: hydraulic_rigid_contact_penalty_3D_condition.hpp:47
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
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