46 template<
class Thermo>
64 template<
class Thermo>
79 template<
class Thermo>
80 inline Foam::autoPtr<Foam::powerLawTransport<Thermo> >
83 return autoPtr<powerLawTransport<Thermo> >
90 template<
class Thermo>
91 inline Foam::autoPtr<Foam::powerLawTransport<Thermo> >
97 return autoPtr<powerLawTransport<Thermo> >
104 template<
class Thermo>
105 inline Foam::autoPtr<Foam::powerLawTransport<Thermo> >
108 const dictionary& dict
111 return autoPtr<powerLawTransport<Thermo> >
120 template<
class Thermo>
127 return mu0_ * pow(
T / T0_, k_);
131 template<
class Thermo>
138 return this->Cp(p,
T)*mu(p,
T)*rPr_;
142 template<
class Thermo>
149 return mu(p, T)*rPr_;
155 template<
class Thermo>
161 Thermo::operator=(ct);
172 template<
class Thermo>
173 inline void Foam::powerLawTransport<Thermo>::operator+=
178 scalar molr1 = this->nMoles();
180 Thermo::operator+=(st);
182 if (mag(molr1) + mag(st.nMoles()) > SMALL)
184 molr1 /= this->nMoles();
185 scalar molr2 = st.nMoles()/this->nMoles();
187 rPr_ = 1.0/(molr1/rPr_ + molr2/st.rPr_);
192 template<
class Thermo>
193 inline void Foam::powerLawTransport<Thermo>::operator-=
195 const powerLawTransport<Thermo>& st
198 scalar molr1 = this->nMoles();
200 Thermo::operator-=(st);
202 if (mag(molr1) + mag(st.nMoles()) > SMALL)
204 molr1 /= this->nMoles();
205 scalar molr2 = st.nMoles()/this->nMoles();
207 rPr_ = 1.0/(molr1/rPr_ - molr2/st.rPr_);
212 template<
class Thermo>
213 inline void Foam::powerLawTransport<Thermo>::operator*=
218 Thermo::operator*=(s);
224 template<
class Thermo>
227 const powerLawTransport<Thermo>& ct1,
228 const powerLawTransport<Thermo>& ct2
231 notImplemented (
"inline Foam::powerLawTransport<Thermo> Foam::operator+");
235 template<
class Thermo>
238 const powerLawTransport<Thermo>& ct1,
239 const powerLawTransport<Thermo>& ct2
242 notImplemented (
"inline Foam::powerLawTransport<Thermo> Foam::operator-");
246 template<
class Thermo>
250 const powerLawTransport<Thermo>& ct
253 notImplemented (
"inline Foam::powerLawTransport<Thermo> Foam::operator*");
257 template<
class Thermo>
260 const powerLawTransport<Thermo>& ct1,
261 const powerLawTransport<Thermo>& ct2
264 notImplemented (
"inline Foam::powerLawTransport<Thermo> Foam::operator==");
volScalarField T0("T0", T)
autoPtr< powerLawTransport > clone() const
Construct and return a clone.
static autoPtr< powerLawTransport > New(Istream &is)
scalar alphah(const scalar p, const scalar T) const
Thermal diffusivity of enthalpy [kg/ms].
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].
Constant properties Transport package. Templated into a given thermodynamics package (needed for ther...