added Lvap + re-arranged constant properties

This commit is contained in:
andy
2009-03-02 17:12:05 +00:00
parent 0f80edf285
commit 5b7188afc9
4 changed files with 46 additions and 31 deletions

View File

@ -76,12 +76,6 @@ public:
{ {
// Private data // Private data
//- Vapourisation temperature [K]
const scalar Tvap_;
//- Boiling point [K]
const scalar Tbp_;
//- Latent heat of devolatilisation [J/kg] //- Latent heat of devolatilisation [J/kg]
const scalar Ldevol_; const scalar Ldevol_;
@ -93,12 +87,6 @@ public:
// Access // 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 //- Return const access to the latent heat of devolatilisation
inline scalar Ldevol() const; inline scalar Ldevol() const;
}; };

View File

@ -34,8 +34,6 @@ constantProperties
) )
: :
ReactingParcel<ParcelType>::constantProperties(dict), ReactingParcel<ParcelType>::constantProperties(dict),
Tvap_(dimensionedScalar(dict.lookup("Tvap")).value()),
Tbp_(dimensionedScalar(dict.lookup("Tbp")).value()),
Ldevol_(dimensionedScalar(dict.lookup("Ldevol")).value()) Ldevol_(dimensionedScalar(dict.lookup("Ldevol")).value())
{} {}
@ -108,22 +106,6 @@ inline Foam::ReactingMultiphaseParcel<ParcelType>::ReactingMultiphaseParcel
// * * * * * * * * * constantProperties Member Functions * * * * * * * * * * // // * * * * * * * * * 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> template<class ParcelType>
inline Foam::scalar inline Foam::scalar
Foam::ReactingMultiphaseParcel<ParcelType>::constantProperties::Ldevol() const Foam::ReactingMultiphaseParcel<ParcelType>::constantProperties::Ldevol() const

View File

@ -83,6 +83,15 @@ public:
//- Constant volume flag - e.g. during mass transfer //- Constant volume flag - e.g. during mass transfer
Switch constantVolume_; Switch constantVolume_;
//- Boiling point [K]
const scalar Tbp_;
//- Vapourisation temperature [K]
const scalar Tvap_;
//- Latent heat of vaporisation [J/kg]
const scalar Lvap_;
public: public:
@ -93,6 +102,15 @@ public:
//- Return const access to the constant volume flag //- Return const access to the constant volume flag
inline Switch constantVolume() const; 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;
}; };

View File

@ -33,7 +33,10 @@ inline Foam::ReactingParcel<ParcelType>::constantProperties::constantProperties
) )
: :
ThermoParcel<ParcelType>::constantProperties(dict), 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 * * * * * * * * * * * * // // * * * * * * * * * * * trackData Member Functions * * * * * * * * * * * * //
template<class ParcelType> template<class ParcelType>