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.
thermal_dem_integration_scheme.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(KRATOS_THERMAL_DEM_INTEGRATION_SCHEME_H_INCLUDED)
10 #define KRATOS_THERMAL_DEM_INTEGRATION_SCHEME_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  class KRATOS_API(THERMAL_DEM_APPLICATION) ThermalDEMIntegrationScheme
25  {
26  public:
27 
28  // Pointer definition
30 
31  // Constructor / Destructor
33  virtual ~ThermalDEMIntegrationScheme();
34 
35  // Public methods
36  virtual void SetThermalIntegrationSchemeInProperties (Properties::Pointer pProp, bool verbose = true) const;
37  virtual void UpdateTemperature (Node& i, const double delta_t, const double c);
38 
39  // Clone
42  return cloned_scheme;
43  }
44 
45  virtual ThermalDEMIntegrationScheme::Pointer CloneShared() const {
46  ThermalDEMIntegrationScheme::Pointer cloned_scheme(new ThermalDEMIntegrationScheme(*this));
47  return cloned_scheme;
48  }
49 
50  // Turn back information as a string
51  virtual std::string Info() const {
52  std::stringstream buffer;
53  buffer << "ThermalDEMIntegrationScheme";
54  return buffer.str();
55  }
56 
57  // Print object information
58  virtual void PrintInfo(std::ostream& rOStream) const { rOStream << "ThermalDEMIntegrationScheme"; }
59  virtual void PrintData(std::ostream& rOStream) const {}
60 
61  private:
62 
63  // Assignment operator / Copy constructor
65  ThermalDEMIntegrationScheme(ThermalDEMIntegrationScheme const& rOther) {*this = rOther;}
66 
67  // Serializer
68  friend class Serializer;
69 
70  virtual void save(Serializer& rSerializer) const {
71  //rSerializer.save("MyMemberName",myMember);
72  }
73 
74  virtual void load(Serializer& rSerializer) {
75  //rSerializer.load("MyMemberName",myMember);
76  }
77 
78  }; // Class ThermalDEMIntegrationScheme
79 
80  // input stream function
81  inline std::istream& operator >> (std::istream& rIStream, ThermalDEMIntegrationScheme& rThis) {
82  return rIStream;
83  }
84 
85  // output stream function
86  inline std::ostream& operator << (std::ostream& rOStream, const ThermalDEMIntegrationScheme& rThis) {
87  rThis.PrintInfo(rOStream);
88  rOStream << std::endl;
89  rThis.PrintData(rOStream);
90  return rOStream;
91  }
92 
93 } // namespace Kratos
94 
95 #endif // KRATOS_THERMAL_DEM_INTEGRATION_SCHEME_H_INCLUDED defined
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
This class defines the node.
Definition: node.h:65
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
Definition: thermal_dem_integration_scheme.h:25
KRATOS_CLASS_POINTER_DEFINITION(ThermalDEMIntegrationScheme)
virtual void PrintData(std::ostream &rOStream) const
Definition: thermal_dem_integration_scheme.h:59
virtual std::string Info() const
Definition: thermal_dem_integration_scheme.h:51
virtual ThermalDEMIntegrationScheme::Pointer CloneShared() const
Definition: thermal_dem_integration_scheme.h:45
virtual ThermalDEMIntegrationScheme * CloneRaw() const
Definition: thermal_dem_integration_scheme.h:40
virtual void PrintInfo(std::ostream &rOStream) const
Definition: thermal_dem_integration_scheme.h:58
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
c
Definition: generate_weakly_compressible_navier_stokes_element.py:108
def load(f)
Definition: ode_solve.py:307
float delta_t
Definition: rotatingcone_PureConvectionBenchmarking.py:129
integer i
Definition: TensorModule.f:17