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_;
115 template<
class Thermo>
123 return mu(p, T)*rPr_;
129 template<
class Thermo>
130 inline void Foam::WLFTransport<Thermo>::operator+=
135 scalar Y1 = this->
Y();
137 Thermo::operator+=(wlft);
139 if (
mag(this->
Y()) > small)
142 scalar Y2 = wlft.Y()/this->
Y();
144 mu0_ = Y1*mu0_ + Y2*wlft.mu0_;
145 Tr_ = Y1*Tr_ + Y2*wlft.Tr_;
146 C1_ = Y1*C1_ + Y2*wlft.C1_;
147 C2_ = Y1*C2_ + Y2*wlft.C2_;
148 rPr_ = 1.0/(Y1/rPr_ + Y2/wlft.rPr_);
153 template<
class Thermo>
154 inline void Foam::WLFTransport<Thermo>::operator*=
159 Thermo::operator*=(s);
165 template<
class Thermo>
174 static_cast<const Thermo&>(wlft1) + static_cast<const Thermo&>(wlft2)
177 if (
mag(t.Y()) < small)
192 scalar Y1 = wlft1.Y()/t.Y();
193 scalar Y2 = wlft2.Y()/t.Y();
198 Y1*wlft1.mu0_ + Y2*wlft2.mu0_,
199 Y1*wlft1.Tr_ + Y2*wlft2.Tr_,
200 Y1*wlft1.C1_ + Y2*wlft2.C1_,
201 Y1*wlft1.C2_ + Y2*wlft2.C2_,
202 1.0/(Y1/wlft1.rPr_ + Y2/wlft2.rPr_)
208 template<
class Thermo>
217 s*
static_cast<const Thermo&
>(wlft),
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].
const dimensionedScalar & mu0
Magnetic constant/permeability of free space: default SI units: [H/m].
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.
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].