From 18504eef627e1de34c76bd9cb8ee29683f3c775c Mon Sep 17 00:00:00 2001 From: Will Bainbridge Date: Tue, 12 Mar 2024 11:00:50 +0000 Subject: [PATCH] phaseTransferModels::reactionDriven: Corrected access to species names --- .../phaseTransferModels/reactionDriven/reactionDriven.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/modules/multiphaseEuler/interfacialModels/phaseTransferModels/reactionDriven/reactionDriven.C b/applications/modules/multiphaseEuler/interfacialModels/phaseTransferModels/reactionDriven/reactionDriven.C index 137f2ab6d2..b9b50be4d5 100644 --- a/applications/modules/multiphaseEuler/interfacialModels/phaseTransferModels/reactionDriven/reactionDriven.C +++ b/applications/modules/multiphaseEuler/interfacialModels/phaseTransferModels/reactionDriven/reactionDriven.C @@ -108,14 +108,14 @@ Foam::phaseTransferModels::reactionDriven::dmidtf() const { volScalarField& Y1 = const_cast(phase1.Y(species1_[i])); - result.set(species_[i], (- phase1*phase1.R(Y1) & Y1).ptr()); + result.set(species1_[i], (- phase1*phase1.R(Y1) & Y1).ptr()); } forAll(species2_, i) { volScalarField& Y2 = const_cast(phase2.Y(species2_[i])); - result.set(species_[i], (phase2*phase2.R(Y2) & Y2).ptr()); + result.set(species2_[i], (phase2*phase2.R(Y2) & Y2).ptr()); } return result;