fluidThermophysicalTransportModel.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) 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::fluidThermophysicalTransportModel
26 
27 Description
28  Abstract base class for fluid thermophysical transport models
29  RAS, LES and laminar.
30 
31 SourceFiles
32  fluidThermophysicalTransportModel.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef fluidThermophysicalTransportModel_H
37 #define fluidThermophysicalTransportModel_H
38 
41 #include "fluidThermo.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class fluidThermophysicalTransportModel Declaration
50 \*---------------------------------------------------------------------------*/
51 
53 :
55 {
56 protected:
57 
58  // Protected data
59 
61 
62 
63 public:
64 
65  // Constructors
66 
67  //- Construct from compressibleMomentumTransportModel
69  (
71  );
72 
73 
74  //- Destructor
76  {}
77 
78 
79  // Member Functions
80 
81  //- Access function to momentum transport model
83  {
85  }
86 
87  //- Access function to fluid thermophysical properties
88  virtual const fluidThermo& thermo() const = 0;
89 
90  //- Effective mass diffusion coefficient
91  // for a given specie mass-fraction [kg/m/s]
92  virtual tmp<volScalarField> DEff(const volScalarField& Yi) const = 0;
93 
94  //- Effective mass diffusion coefficient
95  // for a given specie mass-fraction for patch [kg/m/s]
96  virtual tmp<scalarField> DEff
97  (
98  const volScalarField& Yi,
99  const label patchi
100  ) const = 0;
101 
102  //- Return the patch heat flux correction [W/m^2]
103  // For isotropic or patch-aligned thermal conductivity qCorr is null
104  virtual tmp<scalarField> qCorr(const label patchi) const;
105 
106  //- Return the specie flux for the given specie mass-fraction [kg/m^2/s]
107  virtual tmp<surfaceScalarField> j(const volScalarField& Yi) const = 0;
108 
109  //- Return the source term for the given specie mass-fraction equation
110  virtual tmp<fvScalarMatrix> divj(volScalarField& Yi) const = 0;
111 };
112 
113 
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 
116 } // End namespace Foam
117 
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 
120 #endif
121 
122 // ************************************************************************* //
Generic GeometricField class.
Base class for single-phase compressible turbulence models.
Base-class for fluid thermodynamic properties.
Definition: fluidThermo.H:57
Abstract base class for fluid thermophysical transport models RAS, LES and laminar.
const compressibleMomentumTransportModel & momentumTransport() const
Access function to momentum transport model.
fluidThermophysicalTransportModel(const compressibleMomentumTransportModel &momentumTransport)
Construct from compressibleMomentumTransportModel.
virtual tmp< scalarField > qCorr(const label patchi) const
Return the patch heat flux correction [W/m^2].
virtual tmp< volScalarField > DEff(const volScalarField &Yi) const =0
Effective mass diffusion coefficient.
virtual tmp< surfaceScalarField > j(const volScalarField &Yi) const =0
Return the specie flux for the given specie mass-fraction [kg/m^2/s].
const compressibleMomentumTransportModel & momentumTransportModel_
virtual const fluidThermo & thermo() const =0
Access function to fluid thermophysical properties.
virtual tmp< fvScalarMatrix > divj(volScalarField &Yi) const =0
Return the source term for the given specie mass-fraction equation.
Abstract base class for all fluid and solid thermophysical transport models.
A class for managing temporary objects.
Definition: tmp.H:55
label patchi
Namespace for OpenFOAM.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59