saturated.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) 2015-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::interfaceCompositionModels::saturated
26 
27 Description
28  Model which uses a saturation pressure model for a single species to
29  calculate the interface composition.
30 
31 SourceFiles
32  saturated.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef saturated_H
37 #define saturated_H
38 
40 #include "saturationModel.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 class phasePair;
48 
49 namespace interfaceCompositionModels
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class saturated Declaration
54 \*---------------------------------------------------------------------------*/
55 
56 class saturated
57 :
59 {
60 protected:
61 
62  // Private Data
63 
64  //- saturated species name
66 
67  //- saturated species index
69 
70  //- Saturation pressure model
72 
73 
74  // Private Member Functions
75 
76  //- Constant of proportionality between partial pressure and mass
77  // fraction
79 
80 
81 public:
82 
83  //- Runtime type information
84  TypeName("saturated");
85 
86  // Constructors
87 
88  //- Construct from components
89  saturated
90  (
91  const dictionary& dict,
92  const phasePair& pair
93  );
94 
95 
96  //- Destructor
97  virtual ~saturated();
98 
99 
100  // Member Functions
101 
102  //- Update the composition
103  virtual void update(const volScalarField& Tf);
104 
105  //- The interface species fraction
106  virtual tmp<volScalarField> Yf
107  (
108  const word& speciesName,
109  const volScalarField& Tf
110  ) const;
111 
112  //- The interface species fraction derivative w.r.t. temperature
114  (
115  const word& speciesName,
116  const volScalarField& Tf
117  ) const;
118 };
119 
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 } // End namespace interfaceCompositionModels
124 } // End namespace Foam
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 #endif
129 
130 // ************************************************************************* //
dictionary dict
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
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
virtual tmp< volScalarField > Yf(const word &speciesName, const volScalarField &Tf) const
The interface species fraction.
const phasePair & pair() const
Return the phase pair.
TypeName("saturated")
Runtime type information.
saturated(const dictionary &dict, const phasePair &pair)
Construct from components.
Generic base class for interface composition models. These models describe the composition in phase 1...
A class for handling words, derived from string.
Definition: word.H:59
virtual void update(const volScalarField &Tf)
Update the composition.
word saturatedName_
saturated species name
Definition: saturated.H:64
label saturatedIndex_
saturated species index
Definition: saturated.H:67
virtual tmp< volScalarField > YfPrime(const word &speciesName, const volScalarField &Tf) const
The interface species fraction derivative w.r.t. temperature.
Model which uses a saturation pressure model for a single species to calculate the interface composit...
Definition: saturated.H:55
autoPtr< saturationModel > saturationModel_
Saturation pressure model.
Definition: saturated.H:70
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
A class for managing temporary objects.
Definition: PtrList.H:53
tmp< volScalarField > wRatioByP() const
Constant of proportionality between partial pressure and mass.
Namespace for OpenFOAM.