heatTransfer.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2026 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::Lagrangian::heatTransfer
26 
27 Description
28  Base class for Lagrangian heat transfer models
29 
30 SourceFiles
31  heatTransfer.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef heatTransfer_H
36 #define heatTransfer_H
37 
38 #include "cloudLagrangianModel.H"
39 #include "thermal.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 namespace Lagrangian
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class heatTransfer Declaration
50 \*---------------------------------------------------------------------------*/
51 
52 class heatTransfer
53 :
54  public LagrangianModel,
55  protected cloudLagrangianModel
56 {
57 private:
58 
59  // Private Data
60 
61  //- Thermal cloud reference
62  const clouds::thermal& thermalCloud_;
63 
64 
65  // Private Member Functions
66 
67  //- Calculate the heat transfer coefficient
68  virtual tmp<LagrangianSubScalarField> calcH
69  (
70  const LagrangianModelRef& model,
71  const LagrangianSubMesh& subMesh
72  ) const = 0;
73 
74 
75 public:
76 
77  //- Runtime type information
78  TypeName("heatTransfer");
79 
80 
81  // Public Data
82 
83  //- Heat transfer coefficient
85 
86 
87  // Constructors
88 
89  //- Construct from components
91  (
92  const word& name,
93  const LagrangianMesh& mesh,
94  const dictionary& modelDict,
95  const dictionary& stateDict
96  );
97 
98 
99  // Member Functions
100 
101  //- Return the name of the energy field
102  virtual wordList addSupFields() const;
103 
104  //- Return true for the energy or carrier energy field
105  virtual bool addsSupToField
106  (
107  const word& fieldName,
108  const word& eqnFieldName
109  ) const;
110 
111  //- Add a source term to the energy equation
112  virtual void addSup
113  (
114  const LagrangianSubScalarField& deltaT,
115  const LagrangianSubScalarSubField& vOrM,
118  ) const;
119 };
120 
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 } // End namespace Lagrangian
125 } // End namespace Foam
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
129 #endif
130 
131 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
This class stores the coefficients of a Lagrangian equation, and facilitates solving that equation an...
Definition: LagrangianEqn.H:56
Class containing Lagrangian geometry and topology.
Simple wrapper to provide an optional reference to a Lagrangian model.
Base class for Lagrangian models.
const LagrangianMesh & mesh() const
The mesh.
static word fieldName(const AlphaRhoFieldType &alphaRhoField, const AlphaRhoFieldTypes &... alphaRhoFields)
Return the name of the field associated with a source term.
const word & name() const
The source name.
Mesh that relates to a sub-section of a Lagrangian mesh. This is used to construct fields that relate...
Base class for Lagrangian heat transfer models.
Definition: heatTransfer.H:55
heatTransfer(const word &name, const LagrangianMesh &mesh, const dictionary &modelDict, const dictionary &stateDict)
Construct from components.
Definition: heatTransfer.C:44
virtual wordList addSupFields() const
Return the name of the energy field.
Definition: heatTransfer.C:68
TypeName("heatTransfer")
Runtime type information.
virtual bool addsSupToField(const word &fieldName, const word &eqnFieldName) const
Return true for the energy or carrier energy field.
Definition: heatTransfer.C:75
virtual void addSup(const LagrangianSubScalarField &deltaT, const LagrangianSubScalarSubField &vOrM, const LagrangianSubScalarSubField &e, LagrangianEqn< scalar > &eqn) const
Add a source term to the energy equation.
Definition: heatTransfer.C:90
const CloudDerivedField< scalar > & H
Heat transfer coefficient.
Definition: heatTransfer.H:83
Mix-in for Lagrangian models that refer to a cloud.
Base class for clouds with thermodynamic modelling.
Definition: thermal.H:56
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
static dictionary stateDict(const word &name, const objectRegistry &db)
Construct and return the state dictionary for reading.
Definition: stateModel.C:137
A class for managing temporary objects.
Definition: tmp.H:55
A class for handling words, derived from string.
Definition: word.H:63
Namespace for OpenFOAM.
const doubleScalar e
Definition: doubleScalar.H:106