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.
real_contact_model.h
Go to the documentation of this file.
1 // Kratos Multi-Physics - ThermalDEM Application
2 //
3 // License: BSD License
4 // Kratos default license: kratos/license.txt
5 //
6 // Main authors: Rafael Rangel (rrangel@cimne.upc.edu)
7 //
8 
9 #if !defined(REAL_CONTACT_MODEL_H_INCLUDED)
10 #define REAL_CONTACT_MODEL_H_INCLUDED
11 
12 // System includes
13 #include <string>
14 #include <iostream>
15 
16 // External includes
17 #include "includes/define.h"
18 #include "includes/model_part.h"
19 
20 // Project includes
21 
22 namespace Kratos
23 {
24  // Forward declarations
25  class ThermalSphericParticle;
26 
27  class KRATOS_API(THERMAL_DEM_APPLICATION) RealContactModel
28  {
29  public:
30 
31  // Pointer definition
33 
34  // Constructor / Destructor
36  virtual ~RealContactModel();
37 
38  // Public methods
39  virtual void SetRealContactModelInProperties (Properties::Pointer pProp, bool verbose = true) const;
40  virtual void AdjustContact (const ProcessInfo& r_process_info, ThermalSphericParticle* particle);
41 
42  // Clone
43  virtual RealContactModel* CloneRaw() const {
44  RealContactModel* cloned_model(new RealContactModel(*this));
45  return cloned_model;
46  }
47 
48  virtual RealContactModel::Pointer CloneShared() const {
49  RealContactModel::Pointer cloned_model(new RealContactModel(*this));
50  return cloned_model;
51  }
52 
53  // Turn back information as a string
54  virtual std::string Info() const {
55  std::stringstream buffer;
56  buffer << "RealContactModel";
57  return buffer.str();
58  }
59 
60  // Print object information
61  virtual void PrintInfo(std::ostream& rOStream) const { rOStream << "RealContactModel"; }
62  virtual void PrintData(std::ostream& rOStream) const {}
63 
64  private:
65 
66  // Assignment operator / Copy constructor
67  RealContactModel& operator=(RealContactModel const& rOther) {return *this;}
68  RealContactModel(RealContactModel const& rOther) {*this = rOther;}
69 
70  // Serializer
71  friend class Serializer;
72 
73  virtual void save(Serializer& rSerializer) const {
74  //rSerializer.save("MyMemberName",myMember);
75  }
76 
77  virtual void load(Serializer& rSerializer) {
78  //rSerializer.load("MyMemberName",myMember);
79  }
80 
81  }; // Class RealContactModel
82 
83  // input stream function
84  inline std::istream& operator >> (std::istream& rIStream, RealContactModel& rThis) {
85  return rIStream;
86  }
87 
88  // output stream function
89  inline std::ostream& operator << (std::ostream& rOStream, const RealContactModel& rThis) {
90  rThis.PrintInfo(rOStream);
91  rOStream << std::endl;
92  rThis.PrintData(rOStream);
93  return rOStream;
94  }
95 
96 } // namespace Kratos
97 
98 #endif // REAL_CONTACT_MODEL_H_INCLUDED
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
Definition: real_contact_model.h:28
KRATOS_CLASS_POINTER_DEFINITION(RealContactModel)
virtual void PrintData(std::ostream &rOStream) const
Definition: real_contact_model.h:62
virtual RealContactModel * CloneRaw() const
Definition: real_contact_model.h:43
virtual std::string Info() const
Definition: real_contact_model.h:54
virtual void PrintInfo(std::ostream &rOStream) const
Definition: real_contact_model.h:61
virtual RealContactModel::Pointer CloneShared() const
Definition: real_contact_model.h:48
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
Definition: thermal_spheric_particle.h:30
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
def load(f)
Definition: ode_solve.py:307