/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2017 OpenFOAM Foundation
-------------------------------------------------------------------------------
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 .
\*---------------------------------------------------------------------------*/
#include "mathematicalConstants.H"
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template
inline Foam::DSMCParcel::constantProperties::constantProperties()
:
mass_(0),
d_(0)
{}
template
inline Foam::DSMCParcel::constantProperties::constantProperties
(
const dictionary& dict
)
:
mass_(dict.get("mass")),
d_(dict.get("diameter")),
internalDegreesOfFreedom_(dict.get("internalDegreesOfFreedom")),
omega_(dict.get("omega"))
{}
template
inline Foam::DSMCParcel::DSMCParcel
(
const polyMesh& mesh,
const barycentric& coordinates,
const label celli,
const label tetFacei,
const label tetPti,
const vector& U,
const scalar Ei,
const label typeId
)
:
ParcelType(mesh, coordinates, celli, tetFacei, tetPti),
U_(U),
Ei_(Ei),
typeId_(typeId)
{}
template
inline Foam::DSMCParcel::DSMCParcel
(
const polyMesh& mesh,
const vector& position,
const label celli,
const vector& U,
const scalar Ei,
const label typeId
)
:
ParcelType(mesh, position, celli),
U_(U),
Ei_(Ei),
typeId_(typeId)
{}
// * * * * * * * * * constantProperties Member Functions * * * * * * * * * * //
template
inline Foam::scalar
Foam::DSMCParcel::constantProperties::mass() const
{
return mass_;
}
template
inline Foam::scalar Foam::DSMCParcel::constantProperties::d() const
{
return d_;
}
template
inline Foam::scalar
Foam::DSMCParcel::constantProperties::sigmaT() const
{
return constant::mathematical::pi*d_*d_;
}
template
inline Foam::direction
Foam::DSMCParcel::constantProperties::internalDegreesOfFreedom()
const
{
return internalDegreesOfFreedom_;
}
template
inline Foam::scalar
Foam::DSMCParcel::constantProperties::omega() const
{
return omega_;
}
// * * * * * * * * * * DSMCParcel Member Functions * * * * * * * * * * //
template
inline Foam::label Foam::DSMCParcel::typeId() const
{
return typeId_;
}
template
inline const Foam::vector& Foam::DSMCParcel::U() const
{
return U_;
}
template
inline Foam::scalar Foam::DSMCParcel::Ei() const
{
return Ei_;
}
template
inline Foam::vector& Foam::DSMCParcel::U()
{
return U_;
}
template
inline Foam::scalar& Foam::DSMCParcel::Ei()
{
return Ei_;
}
// ************************************************************************* //