1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
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
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::phasePropertiesList
29 Simple container for a list of phase properties
34 \*---------------------------------------------------------------------------*/
36 #ifndef phasePropertiesList_H
37 #define phasePropertiesList_H
40 #include "volFields.H"
42 #include "phaseProperties.H"
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 /*---------------------------------------------------------------------------*\
50 Class phasePropertiesList Declaration
51 \*---------------------------------------------------------------------------*/
53 class phasePropertiesList
57 //- List of phase properties
58 List<phaseProperties> props_;
60 //- List of word representation of phase types
61 wordList phaseTypeNames_;
63 //- List of state labels
64 wordList stateLabels_;
73 const wordList& gasNames,
74 const wordList& liquidNames,
75 const wordList& solidNames
79 ~phasePropertiesList();
82 // Public member functions
84 //- Return the list of phase properties
85 const List<phaseProperties>& props() const;
87 //- Return the list of word representation of phase types
88 const wordList& phaseTypes() const;
90 //- Return the list of state labels
91 const wordList& stateLabels() const;
93 //- Return the size (number of phases)
99 const phaseProperties& operator[](const label) const;
102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
104 } // End namespace Foam
106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
110 // ************************************************************************* //