From 03cafc63aeb050be2c8474f29cd1621c8e5393e5 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Mon, 6 Mar 2023 12:20:20 +0000 Subject: [PATCH] basicSpecieMixture::index(const volScalarField& Yi) const: Added support for multiphase Patch contributed by Institute of Fluid Dynamics, Helmholtz-Zentrum Dresden - Rossendorf (HZDR) --- .../mixtures/basicSpecieMixture/basicSpecieMixtureI.H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/thermophysicalModels/multicomponentThermo/mixtures/basicSpecieMixture/basicSpecieMixtureI.H b/src/thermophysicalModels/multicomponentThermo/mixtures/basicSpecieMixture/basicSpecieMixtureI.H index 16b6efa770..58bd99e3d4 100644 --- a/src/thermophysicalModels/multicomponentThermo/mixtures/basicSpecieMixture/basicSpecieMixtureI.H +++ b/src/thermophysicalModels/multicomponentThermo/mixtures/basicSpecieMixture/basicSpecieMixtureI.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -124,7 +124,7 @@ inline Foam::label Foam::basicSpecieMixture::index const volScalarField& Yi ) const { - return species_[Yi.name()]; + return species_[Yi.member()]; }