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 #include "exponentialSolidThermo.H"
29 // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
32 template<class rhoType>
33 inline void Foam::exponentialSolidThermo<rhoType>::checkT(const scalar T) const
39 "exponentialSolidThermo<rhoType>::checkT(const scalar T) const"
40 ) << "attempt to use exponentialSolidThermo<rhoType>"
41 " out of temperature range "
48 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
50 template<class rhoType>
51 inline Foam::exponentialSolidThermo<rhoType>::exponentialSolidThermo
54 const exponentialSolidThermo& jt
65 template<class rhoType>
66 inline Foam::exponentialSolidThermo<rhoType>::exponentialSolidThermo
83 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
85 template<class rhoType>
86 inline Foam::scalar Foam::exponentialSolidThermo<rhoType>::integrateCp
94 /(pow(Tref_, n0_)*(n0_ + 1.0))
99 template<class rhoType>
100 inline Foam::scalar Foam::exponentialSolidThermo<rhoType>::Cp
105 return c0_*pow(T/Tref_, n0_);
109 template<class rhoType>
110 inline Foam::scalar Foam::exponentialSolidThermo<rhoType>::h
115 scalar hOffset = integrateCp(specie::Tstd);
119 integrateCp(T) + Hf_ - hOffset
124 template<class rhoType>
125 inline Foam::scalar Foam::exponentialSolidThermo<rhoType>::hs
134 template<class rhoType>
135 inline Foam::scalar Foam::exponentialSolidThermo<rhoType>::hf() const
141 // ************************************************************************* //