multiphaseEulerFoam: Use phaseSystem::propertiesName
This commit is contained in:
@ -82,7 +82,7 @@ Foam::functionObjects::phaseForces::phaseForces
|
||||
IOobject::groupName("alpha", dict.lookup("phase"))
|
||||
)
|
||||
),
|
||||
fluid_(mesh_.lookupObject<phaseSystem>("phaseProperties"))
|
||||
fluid_(mesh_.lookupObject<phaseSystem>(phaseSystem::propertiesName))
|
||||
{
|
||||
read(dict);
|
||||
|
||||
|
||||
@ -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()
|
||||
)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2014-2021 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2014-2022 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -143,7 +143,7 @@ void Foam::JohnsonJacksonParticleSlipFvPatchVectorField::updateCoeffs()
|
||||
|
||||
// lookup the fluid model and the phase
|
||||
const phaseSystem& fluid =
|
||||
db().lookupObject<phaseSystem>("phaseProperties");
|
||||
db().lookupObject<phaseSystem>(phaseSystem::propertiesName);
|
||||
|
||||
const phaseModel& phase
|
||||
(
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2014-2021 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2014-2022 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -163,7 +163,7 @@ void Foam::JohnsonJacksonParticleThetaFvPatchScalarField::updateCoeffs()
|
||||
|
||||
// lookup the fluid model and the phase
|
||||
const phaseSystem& fluid =
|
||||
db().lookupObject<phaseSystem>("phaseProperties");
|
||||
db().lookupObject<phaseSystem>(phaseSystem::propertiesName);
|
||||
|
||||
const phaseModel& phase
|
||||
(
|
||||
|
||||
@ -159,7 +159,7 @@ alphatPhaseJayatillekeWallFunctionFvPatchScalarField::calcAlphat
|
||||
{
|
||||
// Lookup the fluid model
|
||||
const phaseSystem& fluid =
|
||||
db().lookupObject<phaseSystem>("phaseProperties");
|
||||
db().lookupObject<phaseSystem>(phaseSystem::propertiesName);
|
||||
|
||||
const phaseModel& phase
|
||||
(
|
||||
|
||||
@ -283,7 +283,7 @@ void alphatWallBoilingWallFunctionFvPatchScalarField::updateCoeffs()
|
||||
|
||||
// Lookup the fluid model
|
||||
const phaseSystem& fluid =
|
||||
db().lookupObject<phaseSystem>("phaseProperties");
|
||||
db().lookupObject<phaseSystem>(phaseSystem::propertiesName);
|
||||
|
||||
const word volatileSpecie(fluid.lookupOrDefault<word>("volatile", "none"));
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2015-2021 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2015-2022 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -104,9 +104,7 @@ void Foam::fixedMultiPhaseHeatFluxFvPatchScalarField::updateCoeffs()
|
||||
|
||||
// Lookup the fluid model
|
||||
const phaseSystem& fluid =
|
||||
(
|
||||
db().lookupObject<phaseSystem>("phaseProperties")
|
||||
);
|
||||
db().lookupObject<phaseSystem>(phaseSystem::propertiesName);
|
||||
|
||||
const scalarField& Tp = *this;
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2015-2021 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2015-2022 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -368,7 +368,7 @@ Foam::phaseSystem::phaseSystem
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"phaseProperties",
|
||||
propertiesName,
|
||||
mesh.time().constant(),
|
||||
mesh,
|
||||
IOobject::MUST_READ_IF_MODIFIED,
|
||||
|
||||
Reference in New Issue
Block a user