32 template<
class Thermo,
int PolySize>
36 const Polynomial<PolySize>& muCoeffs,
37 const Polynomial<PolySize>& kappaCoeffs
42 kappaCoeffs_(kappaCoeffs)
46 template<
class Thermo,
int PolySize>
54 muCoeffs_(pt.muCoeffs_),
55 kappaCoeffs_(pt.kappaCoeffs_)
59 template<
class Thermo,
int PolySize>
67 template<
class Thermo,
int PolySize>
77 template<
class Thermo,
int PolySize>
84 return muCoeffs_.value(
T);
88 template<
class Thermo,
int PolySize>
95 return kappaCoeffs_.value(
T);
99 template<
class Thermo,
int PolySize>
102 const scalar
p,
const scalar
T 111 template<
class Thermo,
int PolySize>
117 scalar Y1 = this->
Y();
119 Thermo::operator+=(pt);
121 if (
mag(this->
Y()) > SMALL)
124 scalar Y2 = pt.Y()/this->
Y();
126 muCoeffs_ = Y1*muCoeffs_ + Y2*pt.muCoeffs_;
127 kappaCoeffs_ = Y1*kappaCoeffs_ + Y2*pt.kappaCoeffs_;
132 template<
class Thermo,
int PolySize>
138 Thermo::operator*=(
s);
144 template<
class Thermo,
int PolySize>
147 const polynomialTransport<Thermo, PolySize>& pt1,
148 const polynomialTransport<Thermo, PolySize>& pt2
153 static_cast<const Thermo&>(pt1) + static_cast<const Thermo&>(pt2)
156 if (
mag(t.Y()) < SMALL)
158 return polynomialTransport<Thermo>
168 scalar Y1 = pt1.Y()/t.Y();
169 scalar Y2 = pt2.Y()/t.Y();
171 return polynomialTransport<Thermo, PolySize>
174 Y1*pt1.muCoeffs_ + Y2*pt2.muCoeffs_,
175 Y1*pt1.kappaCoeffs_ + Y2*pt2.kappaCoeffs_
181 template<
class Thermo,
int PolySize>
185 const polynomialTransport<Thermo, PolySize>& pt
188 return polynomialTransport<Thermo, PolySize>
190 s*
static_cast<const Thermo&
>(pt),
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
autoPtr< polynomialTransport > clone() const
Construct and return a clone.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
scalar alphah(const scalar p, const scalar T) const
Thermal diffusivity of enthalpy [kg/ms].
A class for handling words, derived from Foam::string.
static autoPtr< polynomialTransport > New(const dictionary &dict)
scalar kappa(const scalar p, const scalar T) const
Thermal conductivity [W/mK].
const volScalarField & Cp
PtrList< volScalarField > & Y
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
scalar mu(const scalar p, const scalar T) const
Dynamic viscosity [kg/ms].
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.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))
Transport package using polynomial functions for mu and kappa.