1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
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
13 the Free Software Foundation, either version 3 of the License, or
14 (at your 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, see <http://www.gnu.org/licenses/>.
24 \*---------------------------------------------------------------------------*/
26 inline Foam::PtrList<Foam::volScalarField>&
27 Foam::basicMultiComponentMixture::Y()
33 inline const Foam::PtrList<Foam::volScalarField>&
34 Foam::basicMultiComponentMixture::Y() const
40 inline Foam::volScalarField& Foam::basicMultiComponentMixture::Y(const label i)
46 inline const Foam::volScalarField& Foam::basicMultiComponentMixture::Y
55 inline Foam::volScalarField& Foam::basicMultiComponentMixture::Y
57 const word& specieName
60 return Y_[species_[specieName]];
64 inline const Foam::volScalarField& Foam::basicMultiComponentMixture::Y
66 const word& specieName
69 return Y_[species_[specieName]];
73 inline bool Foam::basicMultiComponentMixture::contains
75 const word& specieName
78 return species_.contains(specieName);
82 inline Foam::scalar Foam::basicMultiComponentMixture::fres
85 const scalar stoicRatio
88 return max(ft - (1.0 - ft)/stoicRatio, 0.0);
92 inline Foam::tmp<Foam::volScalarField> Foam::basicMultiComponentMixture::fres
94 const volScalarField& ft,
95 const dimensionedScalar& stoicRatio
98 return max(ft - (scalar(1) - ft)/stoicRatio.value(), scalar(0));
102 // ************************************************************************* //