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.
heat_generation_mechanism.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(HEAT_GENERATION_MECHANISM_H_INCLUDED)
10 #define HEAT_GENERATION_MECHANISM_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) HeatGenerationMechanism
28  {
29  public:
30 
31  // Pointer definition
33 
34  // Constructor / Destructor
36  virtual ~HeatGenerationMechanism();
37 
38  // Public methods
39  virtual void SetHeatGenerationMechanismInProperties (Properties::Pointer pProp, bool verbose = true) const;
40  virtual double ComputeHeatGeneration (const ProcessInfo& r_process_info, ThermalSphericParticle* particle);
41  virtual double FinalizeHeatGeneration (const ProcessInfo& r_process_info, ThermalSphericParticle* particle);
42 
43  // Clone
44  virtual HeatGenerationMechanism* CloneRaw() const {
45  HeatGenerationMechanism* cloned_mechanism(new HeatGenerationMechanism(*this));
46  return cloned_mechanism;
47  }
48 
49  virtual HeatGenerationMechanism::Pointer CloneShared() const {
50  HeatGenerationMechanism::Pointer cloned_mechanism(new HeatGenerationMechanism(*this));
51  return cloned_mechanism;
52  }
53 
54  // Turn back information as a string
55  virtual std::string Info() const {
56  std::stringstream buffer;
57  buffer << "HeatGenerationMechanism";
58  return buffer.str();
59  }
60 
61  // Print object information
62  virtual void PrintInfo(std::ostream& rOStream) const { rOStream << "HeatGenerationMechanism"; }
63  virtual void PrintData(std::ostream& rOStream) const {}
64 
65  private:
66 
67  // Assignment operator / Copy constructor
68  HeatGenerationMechanism& operator=(HeatGenerationMechanism const& rOther) {return *this;}
69  HeatGenerationMechanism(HeatGenerationMechanism const& rOther) {*this = rOther;}
70 
71  // Serializer
72  friend class Serializer;
73 
74  virtual void save(Serializer& rSerializer) const {
75  //rSerializer.save("MyMemberName",myMember);
76  }
77 
78  virtual void load(Serializer& rSerializer) {
79  //rSerializer.load("MyMemberName",myMember);
80  }
81 
82  }; // Class HeatGenerationMechanism
83 
84  // input stream function
85  inline std::istream& operator >> (std::istream& rIStream, HeatGenerationMechanism& rThis) {
86  return rIStream;
87  }
88 
89  // output stream function
90  inline std::ostream& operator << (std::ostream& rOStream, const HeatGenerationMechanism& rThis) {
91  rThis.PrintInfo(rOStream);
92  rOStream << std::endl;
93  rThis.PrintData(rOStream);
94  return rOStream;
95  }
96 
97 } // namespace Kratos
98 
99 #endif // HEAT_GENERATION_MECHANISM_H_INCLUDED
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Definition: heat_generation_mechanism.h:28
virtual void PrintInfo(std::ostream &rOStream) const
Definition: heat_generation_mechanism.h:62
KRATOS_CLASS_POINTER_DEFINITION(HeatGenerationMechanism)
virtual std::string Info() const
Definition: heat_generation_mechanism.h:55
virtual HeatGenerationMechanism::Pointer CloneShared() const
Definition: heat_generation_mechanism.h:49
virtual HeatGenerationMechanism * CloneRaw() const
Definition: heat_generation_mechanism.h:44
virtual void PrintData(std::ostream &rOStream) const
Definition: heat_generation_mechanism.h:63
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
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