30 template<
class Thermo>
50 template<
class Thermo>
66 template<
class Thermo>
77 template<
class Thermo>
93 template<
class Thermo>
100 return mu0_*
exp(-C1_*(T - Tr_)/(C2_ + T - Tr_));
104 template<
class Thermo>
111 return this->
Cp(p, T)*
mu(p, T)*rPr_;
117 template<
class Thermo>
118 inline void Foam::WLFTransport<Thermo>::operator+=
123 scalar Y1 = this->
Y();
125 Thermo::operator+=(wlft);
127 if (
mag(this->
Y()) > small)
130 scalar Y2 = wlft.Y()/this->
Y();
132 mu0_ = Y1*mu0_ + Y2*wlft.mu0_;
133 Tr_ = Y1*Tr_ + Y2*wlft.Tr_;
134 C1_ = Y1*C1_ + Y2*wlft.C1_;
135 C2_ = Y1*C2_ + Y2*wlft.C2_;
136 rPr_ = 1.0/(Y1/rPr_ + Y2/wlft.rPr_);
141 template<
class Thermo>
142 inline void Foam::WLFTransport<Thermo>::operator*=
147 Thermo::operator*=(s);
153 template<
class Thermo>
162 static_cast<const Thermo&>(wlft1) + static_cast<const Thermo&>(wlft2)
165 if (
mag(t.Y()) < small)
180 scalar Y1 = wlft1.Y()/t.Y();
181 scalar Y2 = wlft2.Y()/t.Y();
186 Y1*wlft1.mu0_ + Y2*wlft2.mu0_,
187 Y1*wlft1.Tr_ + Y2*wlft2.Tr_,
188 Y1*wlft1.C1_ + Y2*wlft2.C1_,
189 Y1*wlft1.C2_ + Y2*wlft2.C2_,
190 1.0/(Y1/wlft1.rPr_ + Y2/wlft2.rPr_)
196 template<
class Thermo>
205 s*
static_cast<const Thermo&
>(wlft),
const dimensionedScalar mu0
Magnetic constant/permeability of free space: default SI units: [H/m].
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.
autoPtr< WLFTransport > clone() const
Construct and return a clone.
static autoPtr< WLFTransport > New(const dictionary &dict)
Transport package using the Williams-Landel-Ferry model.
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].