mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Provided non-const access to lagrangian constProps
This commit is contained in:
@ -350,6 +350,9 @@ public:
|
||||
inline const typename parcelType::constantProperties&
|
||||
constProps() const;
|
||||
|
||||
//- Return access to the constant properties
|
||||
inline typename parcelType::constantProperties& constProps();
|
||||
|
||||
//- Return reference to the sub-models dictionary
|
||||
inline const dictionary& subModelProperties() const;
|
||||
|
||||
|
||||
@ -89,6 +89,14 @@ Foam::KinematicCloud<CloudType>::constProps() const
|
||||
}
|
||||
|
||||
|
||||
template<class CloudType>
|
||||
inline typename CloudType::particleType::constantProperties&
|
||||
Foam::KinematicCloud<CloudType>::constProps()
|
||||
{
|
||||
return constProps_;
|
||||
}
|
||||
|
||||
|
||||
template<class CloudType>
|
||||
inline const Foam::dictionary&
|
||||
Foam::KinematicCloud<CloudType>::subModelProperties() const
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -206,6 +206,9 @@ public:
|
||||
inline const typename parcelType::constantProperties&
|
||||
constProps() const;
|
||||
|
||||
//- Return access to the constant properties
|
||||
inline typename parcelType::constantProperties& constProps();
|
||||
|
||||
|
||||
// Sub-models
|
||||
|
||||
|
||||
@ -41,6 +41,14 @@ Foam::ReactingCloud<CloudType>::constProps() const
|
||||
}
|
||||
|
||||
|
||||
template<class CloudType>
|
||||
inline typename CloudType::particleType::constantProperties&
|
||||
Foam::ReactingCloud<CloudType>::constProps()
|
||||
{
|
||||
return constProps_;
|
||||
}
|
||||
|
||||
|
||||
template<class CloudType>
|
||||
inline const Foam::CompositionModel<Foam::ReactingCloud<CloudType> >&
|
||||
Foam::ReactingCloud<CloudType>::composition() const
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -211,6 +211,9 @@ public:
|
||||
inline const typename parcelType::constantProperties&
|
||||
constProps() const;
|
||||
|
||||
//- Return access to the constant properties
|
||||
inline typename parcelType::constantProperties& constProps();
|
||||
|
||||
|
||||
// Sub-models
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -41,6 +41,14 @@ Foam::ReactingMultiphaseCloud<CloudType>::constProps() const
|
||||
}
|
||||
|
||||
|
||||
template<class CloudType>
|
||||
inline typename CloudType::particleType::constantProperties&
|
||||
Foam::ReactingMultiphaseCloud<CloudType>::constProps()
|
||||
{
|
||||
return constProps_;
|
||||
}
|
||||
|
||||
|
||||
template<class CloudType>
|
||||
inline const Foam::DevolatilisationModel
|
||||
<
|
||||
|
||||
@ -225,6 +225,9 @@ public:
|
||||
inline const typename parcelType::constantProperties&
|
||||
constProps() const;
|
||||
|
||||
//- Return access to the constant properties
|
||||
inline typename parcelType::constantProperties& constProps();
|
||||
|
||||
//- Return const access to thermo package
|
||||
inline const SLGThermo& thermo() const;
|
||||
|
||||
|
||||
@ -45,6 +45,14 @@ Foam::ThermoCloud<CloudType>::constProps() const
|
||||
}
|
||||
|
||||
|
||||
template<class CloudType>
|
||||
inline typename CloudType::particleType::constantProperties&
|
||||
Foam::ThermoCloud<CloudType>::constProps()
|
||||
{
|
||||
return constProps_;
|
||||
}
|
||||
|
||||
|
||||
template<class CloudType>
|
||||
inline const Foam::SLGThermo& Foam::ThermoCloud<CloudType>::thermo() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user