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.
convection_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(CONVECTION_MODEL_H_INCLUDED)
10 #define CONVECTION_MODEL_H_INCLUDED
11 
12 // System includes
13 
14 // External includes
15 
16 // Project includes
19 
20 namespace Kratos
21 {
22  class KRATOS_API(THERMAL_DEM_APPLICATION) ConvectionModel : public HeatExchangeMechanism
23  {
24  public:
25 
26  // Pointer definition
28 
29  // Constructor / Destructor
31  virtual ~ConvectionModel();
32 
33  // Public methods
34  void SetHeatExchangeMechanismInProperties (Properties::Pointer pProp, bool verbose = true) const override;
35  double ComputeHeatFlux (const ProcessInfo& r_process_info, ThermalSphericParticle* particle) override;
36  virtual double ComputeNusseltNumber (const ProcessInfo& r_process_info, ThermalSphericParticle* particle);
37 
38  // Clone
39  HeatExchangeMechanism* CloneRaw() const override {
40  HeatExchangeMechanism* cloned_model(new ConvectionModel(*this));
41  return cloned_model;
42  }
43 
44  HeatExchangeMechanism::Pointer CloneShared() const override {
45  HeatExchangeMechanism::Pointer cloned_model(new ConvectionModel(*this));
46  return cloned_model;
47  }
48 
49  // Turn back information as a string
50  virtual std::string Info() const override {
51  std::stringstream buffer;
52  buffer << "ConvectionModel";
53  return buffer.str();
54  }
55 
56  // Print object information
57  virtual void PrintInfo(std::ostream& rOStream) const override { rOStream << "ConvectionModel"; }
58  virtual void PrintData(std::ostream& rOStream) const override {}
59 
60  private:
61 
62  // Assignment operator / Copy constructor
63  ConvectionModel& operator=(ConvectionModel const& rOther) {return *this;}
64  ConvectionModel(ConvectionModel const& rOther) {*this = rOther;}
65 
66  }; // Class ConvectionModel
67 
68  // input stream function
69  inline std::istream& operator>>(std::istream& rIStream,
70  ConvectionModel& rThis) {
71  return rIStream;
72  }
73 
74  // output stream function
75  inline std::ostream& operator<<(std::ostream& rOStream,
76  const ConvectionModel& rThis) {
77  rThis.PrintInfo(rOStream);
78  rOStream << std::endl;
79  rThis.PrintData(rOStream);
80  return rOStream;
81  }
82 
83 } // namespace Kratos
84 
85 #endif // CONVECTION_MODEL_H_INCLUDED
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Definition: convection_model.h:23
virtual void PrintInfo(std::ostream &rOStream) const override
Definition: convection_model.h:57
virtual std::string Info() const override
Definition: convection_model.h:50
HeatExchangeMechanism * CloneRaw() const override
Definition: convection_model.h:39
KRATOS_CLASS_POINTER_DEFINITION(ConvectionModel)
HeatExchangeMechanism::Pointer CloneShared() const override
Definition: convection_model.h:44
virtual void PrintData(std::ostream &rOStream) const override
Definition: convection_model.h:58
Definition: heat_exchange_mechanism.h:28
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
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