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-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::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 
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 // ************************************************************************* //
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
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
Generic base class for interface composition models. These models describe the composition in phase 1...
const sidedPhaseInterface & interface() const
Return the interface.
Model which uses a saturation pressure model for a single species to calculate the interface composit...
Definition: saturated.H:55
virtual void update(const volScalarField &Tf)
Update the composition.
Definition: saturated.C:93
autoPtr< saturationPressureModel > saturationModel_
Saturation pressure model.
Definition: saturated.H:67
tmp< volScalarField > wRatioByP() const
Constant of proportionality between partial pressure and mass.
Definition: saturated.C:49
TypeName("saturated")
Runtime type information.
label saturatedIndex_
saturated species index
Definition: saturated.H:64
virtual tmp< volScalarField > Yf(const word &speciesName, const volScalarField &Tf) const
The interface species fraction.
Definition: saturated.C:100
virtual tmp< volScalarField > YfPrime(const word &speciesName, const volScalarField &Tf) const
The interface species fraction derivative w.r.t. temperature.
Definition: saturated.C:123
saturated(const dictionary &dict, const phaseInterface &interface)
Construct from a dictionary and an interface.
Definition: saturated.C:65
word saturatedName_
saturated species name
Definition: saturated.H:61
Class to represent an interface between phases. Derivations can further specify the configuration of ...
A class for managing temporary objects.
Definition: tmp.H:55
A class for handling words, derived from string.
Definition: word.H:62
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
dictionary dict