106 lines
3.3 KiB
C++
106 lines
3.3 KiB
C++
/*---------------------------------------------------------------------------*\
|
|
========= |
|
|
\\ / 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 <http://www.gnu.org/licenses/>.
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
|
|
|
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
|
|
|
|
|
/*
|
|
template <Foam::label I>
|
|
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), gammaij_, vec);
|
|
return scalarProduct (a11, vec);
|
|
}
|
|
|
|
|
|
inline Foam::scalar Foam::N64::Omega22(const scalar Tstar)
|
|
{
|
|
transform (loge(Tstar), gammaij_, vec);
|
|
return scalarProduct (a22, vec);
|
|
}
|
|
|
|
|
|
inline Foam::scalar Foam::N64::D(const scalar p, const scalar T)
|
|
{
|
|
return (3.0/8.0) * sqrt(2.0*a_.pi*a_.NA*pow3(a_.k*T)/Wij_)
|
|
/ (a_.pi * sqr(sigmaij_ * a_.Angstrom) * p * Omega11(T/eij_));
|
|
}
|
|
|
|
|
|
inline Foam::scalar Foam::N64::mu(const scalar p, const scalar T)
|
|
{
|
|
return (5.0/16.0) * sqrt(2.0*Wij_*a_.k*T/(a_.pi*a_.NA))
|
|
/ (sqr(sigmaij_ * a_.Angstrom) * Omega22(T/eij_));
|
|
}
|
|
|
|
|
|
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
|
|
|
|
|
// * * * * * * * * * * * * * * * Friend Functions * * * * * * * * * * * * * //
|
|
|
|
|
|
// * * * * * * * * * * * * * * * Friend Operators * * * * * * * * * * * * * //
|
|
|
|
|
|
// * * * * * * * * * * * * * * IOstream Operators * * * * * * * * * * * * * //
|
|
|
|
|
|
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
|
|
// ************************************************************************* //
|