/*---------------------------------------------------------------------------*\ ========= | \\ / 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 * * * * * * * * * * * * * // /* template inline Foam::scalar Foam::N64::bivarPolyFeat(const scalar Tstar) { const scalar a[21] = { 0., -0.81508875, -0.06484549, 0.31926761, 0.35164219, -0.01484638, -0.02385399, -0.14337633, -0.18493828, 0.05466979, -0.0010004, 0.01936938, -0.0130214, 0.12179535, -0.05237791, -0.00172218, -0.00447904, 0.02211965, 0.00964791, -0.07566612, 0.02527412 }; const scalar p[21] = { 0. }; const scalar A = 0.5; const scalar B = -0.129; return (A * loge (Tstar) + B) / sqr(Tstar); } */ inline Foam::scalar Foam::N64::Omega11(const scalar Tstar) { transform (loge(Tstar), vec.data()); return ScalarProduct::product (b11_.data(), vec.data()); } inline Foam::scalar Foam::N64::Omega22(const scalar Tstar) { transform (loge(Tstar), vec.data()); return ScalarProduct::product (b22_.data(), vec.data()); } inline Foam::scalar Foam::N64::D(const scalar p, const scalar T) { return Interaction::D(Wij_, p, T, (piSigmaSqr_ * Omega11(T/eij_))); } inline Foam::scalar Foam::N64::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 * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // ************************************************************************* //