multiphaseEulerFoam: Use phaseSystem::propertiesName

This commit is contained in:
Will Bainbridge
2022-01-13 09:19:38 +00:00
parent b58e1f5d5a
commit 30c877a7ab
8 changed files with 16 additions and 15 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2020-2022 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -48,7 +48,10 @@ Foam::functionObjects::phaseMap::phaseMap
)
:
fvMeshFunctionObject(name, runTime, dict),
phases_(mesh_.lookupObject<phaseSystem>("phaseProperties").phases())
phases_
(
mesh_.lookupObject<phaseSystem>(phaseSystem::propertiesName).phases()
)
{}