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.
contact_domain_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_CONTACT_DOMAIN_PENALTY_2D_CONDITION_H_INCLUDED )
11 #define KRATOS_CONTACT_DOMAIN_PENALTY_2D_CONDITION_H_INCLUDED
12 
13 // System includes
14 
15 // External includes
16 
17 // Project includes
19 
20 namespace Kratos
21 {
30 
34 
38 
39 
40 class KRATOS_API(CONTACT_MECHANICS_APPLICATION) ContactDomainPenalty2DCondition
42 {
43 public:
44 
45 
51  typedef ConstitutiveLawType::Pointer ConstitutiveLawPointerType;
54 
56  typedef Node NodeType;
61 
62 
71 
72 
75 
79 
80 
83 
84  ContactDomainPenalty2DCondition(IndexType NewId, GeometryType::Pointer pGeometry);
85 
86  ContactDomainPenalty2DCondition(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties);
87 
90 
91 
94 
98 
101 
102 
106 
114  Condition::Pointer Create(IndexType NewId, NodesArrayType const& ThisNodes, PropertiesType::Pointer pProperties) const override;
115 
123  Condition::Pointer Clone(IndexType NewId, NodesArrayType const& ThisNodes) const override;
124 
125  //************************************************************************************
126  //************************************************************************************
134  //int Check(const ProcessInfo& rCurrentProcessInfo);
135 
136  //std::string Info() const;
137 
141 
148 
150  // String Info() const override;
151 
153  // void PrintInfo(std::ostream& rOStream) const override;
154 
156  // void PrintData(std::ostream& rOStream) const override;
161 
162 protected:
171 
172 
173 
177  void CalculateContactFactor(const ProcessInfo& rCurrentProcessInfo) override;
178 
179 
183  void CalculateExplicitFactors(ConditionVariables& rVariables,
184  const ProcessInfo& rCurrentProcessInfo) override;
185 
186 
190  void CalculateContactStiffness (double &Kcont,ConditionVariables& rVariables,
191  unsigned int& ndi,unsigned int& ndj,
192  unsigned int& idir,unsigned int& jdir) override;
193 
194 
198  void CalculateNormalForce (double &F,ConditionVariables& rVariables,
199  unsigned int& ndi,unsigned int& idir) override;
200 
204  void CalculateTangentStickForce (double &F,ConditionVariables& rVariables,
205  unsigned int& ndi,unsigned int& idir) override;
209  void CalculateTangentSlipForce (double &F,ConditionVariables& rVariables,
210  unsigned int& ndi,unsigned int& idir) override;
211 
221  friend class Serializer;
222 
223  void save(Serializer& rSerializer) const override;
224 
225  void load(Serializer& rSerializer) override;
226 
234 
235 private:
236 
261 
262 }; // Class ContactDomainPenalty2DCondition
263 
271 /* inline std::istream& operator >> (std::istream& rIStream,
272  ContactDomainPenalty2DCondition& rThis);
273 */
275 /* inline std::ostream& operator << (std::ostream& rOStream,
276  const ContactDomainPenalty2DCondition& rThis)
277  {
278  rThis.PrintInfo(rOStream);
279  rOStream << std::endl;
280  rThis.PrintData(rOStream);
281 
282  return rOStream;
283  }*/
285 
286 } // namespace Kratos.
287 #endif // KRATOS_CONTACT_DOMAIN_PENALTY_2D_CONDITION_H_INCLUDED defined
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Definition: constitutive_law.h:47
Definition: contact_domain_LM_2D_condition.hpp:42
Definition: contact_domain_penalty_2D_condition.hpp:42
Node NodeType
NodeType.
Definition: contact_domain_penalty_2D_condition.hpp:56
ConstitutiveLaw ConstitutiveLawType
Definition: contact_domain_penalty_2D_condition.hpp:49
GeometryData::IntegrationMethod IntegrationMethod
Type definition for integration methods.
Definition: contact_domain_penalty_2D_condition.hpp:53
ContactDomainUtilities::PointType PointType
Tensor order 1 definition.
Definition: contact_domain_penalty_2D_condition.hpp:64
ContactDomainUtilities::BaseLengths BaseLengths
BaseLengths.
Definition: contact_domain_penalty_2D_condition.hpp:70
ContactDomainPenalty2DCondition()
Default constructors.
Definition: contact_domain_penalty_2D_condition.hpp:82
ContactDomainUtilities::SurfaceVector SurfaceVector
SurfaceVector.
Definition: contact_domain_penalty_2D_condition.hpp:66
Element::ElementType ElementType
Element Type.
Definition: contact_domain_penalty_2D_condition.hpp:60
ContactDomainUtilities::SurfaceScalar SurfaceScalar
SurfaceScalar.
Definition: contact_domain_penalty_2D_condition.hpp:68
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(ContactDomainPenalty2DCondition)
Counted pointer of ContactDomainPenalty2DCondition.
Geometry< NodeType > GeometryType
Geometry Type.
Definition: contact_domain_penalty_2D_condition.hpp:58
ConstitutiveLawType::Pointer ConstitutiveLawPointerType
Pointer type for constitutive laws.
Definition: contact_domain_penalty_2D_condition.hpp:51
Base class for all Elements.
Definition: element.h:60
IntegrationMethod
Definition: geometry_data.h:76
Geometry base class.
Definition: geometry.h:71
This class defines the node.
Definition: node.h:65
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
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
F
Definition: hinsberg_optimization.py:144
def load(f)
Definition: ode_solve.py:307
Definition: contact_domain_utilities.hpp:74
Definition: contact_domain_utilities.hpp:91
Definition: contact_domain_utilities.hpp:83