50 const word& entryName,
77 liquidProperties(
dict),
78 rho_(NewOrNone<scalar>(
"rho",
dict)),
79 pv_(NewOrNone<scalar>(
"pv",
dict)),
80 hl_(NewOrNone<scalar>(
"hl",
dict)),
81 Cp_(NewOrNone<scalar>(
"Cp",
dict)),
82 h_(NewOrNone<scalar>(
"h",
dict)),
83 Cpg_(NewOrNone<scalar>(
"Cpg",
dict)),
84 B_(NewOrNone<scalar>(
"B",
dict)),
85 mu_(NewOrNone<scalar>(
"mu",
dict)),
86 mug_(NewOrNone<scalar>(
"mug",
dict)),
87 kappa_(NewOrNone<scalar>(
"kappa",
dict)),
98 rho_(
rhs.rho_.clone()),
100 hl_(
rhs.hl_.clone()),
101 Cp_(
rhs.Cp_.clone()),
103 Cpg_(
rhs.Cpg_.clone()),
105 mu_(
rhs.mu_.clone()),
106 mug_(
rhs.mug_.clone()),
107 kappa_(
rhs.kappa_.clone()),
108 kappag_(
rhs.kappag_.clone()),
119 rho_->writeData(
os);
os <<
nl;
120 pv_->writeData(
os);
os <<
nl;
121 hl_->writeData(
os);
os <<
nl;
122 Cp_->writeData(
os);
os <<
nl;
123 h_->writeData(
os);
os <<
nl;
124 Cpg_->writeData(
os);
os <<
nl;
125 B_->writeData(
os);
os <<
nl;
126 mu_->writeData(
os);
os <<
nl;
127 mug_->writeData(
os);
os <<
nl;
128 kappa_->writeData(
os);
os <<
nl;
129 kappag_->writeData(
os);
os <<
nl;
130 sigma_->writeData(
os);
os <<
nl;
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Templated placeholder function that returns an error message if called.
static autoPtr< Function1< Type > > NewIfPresent(const word &entryName, const dictionary &dict, const word &redirectType, const objectRegistry *obrPtr=nullptr)
An optional selector, with fallback redirection.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
void reset(T *p=nullptr) noexcept
Delete managed object and set to new given pointer.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
The thermophysical properties of a liquid.
virtual void writeData(Ostream &os) const =0
Write the function coefficients.
Generic thermophysical properties class for a liquid in which the functions and coefficients for each...
void writeData(Ostream &os) const
Write the function coefficients.
virtual autoPtr< liquidProperties > clone() const
Return a clone.
friend class liquidProperties
liquid(const dictionary &dict)
Construct from dictionary.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
OBJstream os(runTime.globalPath()/outputName)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)
static autoPtr< Function1< Type > > NewOrNone(const word &entryName, const dictionary &dict)
constexpr char nl
The newline '\n' character (0x0a).