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 muCoeffs_.value(T);
92 template<
class Thermo,
int PolySize>
99 return kappaCoeffs_.value(T);
103 template<
class Thermo,
int PolySize>
110 return kappa(p, T)/this->
Cp(p, T);
116 template<
class Thermo,
int PolySize>
117 inline void Foam::polynomialTransport<Thermo, PolySize>::operator+=
122 scalar Y1 = this->
Y();
124 Thermo::operator+=(pt);
126 if (
mag(this->
Y()) > small)
129 scalar Y2 = pt.Y()/this->
Y();
131 muCoeffs_ = Y1*muCoeffs_ + Y2*pt.muCoeffs_;
132 kappaCoeffs_ = Y1*kappaCoeffs_ + Y2*pt.kappaCoeffs_;
137 template<
class Thermo,
int PolySize>
138 inline void Foam::polynomialTransport<Thermo, PolySize>::operator*=
143 Thermo::operator*=(s);
149 template<
class Thermo,
int PolySize>
158 static_cast<const Thermo&>(pt1) + static_cast<const Thermo&>(pt2)
161 if (
mag(t.Y()) < small)
173 scalar Y1 = pt1.Y()/t.Y();
174 scalar Y2 = pt2.Y()/t.Y();
179 Y1*pt1.muCoeffs_ + Y2*pt2.muCoeffs_,
180 Y1*pt1.kappaCoeffs_ + Y2*pt2.kappaCoeffs_
186 template<
class Thermo,
int PolySize>
195 s*
static_cast<const Thermo&
>(pt),
autoPtr< polynomialTransport > clone() const
Construct and return a clone.
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))
scalar alphah(const scalar p, const scalar T) const
Thermal diffusivity of enthalpy [kg/m/s].
A class for handling words, derived from string.
static autoPtr< polynomialTransport > New(const dictionary &dict)
scalar kappa(const scalar p, const scalar T) const
Thermal conductivity [W/m/K].
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 mu(const scalar p, const scalar T) const
Dynamic viscosity [kg/m/s].
Transport package using polynomial functions for mu and kappa.