Fourier.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) 2020 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::laminarThermophysicalTransportModels::Fourier
26 
27 Description
28  Fourier's gradient heat flux model for laminar flow.
29 
30 SourceFiles
31  Fourier.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef Fourier_H
36 #define Fourier_H
37 
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 namespace laminarThermophysicalTransportModels
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class Fourier Declaration
49 \*---------------------------------------------------------------------------*/
50 
51 template<class BasicThermophysicalTransportModel>
52 class Fourier
53 :
55  <
56  BasicThermophysicalTransportModel
57  >
58 {
59 
60 public:
61 
62  typedef typename BasicThermophysicalTransportModel::alphaField
63  alphaField;
64 
67 
68  typedef typename BasicThermophysicalTransportModel::thermoModel
70 
71 
72  //- Runtime type information
73  TypeName("Fourier");
74 
75 
76  // Constructors
77 
78  //- Construct from components
79  Fourier
80  (
81  const momentumTransportModel& momentumTransport,
82  const thermoModel& thermo
83  );
84 
85 
86  //- Destructor
87  virtual ~Fourier()
88  {}
89 
90 
91  // Member Functions
92 
93  //- Const access to the coefficients dictionary
94  virtual const dictionary& coeffDict() const;
95 
96  //- Read thermophysicalTransport dictionary
97  virtual bool read();
98 
99  //- Return the heat flux
100  virtual tmp<volVectorField> q() const;
101 
102  //- Return the source term for the energy equation
103  virtual tmp<fvScalarMatrix> divq(volScalarField& he) const;
104 
105  //- Return the specie flux for the given specie mass-fraction
106  virtual tmp<volVectorField> j(const volScalarField& Yi) const;
107 
108  //- Return the source term for the given specie mass-fraction equation
109  virtual tmp<fvScalarMatrix> divj(volScalarField& Yi) const;
110 
111  //- Correct the Fourier viscosity
112  virtual void correct();
113 };
114 
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 } // End namespace laminarThermophysicalTransportModels
119 } // End namespace Foam
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 #ifdef NoRepository
124  #include "Fourier.C"
125 #endif
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
129 #endif
130 
131 // ************************************************************************* //
volScalarField & he
Definition: YEEqn.H:50
Templated abstract base class for laminar thermophysical transport models.
Fourier(const momentumTransportModel &momentumTransport, const thermoModel &thermo)
Construct from components.
Definition: Fourier.C:40
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
BasicThermophysicalTransportModel::momentumTransportModel momentumTransportModel
Definition: Fourier.H:65
virtual tmp< volVectorField > q() const
Return the heat flux.
Definition: Fourier.C:72
rhoReactionThermo & thermo
Definition: createFields.H:28
virtual const dictionary & coeffDict() const
Const access to the coefficients dictionary.
Definition: Fourier.C:58
BasicThermophysicalTransportModel::thermoModel thermoModel
Definition: Fourier.H:68
CompressibleMomentumTransportModel< fluidThermo > momentumTransportModel
virtual tmp< fvScalarMatrix > divj(volScalarField &Yi) const
Return the source term for the given specie mass-fraction equation.
Definition: Fourier.C:114
virtual bool read()
Read thermophysicalTransport dictionary.
Definition: Fourier.C:65
virtual void correct()
Correct the Fourier viscosity.
Definition: Fourier.C:121
TypeName("Fourier")
Runtime type information.
virtual tmp< fvScalarMatrix > divq(volScalarField &he) const
Return the source term for the energy equation.
Definition: Fourier.C:88
A class for managing temporary objects.
Definition: PtrList.H:53
Fourier&#39;s gradient heat flux model for laminar flow.
Definition: Fourier.H:51
BasicThermophysicalTransportModel::alphaField alphaField
Definition: Fourier.H:62
virtual tmp< volVectorField > j(const volScalarField &Yi) const
Return the specie flux for the given specie mass-fraction.
Definition: Fourier.C:96
Namespace for OpenFOAM.