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 muCoeffs_.value(
T);
81 template<
class Thermo,
int PolySize>
88 return kappaCoeffs_.value(
T);
94 template<
class Thermo,
int PolySize>
100 scalar Y1 = this->
Y();
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 polynomialTransport<Thermo, PolySize>
157 Y1*pt1.muCoeffs_ + Y2*pt2.muCoeffs_,
158 Y1*pt1.kappaCoeffs_ + Y2*pt2.kappaCoeffs_
164 template<
class Thermo,
int PolySize>
168 const polynomialTransport<Thermo, PolySize>& pt
171 return polynomialTransport<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 temperature for the dynamic viscosity and thermal con...
scalar mu(const scalar p, const scalar T) const
Dynamic viscosity [kg/m/s].
polynomialTransport(const Thermo &t, const Polynomial< PolySize > &muPoly, const Polynomial< PolySize > &kappaPoly)
Construct from components.
scalar kappa(const scalar p, const scalar T) const
Thermal conductivity [W/m/K].
autoPtr< polynomialTransport > clone() const
Construct and return a clone.
A class for handling words, derived from string.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.name(), lagrangian::cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
void T(LagrangianPatchField< Type > &f, const LagrangianPatchField< Type > &f1)
void mag(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
void operator+=(fvMatrix< Type > &fvEqn, const CarrierEqn< Type > &cEqn)
Add to a finite-volume equation.
PtrList< volScalarField > & Y