diff --git a/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloud.H b/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloud.H index cae86032ca..59f9fc7da8 100644 --- a/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloud.H +++ b/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloud.H @@ -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; diff --git a/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloudI.H b/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloudI.H index bef2f78a60..5ba48458f2 100644 --- a/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloudI.H +++ b/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloudI.H @@ -89,6 +89,14 @@ Foam::KinematicCloud::constProps() const } +template +inline typename CloudType::particleType::constantProperties& +Foam::KinematicCloud::constProps() +{ + return constProps_; +} + + template inline const Foam::dictionary& Foam::KinematicCloud::subModelProperties() const diff --git a/src/lagrangian/intermediate/clouds/Templates/ReactingCloud/ReactingCloud.H b/src/lagrangian/intermediate/clouds/Templates/ReactingCloud/ReactingCloud.H index 2797250cc3..ed7d0202cb 100644 --- a/src/lagrangian/intermediate/clouds/Templates/ReactingCloud/ReactingCloud.H +++ b/src/lagrangian/intermediate/clouds/Templates/ReactingCloud/ReactingCloud.H @@ -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 diff --git a/src/lagrangian/intermediate/clouds/Templates/ReactingCloud/ReactingCloudI.H b/src/lagrangian/intermediate/clouds/Templates/ReactingCloud/ReactingCloudI.H index a5d5fc1e45..7abbc9f54a 100644 --- a/src/lagrangian/intermediate/clouds/Templates/ReactingCloud/ReactingCloudI.H +++ b/src/lagrangian/intermediate/clouds/Templates/ReactingCloud/ReactingCloudI.H @@ -41,6 +41,14 @@ Foam::ReactingCloud::constProps() const } +template +inline typename CloudType::particleType::constantProperties& +Foam::ReactingCloud::constProps() +{ + return constProps_; +} + + template inline const Foam::CompositionModel >& Foam::ReactingCloud::composition() const diff --git a/src/lagrangian/intermediate/clouds/Templates/ReactingMultiphaseCloud/ReactingMultiphaseCloud.H b/src/lagrangian/intermediate/clouds/Templates/ReactingMultiphaseCloud/ReactingMultiphaseCloud.H index bb72273e3f..de157da343 100644 --- a/src/lagrangian/intermediate/clouds/Templates/ReactingMultiphaseCloud/ReactingMultiphaseCloud.H +++ b/src/lagrangian/intermediate/clouds/Templates/ReactingMultiphaseCloud/ReactingMultiphaseCloud.H @@ -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 diff --git a/src/lagrangian/intermediate/clouds/Templates/ReactingMultiphaseCloud/ReactingMultiphaseCloudI.H b/src/lagrangian/intermediate/clouds/Templates/ReactingMultiphaseCloud/ReactingMultiphaseCloudI.H index e4cef9783b..c7aa0e4aaf 100644 --- a/src/lagrangian/intermediate/clouds/Templates/ReactingMultiphaseCloud/ReactingMultiphaseCloudI.H +++ b/src/lagrangian/intermediate/clouds/Templates/ReactingMultiphaseCloud/ReactingMultiphaseCloudI.H @@ -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::constProps() const } +template +inline typename CloudType::particleType::constantProperties& +Foam::ReactingMultiphaseCloud::constProps() +{ + return constProps_; +} + + template inline const Foam::DevolatilisationModel < diff --git a/src/lagrangian/intermediate/clouds/Templates/ThermoCloud/ThermoCloud.H b/src/lagrangian/intermediate/clouds/Templates/ThermoCloud/ThermoCloud.H index d746141aea..4f858d6643 100644 --- a/src/lagrangian/intermediate/clouds/Templates/ThermoCloud/ThermoCloud.H +++ b/src/lagrangian/intermediate/clouds/Templates/ThermoCloud/ThermoCloud.H @@ -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; diff --git a/src/lagrangian/intermediate/clouds/Templates/ThermoCloud/ThermoCloudI.H b/src/lagrangian/intermediate/clouds/Templates/ThermoCloud/ThermoCloudI.H index 80288cb52c..ea1b79f194 100644 --- a/src/lagrangian/intermediate/clouds/Templates/ThermoCloud/ThermoCloudI.H +++ b/src/lagrangian/intermediate/clouds/Templates/ThermoCloud/ThermoCloudI.H @@ -45,6 +45,14 @@ Foam::ThermoCloud::constProps() const } +template +inline typename CloudType::particleType::constantProperties& +Foam::ThermoCloud::constProps() +{ + return constProps_; +} + + template inline const Foam::SLGThermo& Foam::ThermoCloud::thermo() const {