30 template<
class Thermo,
int PolySize>
40 kappaCoeffs_(kappaCoeffs)
44 template<
class Thermo,
int PolySize>
52 muCoeffs_(pt.muCoeffs_),
53 kappaCoeffs_(pt.kappaCoeffs_)
57 template<
class Thermo,
int PolySize>
70 template<
class Thermo,
int PolySize>
77 return exp(muCoeffs_.value(
log(
T)));
81 template<
class Thermo,
int PolySize>
88 return exp(kappaCoeffs_.value(
log(
T)));
94 template<
class Thermo,
int PolySize>
100 scalar Y1 = this->
Y();
102 Thermo::operator+=(pt);
104 if (
mag(this->
Y()) > small)
107 scalar Y2 = pt.Y()/this->
Y();
109 muCoeffs_ = Y1*muCoeffs_ + Y2*pt.muCoeffs_;
110 kappaCoeffs_ = Y1*kappaCoeffs_ + Y2*pt.kappaCoeffs_;
115 template<
class Thermo,
int PolySize>
121 Thermo::operator*=(
s);
127 template<
class Thermo,
int PolySize>
136 static_cast<const Thermo&
>(pt1) +
static_cast<const Thermo&
>(pt2)
139 if (
mag(t.Y()) < small)
151 scalar Y1 = pt1.Y()/t.Y();
152 scalar Y2 = pt2.Y()/t.Y();
154 return logPolynomialTransport<Thermo, PolySize>
157 Y1*pt1.muCoeffs_ + Y2*pt2.muCoeffs_,
158 Y1*pt1.kappaCoeffs_ + Y2*pt2.kappaCoeffs_
164 template<
class Thermo,
int PolySize>
168 const logPolynomialTransport<Thermo, PolySize>& pt
171 return logPolynomialTransport<Thermo, PolySize>
173 s*
static_cast<const Thermo&
>(pt),
Polynomial templated on size (order):
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Transport package using polynomial functions of the natural logarithm of temperature for the natural ...
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].
logPolynomialTransport(const Thermo &t, const Polynomial< PolySize > &muPoly, const Polynomial< PolySize > &kappaPoly)
Construct from components.
autoPtr< logPolynomialTransport > clone() const
Construct and return a clone.
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))
dimensionedScalar exp(const dimensionedScalar &ds)
word name(const bool)
Return a word representation of a bool.
dimensionedScalar log(const dimensionedScalar &ds)
dimensioned< scalar > mag(const dimensioned< Type > &)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
PtrList< volScalarField > & Y