1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
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 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
28 inline Foam::thirdBodyArrheniusReactionRate::thirdBodyArrheniusReactionRate
33 const thirdBodyEfficiencies& tbes
36 ArrheniusReactionRate(A, beta, Ta),
37 thirdBodyEfficiencies_(tbes)
41 inline Foam::thirdBodyArrheniusReactionRate::thirdBodyArrheniusReactionRate
43 const speciesTable& species,
50 is.readBegin("thirdBodyArrheniusReactionRate(Istream&)")
52 thirdBodyEfficiencies_(species, is)
54 is.readEnd("thirdBodyArrheniusReactionRate(Istream&)");
58 inline Foam::thirdBodyArrheniusReactionRate::thirdBodyArrheniusReactionRate
60 const speciesTable& species,
61 const dictionary& dict
69 thirdBodyEfficiencies_(species, dict)
73 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
75 inline Foam::scalar Foam::thirdBodyArrheniusReactionRate::operator()
83 thirdBodyEfficiencies_.M(c)
84 *ArrheniusReactionRate::operator()(T, p, c);
88 inline void Foam::thirdBodyArrheniusReactionRate::write(Ostream& os) const
90 ArrheniusReactionRate::write(os);
91 thirdBodyEfficiencies_.write(os);
95 inline Foam::Ostream& Foam::operator<<
98 const thirdBodyArrheniusReactionRate& arr
101 os << token::BEGIN_LIST
102 << static_cast<const ArrheniusReactionRate&>(arr)
103 << token::SPACE << arr.thirdBodyEfficiencies_
109 // ************************************************************************* //