MaxwellStefanFourier.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-2022 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::MaxwellStefanFourier
26 
27 Description
28  Multi-component Maxwell Stefan generalised Fick's law diffusion coefficients
29  and Fourier based temperature gradient heat flux model with optional Soret
30  thermal diffusion of species for laminar flow.
31 
32  The binary mass diffusion coefficients are specified as Function2<scalar>s
33  of pressure and temperature but independent of composition.
34 
35  The heat flux source is implemented as an implicit energy correction to the
36  temperature gradient based flux source. At convergence the energy
37  correction is 0.
38 
39 Usage
40  \verbatim
41  laminar
42  {
43  model MaxwellStefanFourier;
44 
45  D // [m^2/s]
46  {
47  O2-O2 1e-2;
48  O3-O3 5e-2;
49  N2-N2 1e-2;
50  O3-O2 5e-2;
51  O3-N2 5e-2;
52  O2-N2 1e-2;
53  }
54 
55  DT // [kg/m/s] Optional
56  {
57  O2 1e-2;
58  O3 5e-2;
59  N2 1e-2;
60  }
61  }
62  \endverbatim
63 
64 SourceFiles
65  MaxwellStefanFourier.C
66 
67 \*---------------------------------------------------------------------------*/
68 
69 #include "MaxwellStefan.H"
70 #include "unityLewisFourier.H"
71 
72 #ifndef MaxwellStefanFourier_H
73 #define MaxwellStefanFourier_H
74 
75 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
76 
77 namespace Foam
78 {
79 namespace laminarThermophysicalTransportModels
80 {
81 
82 /*---------------------------------------------------------------------------*\
83  Class MaxwellStefanFourier Declaration
84 \*---------------------------------------------------------------------------*/
85 
86 template<class laminarThermophysicalTransportModel>
88 :
89  public MaxwellStefan
90  <
91  unityLewisFourier<laminarThermophysicalTransportModel>
92  >
93 {
94 
95 protected:
96 
97  // Protected data
98 
99  // Model coefficients
100 
101  //- Turbulent Schmidt number []
103 
104 
105 public:
106 
108  alphaField;
109 
110  typedef typename
113 
115  thermoModel;
116 
117 
118  //- Runtime type information
119  TypeName("MaxwellStefanFourier");
120 
121 
122  // Constructors
123 
124  //- Construct from a momentum transport model and a thermo model
126  (
127  const momentumTransportModel& momentumTransport,
128  const thermoModel& thermo
129  );
130 
131 
132  //- Destructor
133  virtual ~MaxwellStefanFourier()
134  {}
135 
136 
137  // Member Functions
138 
139  //- Read thermophysicalTransport dictionary
140  virtual bool read();
141 };
142 
143 
144 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145 
146 } // End namespace laminarThermophysicalTransportModels
147 } // End namespace Foam
148 
149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
150 
151 #ifdef NoRepository
152  #include "MaxwellStefanFourier.C"
153 #endif
154 
155 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
156 
157 #endif
158 
159 // ************************************************************************* //
BasicThermophysicalTransportModel::alphaField alphaField
BasicThermophysicalTransportModel::thermoModel thermoModel
BasicThermophysicalTransportModel::momentumTransportModel momentumTransportModel
Multi-component Maxwell Stefan generalised Fick's law diffusion coefficients and Fourier based temper...
TypeName("MaxwellStefanFourier")
Runtime type information.
laminarThermophysicalTransportModel::thermoModel thermoModel
laminarThermophysicalTransportModel::alphaField alphaField
MaxwellStefanFourier(const momentumTransportModel &momentumTransport, const thermoModel &thermo)
Construct from a momentum transport model and a thermo model.
laminarThermophysicalTransportModel::momentumTransportModel momentumTransportModel
virtual bool read()
Read thermophysicalTransport dictionary.
Namespace for OpenFOAM.
fluidMulticomponentThermo & thermo
Definition: createFields.H:31