eReactingFoam-4.x/diffusivityModel/Ion/IonI.H

111 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::Ion::alpha()
const
{
return alpha_;
}
inline Foam::scalar Foam::Ion::C6()
const
{
return C6_;
}
inline Foam::scalar Foam::Ion::Zrot(const scalar T)
const
{
scalar wellDepth_ = selfInteraction.epsK (T, 0.0);
return Particle::Zrot() * zeta(298.0, wellDepth_) / zeta(T, wellDepth_);
}
inline Foam::scalar Foam::Ion::Zrot(const GasState &state)
const
{
scalar wellDepth_ = selfInteraction.epsK (state.T(), state.rhoQc2());
return Particle::Zrot() * zeta(298.0, wellDepth_) / zeta(state.T(), wellDepth_);
}
inline bool Foam::Ion::hasRct(const word &target)
const
{
return rctTarget_.contains(target);
}
inline Foam::scalar Foam::Ion::Arct(const word &target)
const
{
return Arct_[rctTarget_[target]];
}
inline Foam::scalar Foam::Ion::Brct(const word &target)
const
{
return Brct_[rctTarget_[target]];
}
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
// * * * * * * * * * * * * * * * Friend Functions * * * * * * * * * * * * * //
// * * * * * * * * * * * * * * * Friend Operators * * * * * * * * * * * * * //
// * * * * * * * * * * * * * * IOstream Operators * * * * * * * * * * * * * //
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// ************************************************************************* //