ENH: multiple minor updates to cloud sub-models

This commit is contained in:
andy
2010-10-21 17:30:41 +01:00
parent 29ab2ef2d3
commit b3c82b633c
41 changed files with 177 additions and 191 deletions

View File

@ -215,7 +215,7 @@ const Foam::vector Foam::KinematicParcel<ParcelType>::calcVelocity
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template <class ParcelType> template<class ParcelType>
Foam::KinematicParcel<ParcelType>::KinematicParcel Foam::KinematicParcel<ParcelType>::KinematicParcel
( (
const KinematicParcel<ParcelType>& p const KinematicParcel<ParcelType>& p

View File

@ -29,7 +29,7 @@ using namespace Foam::constant::mathematical;
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template <class ParcelType> template<class ParcelType>
inline Foam::KinematicParcel<ParcelType>::constantProperties::constantProperties inline Foam::KinematicParcel<ParcelType>::constantProperties::constantProperties
( (
const dictionary& parentDict const dictionary& parentDict
@ -45,7 +45,7 @@ inline Foam::KinematicParcel<ParcelType>::constantProperties::constantProperties
{} {}
template <class ParcelType> template<class ParcelType>
inline Foam::KinematicParcel<ParcelType>::trackData::trackData inline Foam::KinematicParcel<ParcelType>::trackData::trackData
( (
KinematicCloud<ParcelType>& cloud, KinematicCloud<ParcelType>& cloud,
@ -83,7 +83,7 @@ inline Foam::KinematicParcel<ParcelType>::trackData::trackData
{} {}
template <class ParcelType> template<class ParcelType>
inline Foam::KinematicParcel<ParcelType>::KinematicParcel inline Foam::KinematicParcel<ParcelType>::KinematicParcel
( (
KinematicCloud<ParcelType>& owner, KinematicCloud<ParcelType>& owner,
@ -113,7 +113,7 @@ inline Foam::KinematicParcel<ParcelType>::KinematicParcel
{} {}
template <class ParcelType> template<class ParcelType>
inline Foam::KinematicParcel<ParcelType>::KinematicParcel inline Foam::KinematicParcel<ParcelType>::KinematicParcel
( (
KinematicCloud<ParcelType>& owner, KinematicCloud<ParcelType>& owner,
@ -154,7 +154,7 @@ inline Foam::KinematicParcel<ParcelType>::KinematicParcel
// * * * * * * * * * constantProperties Member Functions * * * * * * * * * * // // * * * * * * * * * constantProperties Member Functions * * * * * * * * * * //
template <class ParcelType> template<class ParcelType>
inline const Foam::dictionary& inline const Foam::dictionary&
Foam::KinematicParcel<ParcelType>::constantProperties::dict() const Foam::KinematicParcel<ParcelType>::constantProperties::dict() const
{ {
@ -170,7 +170,7 @@ Foam::KinematicParcel<ParcelType>::constantProperties::parcelTypeId() const
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar inline Foam::scalar
Foam::KinematicParcel<ParcelType>::constantProperties::rhoMin() const Foam::KinematicParcel<ParcelType>::constantProperties::rhoMin() const
{ {
@ -178,7 +178,7 @@ Foam::KinematicParcel<ParcelType>::constantProperties::rhoMin() const
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar inline Foam::scalar
Foam::KinematicParcel<ParcelType>::constantProperties::rho0() const Foam::KinematicParcel<ParcelType>::constantProperties::rho0() const
{ {
@ -186,7 +186,7 @@ Foam::KinematicParcel<ParcelType>::constantProperties::rho0() const
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar inline Foam::scalar
Foam::KinematicParcel<ParcelType>::constantProperties::minParticleMass() const Foam::KinematicParcel<ParcelType>::constantProperties::minParticleMass() const
{ {
@ -194,7 +194,7 @@ Foam::KinematicParcel<ParcelType>::constantProperties::minParticleMass() const
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar inline Foam::scalar
Foam::KinematicParcel<ParcelType>:: Foam::KinematicParcel<ParcelType>::
constantProperties::youngsModulus() const constantProperties::youngsModulus() const
@ -203,7 +203,7 @@ constantProperties::youngsModulus() const
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar inline Foam::scalar
Foam::KinematicParcel<ParcelType>:: Foam::KinematicParcel<ParcelType>::
constantProperties::poissonsRatio() const constantProperties::poissonsRatio() const
@ -214,7 +214,7 @@ constantProperties::poissonsRatio() const
// * * * * * * * * * * * trackData Member Functions * * * * * * * * * * * * // // * * * * * * * * * * * trackData Member Functions * * * * * * * * * * * * //
template <class ParcelType> template<class ParcelType>
inline Foam::KinematicCloud<ParcelType>& inline Foam::KinematicCloud<ParcelType>&
Foam::KinematicParcel<ParcelType>::trackData::cloud() Foam::KinematicParcel<ParcelType>::trackData::cloud()
{ {
@ -230,7 +230,7 @@ Foam::KinematicParcel<ParcelType>::trackData::rhoInterp() const
} }
template <class ParcelType> template<class ParcelType>
inline const Foam::interpolation<Foam::vector>& inline const Foam::interpolation<Foam::vector>&
Foam::KinematicParcel<ParcelType>::trackData::UInterp() const Foam::KinematicParcel<ParcelType>::trackData::UInterp() const
{ {
@ -272,49 +272,49 @@ Foam::KinematicParcel<ParcelType>::trackData::part()
// * * * * * * * KinematicParcel Member Functions * * * * * * * // // * * * * * * * KinematicParcel Member Functions * * * * * * * //
template <class ParcelType> template<class ParcelType>
inline bool Foam::KinematicParcel<ParcelType>::active() const inline bool Foam::KinematicParcel<ParcelType>::active() const
{ {
return active_; return active_;
} }
template <class ParcelType> template<class ParcelType>
inline Foam::label Foam::KinematicParcel<ParcelType>::typeId() const inline Foam::label Foam::KinematicParcel<ParcelType>::typeId() const
{ {
return typeId_; return typeId_;
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar Foam::KinematicParcel<ParcelType>::nParticle() const inline Foam::scalar Foam::KinematicParcel<ParcelType>::nParticle() const
{ {
return nParticle_; return nParticle_;
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar Foam::KinematicParcel<ParcelType>::d() const inline Foam::scalar Foam::KinematicParcel<ParcelType>::d() const
{ {
return d_; return d_;
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar Foam::KinematicParcel<ParcelType>::dTarget() const inline Foam::scalar Foam::KinematicParcel<ParcelType>::dTarget() const
{ {
return dTarget_; return dTarget_;
} }
template <class ParcelType> template<class ParcelType>
inline const Foam::vector& Foam::KinematicParcel<ParcelType>::U() const inline const Foam::vector& Foam::KinematicParcel<ParcelType>::U() const
{ {
return U_; return U_;
} }
template <class ParcelType> template<class ParcelType>
inline const Foam::vector& inline const Foam::vector&
Foam::KinematicParcel<ParcelType>::f() const Foam::KinematicParcel<ParcelType>::f() const
{ {
@ -322,7 +322,7 @@ Foam::KinematicParcel<ParcelType>::f() const
} }
template <class ParcelType> template<class ParcelType>
inline const Foam::vector& inline const Foam::vector&
Foam::KinematicParcel<ParcelType>::angularMomentum() const Foam::KinematicParcel<ParcelType>::angularMomentum() const
{ {
@ -330,7 +330,7 @@ Foam::KinematicParcel<ParcelType>::angularMomentum() const
} }
template <class ParcelType> template<class ParcelType>
inline const Foam::vector& inline const Foam::vector&
Foam::KinematicParcel<ParcelType>::torque() const Foam::KinematicParcel<ParcelType>::torque() const
{ {
@ -338,35 +338,35 @@ Foam::KinematicParcel<ParcelType>::torque() const
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar Foam::KinematicParcel<ParcelType>::rho() const inline Foam::scalar Foam::KinematicParcel<ParcelType>::rho() const
{ {
return rho_; return rho_;
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar Foam::KinematicParcel<ParcelType>::tTurb() const inline Foam::scalar Foam::KinematicParcel<ParcelType>::tTurb() const
{ {
return tTurb_; return tTurb_;
} }
template <class ParcelType> template<class ParcelType>
inline const Foam::vector& Foam::KinematicParcel<ParcelType>::UTurb() const inline const Foam::vector& Foam::KinematicParcel<ParcelType>::UTurb() const
{ {
return UTurb_; return UTurb_;
} }
template <class ParcelType> template<class ParcelType>
inline bool& Foam::KinematicParcel<ParcelType>::active() inline bool& Foam::KinematicParcel<ParcelType>::active()
{ {
return active_; return active_;
} }
template <class ParcelType> template<class ParcelType>
inline const Foam::collisionRecordList& inline const Foam::collisionRecordList&
Foam::KinematicParcel<ParcelType>::collisionRecords() const Foam::KinematicParcel<ParcelType>::collisionRecords() const
{ {
@ -374,84 +374,84 @@ Foam::KinematicParcel<ParcelType>::collisionRecords() const
} }
template <class ParcelType> template<class ParcelType>
inline Foam::label& Foam::KinematicParcel<ParcelType>::typeId() inline Foam::label& Foam::KinematicParcel<ParcelType>::typeId()
{ {
return typeId_; return typeId_;
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar& Foam::KinematicParcel<ParcelType>::nParticle() inline Foam::scalar& Foam::KinematicParcel<ParcelType>::nParticle()
{ {
return nParticle_; return nParticle_;
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar& Foam::KinematicParcel<ParcelType>::d() inline Foam::scalar& Foam::KinematicParcel<ParcelType>::d()
{ {
return d_; return d_;
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar& Foam::KinematicParcel<ParcelType>::dTarget() inline Foam::scalar& Foam::KinematicParcel<ParcelType>::dTarget()
{ {
return dTarget_; return dTarget_;
} }
template <class ParcelType> template<class ParcelType>
inline Foam::vector& Foam::KinematicParcel<ParcelType>::U() inline Foam::vector& Foam::KinematicParcel<ParcelType>::U()
{ {
return U_; return U_;
} }
template <class ParcelType> template<class ParcelType>
inline Foam::vector& Foam::KinematicParcel<ParcelType>::f() inline Foam::vector& Foam::KinematicParcel<ParcelType>::f()
{ {
return f_; return f_;
} }
template <class ParcelType> template<class ParcelType>
inline Foam::vector& Foam::KinematicParcel<ParcelType>::angularMomentum() inline Foam::vector& Foam::KinematicParcel<ParcelType>::angularMomentum()
{ {
return angularMomentum_; return angularMomentum_;
} }
template <class ParcelType> template<class ParcelType>
inline Foam::vector& Foam::KinematicParcel<ParcelType>::torque() inline Foam::vector& Foam::KinematicParcel<ParcelType>::torque()
{ {
return torque_; return torque_;
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar& Foam::KinematicParcel<ParcelType>::rho() inline Foam::scalar& Foam::KinematicParcel<ParcelType>::rho()
{ {
return rho_; return rho_;
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar& Foam::KinematicParcel<ParcelType>::tTurb() inline Foam::scalar& Foam::KinematicParcel<ParcelType>::tTurb()
{ {
return tTurb_; return tTurb_;
} }
template <class ParcelType> template<class ParcelType>
inline Foam::vector& Foam::KinematicParcel<ParcelType>::UTurb() inline Foam::vector& Foam::KinematicParcel<ParcelType>::UTurb()
{ {
return UTurb_; return UTurb_;
} }
template <class ParcelType> template<class ParcelType>
inline Foam::collisionRecordList& inline Foam::collisionRecordList&
Foam::KinematicParcel<ParcelType>::collisionRecords() Foam::KinematicParcel<ParcelType>::collisionRecords()
{ {
@ -459,7 +459,7 @@ Foam::KinematicParcel<ParcelType>::collisionRecords()
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar Foam::KinematicParcel<ParcelType>::wallImpactDistance inline Foam::scalar Foam::KinematicParcel<ParcelType>::wallImpactDistance
( (
const vector& const vector&
@ -469,7 +469,7 @@ inline Foam::scalar Foam::KinematicParcel<ParcelType>::wallImpactDistance
} }
template <class ParcelType> template<class ParcelType>
inline Foam::label Foam::KinematicParcel<ParcelType>::faceInterpolation() const inline Foam::label Foam::KinematicParcel<ParcelType>::faceInterpolation() const
{ {
// Use volume-based interpolation if dealing with external faces // Use volume-based interpolation if dealing with external faces
@ -484,7 +484,7 @@ inline Foam::label Foam::KinematicParcel<ParcelType>::faceInterpolation() const
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar Foam::KinematicParcel<ParcelType>::massCell inline Foam::scalar Foam::KinematicParcel<ParcelType>::massCell
( (
const label cellI const label cellI
@ -494,70 +494,70 @@ inline Foam::scalar Foam::KinematicParcel<ParcelType>::massCell
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar Foam::KinematicParcel<ParcelType>::mass() const inline Foam::scalar Foam::KinematicParcel<ParcelType>::mass() const
{ {
return rho_*volume(); return rho_*volume();
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar Foam::KinematicParcel<ParcelType>::momentOfInertia() const inline Foam::scalar Foam::KinematicParcel<ParcelType>::momentOfInertia() const
{ {
return 0.1*mass()*sqr(d_); return 0.1*mass()*sqr(d_);
} }
template <class ParcelType> template<class ParcelType>
inline Foam::vector Foam::KinematicParcel<ParcelType>::omega() const inline Foam::vector Foam::KinematicParcel<ParcelType>::omega() const
{ {
return angularMomentum_/momentOfInertia(); return angularMomentum_/momentOfInertia();
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar Foam::KinematicParcel<ParcelType>::volume() const inline Foam::scalar Foam::KinematicParcel<ParcelType>::volume() const
{ {
return volume(d_); return volume(d_);
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar Foam::KinematicParcel<ParcelType>::volume(const scalar d) inline Foam::scalar Foam::KinematicParcel<ParcelType>::volume(const scalar d)
{ {
return pi/6.0*pow3(d); return pi/6.0*pow3(d);
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar Foam::KinematicParcel<ParcelType>::areaP() const inline Foam::scalar Foam::KinematicParcel<ParcelType>::areaP() const
{ {
return areaP(d_); return areaP(d_);
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar Foam::KinematicParcel<ParcelType>::areaP(const scalar d) inline Foam::scalar Foam::KinematicParcel<ParcelType>::areaP(const scalar d)
{ {
return 0.25*areaS(d); return 0.25*areaS(d);
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar Foam::KinematicParcel<ParcelType>::areaS() const inline Foam::scalar Foam::KinematicParcel<ParcelType>::areaS() const
{ {
return areaS(d_); return areaS(d_);
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar Foam::KinematicParcel<ParcelType>::areaS(const scalar d) inline Foam::scalar Foam::KinematicParcel<ParcelType>::areaS(const scalar d)
{ {
return pi*d*d; return pi*d*d;
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar Foam::KinematicParcel<ParcelType>::Re inline Foam::scalar Foam::KinematicParcel<ParcelType>::Re
( (
const vector& U, const vector& U,

View File

@ -30,7 +30,7 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
template <class ParcelType> template<class ParcelType>
Foam::string Foam::KinematicParcel<ParcelType>::propHeader = Foam::string Foam::KinematicParcel<ParcelType>::propHeader =
Particle<ParcelType>::propHeader Particle<ParcelType>::propHeader
+ " active" + " active"
@ -56,7 +56,7 @@ Foam::string Foam::KinematicParcel<ParcelType>::propHeader =
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template <class ParcelType> template<class ParcelType>
Foam::KinematicParcel<ParcelType>::KinematicParcel Foam::KinematicParcel<ParcelType>::KinematicParcel
( (
const Cloud<ParcelType>& cloud, const Cloud<ParcelType>& cloud,

View File

@ -626,7 +626,7 @@ void Foam::ReactingMultiphaseParcel<ParcelType>::calcSurfaceReactions
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template <class ParcelType> template<class ParcelType>
Foam::ReactingMultiphaseParcel<ParcelType>::ReactingMultiphaseParcel Foam::ReactingMultiphaseParcel<ParcelType>::ReactingMultiphaseParcel
( (
const ReactingMultiphaseParcel<ParcelType>& p const ReactingMultiphaseParcel<ParcelType>& p

View File

@ -62,7 +62,7 @@ inline Foam::ReactingMultiphaseParcel<ParcelType>::trackData::trackData
{} {}
template <class ParcelType> template<class ParcelType>
inline Foam::ReactingMultiphaseParcel<ParcelType>::ReactingMultiphaseParcel inline Foam::ReactingMultiphaseParcel<ParcelType>::ReactingMultiphaseParcel
( (
ReactingMultiphaseCloud<ParcelType>& owner, ReactingMultiphaseCloud<ParcelType>& owner,

View File

@ -28,7 +28,7 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
template <class ParcelType> template<class ParcelType>
Foam::string Foam::ReactingMultiphaseParcel<ParcelType>::propHeader = Foam::string Foam::ReactingMultiphaseParcel<ParcelType>::propHeader =
ReactingParcel<ParcelType>::propHeader ReactingParcel<ParcelType>::propHeader
+ " nGas(Y1..YN)" + " nGas(Y1..YN)"

View File

@ -504,7 +504,7 @@ void Foam::ReactingParcel<ParcelType>::calcPhaseChange
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template <class ParcelType> template<class ParcelType>
Foam::ReactingParcel<ParcelType>::ReactingParcel Foam::ReactingParcel<ParcelType>::ReactingParcel
( (
const ReactingParcel<ParcelType>& p const ReactingParcel<ParcelType>& p

View File

@ -28,7 +28,7 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
template <class ParcelType> template<class ParcelType>
Foam::string Foam::ReactingParcel<ParcelType>::propHeader = Foam::string Foam::ReactingParcel<ParcelType>::propHeader =
ThermoParcel<ParcelType>::propHeader ThermoParcel<ParcelType>::propHeader
+ " mass0" + " mass0"

View File

@ -210,7 +210,7 @@ void Foam::ThermoParcel<ParcelType>::calc
template<class ParcelType> template<class ParcelType>
template <class TrackData> template<class TrackData>
Foam::scalar Foam::ThermoParcel<ParcelType>::calcHeatTransfer Foam::scalar Foam::ThermoParcel<ParcelType>::calcHeatTransfer
( (
TrackData& td, TrackData& td,
@ -276,7 +276,7 @@ Foam::scalar Foam::ThermoParcel<ParcelType>::calcHeatTransfer
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template <class ParcelType> template<class ParcelType>
Foam::ThermoParcel<ParcelType>::ThermoParcel Foam::ThermoParcel<ParcelType>::ThermoParcel
( (
const ThermoParcel<ParcelType>& p const ThermoParcel<ParcelType>& p

View File

@ -144,7 +144,7 @@ inline Foam::ThermoParcel<ParcelType>::ThermoParcel
// * * * * * * * * * constantProperties Member Functions * * * * * * * * * * // // * * * * * * * * * constantProperties Member Functions * * * * * * * * * * //
template <class ParcelType> template<class ParcelType>
inline Foam::scalar inline Foam::scalar
Foam::ThermoParcel<ParcelType>::constantProperties::T0() const Foam::ThermoParcel<ParcelType>::constantProperties::T0() const
{ {
@ -152,7 +152,7 @@ Foam::ThermoParcel<ParcelType>::constantProperties::T0() const
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar inline Foam::scalar
Foam::ThermoParcel<ParcelType>::constantProperties::TMin() const Foam::ThermoParcel<ParcelType>::constantProperties::TMin() const
{ {
@ -160,7 +160,7 @@ Foam::ThermoParcel<ParcelType>::constantProperties::TMin() const
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar inline Foam::scalar
Foam::ThermoParcel<ParcelType>::constantProperties::Cp0() const Foam::ThermoParcel<ParcelType>::constantProperties::Cp0() const
{ {
@ -168,7 +168,7 @@ Foam::ThermoParcel<ParcelType>::constantProperties::Cp0() const
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar inline Foam::scalar
Foam::ThermoParcel<ParcelType>::constantProperties::epsilon0() const Foam::ThermoParcel<ParcelType>::constantProperties::epsilon0() const
{ {
@ -176,7 +176,7 @@ Foam::ThermoParcel<ParcelType>::constantProperties::epsilon0() const
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar inline Foam::scalar
Foam::ThermoParcel<ParcelType>::constantProperties::f0() const Foam::ThermoParcel<ParcelType>::constantProperties::f0() const
{ {
@ -184,7 +184,7 @@ Foam::ThermoParcel<ParcelType>::constantProperties::f0() const
} }
template <class ParcelType> template<class ParcelType>
inline Foam::scalar inline Foam::scalar
Foam::ThermoParcel<ParcelType>::constantProperties::Pr() const Foam::ThermoParcel<ParcelType>::constantProperties::Pr() const
{ {

View File

@ -28,7 +28,7 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
template <class ParcelType> template<class ParcelType>
Foam::string Foam::ThermoParcel<ParcelType>::propHeader = Foam::string Foam::ThermoParcel<ParcelType>::propHeader =
KinematicParcel<ParcelType>::propHeader KinematicParcel<ParcelType>::propHeader
+ " T" + " T"

View File

@ -122,7 +122,7 @@ public:
friend Ostream& operator<< <Type> friend Ostream& operator<< <Type>
( (
Ostream&, Ostream&,
const Constant<Type>& const Table<Type>&
); );
}; };

View File

@ -65,10 +65,13 @@ Foam::polynomial::~polynomial()
Foam::scalar Foam::polynomial::value(const scalar x) const Foam::scalar Foam::polynomial::value(const scalar x) const
{ {
scalar y = 0.0; scalar y = coeffs_[0].first();
forAll(coeffs_, i) scalar powX = x;
for (label i = 1; i < coeffs_.size(); i++)
{ {
y += coeffs_[i].first()*pow(x, coeffs_[i].second()); y += coeffs_[i].first()*powX;
powX *= x;
} }
return y; return y;

View File

@ -27,7 +27,7 @@ License
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
void Foam::PairSpringSliderDashpot<CloudType>::findMinMaxProperties void Foam::PairSpringSliderDashpot<CloudType>::findMinMaxProperties
( (
scalar& RMin, scalar& RMin,
@ -79,7 +79,7 @@ void Foam::PairSpringSliderDashpot<CloudType>::findMinMaxProperties
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::PairSpringSliderDashpot<CloudType>::PairSpringSliderDashpot Foam::PairSpringSliderDashpot<CloudType>::PairSpringSliderDashpot
( (
const dictionary& dict, const dictionary& dict,
@ -121,7 +121,7 @@ Foam::PairSpringSliderDashpot<CloudType>::PairSpringSliderDashpot
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::PairSpringSliderDashpot<CloudType>::~PairSpringSliderDashpot() Foam::PairSpringSliderDashpot<CloudType>::~PairSpringSliderDashpot()
{} {}

View File

@ -27,7 +27,7 @@ License
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
void Foam::WallLocalSpringSliderDashpot<CloudType>::findMinMaxProperties void Foam::WallLocalSpringSliderDashpot<CloudType>::findMinMaxProperties
( (
scalar& rMin, scalar& rMin,
@ -70,7 +70,7 @@ void Foam::WallLocalSpringSliderDashpot<CloudType>::findMinMaxProperties
} }
template <class CloudType> template<class CloudType>
void Foam::WallLocalSpringSliderDashpot<CloudType>::evaluateWall void Foam::WallLocalSpringSliderDashpot<CloudType>::evaluateWall
( (
typename CloudType::parcelType& p, typename CloudType::parcelType& p,
@ -155,7 +155,7 @@ void Foam::WallLocalSpringSliderDashpot<CloudType>::evaluateWall
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::WallLocalSpringSliderDashpot<CloudType>::WallLocalSpringSliderDashpot Foam::WallLocalSpringSliderDashpot<CloudType>::WallLocalSpringSliderDashpot
( (
const dictionary& dict, const dictionary& dict,
@ -257,7 +257,7 @@ Foam::WallLocalSpringSliderDashpot<CloudType>::WallLocalSpringSliderDashpot
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::WallLocalSpringSliderDashpot<CloudType>::~WallLocalSpringSliderDashpot() Foam::WallLocalSpringSliderDashpot<CloudType>::~WallLocalSpringSliderDashpot()
{} {}

View File

@ -27,7 +27,7 @@ License
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
void Foam::WallSpringSliderDashpot<CloudType>::findMinMaxProperties void Foam::WallSpringSliderDashpot<CloudType>::findMinMaxProperties
( (
scalar& rMin, scalar& rMin,
@ -70,7 +70,7 @@ void Foam::WallSpringSliderDashpot<CloudType>::findMinMaxProperties
} }
template <class CloudType> template<class CloudType>
void Foam::WallSpringSliderDashpot<CloudType>::evaluateWall void Foam::WallSpringSliderDashpot<CloudType>::evaluateWall
( (
typename CloudType::parcelType& p, typename CloudType::parcelType& p,
@ -144,7 +144,7 @@ void Foam::WallSpringSliderDashpot<CloudType>::evaluateWall
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::WallSpringSliderDashpot<CloudType>::WallSpringSliderDashpot Foam::WallSpringSliderDashpot<CloudType>::WallSpringSliderDashpot
( (
const dictionary& dict, const dictionary& dict,
@ -194,7 +194,7 @@ Foam::WallSpringSliderDashpot<CloudType>::WallSpringSliderDashpot
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::WallSpringSliderDashpot<CloudType>::~WallSpringSliderDashpot() Foam::WallSpringSliderDashpot<CloudType>::~WallSpringSliderDashpot()
{} {}

View File

@ -42,7 +42,7 @@ Foam::DispersionModel<CloudType>::DispersionModel
const word& type const word& type
) )
: :
SubModelBase<CloudType>(dict, owner, type) SubModelBase<CloudType>(owner, dict, type)
{} {}

View File

@ -76,13 +76,6 @@ public:
//- Construct null from owner //- Construct null from owner
DispersionModel(CloudType& owner); DispersionModel(CloudType& owner);
//- Construct from components
DispersionModel
(
const dictionary& dict,
CloudType& owner
);
//- Construct from components //- Construct from components
DispersionModel DispersionModel
( (

View File

@ -52,7 +52,7 @@ class GradientDispersionRAS
{ {
protected: protected:
// Locally cached turbulence fields // Protected data
// Locally cached turbulence fields // Locally cached turbulence fields

View File

@ -27,7 +27,7 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::NoDrag<CloudType>::NoDrag(const dictionary& dict, CloudType& owner) Foam::NoDrag<CloudType>::NoDrag(const dictionary& dict, CloudType& owner)
: :
DragModel<CloudType>(owner) DragModel<CloudType>(owner)
@ -43,7 +43,7 @@ Foam::NoDrag<CloudType>::NoDrag(const NoDrag<CloudType>& dm)
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::NoDrag<CloudType>::~NoDrag() Foam::NoDrag<CloudType>::~NoDrag()
{} {}

View File

@ -27,7 +27,7 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::SphereDrag<CloudType>::SphereDrag Foam::SphereDrag<CloudType>::SphereDrag
( (
const dictionary&, const dictionary&,
@ -47,14 +47,14 @@ Foam::SphereDrag<CloudType>::SphereDrag(const SphereDrag<CloudType>& dm)
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::SphereDrag<CloudType>::~SphereDrag() Foam::SphereDrag<CloudType>::~SphereDrag()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::scalar Foam::SphereDrag<CloudType>::Cd(const scalar Re) const Foam::scalar Foam::SphereDrag<CloudType>::Cd(const scalar Re) const
{ {
scalar Cd; scalar Cd;

View File

@ -39,7 +39,7 @@ Description
namespace Foam namespace Foam
{ {
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class SphereDrag Declaration Class SphereDrag Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
template<class CloudType> template<class CloudType>

View File

@ -26,6 +26,7 @@ License
#include "ConeInjection.H" #include "ConeInjection.H"
#include "DataEntry.H" #include "DataEntry.H"
#include "mathematicalConstants.H" #include "mathematicalConstants.H"
#include "unitConversion.H"
using namespace Foam::constant::mathematical; using namespace Foam::constant::mathematical;
@ -204,15 +205,11 @@ void Foam::ConeInjection<CloudType>::setProperties
{ {
cachedRandom& rnd = this->owner().rndGen(); cachedRandom& rnd = this->owner().rndGen();
// set particle velocity
const scalar deg2Rad = pi/180.0;
scalar t = time - this->SOI_; scalar t = time - this->SOI_;
scalar ti = thetaInner_().value(t); scalar ti = thetaInner_().value(t);
scalar to = thetaOuter_().value(t); scalar to = thetaOuter_().value(t);
scalar coneAngle = deg2Rad*rnd.position<scalar>(ti, to); scalar coneAngle = degToRad(rnd.position<scalar>(ti, to));
coneAngle *= deg2Rad;
scalar alpha = sin(coneAngle); scalar alpha = sin(coneAngle);
scalar dcorr = cos(coneAngle); scalar dcorr = cos(coneAngle);
scalar beta = twoPi*rnd.sample01<scalar>(); scalar beta = twoPi*rnd.sample01<scalar>();

View File

@ -26,6 +26,7 @@ License
#include "ConeInjectionMP.H" #include "ConeInjectionMP.H"
#include "DataEntry.H" #include "DataEntry.H"
#include "mathematicalConstants.H" #include "mathematicalConstants.H"
#include "unitConversion.H"
using namespace Foam::constant::mathematical; using namespace Foam::constant::mathematical;
@ -250,14 +251,11 @@ void Foam::ConeInjectionMP<CloudType>::setProperties
// set particle velocity // set particle velocity
const label i = parcelI%positions_.size(); const label i = parcelI%positions_.size();
const scalar deg2Rad = pi/180.0;
scalar t = time - this->SOI_; scalar t = time - this->SOI_;
scalar ti = thetaInner_().value(t); scalar ti = thetaInner_().value(t);
scalar to = thetaOuter_().value(t); scalar to = thetaOuter_().value(t);
scalar coneAngle = deg2Rad*rnd.position<scalar>(ti, to); scalar coneAngle = degToRad(rnd.position<scalar>(ti, to));
coneAngle *= deg2Rad;
scalar alpha = sin(coneAngle); scalar alpha = sin(coneAngle);
scalar dcorr = cos(coneAngle); scalar dcorr = cos(coneAngle);
scalar beta = twoPi*rnd.sample01<scalar>(); scalar beta = twoPi*rnd.sample01<scalar>();

View File

@ -53,11 +53,7 @@ Foam::scalar Foam::NoInjection<CloudType>::volumeToInject
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class CloudType> template<class CloudType>
Foam::NoInjection<CloudType>::NoInjection Foam::NoInjection<CloudType>::NoInjection(const dictionary&, CloudType& owner)
(
const dictionary&,
CloudType& owner
)
: :
InjectionModel<CloudType>(owner) InjectionModel<CloudType>(owner)
{} {}

View File

@ -27,7 +27,7 @@ License
// * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * * // // * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::label Foam::LocalInteraction<CloudType>::applyToPatch Foam::label Foam::LocalInteraction<CloudType>::applyToPatch
( (
const label globalPatchI const label globalPatchI
@ -47,7 +47,7 @@ Foam::label Foam::LocalInteraction<CloudType>::applyToPatch
// * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::LocalInteraction<CloudType>::LocalInteraction Foam::LocalInteraction<CloudType>::LocalInteraction
( (
const dictionary& dict, const dictionary& dict,
@ -132,14 +132,14 @@ Foam::LocalInteraction<CloudType>::LocalInteraction
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::LocalInteraction<CloudType>::~LocalInteraction() Foam::LocalInteraction<CloudType>::~LocalInteraction()
{} {}
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
bool Foam::LocalInteraction<CloudType>::correct bool Foam::LocalInteraction<CloudType>::correct
( (
typename CloudType::parcelType& p, typename CloudType::parcelType& p,

View File

@ -62,7 +62,6 @@ public:
// Constructors // Constructors
//- Construct from dictionary
//- Construct from dictionary //- Construct from dictionary
Rebound(const dictionary& dict, CloudType& cloud); Rebound(const dictionary& dict, CloudType& cloud);

View File

@ -27,7 +27,7 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::StandardWallInteraction<CloudType>::StandardWallInteraction Foam::StandardWallInteraction<CloudType>::StandardWallInteraction
( (
const dictionary& dict, const dictionary& dict,
@ -91,14 +91,14 @@ Foam::StandardWallInteraction<CloudType>::StandardWallInteraction
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::StandardWallInteraction<CloudType>::~StandardWallInteraction() Foam::StandardWallInteraction<CloudType>::~StandardWallInteraction()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
bool Foam::StandardWallInteraction<CloudType>::correct bool Foam::StandardWallInteraction<CloudType>::correct
( (
typename CloudType::parcelType& p, typename CloudType::parcelType& p,

View File

@ -29,7 +29,7 @@ License
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::label Foam::PatchPostProcessing<CloudType>::applyToPatch Foam::label Foam::PatchPostProcessing<CloudType>::applyToPatch
( (
const label globalPatchI const label globalPatchI

View File

@ -8,10 +8,10 @@
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
OpenFOAM is free software; you can redistribute it and/or modify it 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 under the terms of the GNU General Public License as published by
Free Software Foundation; either version 2 of the License, or (at your the Free Software Foundation, either version 3 of the License, or
option) any later version. (at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
@ -19,8 +19,7 @@ License
for more details. for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with OpenFOAM; if not, write to the Free Software Foundation, along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -8,10 +8,10 @@
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
OpenFOAM is free software; you can redistribute it and/or modify it 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 under the terms of the GNU General Public License as published by
Free Software Foundation; either version 2 of the License, or (at your the Free Software Foundation, either version 3 of the License, or
option) any later version. (at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
@ -19,8 +19,7 @@ License
for more details. for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with OpenFOAM; if not, write to the Free Software Foundation, along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Class Class
Foam::NoComposition Foam::NoComposition

View File

@ -50,7 +50,7 @@ Foam::scalarField Foam::LiquidEvaporation<CloudType>::calcXc
} }
template <class CloudType> template<class CloudType>
Foam::scalar Foam::LiquidEvaporation<CloudType>::Sh Foam::scalar Foam::LiquidEvaporation<CloudType>::Sh
( (
const scalar Re, const scalar Re,
@ -63,7 +63,7 @@ Foam::scalar Foam::LiquidEvaporation<CloudType>::Sh
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::LiquidEvaporation<CloudType>::LiquidEvaporation Foam::LiquidEvaporation<CloudType>::LiquidEvaporation
( (
const dictionary& dict, const dictionary& dict,
@ -88,20 +88,25 @@ Foam::LiquidEvaporation<CloudType>::LiquidEvaporation
) << "Evaporation model selected, but no active liquids defined" ) << "Evaporation model selected, but no active liquids defined"
<< nl << endl; << nl << endl;
} }
else
// Determine mapping between liquid and carrier phase species
forAll(activeLiquids_, i)
{ {
liqToCarrierMap_[i] = Info<< "Participating liquid species:" << endl;
owner.composition().globalCarrierId(activeLiquids_[i]);
}
// Determine mapping between model active liquids and global liquids // Determine mapping between liquid and carrier phase species
label idLiquid = owner.composition().idLiquid(); forAll(activeLiquids_, i)
forAll(activeLiquids_, i) {
{ Info<< " " << activeLiquids_[i] << endl;
liqToLiqMap_[i] = liqToCarrierMap_[i] =
owner.composition().localId(idLiquid, activeLiquids_[i]); owner.composition().globalCarrierId(activeLiquids_[i]);
}
// Determine mapping between model active liquids and global liquids
const label idLiquid = owner.composition().idLiquid();
forAll(activeLiquids_, i)
{
liqToLiqMap_[i] =
owner.composition().localId(idLiquid, activeLiquids_[i]);
}
} }
} }
@ -122,7 +127,7 @@ Foam::LiquidEvaporation<CloudType>::LiquidEvaporation
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::LiquidEvaporation<CloudType>::~LiquidEvaporation() Foam::LiquidEvaporation<CloudType>::~LiquidEvaporation()
{} {}
@ -144,19 +149,19 @@ void Foam::LiquidEvaporation<CloudType>::calculate
) const ) const
{ {
// construct carrier phase species volume fractions for cell, cellI // construct carrier phase species volume fractions for cell, cellI
scalarField Xc = calcXc(cellI); const scalarField Xc = calcXc(cellI);
// droplet surface area // droplet surface area
scalar A = pi*sqr(d); const scalar A = pi*sqr(d);
// calculate mass transfer of each specie in liquid // calculate mass transfer of each specie in liquid
forAll(activeLiquids_, i) forAll(activeLiquids_, i)
{ {
label gid = liqToCarrierMap_[i]; const label gid = liqToCarrierMap_[i];
label lid = liqToLiqMap_[i]; const label lid = liqToLiqMap_[i];
// vapour diffusivity [m2/s] // vapour diffusivity [m2/s]
scalar Dab = liquids_.properties()[lid].D(pc, Ts); const scalar Dab = liquids_.properties()[lid].D(pc, Ts);
// saturation pressure for species i [pa] // saturation pressure for species i [pa]
// - carrier phase pressure assumed equal to the liquid vapour pressure // - carrier phase pressure assumed equal to the liquid vapour pressure
@ -164,25 +169,25 @@ void Foam::LiquidEvaporation<CloudType>::calculate
// NOTE: if pSat > pc then particle is superheated // NOTE: if pSat > pc then particle is superheated
// calculated evaporation rate will be greater than that of a particle // calculated evaporation rate will be greater than that of a particle
// at boiling point, but this is not a boiling model // at boiling point, but this is not a boiling model
scalar pSat = liquids_.properties()[lid].pv(pc, T); const scalar pSat = liquids_.properties()[lid].pv(pc, T);
// Schmidt number // Schmidt number
scalar Sc = nu/(Dab + ROOTVSMALL); const scalar Sc = nu/(Dab + ROOTVSMALL);
// Sherwood number // Sherwood number
scalar Sh = this->Sh(Re, Sc); const scalar Sh = this->Sh(Re, Sc);
// mass transfer coefficient [m/s] // mass transfer coefficient [m/s]
scalar kc = Sh*Dab/(d + ROOTVSMALL); const scalar kc = Sh*Dab/(d + ROOTVSMALL);
// vapour concentration at droplet surface [kmol/m3] at film temperature // vapour concentration at droplet surface [kmol/m3] at film temperature
scalar Cs = pSat/(specie::RR*Ts); const scalar Cs = pSat/(specie::RR*Ts);
// vapour concentration in bulk gas [kmol/m3] at film temperature // vapour concentration in bulk gas [kmol/m3] at film temperature
scalar Cinf = Xc[gid]*pc/(specie::RR*Ts); const scalar Cinf = Xc[gid]*pc/(specie::RR*Ts);
// molar flux of vapour [kmol/m2/s] // molar flux of vapour [kmol/m2/s]
scalar Ni = max(kc*(Cs - Cinf), 0.0); const scalar Ni = max(kc*(Cs - Cinf), 0.0);
// mass transfer [kg] // mass transfer [kg]
dMassPC[lid] += Ni*A*liquids_.properties()[lid].W()*dt; dMassPC[lid] += Ni*A*liquids_.properties()[lid].W()*dt;

View File

@ -27,7 +27,7 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::NoPhaseChange<CloudType>::NoPhaseChange Foam::NoPhaseChange<CloudType>::NoPhaseChange
( (
const dictionary&, const dictionary&,
@ -50,7 +50,7 @@ Foam::NoPhaseChange<CloudType>::NoPhaseChange
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::NoPhaseChange<CloudType>::~NoPhaseChange() Foam::NoPhaseChange<CloudType>::~NoPhaseChange()
{} {}

View File

@ -8,10 +8,10 @@
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
OpenFOAM is free software; you can redistribute it and/or modify it 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 under the terms of the GNU General Public License as published by
Free Software Foundation; either version 2 of the License, or (at your the Free Software Foundation, either version 3 of the License, or
option) any later version. (at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
@ -19,8 +19,7 @@ License
for more details. for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with OpenFOAM; if not, write to the Free Software Foundation, along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -27,7 +27,7 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::NoDevolatilisation<CloudType>::NoDevolatilisation Foam::NoDevolatilisation<CloudType>::NoDevolatilisation
( (
const dictionary&, const dictionary&,
@ -50,7 +50,7 @@ Foam::NoDevolatilisation<CloudType>::NoDevolatilisation
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::NoDevolatilisation<CloudType>::~NoDevolatilisation() Foam::NoDevolatilisation<CloudType>::~NoDevolatilisation()
{} {}

View File

@ -8,10 +8,10 @@
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
OpenFOAM is free software; you can redistribute it and/or modify it 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 under the terms of the GNU General Public License as published by
Free Software Foundation; either version 2 of the License, or (at your the Free Software Foundation, either version 3 of the License, or
option) any later version. (at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
@ -19,8 +19,7 @@ License
for more details. for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with OpenFOAM; if not, write to the Free Software Foundation, along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -8,10 +8,10 @@
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
OpenFOAM is free software; you can redistribute it and/or modify it 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 under the terms of the GNU General Public License as published by
Free Software Foundation; either version 2 of the License, or (at your the Free Software Foundation, either version 3 of the License, or
option) any later version. (at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
@ -19,8 +19,7 @@ License
for more details. for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with OpenFOAM; if not, write to the Free Software Foundation, along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Class Class
Foam::SingleKineticRateDevolatilisation Foam::SingleKineticRateDevolatilisation

View File

@ -50,7 +50,7 @@ Foam::NoSurfaceReaction<CloudType>::NoSurfaceReaction
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::NoSurfaceReaction<CloudType>::~NoSurfaceReaction() Foam::NoSurfaceReaction<CloudType>::~NoSurfaceReaction()
{} {}

View File

@ -27,7 +27,7 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::NoHeatTransfer<CloudType>::NoHeatTransfer Foam::NoHeatTransfer<CloudType>::NoHeatTransfer
( (
const dictionary&, const dictionary&,
@ -50,14 +50,14 @@ Foam::NoHeatTransfer<CloudType>::NoHeatTransfer
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::NoHeatTransfer<CloudType>::~NoHeatTransfer() Foam::NoHeatTransfer<CloudType>::~NoHeatTransfer()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::scalar Foam::NoHeatTransfer<CloudType>::Nu Foam::scalar Foam::NoHeatTransfer<CloudType>::Nu
( (
const scalar, const scalar,
@ -68,7 +68,7 @@ Foam::scalar Foam::NoHeatTransfer<CloudType>::Nu
} }
template <class CloudType> template<class CloudType>
Foam::scalar Foam::NoHeatTransfer<CloudType>::Pr() const Foam::scalar Foam::NoHeatTransfer<CloudType>::Pr() const
{ {
return 1.0; return 1.0;

View File

@ -27,7 +27,7 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::RanzMarshall<CloudType>::RanzMarshall Foam::RanzMarshall<CloudType>::RanzMarshall
( (
const dictionary& dict, const dictionary& dict,
@ -47,14 +47,14 @@ Foam::RanzMarshall<CloudType>::RanzMarshall(const RanzMarshall<CloudType>& htm)
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::RanzMarshall<CloudType>::~RanzMarshall() Foam::RanzMarshall<CloudType>::~RanzMarshall()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template <class CloudType> template<class CloudType>
Foam::scalar Foam::RanzMarshall<CloudType>::Nu Foam::scalar Foam::RanzMarshall<CloudType>::Nu
( (
const scalar Re, const scalar Re,

View File

@ -43,7 +43,7 @@ namespace Foam
Class RanzMarshall Declaration Class RanzMarshall Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
template <class CloudType> template<class CloudType>
class RanzMarshall class RanzMarshall
: :
public HeatTransferModel<CloudType> public HeatTransferModel<CloudType>