fluidMulticomponentThermo.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-2023 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::fluidMulticomponentThermo
26 
27 Description
28  Base-class for multi-component fluid thermodynamic properties.
29 
30 See also
31  Foam::basicThermo
32 
33 SourceFiles
34  fluidMulticomponentThermo.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef fluidMulticomponentThermo_H
39 #define fluidMulticomponentThermo_H
40 
41 #include "fluidThermo.H"
42 #include "multicomponentThermo.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class fluidMulticomponentThermo Declaration
52 \*---------------------------------------------------------------------------*/
53 
55 :
56  virtual public fluidThermo,
57  virtual public multicomponentThermo
58 {
59 public:
60 
61  //- Runtime type information
62  TypeName("fluidMulticomponentThermo");
63 
64 
65  //- Declare run-time constructor selection tables
67  (
68  autoPtr,
70  fvMesh,
71  (const fvMesh& mesh, const word& phaseName),
72  (mesh, phaseName)
73  );
74 
75 
76  // Selectors
77 
78  //- Standard selection based on fvMesh
80  (
81  const fvMesh&,
83  );
84 
85 
86  //- Destructor
88 
89 
90  // Member Functions
91 
92  // Specie transport properties
93 
94  //- Dynamic viscosity [kg/m/s]
95  virtual scalar mui
96  (
97  const label speciei,
98  const scalar p,
99  const scalar T
100  ) const = 0;
101 
102  //- Dynamic viscosity [kg/m/s]
103  virtual tmp<volScalarField> mui
104  (
105  const label speciei,
106  const volScalarField& p,
107  const volScalarField& T
108  ) const = 0;
109 };
110 
111 
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 
114 } // End namespace Foam
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 #endif
119 
120 // ************************************************************************* //
Generic GeometricField class.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
virtual const fvMesh & mesh() const =0
Return const access to the mesh.
virtual const volScalarField & T() const =0
Temperature [K].
virtual const word & phaseName() const =0
Phase name.
Base-class for multi-component fluid thermodynamic properties.
virtual scalar mui(const label speciei, const scalar p, const scalar T) const =0
Dynamic viscosity [kg/m/s].
TypeName("fluidMulticomponentThermo")
Runtime type information.
static autoPtr< fluidMulticomponentThermo > New(const fvMesh &, const word &phaseName=word::null)
Standard selection based on fvMesh.
declareRunTimeSelectionTable(autoPtr, fluidMulticomponentThermo, fvMesh,(const fvMesh &mesh, const word &phaseName),(mesh, phaseName))
Declare run-time constructor selection tables.
Base-class for fluid thermodynamic properties.
Definition: fluidThermo.H:57
virtual const volScalarField & p() const =0
Pressure [Pa].
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:99
Base-class for multi-component thermodynamic properties.
A class for managing temporary objects.
Definition: tmp.H:55
A class for handling words, derived from string.
Definition: word.H:62
static const word null
An empty word.
Definition: word.H:77
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