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.
radiation_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(RADIATION_MODEL_H_INCLUDED)
10 #define RADIATION_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) RadiationModel : public HeatExchangeMechanism
23  {
24  public:
25 
26  // Definitions
27  #define STEFAN_BOLTZMANN 5.670374419e-8
28 
29  // Pointer definition
31 
32  // Constructor / Destructor
34  virtual ~RadiationModel();
35 
36  // Public methods
37  void SetHeatExchangeMechanismInProperties (Properties::Pointer pProp, bool verbose = true) const override;
38  double GetSearchDistance (const ProcessInfo& r_process_info, ThermalSphericParticle* particle) override;
39  double ComputeHeatFlux (const ProcessInfo& r_process_info, ThermalSphericParticle* particle) override;
40  double FinalizeHeatFlux (const ProcessInfo& r_process_info, ThermalSphericParticle* particle) override;
41  virtual void AccumulateEnvironmentTemperature (const ProcessInfo& r_process_info, ThermalSphericParticle* particle);
42 
43  // Clone
44  HeatExchangeMechanism* CloneRaw() const override {
45  HeatExchangeMechanism* cloned_model(new RadiationModel(*this));
46  return cloned_model;
47  }
48 
49  HeatExchangeMechanism::Pointer CloneShared() const override {
50  HeatExchangeMechanism::Pointer cloned_model(new RadiationModel(*this));
51  return cloned_model;
52  }
53 
54  // Turn back information as a string
55  virtual std::string Info() const override {
56  std::stringstream buffer;
57  buffer << "RadiationModel";
58  return buffer.str();
59  }
60 
61  // Print object information
62  virtual void PrintInfo(std::ostream& rOStream) const override { rOStream << "RadiationModel"; }
63  virtual void PrintData(std::ostream& rOStream) const override {}
64 
65  private:
66 
67  // Assignment operator / Copy constructor
68  RadiationModel& operator=(RadiationModel const& rOther) {return *this;}
69  RadiationModel(RadiationModel const& rOther) {*this = rOther;}
70 
71  }; // Class RadiationModel
72 
73  // input stream function
74  inline std::istream& operator>>(std::istream& rIStream,
75  RadiationModel& rThis) {
76  return rIStream;
77  }
78 
79  // output stream function
80  inline std::ostream& operator<<(std::ostream& rOStream,
81  const RadiationModel& rThis) {
82  rThis.PrintInfo(rOStream);
83  rOStream << std::endl;
84  rThis.PrintData(rOStream);
85  return rOStream;
86  }
87 
88 } // namespace Kratos
89 
90 #endif // RADIATION_MODEL_H_INCLUDED
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Definition: heat_exchange_mechanism.h:28
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
Definition: radiation_model.h:23
HeatExchangeMechanism * CloneRaw() const override
Definition: radiation_model.h:44
virtual void PrintData(std::ostream &rOStream) const override
Definition: radiation_model.h:63
virtual void PrintInfo(std::ostream &rOStream) const override
Definition: radiation_model.h:62
KRATOS_CLASS_POINTER_DEFINITION(RadiationModel)
virtual std::string Info() const override
Definition: radiation_model.h:55
HeatExchangeMechanism::Pointer CloneShared() const override
Definition: radiation_model.h:49
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