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_LM_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_CONTACT_DOMAIN_LM_3D_CONDITION_H_INCLUDED )
11 #define KRATOS_CONTACT_DOMAIN_LM_3D_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) ContactDomainLM3DCondition
41  : public ContactDomainCondition
42 {
43 public:
44 
45 
51  typedef ConstitutiveLawType::Pointer ConstitutiveLawPointerType;
54 
56  typedef Node NodeType;
61 
70 
73 
76 
80 
81 
84 
85  ContactDomainLM3DCondition(IndexType NewId, GeometryType::Pointer pGeometry);
86 
87  ContactDomainLM3DCondition(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties);
88 
91 
92 
94  virtual ~ContactDomainLM3DCondition();
95 
99 
102 
103 
107 
115  Condition::Pointer Create(IndexType NewId, NodesArrayType const& ThisNodes, PropertiesType::Pointer pProperties) const override;
116 
124  Condition::Pointer Clone(IndexType NewId, NodesArrayType const& ThisNodes) const override;
125 
126 
127  //************************************************************************************
128  //************************************************************************************
136  //int Check(const ProcessInfo& rCurrentProcessInfo);
137 
138  //std::string Info() const;
139 
143 
150 
152  // String Info() const override;
153 
155  // void PrintInfo(std::ostream& rOStream) const override;
156 
158  // void PrintData(std::ostream& rOStream) const override;
163 
164 protected:
173 
174 
179 
180 
184  void SetMasterGeometry() override;
185 
186 
190  void CalculateContactFactor(const ProcessInfo& rCurrentProcessInfo) override;
191 
192 
196  void CalculatePreviousGap() override;
197 
201  void CalculatePreviousGapEdgeType();
202 
206  void CalculatePreviousGapFaceType();
207 
211  void CalculateExplicitFactors(ConditionVariables& rVariables,
212  const ProcessInfo& rCurrentProcessInfo) override;
213 
217  virtual void CalculateExplicitFactorsEdgeType(ConditionVariables& rVariables,
218  const ProcessInfo& rCurrentProcessInfo);
219 
223  virtual void CalculateExplicitFactorsFaceType(ConditionVariables& rVariables,
224  const ProcessInfo& rCurrentProcessInfo);
225 
226 
230  void CalculateDomainShapeN(ConditionVariables& rVariables) override;
231 
232 
236  double& CalculateIntegrationWeight(double& rIntegrationWeight) override;
237 
241  void CalculateContactStiffness (double &Kcont,ConditionVariables& rVariables,
242  unsigned int& ndi,unsigned int& ndj,
243  unsigned int& idir,unsigned int& jdir) override;
244 
245 
249  void CalculateNormalForce (double &F,ConditionVariables& rVariables,
250  unsigned int& ndi,unsigned int& idir) override;
251 
255  void CalculateTangentStickForce (double &F,ConditionVariables& rVariables,
256  unsigned int& ndi,unsigned int& idir) override;
260  void CalculateTangentSlipForce (double &F,ConditionVariables& rVariables,
261  unsigned int& ndi,unsigned int& idir) override;
262 
266 
267  inline bool CheckFictiousContacts(ConditionVariables& rVariables);
268 
269  PointType& CalculateCurrentTangent(PointType &rTangent) override;
270 
271  void FSigmaP(ConditionVariables& rVariables, std::vector<Vector >& rSigmaP, PointType& rDirVector,unsigned int &ndi,unsigned int &ndj,unsigned int &ndk,unsigned int &ndl,unsigned int &ndm,unsigned int &ndn);
272 
273  void FSigmaPnd(ConditionVariables& rVariables, std::vector<Vector >& rSigmaP, PointType& rDirVector,unsigned int &ndi,unsigned int &ndj);
274 
275 
276 
277  void TransformCovariantToContravariantBase(SurfaceBase& Covariant,SurfaceBase& Contravariant);
278 
285  friend class Serializer;
286 
287  void save(Serializer& rSerializer) const override;
288 
289  void load(Serializer& rSerializer) override;
290 
298 
299 private:
300 
325 
326 }; // Class ContactDomainLM3DCondition
327 
335 /* inline std::istream& operator >> (std::istream& rIStream,
336  ContactDomainLM3DCondition& rThis);
337 */
339 /* inline std::ostream& operator << (std::ostream& rOStream,
340  const ContactDomainLM3DCondition& rThis)
341  {
342  rThis.PrintInfo(rOStream);
343  rOStream << std::endl;
344  rThis.PrintData(rOStream);
345 
346  return rOStream;
347  }*/
349 
350 } // namespace Kratos.
351 #endif // KRATOS_CONTACT_DOMAIN_LM_3D_CONDITION_H_INCLUDED defined
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Definition: constitutive_law.h:47
Definition: contact_domain_condition.hpp:49
Definition: contact_domain_LM_3D_condition.hpp:42
ContactDomainUtilities::BaseLengths BaseLengths
BaseLengths.
Definition: contact_domain_LM_3D_condition.hpp:69
ContactDomainUtilities::SurfaceVector SurfaceVector
SurfaceVector.
Definition: contact_domain_LM_3D_condition.hpp:65
GeometryData::IntegrationMethod IntegrationMethod
Type definition for integration methods.
Definition: contact_domain_LM_3D_condition.hpp:53
Element::ElementType ElementType
Element Type.
Definition: contact_domain_LM_3D_condition.hpp:60
ContactDomainUtilities::PointType PointType
Tensor order 1 definition.
Definition: contact_domain_LM_3D_condition.hpp:63
ConstitutiveLawType::Pointer ConstitutiveLawPointerType
Pointer type for constitutive laws.
Definition: contact_domain_LM_3D_condition.hpp:51
ContactDomainLM3DCondition()
Default constructors.
Definition: contact_domain_LM_3D_condition.hpp:83
ConstitutiveLaw ConstitutiveLawType
Definition: contact_domain_LM_3D_condition.hpp:49
ContactDomainUtilities::SurfaceScalar SurfaceScalar
SurfaceScalar.
Definition: contact_domain_LM_3D_condition.hpp:67
Node NodeType
NodeType.
Definition: contact_domain_LM_3D_condition.hpp:56
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(ContactDomainLM3DCondition)
Counted pointer of ContactDomainLM3DCondition.
ContactDomainUtilities::SurfaceBase SurfaceBase
For 3D contact surfaces definition.
Definition: contact_domain_LM_3D_condition.hpp:72
Geometry< NodeType > GeometryType
Geometry Type.
Definition: contact_domain_LM_3D_condition.hpp:58
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_condition.hpp:190
Definition: contact_domain_utilities.hpp:74
Definition: contact_domain_utilities.hpp:107
Definition: contact_domain_utilities.hpp:91
Definition: contact_domain_utilities.hpp:83