31 template<
class Thermo>
38 mu_ = transportDict.
lookup<scalar>(
"mu");
40 const bool foundPr = transportDict.
found(
"Pr");
41 const bool foundKappa = transportDict.
found(
"kappa");
43 if (foundPr == foundKappa)
46 <<
"Either Pr or kappa must be specified, but not both." 51 rPr_ = constPr_ ? 1/transportDict.
lookup<scalar>(
"Pr") : NaN;
52 kappa_ = constPr_ ? NaN : transportDict.
lookup<scalar>(
"kappa");
58 template<
class Thermo>
70 dict.
add(
"Pr", 1.0/rPr_);
74 dict.
add(
"kappa", kappa_);
85 template<
class Thermo>
86 Foam::Ostream& Foam::operator<<(Ostream& os, const constTransport<Thermo>& ct)
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
virtual Ostream & write(const char)=0
Write character.
Ostream & indent(Ostream &os)
Indent stream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
Transport package with constant properties.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool add(entry *, bool mergeEntry=false)
Add a new entry.
const word dictName() const
Return the local dictionary name (final part of scoped name)
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
word name(const complex &)
Return a string representation of a complex.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.