multiphaseEuler: Uniquely name fields to prevent duplicate registration
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2013-2023 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2013-2024 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -154,7 +154,7 @@ void Foam::phaseSystem::solve(const PtrList<volScalarField>& rAs)
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"Sp",
|
||||
IOobject::groupName("Sp", phase.name()),
|
||||
mesh_.time().name(),
|
||||
mesh_
|
||||
),
|
||||
@ -168,7 +168,7 @@ void Foam::phaseSystem::solve(const PtrList<volScalarField>& rAs)
|
||||
phasei,
|
||||
new volScalarField::Internal
|
||||
(
|
||||
"Su",
|
||||
IOobject::groupName("Su", phase.name()),
|
||||
min(alpha.v(), scalar(1))
|
||||
*fvc::div(fvc::absolute(phi_, phase.U()))->v()
|
||||
)
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2015-2023 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2015-2024 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -708,7 +708,7 @@ void Foam::MomentumTransferPhaseSystem<BasePhaseSystem>::invADVs
|
||||
addField
|
||||
(
|
||||
i,
|
||||
"HVm",
|
||||
IOobject::groupName("HVm", phase.name()),
|
||||
VmPhase*HDUDts[i],
|
||||
HVms
|
||||
);
|
||||
@ -726,7 +726,7 @@ void Foam::MomentumTransferPhaseSystem<BasePhaseSystem>::invADVs
|
||||
addField
|
||||
(
|
||||
i,
|
||||
"HVm",
|
||||
IOobject::groupName("HVm", phase.name()),
|
||||
-VmPhase*HDUDts[j],
|
||||
HVms
|
||||
);
|
||||
@ -887,7 +887,7 @@ Foam::MomentumTransferPhaseSystem<BasePhaseSystem>::invADVfs
|
||||
addField
|
||||
(
|
||||
i,
|
||||
"HVmf",
|
||||
IOobject::groupName("HVmf", phase.name()),
|
||||
VmPhasef
|
||||
*byDt
|
||||
(
|
||||
@ -911,7 +911,7 @@ Foam::MomentumTransferPhaseSystem<BasePhaseSystem>::invADVfs
|
||||
addField
|
||||
(
|
||||
i,
|
||||
"HVmf",
|
||||
IOobject::groupName("HVmf", phase.name()),
|
||||
-VmPhasef
|
||||
*byDt
|
||||
(
|
||||
@ -1174,7 +1174,7 @@ void Foam::MomentumTransferPhaseSystem<BasePhaseSystem>::dragCorrs
|
||||
addField
|
||||
(
|
||||
i,
|
||||
"dragCorr",
|
||||
IOobject::groupName("dragCorr", phase.name()),
|
||||
K1*(j == -1 ? -Uphis[i] : (Uphis[j] - Uphis[i])),
|
||||
dragCorrs
|
||||
);
|
||||
@ -1182,7 +1182,7 @@ void Foam::MomentumTransferPhaseSystem<BasePhaseSystem>::dragCorrs
|
||||
addField
|
||||
(
|
||||
i,
|
||||
"dragCorrf",
|
||||
IOobject::groupName("dragCorrf", phase.name()),
|
||||
fvc::interpolate(K1)
|
||||
*(j == -1 ? -phase.phi() : (otherPhase.phi() - phase.phi())),
|
||||
dragCorrfs
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2017-2023 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2017-2024 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -843,7 +843,12 @@ Foam::diameterModels::populationBalanceModel::populationBalanceModel
|
||||
i,
|
||||
new volScalarField
|
||||
(
|
||||
IOobject("Su", fluid_.time().name(), mesh_),
|
||||
IOobject
|
||||
(
|
||||
IOobject::groupName("Su" + Foam::name(i), this->name()),
|
||||
fluid_.time().name(),
|
||||
mesh_
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar(inv(dimTime), 0)
|
||||
)
|
||||
@ -854,7 +859,12 @@ Foam::diameterModels::populationBalanceModel::populationBalanceModel
|
||||
i,
|
||||
new volScalarField
|
||||
(
|
||||
IOobject("Sp", fluid_.time().name(), mesh_),
|
||||
IOobject
|
||||
(
|
||||
IOobject::groupName("Sp" + Foam::name(i), this->name()),
|
||||
fluid_.time().name(),
|
||||
mesh_
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar(inv(dimTime), 0)
|
||||
)
|
||||
@ -871,7 +881,7 @@ Foam::diameterModels::populationBalanceModel::populationBalanceModel
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"coalescenceRate",
|
||||
IOobject::groupName("coalescenceRate", this->name()),
|
||||
mesh_.time().name(),
|
||||
mesh_
|
||||
),
|
||||
@ -897,7 +907,7 @@ Foam::diameterModels::populationBalanceModel::populationBalanceModel
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"breakupRate",
|
||||
IOobject::groupName("breakupRate", this->name()),
|
||||
fluid_.time().name(),
|
||||
mesh_
|
||||
),
|
||||
@ -915,7 +925,7 @@ Foam::diameterModels::populationBalanceModel::populationBalanceModel
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"binaryBreakupRate",
|
||||
IOobject::groupName("binaryBreakupRate", this->name()),
|
||||
fluid_.time().name(),
|
||||
mesh_
|
||||
),
|
||||
@ -951,7 +961,7 @@ Foam::diameterModels::populationBalanceModel::populationBalanceModel
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"driftRate",
|
||||
IOobject::groupName("driftRate", this->name()),
|
||||
fluid_.time().name(),
|
||||
mesh_
|
||||
),
|
||||
@ -969,7 +979,7 @@ Foam::diameterModels::populationBalanceModel::populationBalanceModel
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"nucleationRate",
|
||||
IOobject::groupName("nucleationRate", this->name()),
|
||||
fluid_.time().name(),
|
||||
mesh_
|
||||
),
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2015-2023 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2015-2024 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -74,8 +74,7 @@ Foam::wallDist::wallDist(const fvMesh& mesh, const word& patchTypeName)
|
||||
(
|
||||
patchDistMethod::New
|
||||
(
|
||||
static_cast<const fvSchemes&>(mesh)
|
||||
.subDict(patchTypeName_ & "Dist"),
|
||||
mesh.schemes().subDict(patchTypeName_ & "Dist"),
|
||||
mesh,
|
||||
patchIndices_
|
||||
)
|
||||
@ -94,7 +93,9 @@ Foam::wallDist::wallDist(const fvMesh& mesh, const word& patchTypeName)
|
||||
),
|
||||
nRequired_
|
||||
(
|
||||
static_cast<const fvSchemes&>(mesh).subDict(patchTypeName_ & "Dist")
|
||||
mesh
|
||||
.schemes()
|
||||
.subDict(patchTypeName_ & "Dist")
|
||||
.lookupOrDefault<Switch>("nRequired", false)
|
||||
)
|
||||
{
|
||||
@ -124,8 +125,7 @@ Foam::wallDist::wallDist
|
||||
(
|
||||
patchDistMethod::New
|
||||
(
|
||||
static_cast<const fvSchemes&>(mesh)
|
||||
.subDict(patchTypeName_ & "Dist"),
|
||||
mesh.schemes().subDict(patchTypeName_ & "Dist"),
|
||||
mesh,
|
||||
patchIndices_
|
||||
)
|
||||
@ -144,7 +144,9 @@ Foam::wallDist::wallDist
|
||||
),
|
||||
nRequired_
|
||||
(
|
||||
static_cast<const fvSchemes&>(mesh).subDict(patchTypeName_ & "Dist")
|
||||
mesh
|
||||
.schemes()
|
||||
.subDict(patchTypeName_ & "Dist")
|
||||
.lookupOrDefault<Switch>("nRequired", false)
|
||||
)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user