|
|
|
basicMultiComponentMixture.HGo to the documentation of this file.00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd. 00006 \\/ M anipulation | 00007 ------------------------------------------------------------------------------- 00008 License 00009 This file is part of OpenFOAM. 00010 00011 OpenFOAM is free software; you can redistribute it and/or modify it 00012 under the terms of the GNU General Public License as published by the 00013 Free Software Foundation; either version 2 of the License, or (at your 00014 option) any later version. 00015 00016 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 00017 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00018 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00019 for more details. 00020 00021 You should have received a copy of the GNU General Public License 00022 along with OpenFOAM; if not, write to the Free Software Foundation, 00023 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00024 00025 Class 00026 Foam::basicMultiComponentMixture 00027 00028 Description 00029 combustion mixture 00030 00031 SourceFiles 00032 basicMultiComponentMixture.C 00033 00034 \*---------------------------------------------------------------------------*/ 00035 00036 #ifndef basicMultiComponentMixture_H 00037 #define basicMultiComponentMixture_H 00038 00039 #include "volFields.H" 00040 #include "PtrList.H" 00041 #include "speciesTable.H" 00042 00043 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00044 00045 namespace Foam 00046 { 00047 00048 /*---------------------------------------------------------------------------*\ 00049 Class basicMultiComponentMixture Declaration 00050 \*---------------------------------------------------------------------------*/ 00051 00052 class basicMultiComponentMixture 00053 { 00054 00055 protected: 00056 00057 // Protected data 00058 00059 //- Table of specie names 00060 speciesTable species_; 00061 00062 //- Species mass fractions 00063 PtrList<volScalarField> Y_; 00064 00065 00066 public: 00067 00068 // Constructors 00069 00070 //- Construct from dictionary and mesh 00071 basicMultiComponentMixture 00072 ( 00073 const dictionary&, 00074 const wordList& specieNames, 00075 const fvMesh& 00076 ); 00077 00078 00079 //- Destructor 00080 virtual ~basicMultiComponentMixture() 00081 {} 00082 00083 00084 // Member functions 00085 00086 //- Return the table of species 00087 const speciesTable& species() const 00088 { 00089 return species_; 00090 } 00091 00092 //- Return the mass-fraction fields 00093 inline PtrList<volScalarField>& Y(); 00094 00095 //- Return the const mass-fraction fields 00096 inline const PtrList<volScalarField>& Y() const; 00097 00098 //- Return the mass-fraction field for a specie given by index 00099 inline volScalarField& Y(const label i); 00100 00101 //- Return the const mass-fraction field for a specie given by index 00102 inline const volScalarField& Y(const label i) const; 00103 00104 //- Return the mass-fraction field for a specie given by name 00105 inline volScalarField& Y(const word& specieName); 00106 00107 //- Return the const mass-fraction field for a specie given by name 00108 inline const volScalarField& Y(const word& specieName) const; 00109 00110 //- Does the mixture include this specie? 00111 inline bool contains(const word& specieName) const; 00112 00113 inline scalar fres(const scalar ft, const scalar stoicRatio) const; 00114 00115 inline tmp<volScalarField> fres 00116 ( 00117 const volScalarField& ft, 00118 const dimensionedScalar& stoicRatio 00119 ) const; 00120 }; 00121 00122 00123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00124 00125 } // End namespace Foam 00126 00127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00128 00129 #include "basicMultiComponentMixtureI.H" 00130 00131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00132 00133 #endif 00134 00135 // ************************************************************************* // |