30 template<
class Thermo>
46 template<
class Thermo>
57 template<
class Thermo>
73 template<
class Thermo>
80 return mu0_*
exp(-C1_*(T - Tr_)/(C2_ + T - Tr_));
84 template<
class Thermo>
87 const scalar p,
const scalar T
90 return this->
Cp(p, T)*
mu(p, T)*rPr_;
94 template<
class Thermo>
102 return mu(p, T)*rPr_;
108 template<
class Thermo>
109 inline void Foam::WLFTransport<Thermo>::operator+=
114 scalar Y1 = this->
Y();
116 Thermo::operator+=(wlft);
118 if (
mag(this->
Y()) > small)
121 scalar Y2 = wlft.Y()/this->
Y();
123 mu0_ = Y1*mu0_ + Y2*wlft.mu0_;
124 Tr_ = Y1*Tr_ + Y2*wlft.Tr_;
125 C1_ = Y1*C1_ + Y2*wlft.C1_;
126 C2_ = Y1*C2_ + Y2*wlft.C2_;
127 rPr_ = 1.0/(Y1/rPr_ + Y2/wlft.rPr_);
132 template<
class Thermo>
133 inline void Foam::WLFTransport<Thermo>::operator*=
138 Thermo::operator*=(s);
144 template<
class Thermo>
153 static_cast<const Thermo&>(wlft1) + static_cast<const Thermo&>(wlft2)
156 if (
mag(t.Y()) < small)
171 scalar Y1 = wlft1.Y()/t.Y();
172 scalar Y2 = wlft2.Y()/t.Y();
177 Y1*wlft1.mu0_ + Y2*wlft2.mu0_,
178 Y1*wlft1.Tr_ + Y2*wlft2.Tr_,
179 Y1*wlft1.C1_ + Y2*wlft2.C1_,
180 Y1*wlft1.C2_ + Y2*wlft2.C2_,
181 1.0/(Y1/wlft1.rPr_ + Y2/wlft2.rPr_)
187 template<
class Thermo>
196 s*
static_cast<const Thermo&
>(wlft),
WLFTransport(const word &, const WLFTransport &)
Construct as named copy.
A list of keyword definitions, which are a keyword followed by any number of values (e...
scalar mu(const scalar p, const scalar T) const
Dynamic viscosity [kg/m/s].
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
dimensionedScalar exp(const dimensionedScalar &ds)
A class for handling words, derived from string.
scalar alphah(const scalar p, const scalar T) const
Thermal diffusivity of enthalpy [kg/m/s].
autoPtr< WLFTransport > clone() const
Construct and return a clone.
static autoPtr< WLFTransport > New(const dictionary &dict)
Transport package using the Williams-Landel-Ferry model.
const dimensionedScalar mu
Atomic mass unit.
PtrList< volScalarField > & Y
scalar Cp(const scalar p, const scalar T) const
dimensioned< scalar > mag(const dimensioned< Type > &)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
scalar kappa(const scalar p, const scalar T) const
Thermal conductivity [W/m/K].