30 template<
class Thermo>
50 template<
class Thermo>
66 template<
class Thermo>
79 template<
class Thermo>
86 return mu0_*
exp(-C1_*(
T - Tr_)/(C2_ +
T - Tr_));
90 template<
class Thermo>
97 return this->
Cp(p,
T)*
mu(
p,
T)*rPr_;
103 template<
class Thermo>
109 scalar Y1 = this->
Y();
111 Thermo::operator+=(wlft);
113 if (
mag(this->
Y()) > small)
116 scalar Y2 = wlft.Y()/this->
Y();
118 mu0_ = Y1*mu0_ + Y2*wlft.mu0_;
119 Tr_ = Y1*Tr_ + Y2*wlft.Tr_;
120 C1_ = Y1*C1_ + Y2*wlft.C1_;
121 C2_ = Y1*C2_ + Y2*wlft.C2_;
122 rPr_ = 1.0/(Y1/rPr_ + Y2/wlft.rPr_);
127 template<
class Thermo>
133 Thermo::operator*=(
s);
139 template<
class Thermo>
148 static_cast<const Thermo&
>(wlft1) +
static_cast<const Thermo&
>(wlft2)
151 if (
mag(t.Y()) < small)
166 scalar Y1 = wlft1.Y()/t.Y();
167 scalar Y2 = wlft2.Y()/t.Y();
169 return WLFTransport<Thermo>
172 Y1*wlft1.mu0_ + Y2*wlft2.mu0_,
173 Y1*wlft1.Tr_ + Y2*wlft2.Tr_,
174 Y1*wlft1.C1_ + Y2*wlft2.C1_,
175 Y1*wlft1.C2_ + Y2*wlft2.C2_,
176 1.0/(Y1/wlft1.rPr_ + Y2/wlft2.rPr_)
182 template<
class Thermo>
186 const WLFTransport<Thermo>& wlft
189 return WLFTransport<Thermo>
191 s*
static_cast<const Thermo&
>(wlft),
scalar Cp(const scalar p, const scalar T) const
Transport package using the Williams-Landel-Ferry model for viscosity of polymer melts:
scalar mu(const scalar p, const scalar T) const
Dynamic viscosity [kg/m/s].
scalar kappa(const scalar p, const scalar T) const
Thermal conductivity [W/m/K].
WLFTransport(const Thermo &t, const scalar mu0, const scalar Tr, const scalar C1, const scalar C2, const scalar Pr)
Construct from components.
autoPtr< WLFTransport > clone() const
Construct and return a clone.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A class for handling words, derived from string.
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.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
const dimensionedScalar mu0
Magnetic constant/permeability of free space: default SI units: [H/m].
const dimensionedScalar mu
Atomic mass unit.
dimensionedScalar exp(const dimensionedScalar &ds)
word name(const bool)
Return a word representation of a bool.
dimensioned< scalar > mag(const dimensioned< Type > &)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
PtrList< volScalarField > & Y