35 #include "IOstreams.H"
39 template<
class Thermo>
46 rPr_(1.0/readScalar(is))
48 is.check(
"powerLawTransport::powerLawTransport(Istream& is)");
52 template<
class Thermo>
56 mu0_(readScalar(dict.subDict(
"transport").
lookup(
"mu0"))),
57 T0_(readScalar(dict.subDict(
"transport").
lookup(
"T0"))),
58 k_(readScalar(dict.subDict(
"transport").
lookup(
"k"))),
59 rPr_(1.0/readScalar(dict.subDict(
"transport").
lookup(
"Pr")))
65 template<
class Thermo>
68 os << this->name() << endl;
69 os << token::BEGIN_BLOCK << incrIndent << nl;
73 dictionary dict(
"transport");
74 dict.add(
"mu0", mu0_);
77 dict.add(
"Pr", 1.0/rPr_);
78 os << indent << dict.dictName() << dict;
80 os << decrIndent << token::END_BLOCK << nl;
86 template<
class Thermo>
87 Foam::Ostream& Foam::operator<<(Ostream& os, const powerLawTransport<Thermo>& ct)
89 operator<<(os, static_cast<const Thermo&>(ct));
90 os<< tab << ct.mu0_ << tab << ct.T0_
91 << tab << ct.k_ << tab << 1.0/ct.rPr_;
93 os.check(
"Ostream& operator<<(Ostream&, const powerLawTransport&)");
thermo lookup("ScNumbers") >> ScNumbersTuples
Constant properties Transport package. Templated into a given thermodynamics package (needed for ther...