Skip to content
Snippets Groups Projects
Commit 5b7188af authored by Andrew Heather's avatar Andrew Heather
Browse files

added Lvap + re-arranged constant properties

parent 0f80edf2
Branches
Tags
No related merge requests found
......@@ -76,12 +76,6 @@ public:
{
// Private data
//- Vapourisation temperature [K]
const scalar Tvap_;
//- Boiling point [K]
const scalar Tbp_;
//- Latent heat of devolatilisation [J/kg]
const scalar Ldevol_;
......@@ -93,12 +87,6 @@ public:
// Access
//- Return const access to the vapourisation temperature
inline scalar Tvap() const;
//- Return const access to the boiling point
inline scalar Tbp() const;
//- Return const access to the latent heat of devolatilisation
inline scalar Ldevol() const;
};
......
......@@ -34,8 +34,6 @@ constantProperties
)
:
ReactingParcel<ParcelType>::constantProperties(dict),
Tvap_(dimensionedScalar(dict.lookup("Tvap")).value()),
Tbp_(dimensionedScalar(dict.lookup("Tbp")).value()),
Ldevol_(dimensionedScalar(dict.lookup("Ldevol")).value())
{}
......@@ -108,22 +106,6 @@ inline Foam::ReactingMultiphaseParcel<ParcelType>::ReactingMultiphaseParcel
// * * * * * * * * * constantProperties Member Functions * * * * * * * * * * //
template<class ParcelType>
inline Foam::scalar
Foam::ReactingMultiphaseParcel<ParcelType>::constantProperties::Tvap() const
{
return Tvap_;
}
template<class ParcelType>
inline Foam::scalar
Foam::ReactingMultiphaseParcel<ParcelType>::constantProperties::Tbp() const
{
return Tbp_;
}
template<class ParcelType>
inline Foam::scalar
Foam::ReactingMultiphaseParcel<ParcelType>::constantProperties::Ldevol() const
......
......@@ -83,6 +83,15 @@ public:
//- Constant volume flag - e.g. during mass transfer
Switch constantVolume_;
//- Boiling point [K]
const scalar Tbp_;
//- Vapourisation temperature [K]
const scalar Tvap_;
//- Latent heat of vaporisation [J/kg]
const scalar Lvap_;
public:
......@@ -93,6 +102,15 @@ public:
//- Return const access to the constant volume flag
inline Switch constantVolume() const;
//- Return const access to the boiling point
inline scalar Tbp() const;
//- Return const access to the vapourisation temperature
inline scalar Tvap() const;
//- Return const access to the latent heat of vaporisation
inline scalar Lvap() const;
};
......
......@@ -33,7 +33,10 @@ inline Foam::ReactingParcel<ParcelType>::constantProperties::constantProperties
)
:
ThermoParcel<ParcelType>::constantProperties(dict),
constantVolume_(dict.lookup("constantVolume"))
constantVolume_(dict.lookup("constantVolume")),
Tbp_(dimensionedScalar(dict.lookup("Tbp")).value()),
Tvap_(dimensionedScalar(dict.lookup("Tvap")).value()),
Lvap_(dimensionedScalar(dict.lookup("Lvap")).value())
{}
......@@ -112,6 +115,30 @@ Foam::ReactingParcel<ParcelType>::constantProperties::constantVolume() const
}
template<class ParcelType>
inline Foam::scalar
Foam::ReactingParcel<ParcelType>::constantProperties::Tbp() const
{
return Tbp_;
}
template<class ParcelType>
inline Foam::scalar
Foam::ReactingParcel<ParcelType>::constantProperties::Tvap() const
{
return Tvap_;
}
template<class ParcelType>
inline Foam::scalar
Foam::ReactingParcel<ParcelType>::constantProperties::Lvap() const
{
return Lvap_;
}
// * * * * * * * * * * * trackData Member Functions * * * * * * * * * * * * //
template<class ParcelType>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment