liquidProperties: simplified and generalized the IO
When liquids are constructed from dictionary the coefficients are now first initialized to their standard values and overridden by the now optional entries provided in the dictionary. For example to specify water with all the standard temperature varying properties but override only the density with a constant value of 1000 specify in thermophysicalProperties liquids { H2O { defaultCoeffs no; H2OCoeffs { rho { a 1000; b 0; c 0; d 0; } } } }
This commit is contained in:
parent
ba9d58a26f
commit
a6fd99b874
@ -121,21 +121,27 @@ Foam::Ar::Ar
|
||||
|
||||
Foam::Ar::Ar(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
Ar()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::Ar::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const Ar& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class Ar
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("Ar");
|
||||
|
||||
@ -165,33 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const Ar& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const Ar& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const Ar& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -129,21 +129,27 @@ Foam::C10H22::C10H22
|
||||
|
||||
Foam::C10H22::C10H22(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
C10H22()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::C10H22::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const C10H22& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class C10H22
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("C10H22");
|
||||
|
||||
@ -165,34 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const C10H22& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const C10H22& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const C10H22& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -121,21 +121,27 @@ Foam::C12H26::C12H26
|
||||
|
||||
Foam::C12H26::C12H26(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
C12H26()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::C12H26::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const C12H26& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class C12H26
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("C12H26");
|
||||
|
||||
@ -165,33 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const C12H26& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const C12H26& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const C12H26& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -129,21 +129,27 @@ Foam::C13H28::C13H28
|
||||
|
||||
Foam::C13H28::C13H28(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
C13H28()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::C13H28::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const C13H28& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class C13H28
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("C13H28");
|
||||
|
||||
@ -165,33 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const C13H28& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const C13H28& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const C13H28& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -129,21 +129,27 @@ Foam::C14H30::C14H30
|
||||
|
||||
Foam::C14H30::C14H30(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
C14H30()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::C14H30::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const C14H30& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class C14H30
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("C14H30");
|
||||
|
||||
@ -165,33 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const C14H30& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const C14H30& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const C14H30& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -129,21 +129,27 @@ Foam::C16H34::C16H34
|
||||
|
||||
Foam::C16H34::C16H34(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
C16H34()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::C16H34::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const C16H34& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class C16H34
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("C16H34");
|
||||
|
||||
@ -165,33 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const C16H34& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const C16H34& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const C16H34& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -129,21 +129,27 @@ Foam::C2H5OH::C2H5OH
|
||||
|
||||
Foam::C2H5OH::C2H5OH(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
C2H5OH()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::C2H5OH::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const C2H5OH& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class C2H5OH
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("C2H5OH");
|
||||
|
||||
@ -165,33 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const C2H5OH& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const C2H5OH& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const C2H5OH& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -120,21 +120,27 @@ Foam::C2H6::C2H6
|
||||
|
||||
Foam::C2H6::C2H6(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
C2H6()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::C2H6::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const C2H6& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class C2H6
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("C2H6");
|
||||
|
||||
@ -165,33 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const C2H6& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const C2H6& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const C2H6& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -130,21 +130,27 @@ Foam::C2H6O::C2H6O
|
||||
|
||||
Foam::C2H6O::C2H6O(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
C2H6O()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::C2H6O::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const C2H6O& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class C2H6O
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("C2H6O");
|
||||
|
||||
@ -165,33 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const C2H6O& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const C2H6O& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const C2H6O& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -129,21 +129,27 @@ Foam::C3H6O::C3H6O
|
||||
|
||||
Foam::C3H6O::C3H6O(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
C3H6O()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::C3H6O::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const C3H6O& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class C3H6O
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("C3H6O");
|
||||
|
||||
@ -165,34 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
|
||||
friend Ostream& operator<<(Ostream& os, const C3H6O& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const C3H6O& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const C3H6O& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -119,21 +119,27 @@ Foam::C3H8::C3H8
|
||||
|
||||
Foam::C3H8::C3H8(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
C3H8()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::C3H8::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const C3H8& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class C3H8
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("C3H8");
|
||||
|
||||
@ -165,33 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const C3H8& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const C3H8& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const C3H8& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -129,21 +129,27 @@ Foam::C4H10O::C4H10O
|
||||
|
||||
Foam::C4H10O::C4H10O(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
C4H10O()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::C4H10O::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const C4H10O& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class C4H10O
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("C4H10O");
|
||||
|
||||
@ -165,33 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const C4H10O& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const C4H10O& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const C4H10O& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -129,21 +129,27 @@ Foam::C6H14::C6H14
|
||||
|
||||
Foam::C6H14::C6H14(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
C6H14()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::C6H14::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const C6H14& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class C6H14
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("C6H14");
|
||||
|
||||
@ -165,33 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const C6H14& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const C6H14& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const C6H14& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -129,21 +129,27 @@ Foam::C6H6::C6H6
|
||||
|
||||
Foam::C6H6::C6H6(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
C6H6()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::C6H6::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const C6H6& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class C6H6
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("C6H6");
|
||||
|
||||
@ -165,33 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const C6H6& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const C6H6& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const C6H6& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -128,21 +128,27 @@ Foam::C7H16::C7H16
|
||||
|
||||
Foam::C7H16::C7H16(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
C7H16()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::C7H16::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const C7H16& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class C7H16
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("C7H16");
|
||||
|
||||
@ -165,33 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const C7H16& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const C7H16& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const C7H16& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -129,21 +129,27 @@ Foam::C7H8::C7H8
|
||||
|
||||
Foam::C7H8::C7H8(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
C7H8()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::C7H8::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const C7H8& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class C7H8
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("C7H8");
|
||||
|
||||
@ -165,33 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const C7H8& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const C7H8& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const C7H8& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -129,21 +129,27 @@ Foam::C8H10::C8H10
|
||||
|
||||
Foam::C8H10::C8H10(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
C8H10()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::C8H10::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const C8H10& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -78,6 +78,8 @@ class C8H10
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("C8H10");
|
||||
|
||||
@ -164,33 +166,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const C8H10& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const C8H10& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const C8H10& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -129,21 +129,27 @@ Foam::C8H18::C8H18
|
||||
|
||||
Foam::C8H18::C8H18(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
C8H18()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::C8H18::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const C8H18& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class C8H18
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("C8H18");
|
||||
|
||||
@ -165,33 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const C8H18& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const C8H18& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const C8H18& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -129,21 +129,27 @@ Foam::C9H20::C9H20
|
||||
|
||||
Foam::C9H20::C9H20(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
C9H20()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::C9H20::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const C9H20& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class C9H20
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("C9H20");
|
||||
|
||||
@ -165,33 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const C9H20& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const C9H20& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const C9H20& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -129,21 +129,27 @@ Foam::CH3OH::CH3OH
|
||||
|
||||
Foam::CH3OH::CH3OH(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
CH3OH()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::CH3OH::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const CH3OH& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class CH3OH
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("CH3OH");
|
||||
|
||||
@ -165,33 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const CH3OH& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const CH3OH& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const CH3OH& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -113,21 +113,27 @@ Foam::CH4N2O::CH4N2O
|
||||
|
||||
Foam::CH4N2O::CH4N2O(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
CH4N2O()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::CH4N2O::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const CH4N2O& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class CH4N2O
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("CH4N2O");
|
||||
|
||||
@ -165,33 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const CH4N2O& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const CH4N2O& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const CH4N2O& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -138,25 +138,24 @@ Foam::H2O::H2O(const dictionary& dict)
|
||||
:
|
||||
H2O()
|
||||
{
|
||||
// liquidProperties(dict),
|
||||
// rho_(dict.subDict("rho")),
|
||||
InfoInFunction;
|
||||
if (dict.found("rho"))
|
||||
{
|
||||
rho_ = NSRDSfunc5(dict.subDict("rho"));
|
||||
}
|
||||
// pv_(dict.subDict("pv")),
|
||||
// hl_(dict.subDict("hl")),
|
||||
// Cp_(dict.subDict("Cp")),
|
||||
// h_(dict.subDict("h")),
|
||||
// Cpg_(dict.subDict("Cpg")),
|
||||
// B_(dict.subDict("B")),
|
||||
// mu_(dict.subDict("mu")),
|
||||
// mug_(dict.subDict("mug")),
|
||||
// kappa_(dict.subDict("K")),
|
||||
// kappag_(dict.subDict("kappag")),
|
||||
// sigma_(dict.subDict("sigma")),
|
||||
// D_(dict.subDict("D"))
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::H2O::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const H2O& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
|
@ -78,6 +78,8 @@ class H2O
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("H2O");
|
||||
|
||||
@ -164,33 +166,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const H2O& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const H2O& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const H2O& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -129,21 +129,27 @@ Foam::IC8H18::IC8H18
|
||||
|
||||
Foam::IC8H18::IC8H18(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
IC8H18()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::IC8H18::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const IC8H18& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class IC8H18
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("IC8H18");
|
||||
|
||||
@ -165,33 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const IC8H18& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const IC8H18& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const IC8H18& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -149,21 +149,27 @@ Foam::IDEA::IDEA
|
||||
|
||||
Foam::IDEA::IDEA(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
IDEA()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::IDEA::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const IDEA& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -101,6 +101,8 @@ class IDEA
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("IDEA");
|
||||
|
||||
@ -187,32 +189,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const IDEA& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const IDEA& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const IDEA& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -113,21 +113,27 @@ Foam::MB::MB
|
||||
|
||||
Foam::MB::MB(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
MB()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::MB::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const MB& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class MB
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("MB");
|
||||
|
||||
@ -165,33 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const MB& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const MB& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const MB& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -129,21 +129,27 @@ Foam::N2::N2
|
||||
|
||||
Foam::N2::N2(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
N2()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::N2::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const N2& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class N2
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("N2");
|
||||
|
||||
@ -165,33 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const N2& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const N2& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const N2& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -121,21 +121,27 @@ Foam::aC10H7CH3::aC10H7CH3
|
||||
|
||||
Foam::aC10H7CH3::aC10H7CH3(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
aC10H7CH3()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::aC10H7CH3::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const aC10H7CH3& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class aC10H7CH3
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("aC11H10");
|
||||
|
||||
@ -165,34 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const aC10H7CH3& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const aC10H7CH3& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const aC10H7CH3& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -122,21 +122,27 @@ Foam::bC10H7CH3::bC10H7CH3
|
||||
|
||||
Foam::bC10H7CH3::bC10H7CH3(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
bC10H7CH3()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::bC10H7CH3::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const bC10H7CH3& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -79,6 +79,8 @@ class bC10H7CH3
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("bC11H10");
|
||||
|
||||
@ -165,33 +167,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const bC10H7CH3& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const bC10H7CH3& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const bC10H7CH3& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -129,21 +129,27 @@ Foam::iC3H8O::iC3H8O
|
||||
|
||||
Foam::iC3H8O::iC3H8O(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
iC3H8O()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::iC3H8O::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const iC3H8O& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -77,6 +77,8 @@ class iC3H8O
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("iC3H8O");
|
||||
|
||||
@ -164,33 +166,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const iC3H8O& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const iC3H8O& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const iC3H8O& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -275,6 +275,22 @@ Foam::scalar Foam::liquidProperties::pvInvert(scalar p) const
|
||||
}
|
||||
|
||||
|
||||
void Foam::liquidProperties::readIfPresent(const dictionary &dict)
|
||||
{
|
||||
dict.readIfPresent("W", W_);
|
||||
dict.readIfPresent("Tc", Tc_);
|
||||
dict.readIfPresent("Pc", Pc_);
|
||||
dict.readIfPresent("Vc", Vc_);
|
||||
dict.readIfPresent("Zc", Zc_);
|
||||
dict.readIfPresent("Tt", Tt_);
|
||||
dict.readIfPresent("Pt", Pt_);
|
||||
dict.readIfPresent("Tb", Tb_);
|
||||
dict.readIfPresent("dipm", dipm_);
|
||||
dict.readIfPresent("omega", omega_);
|
||||
dict.readIfPresent("delta", delta_);
|
||||
}
|
||||
|
||||
|
||||
void Foam::liquidProperties::writeData(Ostream& os) const
|
||||
{
|
||||
os << W_ << token::SPACE
|
||||
@ -291,4 +307,13 @@ void Foam::liquidProperties::writeData(Ostream& os) const
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const liquidProperties& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -284,18 +284,47 @@ public:
|
||||
|
||||
// I-O
|
||||
|
||||
//- Read and set the properties present it the given dictionary
|
||||
void readIfPresent(const dictionary& dict);
|
||||
|
||||
//- Read and set the function coefficients
|
||||
// if present it the given dictionary
|
||||
template<class Func>
|
||||
inline void readIfPresent
|
||||
(
|
||||
Func& f,
|
||||
const word& name,
|
||||
const dictionary& dict
|
||||
);
|
||||
|
||||
//- Read and set the function coefficients
|
||||
// if present it the given dictionary
|
||||
template<class Liquid>
|
||||
inline void readIfPresent
|
||||
(
|
||||
Liquid& l,
|
||||
const dictionary& dict
|
||||
);
|
||||
|
||||
//- Write the function coefficients
|
||||
virtual void writeData(Ostream& os) const;
|
||||
|
||||
//- Write the data for each of the property functions
|
||||
template<class Liquid>
|
||||
inline void writeData
|
||||
(
|
||||
const Liquid& l,
|
||||
Ostream& os
|
||||
) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const liquidProperties& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const liquidProperties& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const liquidProperties& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
@ -137,4 +137,67 @@ inline Foam::scalar Foam::liquidProperties::alphah(scalar p, scalar T) const
|
||||
}
|
||||
|
||||
|
||||
template<class Func>
|
||||
inline void Foam::liquidProperties::readIfPresent
|
||||
(
|
||||
Func& f,
|
||||
const word& name,
|
||||
const dictionary& dict
|
||||
)
|
||||
{
|
||||
if (dict.found(name))
|
||||
{
|
||||
f = Func(dict.subDict(name));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
template<class Liquid>
|
||||
inline void Foam::liquidProperties::readIfPresent
|
||||
(
|
||||
Liquid& l,
|
||||
const dictionary& dict
|
||||
)
|
||||
{
|
||||
l.liquidProperties::readIfPresent(dict);
|
||||
readIfPresent(l.rho_, "rho", dict);
|
||||
readIfPresent(l.pv_, "pv", dict);
|
||||
readIfPresent(l.hl_, "hl", dict);
|
||||
readIfPresent(l.Cp_, "Cp", dict);
|
||||
readIfPresent(l.h_, "h", dict);
|
||||
readIfPresent(l.Cpg_, "Cpg", dict);
|
||||
readIfPresent(l.B_, "B", dict);
|
||||
readIfPresent(l.mu_, "mu", dict);
|
||||
readIfPresent(l.mug_, "mug", dict);
|
||||
readIfPresent(l.kappa_, "K", dict);
|
||||
readIfPresent(l.kappag_, "kappag", dict);
|
||||
readIfPresent(l.sigma_, "sigma", dict);
|
||||
readIfPresent(l.D_, "D", dict);
|
||||
}
|
||||
|
||||
|
||||
template<class Liquid>
|
||||
inline void Foam::liquidProperties::writeData
|
||||
(
|
||||
const Liquid& l,
|
||||
Ostream& os
|
||||
) const
|
||||
{
|
||||
l.liquidProperties::writeData(os); os << nl;
|
||||
l.rho_.writeData(os); os << nl;
|
||||
l.pv_.writeData(os); os << nl;
|
||||
l.hl_.writeData(os); os << nl;
|
||||
l.Cp_.writeData(os); os << nl;
|
||||
l.h_.writeData(os); os << nl;
|
||||
l.Cpg_.writeData(os); os << nl;
|
||||
l.B_.writeData(os); os << nl;
|
||||
l.mu_.writeData(os); os << nl;
|
||||
l.mug_.writeData(os); os << nl;
|
||||
l.kappa_.writeData(os); os << nl;
|
||||
l.kappag_.writeData(os); os << nl;
|
||||
l.sigma_.writeData(os); os << nl;
|
||||
l.D_.writeData(os); os << endl;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -129,21 +129,27 @@ Foam::nC3H8O::nC3H8O
|
||||
|
||||
Foam::nC3H8O::nC3H8O(const dictionary& dict)
|
||||
:
|
||||
liquidProperties(dict),
|
||||
rho_(dict.subDict("rho")),
|
||||
pv_(dict.subDict("pv")),
|
||||
hl_(dict.subDict("hl")),
|
||||
Cp_(dict.subDict("Cp")),
|
||||
h_(dict.subDict("h")),
|
||||
Cpg_(dict.subDict("Cpg")),
|
||||
B_(dict.subDict("B")),
|
||||
mu_(dict.subDict("mu")),
|
||||
mug_(dict.subDict("mug")),
|
||||
kappa_(dict.subDict("K")),
|
||||
kappag_(dict.subDict("kappag")),
|
||||
sigma_(dict.subDict("sigma")),
|
||||
D_(dict.subDict("D"))
|
||||
{}
|
||||
nC3H8O()
|
||||
{
|
||||
readIfPresent(*this, dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::nC3H8O::writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(*this, os);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const nC3H8O& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -77,6 +77,8 @@ class nC3H8O
|
||||
|
||||
public:
|
||||
|
||||
friend class liquidProperties;
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("nC3H8O");
|
||||
|
||||
@ -164,33 +166,16 @@ public:
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
void writeData(Ostream& os) const
|
||||
{
|
||||
liquidProperties::writeData(os); os << nl;
|
||||
rho_.writeData(os); os << nl;
|
||||
pv_.writeData(os); os << nl;
|
||||
hl_.writeData(os); os << nl;
|
||||
Cp_.writeData(os); os << nl;
|
||||
h_.writeData(os); os << nl;
|
||||
Cpg_.writeData(os); os << nl;
|
||||
B_.writeData(os); os << nl;
|
||||
mu_.writeData(os); os << nl;
|
||||
mug_.writeData(os); os << nl;
|
||||
kappa_.writeData(os); os << nl;
|
||||
kappag_.writeData(os); os << nl;
|
||||
sigma_.writeData(os); os << nl;
|
||||
D_.writeData(os); os << endl;
|
||||
}
|
||||
void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const nC3H8O& l)
|
||||
{
|
||||
l.writeData(os);
|
||||
return os;
|
||||
}
|
||||
friend Ostream& operator<<(Ostream& os, const nC3H8O& l);
|
||||
};
|
||||
|
||||
|
||||
Ostream& operator<<(Ostream& os, const nC3H8O& l);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
Loading…
Reference in New Issue
Block a user