30 template<
class Thermo,
int PolySize>
34 const Polynomial<PolySize>& muCoeffs,
35 const Polynomial<PolySize>& kappaCoeffs
40 kappaCoeffs_(kappaCoeffs)
44 template<
class Thermo,
int PolySize>
52 muCoeffs_(pt.muCoeffs_),
53 kappaCoeffs_(pt.kappaCoeffs_)
57 template<
class Thermo,
int PolySize>
68 template<
class Thermo,
int PolySize>
81 template<
class Thermo,
int PolySize>
88 return exp(muCoeffs_.value(
log(T)));
92 template<
class Thermo,
int PolySize>
99 return exp(kappaCoeffs_.value(
log(T)));
105 template<
class Thermo,
int PolySize>
106 inline void Foam::logPolynomialTransport<Thermo, PolySize>::operator+=
111 scalar Y1 = this->
Y();
113 Thermo::operator+=(pt);
115 if (
mag(this->
Y()) > small)
118 scalar Y2 = pt.Y()/this->
Y();
120 muCoeffs_ = Y1*muCoeffs_ + Y2*pt.muCoeffs_;
121 kappaCoeffs_ = Y1*kappaCoeffs_ + Y2*pt.kappaCoeffs_;
126 template<
class Thermo,
int PolySize>
127 inline void Foam::logPolynomialTransport<Thermo, PolySize>::operator*=
132 Thermo::operator*=(s);
138 template<
class Thermo,
int PolySize>
147 static_cast<const Thermo&>(pt1) + static_cast<const Thermo&>(pt2)
150 if (
mag(t.Y()) < small)
162 scalar Y1 = pt1.Y()/t.Y();
163 scalar Y2 = pt2.Y()/t.Y();
168 Y1*pt1.muCoeffs_ + Y2*pt2.muCoeffs_,
169 Y1*pt1.kappaCoeffs_ + Y2*pt2.kappaCoeffs_
175 template<
class Thermo,
int PolySize>
184 s*
static_cast<const Thermo&
>(pt),
autoPtr< logPolynomialTransport > clone() const
Construct and return a clone.
static autoPtr< logPolynomialTransport > New(const dictionary &dict)
dimensionedScalar log(const dimensionedScalar &ds)
A list of keyword definitions, which are a keyword followed by any number of values (e...
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 mu(const scalar p, const scalar T) const
Dynamic viscosity [kg/m/s].
PtrList< volScalarField > & Y
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...
Transport package using polynomial functions of the natural logarithm of temperature for the natural ...
scalar kappa(const scalar p, const scalar T) const
Thermal conductivity [W/m/K].