mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
moved constant properties to be read from their own sub-dict
This commit is contained in:
@ -86,6 +86,9 @@ public:
|
|||||||
{
|
{
|
||||||
// Private data
|
// Private data
|
||||||
|
|
||||||
|
//- Constant properties dictionary
|
||||||
|
const dictionary dict_;
|
||||||
|
|
||||||
//- Particle density [kg/m3] (constant)
|
//- Particle density [kg/m3] (constant)
|
||||||
const scalar rho0_;
|
const scalar rho0_;
|
||||||
|
|
||||||
@ -99,10 +102,13 @@ public:
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
//- Constructor
|
//- Constructor
|
||||||
constantProperties(const dictionary& dict);
|
constantProperties(const dictionary& parentDict);
|
||||||
|
|
||||||
// Member functions
|
// Member functions
|
||||||
|
|
||||||
|
//- Return const access to the constant properties dictionary
|
||||||
|
inline const dictionary& dict() const;
|
||||||
|
|
||||||
//- Return const access to the particle density
|
//- Return const access to the particle density
|
||||||
inline scalar rho0() const;
|
inline scalar rho0() const;
|
||||||
|
|
||||||
|
|||||||
@ -29,12 +29,16 @@ License
|
|||||||
template <class ParcelType>
|
template <class ParcelType>
|
||||||
inline Foam::KinematicParcel<ParcelType>::constantProperties::constantProperties
|
inline Foam::KinematicParcel<ParcelType>::constantProperties::constantProperties
|
||||||
(
|
(
|
||||||
const dictionary& dict
|
const dictionary& parentDict
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
rho0_(dimensionedScalar(dict.lookup("rho0")).value()),
|
dict_(parentDict.subDict("constantProperties")),
|
||||||
minParticleMass_(dimensionedScalar(dict.lookup("minParticleMass")).value()),
|
rho0_(dimensionedScalar(dict_.lookup("rho0")).value()),
|
||||||
Cvm_(dimensionedScalar(dict.lookup("Cvm")).value())
|
minParticleMass_
|
||||||
|
(
|
||||||
|
dimensionedScalar(dict_.lookup("minParticleMass")).value()
|
||||||
|
),
|
||||||
|
Cvm_(dimensionedScalar(dict_.lookup("Cvm")).value())
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -88,6 +92,14 @@ inline Foam::KinematicParcel<ParcelType>::KinematicParcel
|
|||||||
|
|
||||||
// * * * * * * * * * constantProperties Member Functions * * * * * * * * * * //
|
// * * * * * * * * * constantProperties Member Functions * * * * * * * * * * //
|
||||||
|
|
||||||
|
template <class ParcelType>
|
||||||
|
inline const Foam::dictionary&
|
||||||
|
Foam::KinematicParcel<ParcelType>::constantProperties::dict() const
|
||||||
|
{
|
||||||
|
return dict_;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
template <class ParcelType>
|
template <class ParcelType>
|
||||||
inline Foam::scalar
|
inline Foam::scalar
|
||||||
Foam::KinematicParcel<ParcelType>::constantProperties::rho0() const
|
Foam::KinematicParcel<ParcelType>::constantProperties::rho0() const
|
||||||
|
|||||||
@ -93,7 +93,7 @@ public:
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
//- Constructor
|
//- Constructor
|
||||||
constantProperties(const dictionary& dict);
|
constantProperties(const dictionary& parentDict);
|
||||||
|
|
||||||
// Access
|
// Access
|
||||||
|
|
||||||
|
|||||||
@ -30,12 +30,15 @@ template<class ParcelType>
|
|||||||
inline Foam::ReactingMultiphaseParcel<ParcelType>::constantProperties::
|
inline Foam::ReactingMultiphaseParcel<ParcelType>::constantProperties::
|
||||||
constantProperties
|
constantProperties
|
||||||
(
|
(
|
||||||
const dictionary& dict
|
const dictionary& parentDict
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
ReactingParcel<ParcelType>::constantProperties(dict),
|
ReactingParcel<ParcelType>::constantProperties(parentDict),
|
||||||
LDevol_(dimensionedScalar(dict.lookup("LDevol")).value()),
|
LDevol_(dimensionedScalar(this->dict().lookup("LDevol")).value()),
|
||||||
hRetentionCoeff_(dimensionedScalar(dict.lookup("hRetentionCoeff")).value())
|
hRetentionCoeff_
|
||||||
|
(
|
||||||
|
dimensionedScalar(this->dict().lookup("hRetentionCoeff")).value()
|
||||||
|
)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -93,7 +93,7 @@ public:
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
//- Constructor
|
//- Constructor
|
||||||
constantProperties(const dictionary& dict);
|
constantProperties(const dictionary& parentDict);
|
||||||
|
|
||||||
// Access
|
// Access
|
||||||
|
|
||||||
|
|||||||
@ -29,13 +29,13 @@ License
|
|||||||
template<class ParcelType>
|
template<class ParcelType>
|
||||||
inline Foam::ReactingParcel<ParcelType>::constantProperties::constantProperties
|
inline Foam::ReactingParcel<ParcelType>::constantProperties::constantProperties
|
||||||
(
|
(
|
||||||
const dictionary& dict
|
const dictionary& parentDict
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
ThermoParcel<ParcelType>::constantProperties(dict),
|
ThermoParcel<ParcelType>::constantProperties(parentDict),
|
||||||
constantVolume_(dict.lookup("constantVolume")),
|
constantVolume_(this->dict().lookup("constantVolume")),
|
||||||
Tbp_(dimensionedScalar(dict.lookup("Tbp")).value()),
|
Tbp_(dimensionedScalar(this->dict().lookup("Tbp")).value()),
|
||||||
Tvap_(dimensionedScalar(dict.lookup("Tvap")).value())
|
Tvap_(dimensionedScalar(this->dict().lookup("Tvap")).value())
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -98,7 +98,7 @@ public:
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
constantProperties(const dictionary& dict);
|
constantProperties(const dictionary& parentDict);
|
||||||
|
|
||||||
// Member functions
|
// Member functions
|
||||||
|
|
||||||
|
|||||||
@ -29,14 +29,14 @@ License
|
|||||||
template<class ParcelType>
|
template<class ParcelType>
|
||||||
inline Foam::ThermoParcel<ParcelType>::constantProperties::constantProperties
|
inline Foam::ThermoParcel<ParcelType>::constantProperties::constantProperties
|
||||||
(
|
(
|
||||||
const dictionary& dict
|
const dictionary& parentDict
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
KinematicParcel<ParcelType>::constantProperties(dict),
|
KinematicParcel<ParcelType>::constantProperties(parentDict),
|
||||||
T0_(dimensionedScalar(dict.lookup("T0")).value()),
|
T0_(dimensionedScalar(this->dict().lookup("T0")).value()),
|
||||||
cp0_(dimensionedScalar(dict.lookup("cp0")).value()),
|
cp0_(dimensionedScalar(this->dict().lookup("cp0")).value()),
|
||||||
epsilon0_(dimensionedScalar(dict.lookup("epsilon0")).value()),
|
epsilon0_(dimensionedScalar(this->dict().lookup("epsilon0")).value()),
|
||||||
f0_(dimensionedScalar(dict.lookup("f0")).value())
|
f0_(dimensionedScalar(this->dict().lookup("f0")).value())
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user