mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Extended parcel constantProperties constructors
This commit is contained in:
@ -626,7 +626,7 @@ Foam::KinematicCloud<ParcelType>::KinematicCloud
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
solution_(mesh),
|
solution_(mesh),
|
||||||
constProps_(dictionary::null),
|
constProps_(),
|
||||||
subModelProperties_(dictionary::null),
|
subModelProperties_(dictionary::null),
|
||||||
rndGen_(0, 0),
|
rndGen_(0, 0),
|
||||||
cellOccupancyPtr_(NULL),
|
cellOccupancyPtr_(NULL),
|
||||||
|
|||||||
@ -191,8 +191,9 @@ Foam::ReactingCloud<ParcelType>::ReactingCloud
|
|||||||
ThermoCloud<ParcelType>(mesh, name, c),
|
ThermoCloud<ParcelType>(mesh, name, c),
|
||||||
reactingCloud(),
|
reactingCloud(),
|
||||||
cloudCopyPtr_(NULL),
|
cloudCopyPtr_(NULL),
|
||||||
constProps_(c.constProps_),
|
constProps_(),
|
||||||
compositionModel_(NULL),
|
compositionModel_(c.compositionModel_->clone()),
|
||||||
|
// compositionModel_(NULL),
|
||||||
phaseChangeModel_(NULL),
|
phaseChangeModel_(NULL),
|
||||||
rhoTrans_(0),
|
rhoTrans_(0),
|
||||||
dMassPhaseChange_(0.0)
|
dMassPhaseChange_(0.0)
|
||||||
|
|||||||
@ -123,7 +123,7 @@ Foam::ReactingMultiphaseCloud<ParcelType>::ReactingMultiphaseCloud
|
|||||||
ReactingCloud<ParcelType>(mesh, name, c),
|
ReactingCloud<ParcelType>(mesh, name, c),
|
||||||
reactingMultiphaseCloud(),
|
reactingMultiphaseCloud(),
|
||||||
cloudCopyPtr_(NULL),
|
cloudCopyPtr_(NULL),
|
||||||
constProps_(c.constProps_),
|
constProps_(),
|
||||||
devolatilisationModel_(NULL),
|
devolatilisationModel_(NULL),
|
||||||
surfaceReactionModel_(NULL),
|
surfaceReactionModel_(NULL),
|
||||||
dMassDevolatilisation_(0.0),
|
dMassDevolatilisation_(0.0),
|
||||||
|
|||||||
@ -197,7 +197,7 @@ Foam::ThermoCloud<ParcelType>::ThermoCloud
|
|||||||
KinematicCloud<ParcelType>(mesh, name, c),
|
KinematicCloud<ParcelType>(mesh, name, c),
|
||||||
thermoCloud(),
|
thermoCloud(),
|
||||||
cloudCopyPtr_(NULL),
|
cloudCopyPtr_(NULL),
|
||||||
constProps_(c.particleProperties_),
|
constProps_(),
|
||||||
thermo_(c.thermo()),
|
thermo_(c.thermo()),
|
||||||
T_(c.T()),
|
T_(c.T()),
|
||||||
p_(c.p()),
|
p_(c.p()),
|
||||||
|
|||||||
@ -118,8 +118,17 @@ public:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//- Constructor
|
// Constructors
|
||||||
constantProperties(const dictionary& parentDict);
|
|
||||||
|
//- Null constructor
|
||||||
|
constantProperties();
|
||||||
|
|
||||||
|
//- Copy constructor
|
||||||
|
constantProperties(const constantProperties& cp);
|
||||||
|
|
||||||
|
//- Constructor from dictionary
|
||||||
|
constantProperties(const dictionary& parentDict);
|
||||||
|
|
||||||
|
|
||||||
// Member functions
|
// Member functions
|
||||||
|
|
||||||
|
|||||||
@ -29,6 +29,36 @@ using namespace Foam::constant::mathematical;
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
template<class ParcelType>
|
||||||
|
inline
|
||||||
|
Foam::KinematicParcel<ParcelType>::constantProperties::constantProperties()
|
||||||
|
:
|
||||||
|
dict_(dictionary::null),
|
||||||
|
parcelTypeId_(-1),
|
||||||
|
rhoMin_(0.0),
|
||||||
|
rho0_(0.0),
|
||||||
|
minParticleMass_(0.0),
|
||||||
|
youngsModulus_(0.0),
|
||||||
|
poissonsRatio_(0.0)
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
template<class ParcelType>
|
||||||
|
inline Foam::KinematicParcel<ParcelType>::constantProperties::constantProperties
|
||||||
|
(
|
||||||
|
const constantProperties& cp
|
||||||
|
)
|
||||||
|
:
|
||||||
|
dict_(cp.dict_),
|
||||||
|
parcelTypeId_(cp.parcelTypeId_),
|
||||||
|
rhoMin_(cp.rhoMin_),
|
||||||
|
rho0_(cp.rho0_),
|
||||||
|
minParticleMass_(cp.minParticleMass_),
|
||||||
|
youngsModulus_(cp.youngsModulus_),
|
||||||
|
poissonsRatio_(cp.poissonsRatio_)
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
template<class ParcelType>
|
template<class ParcelType>
|
||||||
inline Foam::KinematicParcel<ParcelType>::constantProperties::constantProperties
|
inline Foam::KinematicParcel<ParcelType>::constantProperties::constantProperties
|
||||||
(
|
(
|
||||||
|
|||||||
@ -91,8 +91,17 @@ public:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//- Constructor
|
// Constructors
|
||||||
constantProperties(const dictionary& parentDict);
|
|
||||||
|
//- Null constructor
|
||||||
|
constantProperties();
|
||||||
|
|
||||||
|
//- Copy constructor
|
||||||
|
constantProperties(const constantProperties& cp);
|
||||||
|
|
||||||
|
//- Constructor from dictionary
|
||||||
|
constantProperties(const dictionary& parentDict);
|
||||||
|
|
||||||
|
|
||||||
// Access
|
// Access
|
||||||
|
|
||||||
|
|||||||
@ -25,6 +25,31 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
template<class ParcelType>
|
||||||
|
inline
|
||||||
|
Foam::ReactingMultiphaseParcel<ParcelType>::constantProperties::
|
||||||
|
constantProperties()
|
||||||
|
:
|
||||||
|
ReactingParcel<ParcelType>::constantProperties(),
|
||||||
|
LDevol_(0.0),
|
||||||
|
hRetentionCoeff_(0.0)
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
template<class ParcelType>
|
||||||
|
inline
|
||||||
|
Foam::ReactingMultiphaseParcel<ParcelType>::constantProperties::
|
||||||
|
constantProperties
|
||||||
|
(
|
||||||
|
const constantProperties& cp
|
||||||
|
)
|
||||||
|
:
|
||||||
|
ReactingParcel<ParcelType>::constantProperties(cp),
|
||||||
|
LDevol_(cp.LDevol_),
|
||||||
|
hRetentionCoeff_(cp.hRetentionCoeff_)
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
template<class ParcelType>
|
template<class ParcelType>
|
||||||
inline Foam::ReactingMultiphaseParcel<ParcelType>::constantProperties::
|
inline Foam::ReactingMultiphaseParcel<ParcelType>::constantProperties::
|
||||||
constantProperties
|
constantProperties
|
||||||
|
|||||||
@ -91,8 +91,17 @@ public:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//- Constructor
|
// Constructors
|
||||||
constantProperties(const dictionary& parentDict);
|
|
||||||
|
//- Null constructor
|
||||||
|
constantProperties();
|
||||||
|
|
||||||
|
//- Copy constructor
|
||||||
|
constantProperties(const constantProperties& cp);
|
||||||
|
|
||||||
|
//- Constructor from dictionary
|
||||||
|
constantProperties(const dictionary& parentDict);
|
||||||
|
|
||||||
|
|
||||||
// Access
|
// Access
|
||||||
|
|
||||||
|
|||||||
@ -25,6 +25,32 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
template<class ParcelType>
|
||||||
|
inline
|
||||||
|
Foam::ReactingParcel<ParcelType>::constantProperties::constantProperties()
|
||||||
|
:
|
||||||
|
ThermoParcel<ParcelType>::constantProperties(),
|
||||||
|
pMin_(0.0),
|
||||||
|
constantVolume_(false),
|
||||||
|
Tvap_(0.0),
|
||||||
|
Tbp_(0.0)
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
template<class ParcelType>
|
||||||
|
inline Foam::ReactingParcel<ParcelType>::constantProperties::constantProperties
|
||||||
|
(
|
||||||
|
const constantProperties& cp
|
||||||
|
)
|
||||||
|
:
|
||||||
|
ThermoParcel<ParcelType>::constantProperties(cp),
|
||||||
|
pMin_(cp.pMin_),
|
||||||
|
constantVolume_(cp.constantVolume_),
|
||||||
|
Tvap_(cp.Tvap_),
|
||||||
|
Tbp_(cp.Tbp_)
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
template<class ParcelType>
|
template<class ParcelType>
|
||||||
inline Foam::ReactingParcel<ParcelType>::constantProperties::constantProperties
|
inline Foam::ReactingParcel<ParcelType>::constantProperties::constantProperties
|
||||||
(
|
(
|
||||||
|
|||||||
@ -98,7 +98,16 @@ public:
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
constantProperties(const dictionary& parentDict);
|
|
||||||
|
//- Null constructor
|
||||||
|
constantProperties();
|
||||||
|
|
||||||
|
//- Copy constructor
|
||||||
|
constantProperties(const constantProperties& cp);
|
||||||
|
|
||||||
|
//- Constructor from dictionary
|
||||||
|
constantProperties(const dictionary& parentDict);
|
||||||
|
|
||||||
|
|
||||||
// Member functions
|
// Member functions
|
||||||
|
|
||||||
|
|||||||
@ -25,6 +25,35 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
template<class ParcelType>
|
||||||
|
inline Foam::ThermoParcel<ParcelType>::constantProperties::constantProperties()
|
||||||
|
:
|
||||||
|
KinematicParcel<ParcelType>::constantProperties(),
|
||||||
|
T0_(0.0),
|
||||||
|
TMin_(0.0),
|
||||||
|
Cp0_(0.0),
|
||||||
|
epsilon0_(0.0),
|
||||||
|
f0_(0.0),
|
||||||
|
Pr_(0.0)
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
template<class ParcelType>
|
||||||
|
inline Foam::ThermoParcel<ParcelType>::constantProperties::constantProperties
|
||||||
|
(
|
||||||
|
const constantProperties& cp
|
||||||
|
)
|
||||||
|
:
|
||||||
|
KinematicParcel<ParcelType>::constantProperties(cp),
|
||||||
|
T0_(cp.T0_),
|
||||||
|
TMin_(cp.TMin_),
|
||||||
|
Cp0_(cp.Cp0_),
|
||||||
|
epsilon0_(cp.epsilon0_),
|
||||||
|
f0_(cp.f0_),
|
||||||
|
Pr_(cp.Pr_)
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
template<class ParcelType>
|
template<class ParcelType>
|
||||||
inline Foam::ThermoParcel<ParcelType>::constantProperties::constantProperties
|
inline Foam::ThermoParcel<ParcelType>::constantProperties::constantProperties
|
||||||
(
|
(
|
||||||
|
|||||||
Reference in New Issue
Block a user