lagrangian: DevolatilisationModel: Added access to the parcel

This commit is contained in:
Will Bainbridge
2021-08-13 12:30:14 +01:00
parent 41b73ec578
commit f3454baa08
11 changed files with 29 additions and 20 deletions

View File

@ -274,7 +274,6 @@ void Foam::ReactingMultiphaseParcel<ParcelType>::calc
cloud,
td,
dt,
this->age_,
Ts,
d0,
T0,
@ -503,7 +502,6 @@ void Foam::ReactingMultiphaseParcel<ParcelType>::calcDevolatilisation
TrackCloudType& cloud,
trackingData& td,
const scalar dt,
const scalar age,
const scalar Ts,
const scalar d,
const scalar T,
@ -557,12 +555,17 @@ void Foam::ReactingMultiphaseParcel<ParcelType>::calcDevolatilisation
const CompositionModel<thermoCloudType>& composition =
cloud.composition();
const typename TrackCloudType::parcelType& p =
static_cast<const typename TrackCloudType::parcelType&>(*this);
typename TrackCloudType::parcelType::trackingData& ttd =
static_cast<typename TrackCloudType::parcelType::trackingData&>(td);
// Total mass of volatiles evolved
cloud.devolatilisation().calculate
(
p,
ttd,
dt,
age,
mass0,
mass,
T,

View File

@ -225,7 +225,6 @@ protected:
TrackCloudType& cloud,
trackingData& td,
const scalar dt, // timestep
const scalar age, // age
const scalar Ts, // surface temperature
const scalar d, // diameter
const scalar T, // temperature

View File

@ -93,8 +93,8 @@ template<class ParcelType>
template<class TrackCloudType>
void Foam::ThermoParcel<ParcelType>::calcSurfaceValues
(
TrackCloudType& cloud,
trackingData& td,
const TrackCloudType& cloud,
const trackingData& td,
const scalar T,
scalar& Ts,
scalar& rhos,

View File

@ -414,8 +414,8 @@ public:
template<class TrackCloudType>
void calcSurfaceValues
(
TrackCloudType& cloud,
trackingData& td,
const TrackCloudType& cloud,
const trackingData& td,
const scalar T,
scalar& Ts,
scalar& rhos,

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -94,8 +94,9 @@ Foam::ConstantRateDevolatilisation<CloudType>::~ConstantRateDevolatilisation()
template<class CloudType>
void Foam::ConstantRateDevolatilisation<CloudType>::calculate
(
const typename CloudType::parcelType& p,
const typename CloudType::parcelType::trackingData& td,
const scalar dt,
const scalar age,
const scalar mass0,
const scalar mass,
const scalar T,

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -103,8 +103,9 @@ public:
//- Update model
virtual void calculate
(
const typename CloudType::parcelType& p,
const typename CloudType::parcelType::trackingData& td,
const scalar dt,
const scalar age,
const scalar mass0,
const scalar mass,
const scalar T,

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -119,8 +119,9 @@ public:
//- Update model
virtual void calculate
(
const typename CloudType::parcelType& p,
const typename CloudType::parcelType::trackingData& td,
const scalar dt,
const scalar age,
const scalar mass0,
const scalar mass,
const scalar T,

View File

@ -60,7 +60,8 @@ Foam::NoDevolatilisation<CloudType>::~NoDevolatilisation()
template<class CloudType>
void Foam::NoDevolatilisation<CloudType>::calculate
(
const scalar,
const typename CloudType::parcelType&,
const typename CloudType::parcelType::trackingData&,
const scalar,
const scalar,
const scalar,

View File

@ -82,8 +82,9 @@ public:
//- Update model
virtual void calculate
(
const typename CloudType::parcelType& p,
const typename CloudType::parcelType::trackingData& td,
const scalar dt,
const scalar age,
const scalar mass0,
const scalar mass,
const scalar T,

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -82,8 +82,9 @@ Foam::SingleKineticRateDevolatilisation<CloudType>::
template<class CloudType>
void Foam::SingleKineticRateDevolatilisation<CloudType>::calculate
(
const typename CloudType::parcelType& p,
const typename CloudType::parcelType::trackingData& td,
const scalar dt,
const scalar age,
const scalar mass0,
const scalar mass,
const scalar T,

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -214,8 +214,9 @@ public:
//- Update model
virtual void calculate
(
const typename CloudType::parcelType& p,
const typename CloudType::parcelType::trackingData& td,
const scalar dt,
const scalar age,
const scalar mass0,
const scalar mass,
const scalar T,