eReactingFoam-4.x/diffusivityModel/Neutral/NeutralI.H
2018-04-30 04:02:16 +09:00

121 lines
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 * * * * * * * * * * * * * //
inline Foam::scalar Foam::Neutral::wellDepth()
const
{
return wellDepth_;
}
inline Foam::scalar Foam::Neutral::diameter()
const
{
return diameter_ * Angstrom;
}
inline Foam::scalar Foam::Neutral::dipoleMoment()
const
{
return dipoleMoment_ * Debye;
}
inline Foam::scalar Foam::Neutral::alpha()
const
{
return alpha_;
}
inline Foam::scalar Foam::Neutral::alphaQ()
const
{
return alphaQ_;
}
inline Foam::scalar Foam::Neutral::C6()
const
{
return C6_;
}
inline Foam::scalar Foam::Neutral::Zrot()
const
{
return Zrot_;
}
inline Foam::scalar Foam::Neutral::Zrot(const scalar T)
const
{
scalar a3 = sqrt(pow3(pi));
scalar a1 = a3/2.0;
scalar a2 = sqr(pi) / 4.0 + 2.0;
scalar t1 = sqrt(wellDepth_/T);
scalar t2 = wellDepth_/T;
scalar t3 = t1 * t2;
return 1.0 + a1 * t1 + a2 * t2 + a3 * t3;
}
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
// * * * * * * * * * * * * * * * Friend Functions * * * * * * * * * * * * * //
// * * * * * * * * * * * * * * * Friend Operators * * * * * * * * * * * * * //
// * * * * * * * * * * * * * * IOstream Operators * * * * * * * * * * * * * //
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// ************************************************************************* //