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.
indirect_conduction_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(INDIRECT_CONDUCTION_MODEL_H_INCLUDED)
10 #define INDIRECT_CONDUCTION_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) IndirectConductionModel : public HeatExchangeMechanism
23  {
24  public:
25 
26  // Pointer definition
28 
29  // Constructor / Destructor
31  virtual ~IndirectConductionModel();
32 
33  // Public methods
34  void SetHeatExchangeMechanismInProperties (Properties::Pointer pProp, bool verbose = true) const override;
35  double GetSearchDistance (const ProcessInfo& r_process_info, ThermalSphericParticle* particle) override;
36  double ComputeHeatFlux (const ProcessInfo& r_process_info, ThermalSphericParticle* particle) override;
37 
38  // Clone
39  HeatExchangeMechanism* CloneRaw() const override {
40  HeatExchangeMechanism* cloned_model(new IndirectConductionModel(*this));
41  return cloned_model;
42  }
43 
44  HeatExchangeMechanism::Pointer CloneShared() const override {
45  HeatExchangeMechanism::Pointer cloned_model(new IndirectConductionModel(*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 << "IndirectConductionModel";
53  return buffer.str();
54  }
55 
56  // Print object information
57  virtual void PrintInfo(std::ostream& rOStream) const override { rOStream << "IndirectConductionModel"; }
58  virtual void PrintData(std::ostream& rOStream) const override {}
59 
60  private:
61 
62  // Assignment operator / Copy constructor
63  IndirectConductionModel& operator=(IndirectConductionModel const& rOther) {return *this;}
64  IndirectConductionModel(IndirectConductionModel const& rOther) {*this = rOther;}
65 
66  }; // Class IndirectConductionModel
67 
68  // input stream function
69  inline std::istream& operator>>(std::istream& rIStream,
70  IndirectConductionModel& rThis) {
71  return rIStream;
72  }
73 
74  // output stream function
75  inline std::ostream& operator<<(std::ostream& rOStream,
76  const IndirectConductionModel& rThis) {
77  rThis.PrintInfo(rOStream);
78  rOStream << std::endl;
79  rThis.PrintData(rOStream);
80  return rOStream;
81  }
82 
83 } // namespace Kratos
84 
85 #endif // INDIRECT_CONDUCTION_MODEL_H_INCLUDED
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Definition: heat_exchange_mechanism.h:28
Definition: indirect_conduction_model.h:23
virtual void PrintData(std::ostream &rOStream) const override
Definition: indirect_conduction_model.h:58
KRATOS_CLASS_POINTER_DEFINITION(IndirectConductionModel)
HeatExchangeMechanism * CloneRaw() const override
Definition: indirect_conduction_model.h:39
virtual std::string Info() const override
Definition: indirect_conduction_model.h:50
virtual void PrintInfo(std::ostream &rOStream) const override
Definition: indirect_conduction_model.h:57
HeatExchangeMechanism::Pointer CloneShared() const override
Definition: indirect_conduction_model.h:44
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