|
|
|
basicMultiComponentMixtureI.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 \*---------------------------------------------------------------------------*/ 00026 00027 inline Foam::PtrList<Foam::volScalarField>& 00028 Foam::basicMultiComponentMixture::Y() 00029 { 00030 return Y_; 00031 } 00032 00033 00034 inline const Foam::PtrList<Foam::volScalarField>& 00035 Foam::basicMultiComponentMixture::Y() const 00036 { 00037 return Y_; 00038 } 00039 00040 00041 inline Foam::volScalarField& Foam::basicMultiComponentMixture::Y(const label i) 00042 { 00043 return Y_[i]; 00044 } 00045 00046 00047 inline const Foam::volScalarField& Foam::basicMultiComponentMixture::Y 00048 ( 00049 const label i 00050 ) const 00051 { 00052 return Y_[i]; 00053 } 00054 00055 00056 inline Foam::volScalarField& Foam::basicMultiComponentMixture::Y 00057 ( 00058 const word& specieName 00059 ) 00060 { 00061 return Y_[species_[specieName]]; 00062 } 00063 00064 00065 inline const Foam::volScalarField& Foam::basicMultiComponentMixture::Y 00066 ( 00067 const word& specieName 00068 ) const 00069 { 00070 return Y_[species_[specieName]]; 00071 } 00072 00073 00074 inline bool Foam::basicMultiComponentMixture::contains 00075 ( 00076 const word& specieName 00077 ) const 00078 { 00079 return species_.contains(specieName); 00080 } 00081 00082 00083 inline Foam::scalar Foam::basicMultiComponentMixture::fres 00084 ( 00085 const scalar ft, 00086 const scalar stoicRatio 00087 ) const 00088 { 00089 return max(ft - (1.0 - ft)/stoicRatio, 0.0); 00090 } 00091 00092 00093 inline Foam::tmp<Foam::volScalarField> Foam::basicMultiComponentMixture::fres 00094 ( 00095 const volScalarField& ft, 00096 const dimensionedScalar& stoicRatio 00097 ) const 00098 { 00099 return max(ft - (scalar(1) - ft)/stoicRatio.value(), scalar(0)); 00100 } 00101 00102 00103 // ************************************************************************* // |