30 template<
class Thermo,
int PolySize>
39 muLogCoeffs_(muLogCoeffs),
40 kappaLogCoeffs_(kappaLogCoeffs)
44 template<
class Thermo,
int PolySize>
52 muLogCoeffs_(pt.muLogCoeffs_),
53 kappaLogCoeffs_(pt.kappaLogCoeffs_)
57 template<
class Thermo,
int PolySize>
70 template<
class Thermo,
int PolySize>
77 return exp(muLogCoeffs_.value(
log(
T)));
81 template<
class Thermo,
int PolySize>
88 return exp(kappaLogCoeffs_.value(
log(
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 muLogCoeffs_ = Y1*muLogCoeffs_ + Y2*pt.muLogCoeffs_;
110 kappaLogCoeffs_ = Y1*kappaLogCoeffs_ + Y2*pt.kappaLogCoeffs_;
115 template<
class Thermo,
int PolySize>
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.muLogCoeffs_ + Y2*pt2.muLogCoeffs_,
158 Y1*pt1.kappaLogCoeffs_ + Y2*pt2.kappaLogCoeffs_
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(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))
dimensionedScalar exp(const dimensionedScalar &ds)
dimensionedScalar log(const dimensionedScalar &ds)
void operator*=(Other &, const oneOrTmp< Type > &)
Multiply-assign with an object.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
tmp< DimensionedField< scalar, GeoMesh, Field > > mag(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
void operator+=(fvMatrix< Type > &fvEqn, const CarrierEqn< Type > &cEqn)
Add to a finite-volume equation.
void T(GeometricField< Type, GeoMesh, PrimitiveField1 > &gf, const GeometricField< Type, GeoMesh, PrimitiveField2 > &gf1)
PtrList< volScalarField > & Y