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