30 template<
class Thermo,
int PolySize>
31 inline Foam::polynomialTransport<Thermo, PolySize>::polynomialTransport
37 muCoeffs_(pt.muCoeffs_),
38 kappaCoeffs_(pt.kappaCoeffs_)
42 template<
class Thermo,
int PolySize>
43 inline Foam::polynomialTransport<Thermo, PolySize>::polynomialTransport
52 kappaCoeffs_(kappaCoeffs)
56 template<
class Thermo,
int PolySize>
57 inline Foam::polynomialTransport<Thermo, PolySize>::polynomialTransport
64 muCoeffs_(pt.muCoeffs_),
65 kappaCoeffs_(pt.kappaCoeffs_)
69 template<
class Thermo,
int PolySize>
80 template<
class Thermo,
int PolySize>
91 template<
class Thermo,
int PolySize>
104 template<
class Thermo,
int PolySize>
111 return muCoeffs_.value(T)/this->W();
115 template<
class Thermo,
int PolySize>
122 return kappaCoeffs_.value(T)/this->W();
126 template<
class Thermo,
int PolySize>
129 const scalar p,
const scalar T
132 return kappa(p, T)/this->Cpv(p, T);
138 template<
class Thermo,
int PolySize>
139 inline void Foam::polynomialTransport<Thermo, PolySize>::operator=
144 Thermo::operator=(pt);
146 muCoeffs_ = pt.muCoeffs_;
147 kappaCoeffs_ = pt.kappaCoeffs_;
151 template<
class Thermo,
int PolySize>
152 inline void Foam::polynomialTransport<Thermo, PolySize>::operator+=
157 scalar molr1 = this->nMoles();
159 Thermo::operator+=(pt);
161 molr1 /= this->nMoles();
162 scalar molr2 = pt.nMoles()/this->nMoles();
164 muCoeffs_ = molr1*muCoeffs_ + molr2*pt.muCoeffs_;
165 kappaCoeffs_ = molr1*kappaCoeffs_ + molr2*pt.kappaCoeffs_;
169 template<
class Thermo,
int PolySize>
170 inline void Foam::polynomialTransport<Thermo, PolySize>::operator-=
175 scalar molr1 = this->nMoles();
177 Thermo::operator-=(pt);
179 molr1 /= this->nMoles();
180 scalar molr2 = pt.nMoles()/this->nMoles();
182 muCoeffs_ = molr1*muCoeffs_ - molr2*pt.muCoeffs_;
183 kappaCoeffs_ = molr1*kappaCoeffs_ - molr2*pt.kappaCoeffs_;
187 template<
class Thermo,
int PolySize>
188 inline void Foam::polynomialTransport<Thermo, PolySize>::operator*=
193 Thermo::operator*=(s);
199 template<
class Thermo,
int PolySize>
208 static_cast<const Thermo&>(pt1) + static_cast<const Thermo&>(pt2)
211 scalar molr1 = pt1.nMoles()/t.nMoles();
212 scalar molr2 = pt2.nMoles()/t.nMoles();
217 molr1*pt1.muCoeffs_ + molr2*pt2.muCoeffs_,
218 molr1*pt1.kappaCoeffs_ + molr2*pt2.kappaCoeffs_
223 template<
class Thermo,
int PolySize>
232 static_cast<const Thermo&>(pt1) - static_cast<const Thermo&>(pt2)
235 scalar molr1 = pt1.nMoles()/t.nMoles();
236 scalar molr2 = pt2.nMoles()/t.nMoles();
241 molr1*pt1.muCoeffs_ - molr2*pt2.muCoeffs_,
242 molr1*pt1.kappaCoeffs_ - molr2*pt2.kappaCoeffs_
247 template<
class Thermo,
int PolySize>
256 s*
static_cast<const Thermo&
>(pt),
263 template<
class Thermo,
int PolySize>
scalar alphah(const scalar p, const scalar T) const
Thermal diffusivity of enthalpy [kg/ms].
A list of keyword definitions, which are a keyword followed by any number of values (e...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
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))
A class for handling words, derived from string.
scalar kappa(const scalar p, const scalar T) const
Thermal conductivity [W/mK].
scalar mu(const scalar p, const scalar T) const
Dynamic viscosity [kg/ms].
Polynomial templated on size (order):
autoPtr< polynomialTransport > clone() const
Construct and return a clone.
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 for mu and kappa.
static autoPtr< polynomialTransport > New(Istream &is)