iC3H8OI.H 2.55 KB
Newer Older
Andrew Heather's avatar
Andrew Heather committed
1 2 3 4
/*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     |
Henry Weller's avatar
Henry Weller committed
5
    \\  /    A nd           | Copyright (C) 2011-2017 OpenFOAM Foundation
Andrew Heather's avatar
Andrew Heather committed
6 7 8 9 10
     \\/     M anipulation  |
-------------------------------------------------------------------------------
License
    This file is part of OpenFOAM.

11 12 13 14
    OpenFOAM is free software: you can redistribute it and/or modify it
    under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
Andrew Heather's avatar
Andrew Heather committed
15 16 17 18 19 20 21

    OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    for more details.

    You should have received a copy of the GNU General Public License
22
    along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
Andrew Heather's avatar
Andrew Heather committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43

\*---------------------------------------------------------------------------*/

inline Foam::scalar Foam::iC3H8O::rho(scalar p, scalar T) const
{
    return rho_.f(p, T);
}


inline Foam::scalar Foam::iC3H8O::pv(scalar p, scalar T) const
{
    return pv_.f(p, T);
}


inline Foam::scalar Foam::iC3H8O::hl(scalar p, scalar T) const
{
    return hl_.f(p, T);
}


Andrew Heather's avatar
Andrew Heather committed
44
inline Foam::scalar Foam::iC3H8O::Cp(scalar p, scalar T) const
Andrew Heather's avatar
Andrew Heather committed
45
{
Andrew Heather's avatar
Andrew Heather committed
46
    return Cp_.f(p, T);
Andrew Heather's avatar
Andrew Heather committed
47 48 49 50 51 52 53 54 55
}


inline Foam::scalar Foam::iC3H8O::h(scalar p, scalar T) const
{
    return h_.f(p, T);
}


Andrew Heather's avatar
Andrew Heather committed
56
inline Foam::scalar Foam::iC3H8O::Cpg(scalar p, scalar T) const
Andrew Heather's avatar
Andrew Heather committed
57
{
Andrew Heather's avatar
Andrew Heather committed
58
    return Cpg_.f(p, T);
Andrew Heather's avatar
Andrew Heather committed
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
}


inline Foam::scalar Foam::iC3H8O::B(scalar p, scalar T) const
{
    return B_.f(p, T);
}


inline Foam::scalar Foam::iC3H8O::mu(scalar p, scalar T) const
{
    return mu_.f(p, T);
}


inline Foam::scalar Foam::iC3H8O::mug(scalar p, scalar T) const
{
    return mug_.f(p, T);
}


80
inline Foam::scalar Foam::iC3H8O::kappa(scalar p, scalar T) const
Andrew Heather's avatar
Andrew Heather committed
81
{
82
    return kappa_.f(p, T);
Andrew Heather's avatar
Andrew Heather committed
83 84 85
}


86
inline Foam::scalar Foam::iC3H8O::kappag(scalar p, scalar T) const
Andrew Heather's avatar
Andrew Heather committed
87
{
88
    return kappag_.f(p, T);
Andrew Heather's avatar
Andrew Heather committed
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
}


inline Foam::scalar Foam::iC3H8O::sigma(scalar p, scalar T) const
{
    return sigma_.f(p, T);
}


inline Foam::scalar Foam::iC3H8O::D(scalar p, scalar T) const
{
    return D_.f(p, T);
}


104 105 106 107 108 109 110
inline Foam::scalar Foam::iC3H8O::D(scalar p, scalar T, scalar) const
{
    // Use 'standard' NSRDS D(p, T) function
    return D(p, T);
}


Andrew Heather's avatar
Andrew Heather committed
111
// ************************************************************************* //