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