31 template<
class Thermo>
34 const word& coeffName,
35 const dictionary&
dict
38 return dict.subDict(
"transport").lookup<scalar>(coeffName);
44 template<
class Thermo>
52 mu0_(readCoeff(
"mu0",
dict)),
53 Tr_(readCoeff(
"Tr",
dict)),
54 C1_(readCoeff(
"C1",
dict)),
55 C2_(readCoeff(
"C2",
dict)),
56 rPr_(1.0/
dict.subDict(
"transport").lookup<scalar>(
"Pr"))
62 template<
class Thermo>
84 template<
class Thermo>
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual Ostream & write(const char)=0
Write character.
Transport package using the Williams-Landel-Ferry model for viscosity of polymer melts:
void write(Ostream &os) const
Write to Ostream.
WLFTransport(const Thermo &t, const scalar mu0, const scalar Tr, const scalar C1, const scalar C2, const scalar Pr)
Construct from components.
const word dictName() const
Return the local dictionary name (final part of scoped name)
A list of keyword definitions, which are a keyword followed by any number of values (e....
bool add(entry *, bool mergeEntry=false)
Add a new entry.
const word & name() const
Name.
A class for handling words, derived from string.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
Ostream & indent(Ostream &os)
Indent stream.