/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License This file is part of OpenFOAM. 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. 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 along with OpenFOAM. If not, see . \*---------------------------------------------------------------------------*/ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // inline Foam::scalar Foam::Stockmayer::Omega11(const scalar Tstar) { constexpr scalar a[6] = { 1.0548, 0.15504, 0.55909, 2.1705, 0.093193, 1.5 }; return (a[0] * power(Tstar, -a[1]) + power(Tstar + a[2], -a[3]))*f11(Tstar); } inline Foam::scalar Foam::Stockmayer::Omega22(const scalar Tstar) { constexpr scalar b[6] = { 1.0413, 0.11930, 0.43628, 1.6041, 0.095661, 2.0 }; return (b[0] * power(Tstar, -b[1]) + power(Tstar + b[2], -b[3]))*f22(Tstar); } inline Foam::scalar Foam::Stockmayer::f11(const scalar Tstar) { constexpr scalar a[6] = { 1.0548, 0.15504, 0.55909, 2.1705, 0.093193, 1.5 }; return 1.0 + sqr(deltaij_)*(expon(a[4]/Tstar)-expon(-a[5]/Tstar))/(2 + 2.5*deltaij_); } inline Foam::scalar Foam::Stockmayer::f22(const scalar Tstar) { constexpr scalar b[6] = { 1.0413, 0.11930, 0.43628, 1.6041, 0.095661, 2.0 }; return 1.0 + sqr(deltaij_)*(expon(b[4]/Tstar)-expon(-b[5]/Tstar))/(2 + 2.5*deltaij_); } inline Foam::scalar Foam::Stockmayer::D(const scalar p, const scalar T) { return Interaction::D(Wij_, p, T, (piSigmaSqr_ * Omega11(T/eij_))); } inline Foam::scalar Foam::Stockmayer::mu(const scalar p, const scalar T) { return Interaction::mu(2.0*Wij_, T, (piSigmaSqr_ * Omega22(T/eij_))); } // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Friend Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Friend Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * IOstream Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // ************************************************************************* //