mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Added copy/clone functionality to liquids and liquidMixture classes
This commit is contained in:
@ -62,6 +62,18 @@ Foam::liquidMixture::liquidMixture
|
||||
}
|
||||
|
||||
|
||||
Foam::liquidMixture::liquidMixture(const liquidMixture& lm)
|
||||
:
|
||||
components_(lm.components_),
|
||||
properties_(lm.properties_.size())
|
||||
{
|
||||
forAll(properties_, i)
|
||||
{
|
||||
properties_.set(i, lm.properties_(i)->clone());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::autoPtr<Foam::liquidMixture> Foam::liquidMixture::New
|
||||
|
||||
@ -119,7 +119,21 @@ public:
|
||||
// Constructors
|
||||
|
||||
//- Construct from dictionary
|
||||
liquidMixture(const dictionary&);
|
||||
liquidMixture(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
liquidMixture(const liquidMixture& lm);
|
||||
|
||||
//- Construct and return a clone
|
||||
virtual autoPtr<liquidMixture> clone() const
|
||||
{
|
||||
return autoPtr<liquidMixture>(new liquidMixture(*this));
|
||||
}
|
||||
|
||||
|
||||
//- Destructor
|
||||
virtual ~liquidMixture()
|
||||
{}
|
||||
|
||||
|
||||
// Selectors
|
||||
|
||||
@ -158,4 +158,23 @@ Foam::Ar::Ar(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::Ar::Ar(const Ar& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
Ar(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
Ar(const Ar& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new Ar(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -166,4 +166,23 @@ Foam::C10H22::C10H22(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::C10H22::C10H22(const C10H22& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
C10H22(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
C10H22(const C10H22& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new C10H22(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -158,4 +158,23 @@ Foam::C12H26::C12H26(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::C12H26::C12H26(const C12H26& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
C12H26(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
C12H26(const C12H26& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new C12H26(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -166,4 +166,23 @@ Foam::C13H28::C13H28(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::C13H28::C13H28(const C13H28& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
C13H28(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
C13H28(const C13H28& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new C13H28(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -166,4 +166,23 @@ Foam::C14H30::C14H30(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::C14H30::C14H30(const C14H30& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
C14H30(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
C14H30(const C14H30& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new C14H30(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -166,4 +166,23 @@ Foam::C16H34::C16H34(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::C16H34::C16H34(const C16H34& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
C16H34(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
C16H34(const C16H34& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new C16H34(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -166,4 +166,23 @@ Foam::C2H5OH::C2H5OH(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::C2H5OH::C2H5OH(const C2H5OH& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
C2H5OH(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
C2H5OH(const C2H5OH& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new C2H5OH(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -157,4 +157,23 @@ Foam::C2H6::C2H6(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::C2H6::C2H6(const C2H6& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
C2H6(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
C2H6(const C2H6& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new C2H6(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -166,4 +166,23 @@ Foam::C2H6O::C2H6O(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::C2H6O::C2H6O(const C2H6O& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
C2H6O(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
C2H6O(const C2H6O& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new C2H6O(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -166,4 +166,23 @@ Foam::C3H6O::C3H6O(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::C3H6O::C3H6O(const C3H6O& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
C3H6O(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
C3H6O(const C3H6O& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new C3H6O(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -156,4 +156,23 @@ Foam::C3H8::C3H8(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::C3H8::C3H8(const C3H8& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
C3H8(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
C3H8(const C3H8& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new C3H8(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -166,4 +166,23 @@ Foam::C4H10O::C4H10O(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::C4H10O::C4H10O(const C4H10O& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
C4H10O(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
C4H10O(const C4H10O& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new C4H10O(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -166,4 +166,23 @@ Foam::C6H14::C6H14(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::C6H14::C6H14(const C6H14& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
C6H14(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
C6H14(const C6H14& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new C6H14(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -166,4 +166,23 @@ Foam::C6H6::C6H6(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::C6H6::C6H6(const C6H6& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
C6H6(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
C6H6(const C6H6& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new C6H6(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -165,4 +165,23 @@ Foam::C7H16::C7H16(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::C7H16::C7H16(const C7H16& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
C7H16(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
C7H16(const C7H16& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new C7H16(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -166,4 +166,23 @@ Foam::C7H8::C7H8(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::C7H8::C7H8(const C7H8& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
C7H8(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
C7H8(const C7H8& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new C7H8(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -166,4 +166,23 @@ Foam::C8H10::C8H10(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::C8H10::C8H10(const C8H10& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -112,6 +112,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
C8H10(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
C8H10(const C8H10& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new C8H10(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -166,4 +166,23 @@ Foam::C8H18::C8H18(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::C8H18::C8H18(const C8H18& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
C8H18(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
C8H18(const C8H18& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new C8H18(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -166,4 +166,23 @@ Foam::C9H20::C9H20(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::C9H20::C9H20(const C9H20& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
C9H20(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
C9H20(const C9H20& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new C9H20(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -166,4 +166,23 @@ Foam::CH3OH::CH3OH(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::CH3OH::CH3OH(const CH3OH& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
CH3OH(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
CH3OH(const CH3OH& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new CH3OH(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -151,4 +151,23 @@ Foam::CH4N2O::CH4N2O(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::CH4N2O::CH4N2O(const CH4N2O& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
CH4N2O(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
CH4N2O(const CH4N2O& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new CH4N2O(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -173,4 +173,23 @@ Foam::H2O::H2O(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::H2O::H2O(const H2O& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -112,6 +112,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
H2O(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
H2O(const H2O& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new H2O(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -166,4 +166,23 @@ Foam::IC8H18::IC8H18(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::IC8H18::IC8H18(const IC8H18& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
IC8H18(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
IC8H18(const IC8H18& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new IC8H18(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -186,4 +186,23 @@ Foam::IDEA::IDEA(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::IDEA::IDEA(const IDEA& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -135,6 +135,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
IDEA(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
IDEA(const IDEA& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new IDEA(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -150,4 +150,23 @@ Foam::MB::MB(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::MB::MB(const MB& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
MB(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
MB(const MB& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new MB(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -166,4 +166,23 @@ Foam::N2::N2(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::N2::N2(const N2& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
N2(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
N2(const N2& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new N2(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -158,4 +158,23 @@ Foam::aC10H7CH3::aC10H7CH3(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::aC10H7CH3::aC10H7CH3(const aC10H7CH3& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
aC10H7CH3(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
aC10H7CH3(const aC10H7CH3& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new aC10H7CH3(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -158,4 +158,23 @@ Foam::bC10H7CH3::bC10H7CH3(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::bC10H7CH3::bC10H7CH3(const bC10H7CH3& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -113,6 +113,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
bC10H7CH3(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
bC10H7CH3(const bC10H7CH3& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new bC10H7CH3(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -166,4 +166,23 @@ Foam::iC3H8O::iC3H8O(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::iC3H8O::iC3H8O(const iC3H8O& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -111,6 +111,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
iC3H8O(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
iC3H8O(const iC3H8O& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new iC3H8O(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -74,6 +74,10 @@ Foam::liquid::liquid(Istream& is)
|
||||
Tc_(readScalar(is)),
|
||||
Pc_(readScalar(is)),
|
||||
Vc_(readScalar(is)),
|
||||
Zc_(readScalar(is)),
|
||||
Tt_(readScalar(is)),
|
||||
Pt_(readScalar(is)),
|
||||
Tb_(readScalar(is)),
|
||||
dipm_(readScalar(is)),
|
||||
omega_(readScalar(is)),
|
||||
delta_(readScalar(is))
|
||||
@ -86,12 +90,32 @@ Foam::liquid::liquid(const dictionary& dict)
|
||||
Tc_(readScalar(dict.lookup("Tc"))),
|
||||
Pc_(readScalar(dict.lookup("Pc"))),
|
||||
Vc_(readScalar(dict.lookup("Vc"))),
|
||||
Zc_(readScalar(dict.lookup("Zc"))),
|
||||
Tt_(readScalar(dict.lookup("Tt"))),
|
||||
Pt_(readScalar(dict.lookup("Pt"))),
|
||||
Tb_(readScalar(dict.lookup("Tb"))),
|
||||
dipm_(readScalar(dict.lookup("dipm"))),
|
||||
omega_(readScalar(dict.lookup("omega"))),
|
||||
delta_(readScalar(dict.lookup("delta")))
|
||||
{}
|
||||
|
||||
|
||||
Foam::liquid::liquid(const liquid& liq)
|
||||
:
|
||||
W_(liq.W_),
|
||||
Tc_(liq.Tc_),
|
||||
Pc_(liq.Pc_),
|
||||
Vc_(liq.Vc_),
|
||||
Zc_(liq.Zc_),
|
||||
Tt_(liq.Tt_),
|
||||
Pt_(liq.Pt_),
|
||||
Tb_(liq.Tb_),
|
||||
dipm_(liq.dipm_),
|
||||
omega_(liq.omega_),
|
||||
delta_(liq.delta_)
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::autoPtr<Foam::liquid> Foam::liquid::New(Istream& is)
|
||||
@ -203,4 +227,114 @@ Foam::autoPtr<Foam::liquid> Foam::liquid::New(const dictionary& dict)
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
Foam::scalar Foam::liquid::rho(scalar p, scalar T) const
|
||||
{
|
||||
notImplemented("Foam::scalar Foam::liquid::rho(scalar, scalar) const");
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
|
||||
Foam::scalar Foam::liquid::pv(scalar p, scalar T) const
|
||||
{
|
||||
notImplemented("Foam::scalar Foam::liquid::pv(scalar, scalar) const");
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
|
||||
Foam::scalar Foam::liquid::hl(scalar p, scalar T) const
|
||||
{
|
||||
notImplemented("Foam::scalar Foam::liquid::hl(scalar, scalar) const");
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
|
||||
Foam::scalar Foam::liquid::Cp(scalar p, scalar T) const
|
||||
{
|
||||
notImplemented("Foam::scalar Foam::liquid::Cp(scalar, scalar) const");
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
|
||||
Foam::scalar Foam::liquid::h(scalar p, scalar T) const
|
||||
{
|
||||
notImplemented("Foam::scalar Foam::liquid::h(scalar, scalar) const");
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
|
||||
Foam::scalar Foam::liquid::Cpg(scalar p, scalar T) const
|
||||
{
|
||||
notImplemented("Foam::scalar Foam::liquid::Cpg(scalar, scalar) const");
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
|
||||
Foam::scalar Foam::liquid::mu(scalar p, scalar T) const
|
||||
{
|
||||
notImplemented("Foam::scalar Foam::liquid::mu(scalar, scalar) const");
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
|
||||
Foam::scalar Foam::liquid::mug(scalar p, scalar T) const
|
||||
{
|
||||
notImplemented("Foam::scalar Foam::liquid::mug(scalar, scalar) const");
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
|
||||
Foam::scalar Foam::liquid::K(scalar p, scalar T) const
|
||||
{
|
||||
notImplemented("Foam::scalar Foam::liquid::K(scalar, scalar) const");
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
|
||||
Foam::scalar Foam::liquid::Kg(scalar p, scalar T) const
|
||||
{
|
||||
notImplemented("Foam::scalar Foam::liquid::Kg(scalar, scalar) const");
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
|
||||
Foam::scalar Foam::liquid::sigma(scalar p, scalar T) const
|
||||
{
|
||||
notImplemented("Foam::scalar Foam::liquid::sigms(scalar, scalar) const");
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
|
||||
Foam::scalar Foam::liquid::D(scalar p, scalar T) const
|
||||
{
|
||||
notImplemented("Foam::scalar Foam::liquid::D(scalar, scalar) const");
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
|
||||
Foam::scalar Foam::liquid::D(scalar p, scalar T, scalar Wb) const
|
||||
{
|
||||
notImplemented("Foam::scalar Foam::liquid::D(scalar, scalar) const");
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
|
||||
void Foam::liquid::writeData(Ostream& os) const
|
||||
{
|
||||
|
||||
os << W_ << token::SPACE
|
||||
<< Tc_ << token::SPACE
|
||||
<< Pc_ << token::SPACE
|
||||
<< Vc_ << token::SPACE
|
||||
<< Zc_ << token::SPACE
|
||||
<< Tt_ << token::SPACE
|
||||
<< Pt_ << token::SPACE
|
||||
<< Tb_ << token::SPACE
|
||||
<< dipm_ << token::SPACE
|
||||
<< omega_<< token::SPACE
|
||||
<< delta_;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -148,6 +148,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
liquid(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
liquid(const liquid& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new liquid(*this));
|
||||
}
|
||||
|
||||
|
||||
// Selectors
|
||||
|
||||
@ -204,58 +213,49 @@ public:
|
||||
// Physical property pure virtual functions
|
||||
|
||||
//- Liquid rho [kg/m^3]
|
||||
virtual scalar rho(scalar p, scalar T) const = 0;
|
||||
virtual scalar rho(scalar p, scalar T) const;
|
||||
|
||||
//- Vapour pressure [Pa]
|
||||
virtual scalar pv(scalar p, scalar T) const = 0;
|
||||
virtual scalar pv(scalar p, scalar T) const;
|
||||
|
||||
//- Heat of vapourisation [J/kg]
|
||||
virtual scalar hl(scalar p, scalar T) const = 0;
|
||||
virtual scalar hl(scalar p, scalar T) const;
|
||||
|
||||
//- Liquid heat capacity [J/(kg K)]
|
||||
virtual scalar Cp(scalar p, scalar T) const = 0;
|
||||
virtual scalar Cp(scalar p, scalar T) const;
|
||||
|
||||
//- Liquid enthalpy [J/kg] - reference to 298.15 K
|
||||
virtual scalar h(scalar p, scalar T) const = 0;
|
||||
virtual scalar h(scalar p, scalar T) const;
|
||||
|
||||
//- Ideal gas heat capacity [J/(kg K)]
|
||||
virtual scalar Cpg(scalar p, scalar T) const = 0;
|
||||
virtual scalar Cpg(scalar p, scalar T) const;
|
||||
|
||||
//- Liquid viscosity [Pa s]
|
||||
virtual scalar mu(scalar p, scalar T) const = 0;
|
||||
virtual scalar mu(scalar p, scalar T) const;
|
||||
|
||||
//- Vapour viscosity [Pa s]
|
||||
virtual scalar mug(scalar p, scalar T) const = 0;
|
||||
virtual scalar mug(scalar p, scalar T) const;
|
||||
|
||||
//- Liquid thermal conductivity [W/(m K)]
|
||||
virtual scalar K(scalar p, scalar T) const = 0;
|
||||
virtual scalar K(scalar p, scalar T) const;
|
||||
|
||||
//- Vapour thermal conductivity [W/(m K)]
|
||||
virtual scalar Kg(scalar p, scalar T) const = 0;
|
||||
virtual scalar Kg(scalar p, scalar T) const;
|
||||
|
||||
//- Surface tension [N/m]
|
||||
virtual scalar sigma(scalar p, scalar T) const = 0;
|
||||
virtual scalar sigma(scalar p, scalar T) const;
|
||||
|
||||
//- Vapour diffussivity [m2/s]
|
||||
virtual scalar D(scalar p, scalar T) const = 0;
|
||||
virtual scalar D(scalar p, scalar T) const;
|
||||
|
||||
//- Vapour diffussivity [m2/s] with specified binary pair
|
||||
virtual scalar D(scalar p, scalar T, scalar Wb) const = 0;
|
||||
virtual scalar D(scalar p, scalar T, scalar Wb) const;
|
||||
|
||||
|
||||
// I-O
|
||||
|
||||
//- Write the function coefficients
|
||||
virtual void writeData(Ostream& os) const
|
||||
{
|
||||
os << W_ << token::SPACE
|
||||
<< Tc_ << token::SPACE
|
||||
<< Pc_ << token::SPACE
|
||||
<< Vc_ << token::SPACE
|
||||
<< dipm_ << token::SPACE
|
||||
<< omega_<< token::SPACE
|
||||
<< delta_;
|
||||
}
|
||||
virtual void writeData(Ostream& os) const;
|
||||
|
||||
//- Ostream Operator
|
||||
friend Ostream& operator<<(Ostream& os, const liquid& l)
|
||||
|
||||
@ -166,4 +166,23 @@ Foam::nC3H8O::nC3H8O(const dictionary& dict)
|
||||
{}
|
||||
|
||||
|
||||
Foam::nC3H8O::nC3H8O(const nC3H8O& liq)
|
||||
:
|
||||
liquid(liq),
|
||||
rho_(liq.rho_),
|
||||
pv_(liq.pv_),
|
||||
hl_(liq.hl_),
|
||||
Cp_(liq.Cp_),
|
||||
h_(liq.h_),
|
||||
Cpg_(liq.Cpg_),
|
||||
B_(liq.B_),
|
||||
mu_(liq.mu_),
|
||||
mug_(liq.mug_),
|
||||
K_(liq.K_),
|
||||
Kg_(liq.Kg_),
|
||||
sigma_(liq.sigma_),
|
||||
D_(liq.D_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -111,6 +111,15 @@ public:
|
||||
//- Construct from dictionary
|
||||
nC3H8O(const dictionary& dict);
|
||||
|
||||
//- Construct copy
|
||||
nC3H8O(const nC3H8O& liq);
|
||||
|
||||
//- Construct and return clone
|
||||
virtual autoPtr<liquid> clone() const
|
||||
{
|
||||
return autoPtr<liquid>(new nC3H8O(*this));
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user