31inline Foam::constTransport<Thermo>::constTransport
45inline Foam::constTransport<Thermo>::constTransport
96 return this->
Cp(p,
T)*
mu(
p,
T)*rPr_;
100template<
class Thermo>
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>
149 const constTransport<Thermo>& ct1,
150 const constTransport<Thermo>& ct2
155 static_cast<const Thermo&
>(ct1) +
static_cast<const Thermo&
>(ct2)
158 if (
mag(t.Y()) < SMALL)
160 return constTransport<Thermo>
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),
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...
scalar mu(const scalar p, const scalar T) const
Dynamic viscosity [kg/ms].
scalar kappa(const scalar p, const scalar T) const
Thermal conductivity [W/mK].
autoPtr< constTransport > clone() const
Construct and return a clone.
static autoPtr< constTransport > New(const dictionary &dict)
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 & 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))
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.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
dimensionedScalar Pr("Pr", dimless, laminarTransport)