28 template<
class Thermo>
42 template<
class Thermo>
55 template<
class Thermo>
66 template<
class Thermo>
80 template<
class Thermo>
96 template<
class Thermo>
107 template<
class Thermo>
114 return this->Cp(p, T)*
mu(p, T)*rPr_;
118 template<
class Thermo>
125 return mu(p, T)*rPr_;
131 template<
class Thermo>
132 inline void Foam::constTransport<Thermo>::operator=
137 Thermo::operator=(ct);
144 template<
class Thermo>
145 inline void Foam::constTransport<Thermo>::operator+=
150 scalar molr1 = this->nMoles();
152 Thermo::operator+=(st);
154 if (
mag(molr1) +
mag(st.nMoles()) > SMALL)
156 molr1 /= this->nMoles();
157 scalar molr2 = st.nMoles()/this->nMoles();
159 mu_ = molr1*mu_ + molr2*st.mu_;
160 rPr_ = 1.0/(molr1/rPr_ + molr2/st.rPr_);
165 template<
class Thermo>
166 inline void Foam::constTransport<Thermo>::operator-=
171 scalar molr1 = this->nMoles();
173 Thermo::operator-=(st);
175 if (
mag(molr1) +
mag(st.nMoles()) > SMALL)
177 molr1 /= this->nMoles();
178 scalar molr2 = st.nMoles()/this->nMoles();
180 mu_ = molr1*mu_ - molr2*st.mu_;
181 rPr_ = 1.0/(molr1/rPr_ - molr2/st.rPr_);
186 template<
class Thermo>
187 inline void Foam::constTransport<Thermo>::operator*=
192 Thermo::operator*=(s);
198 template<
class Thermo>
207 static_cast<const Thermo&>(ct1) + static_cast<const Thermo&>(ct2)
210 if (
mag(ct1.nMoles()) +
mag(ct2.nMoles()) < SMALL)
221 scalar molr1 = ct1.nMoles()/t.nMoles();
222 scalar molr2 = ct2.nMoles()/t.nMoles();
227 molr1*ct1.mu_ + molr2*ct2.mu_,
228 1.0/(molr1/ct1.rPr_ + molr2/ct2.rPr_)
234 template<
class Thermo>
243 static_cast<const Thermo&>(ct1) - static_cast<const Thermo&>(ct2)
246 if (
mag(ct1.nMoles()) +
mag(ct2.nMoles()) < SMALL)
257 scalar molr1 = ct1.nMoles()/t.nMoles();
258 scalar molr2 = ct2.nMoles()/t.nMoles();
263 molr1*ct1.mu_ - molr2*ct2.mu_,
264 1.0/(molr1/ct1.rPr_ - molr2/ct2.rPr_)
270 template<
class Thermo>
279 s*
static_cast<const Thermo&
>(ct),
286 template<
class Thermo>
scalar alphah(const scalar p, const scalar T) const
Thermal diffusivity of enthalpy [kg/ms].
dimensionedScalar Pr("Pr", dimless, laminarTransport)
scalar mu(const scalar p, const scalar T) const
Dynamic viscosity [kg/ms].
A list of keyword definitions, which are a keyword followed by any number of values (e...
Constant properties Transport package. Templated into a given thermodynamics package (needed for ther...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
autoPtr< constTransport > clone() const
Construct and return a clone.
scalar kappa(const scalar p, const scalar T) const
Thermal conductivity [W/mK].
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.
static autoPtr< constTransport > New(Istream &is)
const dimensionedScalar mu
Atomic mass unit.
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...