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-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::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 namespace interfaceCompositionModels
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class saturated Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 class saturated
54 :
56 {
57 protected:
58 
59  // Private Data
60 
61  //- saturated species name
63 
64  //- saturated species index
66 
67  //- Saturation pressure model
69 
70 
71  // Private Member Functions
72 
73  //- Constant of proportionality between partial pressure and mass
74  // fraction
76 
77 
78 public:
79 
80  //- Runtime type information
81  TypeName("saturated");
82 
83 
84  // Constructors
85 
86  //- Construct from a dictionary and an interface
87  saturated
88  (
89  const dictionary& dict,
91  );
92 
93 
94  //- Destructor
95  virtual ~saturated();
96 
97 
98  // Member Functions
99 
100  //- Update the composition
101  virtual void update(const volScalarField& Tf);
102 
103  //- The interface species fraction
104  virtual tmp<volScalarField> Yf
105  (
106  const word& speciesName,
107  const volScalarField& Tf
108  ) const;
109 
110  //- The interface species fraction derivative w.r.t. temperature
112  (
113  const word& speciesName,
114  const volScalarField& Tf
115  ) const;
116 };
117 
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 } // End namespace interfaceCompositionModels
122 } // End namespace Foam
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 #endif
127 
128 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
virtual tmp< volScalarField > Yf(const word &speciesName, const volScalarField &Tf) const
The interface species fraction.
const sidedPhaseInterface & interface() const
Return the interface.
Class to represent an interface between phases. Derivations can further specify the configuration of ...
TypeName("saturated")
Runtime type information.
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:61
label saturatedIndex_
saturated species index
Definition: saturated.H:64
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:52
saturated(const dictionary &dict, const phaseInterface &interface)
Construct from a dictionary and an interface.
autoPtr< saturationModel > saturationModel_
Saturation pressure model.
Definition: saturated.H:67
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.