96 return this->
Cp(p,
T)*
mu(
p,
T)*rPr_;
100template<
class Thermo>
107 return mu(
p,
T)*rPr_;
113template<
class Thermo>
119 scalar Y1 = this->
Y();
121 Thermo::operator+=(st);
123 if (
mag(this->
Y()) > SMALL)
126 scalar Y2 = st.Y()/this->
Y();
128 mu_ = Y1*mu_ + Y2*st.mu_;
129 rPr_ = 1.0/(Y1/rPr_ + Y2/st.rPr_);
134template<
class Thermo>
140 Thermo::operator*=(
s);
146template<
class Thermo>
155 static_cast<const Thermo&
>(ct1) +
static_cast<const Thermo&
>(ct2)
158 if (
mag(t.Y()) < SMALL)
169 scalar Y1 = ct1.Y()/t.Y();
170 scalar Y2 = ct2.Y()/t.Y();
172 return constTransport<Thermo>
175 Y1*ct1.mu_ + Y2*ct2.mu_,
176 1.0/(Y1/ct1.rPr_ + Y2/ct2.rPr_)
182template<
class Thermo>
186 const constTransport<Thermo>& ct
189 return constTransport<Thermo>
191 s*
static_cast<const Thermo&
>(ct),
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Constant properties Transport package. Templated into a given thermodynamics package (needed for ther...
autoPtr< constTransport > clone() const
Construct and return a clone.
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 a number of values (eg,...
A class for handling words, derived from Foam::string.
PtrList< volScalarField > & Y
const volScalarField & mu
const volScalarField & Cp
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))
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
const dimensionedScalar mu
Atomic mass unit.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
dimensionedScalar Pr("Pr", dimless, laminarTransport)