basicSpecieMixture::index(const volScalarField& Yi) const: Added support for multiphase

Patch contributed by Institute of Fluid Dynamics,
Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
This commit is contained in:
Henry Weller
2023-03-06 12:20:20 +00:00
parent 0cfd98cccc
commit 03cafc63ae

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -124,7 +124,7 @@ inline Foam::label Foam::basicSpecieMixture::index
const volScalarField& Yi const volScalarField& Yi
) const ) const
{ {
return species_[Yi.name()]; return species_[Yi.member()];
} }