coupledToThermalFluid.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::clouds::coupledToThermalFluid
26 
27 Description
28  Base class for clouds which are coupled to a fluid with a thermodynamic
29  model
30 
31 SourceFiles
32  coupledToThermalFluid.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef coupledToThermalFluid_H
37 #define coupledToThermalFluid_H
38 
39 #include "thermal.H"
40 #include "coupledToFluid.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 class basicThermo;
48 class multicomponentThermo;
49 class fluidThermo;
50 class fluidMulticomponentThermo;
51 
52 namespace clouds
53 {
54 
55 /*---------------------------------------------------------------------------*\
56  Class coupledToThermalFluid Declaration
57 \*---------------------------------------------------------------------------*/
58 
60 :
61  public coupledToFluid
62 {
63 private:
64 
65  // Private Data
66 
67  //- Reference to the mesh
68  const LagrangianMesh& mesh_;
69 
70  //- Carrier thermo
71  const fluidThermo& thermoc_;
72 
73  //- Carrier multicomponent thermo (may be null)
74  const fluidMulticomponentThermo& multicomponentThermoc_;
75 
76  //- Corresponding Eulerian thermo (may be null)
77  const basicThermo& thermocPhase_;
78 
79  //- Corresponding multicomponent Eulerian thermo (may be null)
80  const multicomponentThermo& multicomponentThermocPhase_;
81 
82 
83 public:
84 
85  // Public Static Data
86 
87  //- Run-time type information
88  TypeName("coupledToThermalFluid");
89 
90 
91  // Public Data
92 
93  //- Carrier pressure
94  const CarrierField<scalar>& pc;
95 
96  //- Carrier temperature
97  const CarrierField<scalar>& Tc;
98 
99  //- Carrier enthalpy/energy
100  const CarrierField<scalar>& hec;
101 
102  //- Corresponding Eulerian enthalpy/energy
104 
105  //- Carrier heat capacity
106  const CarrierField<scalar>& Cpvc;
107 
108  //- Carrier heat capacity at constant pressure
109  const CarrierField<scalar>& Cpc;
110 
111  //- Carrier heat capacity at constant volume
112  const CarrierField<scalar>& Cvc;
113 
114  //- Carrier thermal conductivity
116 
117  //- Carrier Prandtl number
119 
120  //- Map from cloud to carrier specie indices
122 
123  //- Map from cloud to corresponding Eulerian specie indices
125 
126  //- Carrier mass fractions (indexed with the carrier specie index)
128 
129  //- Corresponding Eulerian mass fractions (indexed with the Eulerian
130  // phase specie index)
132 
133 
134  // Constructors
135 
136  //- Construct from a reference to the cloud and its base classes
137  coupledToThermalFluid(const cloud& c, const carried&, const thermal&);
138 
139 
140  //- Destructor
141  virtual ~coupledToThermalFluid();
142 
143 
144  // Member Functions
145 
146  //- Return whether this cloud has a carrier thermo
147  bool hasThermoc() const;
148 
149  //- Return whether this cloud has a corresponding Eulerian phase thermo
150  bool hasThermocPhase() const;
151 };
152 
153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
154 
155 } // End namespace clouds
156 } // End namespace Foam
157 
158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
159 
160 #endif
161 
162 // ************************************************************************* //
Class containing Lagrangian geometry and topology.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Definition: UPtrList.H:66
Base-class for fluid and solid thermodynamic properties.
Definition: basicThermo.H:78
Base class for clouds. Provides a basic evolution algorithm, models, and a database for caching deriv...
Definition: cloud.H:61
Base class for clouds which are carried by a fluid.
Definition: carried.H:57
Base class for clouds which are coupled to a variable density fluid.
Base class for clouds which are coupled to a fluid with a thermodynamic model.
const CarrierField< scalar > & Tc
Carrier temperature.
const CarrierField< scalar > & pc
Carrier pressure.
TypeName("coupledToThermalFluid")
Run-time type information.
UPtrList< const CarrierField< scalar > > Yc
Carrier mass fractions (indexed with the carrier specie index)
bool hasThermoc() const
Return whether this cloud has a carrier thermo.
const CarrierField< scalar > & hec
Carrier enthalpy/energy.
const CarrierField< scalar > & kappac
Carrier thermal conductivity.
bool hasThermocPhase() const
Return whether this cloud has a corresponding Eulerian phase thermo.
const CloudDerivedField< scalar > & Prc
Carrier Prandtl number.
coupledToThermalFluid(const cloud &c, const carried &, const thermal &)
Construct from a reference to the cloud and its base classes.
UPtrList< const CarrierField< scalar > > YcPhase
Corresponding Eulerian mass fractions (indexed with the Eulerian.
const CarrierField< scalar > & Cvc
Carrier heat capacity at constant volume.
labelList iToic
Map from cloud to carrier specie indices.
const CarrierField< scalar > & Cpvc
Carrier heat capacity.
const CarrierField< scalar > & hecPhase
Corresponding Eulerian enthalpy/energy.
const CarrierField< scalar > & Cpc
Carrier heat capacity at constant pressure.
labelList iToicPhase
Map from cloud to corresponding Eulerian specie indices.
Base class for clouds with thermodynamic modelling.
Definition: thermal.H:56
Base-class for multi-component fluid thermodynamic properties.
Base-class for fluid thermodynamic properties.
Definition: fluidThermo.H:56
Base-class for multi-component thermodynamic properties.
const dimensionedScalar c
Speed of light in a vacuum.
Namespace for OpenFOAM.