mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
added Lvap + re-arranged constant properties
This commit is contained in:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user