From 45c3ba0e8e60d51a27646d1c848b9c0ec1c22d6d Mon Sep 17 00:00:00 2001 From: sergio Date: Tue, 14 Jun 2022 13:49:20 +0100 Subject: [PATCH] ENH: phaseSystemModels: new namespaces for various submodels Co-authored-by: Kutalmis Bercin --- .../icoReactingMultiphaseInterFoam/YEqns.H | 2 +- .../createFields.H | 14 +- .../field/wallHeatFlux/wallHeatFlux.C | 16 +- .../multiphaseSystem/Make/files | 3 +- .../alphaContactAngleFvPatchScalarField.C | 4 + .../alphaContactAngleFvPatchScalarField.H | 8 +- .../constantDiameter/constantDiameter.C | 9 +- .../constantDiameter/constantDiameter.H | 11 +- .../diameterModel/diameterModel.C | 10 +- .../diameterModel/diameterModel.H | 11 +- .../isothermalDiameter/isothermalDiameter.C | 9 +- .../isothermalDiameter/isothermalDiameter.H | 11 +- .../dragModels/Ergun/Ergun.C | 10 +- .../dragModels/Ergun/Ergun.H | 10 +- .../dragModels/Gibilaro/Gibilaro.C | 10 +- .../dragModels/Gibilaro/Gibilaro.H | 10 +- .../GidaspowErgunWenYu/GidaspowErgunWenYu.C | 11 +- .../GidaspowErgunWenYu/GidaspowErgunWenYu.H | 10 +- .../GidaspowSchillerNaumann.C | 13 +- .../GidaspowSchillerNaumann.H | 10 +- .../SchillerNaumann/SchillerNaumann.C | 11 +- .../SchillerNaumann/SchillerNaumann.H | 10 +- .../dragModels/SyamlalOBrien/SyamlalOBrien.C | 11 +- .../dragModels/SyamlalOBrien/SyamlalOBrien.H | 10 +- .../dragModels/WenYu/WenYu.C | 10 +- .../dragModels/WenYu/WenYu.H | 10 +- .../dragModels/blended/blended.C | 9 +- .../dragModels/blended/blended.H | 11 +- .../dragModels/dragModel/dragModel.C | 10 +- .../dragModels/dragModel/dragModel.H | 10 +- .../dragModels/interface/interface.C | 9 +- .../dragModels/interface/interface.H | 10 +- .../RanzMarshall/RanzMarshall.C | 11 +- .../RanzMarshall/RanzMarshall.H | 10 +- .../heatTransferModel/heatTransferModel.C | 10 +- .../heatTransferModel/heatTransferModel.H | 11 +- .../multiphaseSystem/multiphaseSystem.C | 24 +- .../multiphaseSystem/multiphaseSystem.H | 13 +- .../multiphaseSystem/phaseModel/phaseModel.C | 3 +- .../multiphaseSystem/phaseModel/phaseModel.H | 10 +- .../compressibleMultiPhaseTurbulenceModels.C | 4 +- .../InterfaceCompositionModel.C | 4 +- .../InterfaceCompositionModel.H | 6 +- .../multiphaseInter/phasesSystem/Make/files | 2 +- .../MassTransferPhaseSystem.C | 4 +- .../MassTransferPhaseSystem.H | 12 +- .../interfaceCompositionModel.C | 40 +++- .../interfaceCompositionModel.H | 10 +- .../multiphaseInterSystem.C} | 219 ++++++++++++------ .../multiphaseInterSystem.H} | 82 +++++-- .../multiphaseInterSystemTemplates.H} | 23 +- .../multiphaseSystem/multiphaseSystem.C | 64 ++--- .../multiphaseSystem/multiphaseSystem.H | 10 +- .../multiphaseSystem/multiphaseSystemNew.C | 7 +- .../multiphaseSystem/multiphaseSystems.C | 7 +- .../MovingPhaseModel/MovingPhaseModel.C | 14 +- .../MovingPhaseModel/MovingPhaseModel.H | 4 +- .../MultiComponentPhaseModel.C | 16 +- .../MultiComponentPhaseModel.H | 4 +- .../PurePhaseModel/PurePhaseModel.C | 6 +- .../PurePhaseModel/PurePhaseModel.H | 6 +- .../StaticPhaseModel/StaticPhaseModel.C | 54 ++--- .../StaticPhaseModel/StaticPhaseModel.H | 4 +- .../phaseModel/phaseModel/makePhaseTypes.H | 22 +- .../phaseModel/phaseModel/phaseModel.C | 93 ++++---- .../phaseModel/phaseModel/phaseModel.H | 27 ++- .../phaseModel/phaseModel/phaseModels.C | 10 +- .../phasesSystem/phasePair/orderedPhasePair.C | 10 +- .../phasesSystem/phasePair/orderedPhasePair.H | 10 +- .../phasesSystem/phasePair/phasePair.C | 10 +- .../phasesSystem/phasePair/phasePair.H | 18 +- .../phasesSystem/phasePair/phasePairI.H | 6 +- .../alphaContactAngleFvPatchScalarField.C | 4 + .../alphaContactAngleFvPatchScalarField.H | 7 +- .../constantSurfaceTensionCoefficient.C | 16 +- .../constantSurfaceTensionCoefficient.H | 4 + .../surfaceTensionModel/surfaceTensionModel.C | 16 +- .../surfaceTensionModel/surfaceTensionModel.H | 6 +- .../multiphaseSystem/multiphaseSystem.C | 22 +- .../multiphaseSystem/phasePair/phasePair.C | 5 +- .../phaseSystem/phaseSystem.C | 10 +- .../phaseSystem/phaseSystem.H | 8 +- .../populationBalanceModel.C | 4 +- 83 files changed, 860 insertions(+), 455 deletions(-) rename src/phaseSystemModels/multiphaseEuler/multiphaseSystem/{ => derivedFvPatchFields}/alphaContactAngle/alphaContactAngleFvPatchScalarField.C (97%) rename src/phaseSystemModels/multiphaseEuler/multiphaseSystem/{ => derivedFvPatchFields}/alphaContactAngle/alphaContactAngleFvPatchScalarField.H (96%) rename src/phaseSystemModels/multiphaseInter/phasesSystem/{phaseSystem/phaseSystem.C => multiphaseInterSystem/multiphaseInterSystem.C} (77%) rename src/phaseSystemModels/multiphaseInter/phasesSystem/{phaseSystem/phaseSystem.H => multiphaseInterSystem/multiphaseInterSystem.H} (88%) rename src/phaseSystemModels/multiphaseInter/phasesSystem/{phaseSystem/phaseSystemTemplates.H => multiphaseInterSystem/multiphaseInterSystemTemplates.H} (88%) diff --git a/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/YEqns.H b/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/YEqns.H index 31d10788bc..912b91114d 100644 --- a/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/YEqns.H +++ b/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/YEqns.H @@ -1,5 +1,5 @@ { - for (phaseModel& phase : fluid.phases()) + for (multiphaseInter::phaseModel& phase : fluid.phases()) { PtrList& Y = phase.Y(); diff --git a/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/createFields.H b/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/createFields.H index cd9a508390..0e51602d3c 100644 --- a/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/createFields.H +++ b/applications/solvers/multiphase/icoReactingMultiphaseInterFoam/createFields.H @@ -63,9 +63,10 @@ Info<< "Creating multiphaseSystem\n" << endl; - autoPtr fluidPtr = multiphaseSystem::New(mesh); + autoPtr fluidPtr = + multiphaseInter::multiphaseSystem::New(mesh); - multiphaseSystem& fluid = fluidPtr(); + multiphaseInter::multiphaseSystem& fluid = fluidPtr(); if (!fluid.incompressible()) { @@ -118,9 +119,12 @@ surfaceScalarField& rhoPhi = fluid.rhoPhi(); // Construct incompressible turbulence model - autoPtr> turbulence + autoPtr + < + CompressibleTurbulenceModel + > turbulence ( - CompressibleTurbulenceModel::New + CompressibleTurbulenceModel::New ( rho, U, @@ -129,6 +133,8 @@ ) ); + fluid.setTurbulence(turbulence()); + // Creating radiation model autoPtr radiation ( diff --git a/src/functionObjects/field/wallHeatFlux/wallHeatFlux.C b/src/functionObjects/field/wallHeatFlux/wallHeatFlux.C index c7dcf4a887..c8e5ed9b86 100644 --- a/src/functionObjects/field/wallHeatFlux/wallHeatFlux.C +++ b/src/functionObjects/field/wallHeatFlux/wallHeatFlux.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2016-2017 OpenFOAM Foundation - Copyright (C) 2016-2020 OpenCFD Ltd. + Copyright (C) 2016-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -34,6 +34,7 @@ License #include "wallPolyPatch.H" #include "turbulentFluidThermoModel.H" #include "addToRunTimeSelectionTable.H" +#include "multiphaseInterSystem.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // @@ -236,6 +237,19 @@ bool Foam::functionObjects::wallHeatFlux::execute() calcHeatFlux(thermo.alpha(), thermo.he(), wallHeatFlux); } + else if + ( + foundObject + (multiphaseInterSystem::phasePropertiesName) + ) + { + const auto& thermo = lookupObject + ( + multiphaseInterSystem::phasePropertiesName + ); + + calcHeatFlux(thermo.kappaEff()(), thermo.T(), wallHeatFlux); + } else { FatalErrorInFunction diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/Make/files b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/Make/files index 159e04c950..2ddef9fb4c 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/Make/files +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/Make/files @@ -7,7 +7,6 @@ $(diameter)/diameterModel/diameterModel.C $(diameter)/constantDiameter/constantDiameter.C $(diameter)/isothermalDiameter/isothermalDiameter.C - drag = interfacialModels/dragModels $(drag)/dragModel/dragModel.C $(drag)/Ergun/Ergun.C @@ -24,7 +23,7 @@ heatTransfer = interfacialModels/heatTransferModels $(heatTransfer)/heatTransferModel/heatTransferModel.C $(heatTransfer)/RanzMarshall/RanzMarshall.C +derivedFvPatchFields/alphaContactAngle/alphaContactAngleFvPatchScalarField.C -alphaContactAngle/alphaContactAngleFvPatchScalarField.C LIB = $(FOAM_LIBBIN)/libmultiphaseSystem diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/alphaContactAngle/alphaContactAngleFvPatchScalarField.C b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/derivedFvPatchFields/alphaContactAngle/alphaContactAngleFvPatchScalarField.C similarity index 97% rename from src/phaseSystemModels/multiphaseEuler/multiphaseSystem/alphaContactAngle/alphaContactAngleFvPatchScalarField.C rename to src/phaseSystemModels/multiphaseEuler/multiphaseSystem/derivedFvPatchFields/alphaContactAngle/alphaContactAngleFvPatchScalarField.C index 77b08137bc..b1b8750625 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/alphaContactAngle/alphaContactAngleFvPatchScalarField.C +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/derivedFvPatchFields/alphaContactAngle/alphaContactAngleFvPatchScalarField.C @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011 OpenFOAM Foundation + Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -33,6 +34,8 @@ License namespace Foam { +namespace multiphaseEuler +{ alphaContactAngleFvPatchScalarField::interfaceThetaProps::interfaceThetaProps ( @@ -142,6 +145,7 @@ makePatchTypeField // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +} // End namespace multiphaseEuler } // End namespace Foam // ************************************************************************* // diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/alphaContactAngle/alphaContactAngleFvPatchScalarField.H b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/derivedFvPatchFields/alphaContactAngle/alphaContactAngleFvPatchScalarField.H similarity index 96% rename from src/phaseSystemModels/multiphaseEuler/multiphaseSystem/alphaContactAngle/alphaContactAngleFvPatchScalarField.H rename to src/phaseSystemModels/multiphaseEuler/multiphaseSystem/derivedFvPatchFields/alphaContactAngle/alphaContactAngleFvPatchScalarField.H index 929c8ab78a..fd2727be90 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/alphaContactAngle/alphaContactAngleFvPatchScalarField.H +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/derivedFvPatchFields/alphaContactAngle/alphaContactAngleFvPatchScalarField.H @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2012 OpenFOAM Foundation + Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -35,8 +36,8 @@ SourceFiles \*---------------------------------------------------------------------------*/ -#ifndef alphaContactAngleFvPatchScalarField_H -#define alphaContactAngleFvPatchScalarField_H +#ifndef Foam_multiphaseEuler_alphaContactAngleFvPatchScalarField_H +#define Foam_multiphaseEuler_alphaContactAngleFvPatchScalarField_H #include "zeroGradientFvPatchFields.H" #include "multiphaseSystem.H" @@ -45,6 +46,8 @@ SourceFiles namespace Foam { +namespace multiphaseEuler +{ /*---------------------------------------------------------------------------*\ Class alphaContactAngleFvPatch Declaration @@ -208,6 +211,7 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +} // End namespace multiphaseEuler } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/diameterModels/constantDiameter/constantDiameter.C b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/diameterModels/constantDiameter/constantDiameter.C index f1136346d6..d3667c5204 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/diameterModels/constantDiameter/constantDiameter.C +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/diameterModels/constantDiameter/constantDiameter.C @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2015 OpenFOAM Foundation + Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -32,6 +33,8 @@ License namespace Foam { +namespace multiphaseEuler +{ namespace diameterModels { defineTypeNameAndDebug(constant, 0); @@ -44,11 +47,12 @@ namespace diameterModels ); } } +} // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -Foam::diameterModels::constant::constant +Foam::multiphaseEuler::diameterModels::constant::constant ( const dictionary& dict, const phaseModel& phase @@ -61,7 +65,8 @@ Foam::diameterModels::constant::constant // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -Foam::tmp Foam::diameterModels::constant::d() const +Foam::tmp +Foam::multiphaseEuler::diameterModels::constant::d() const { return tmp ( diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/diameterModels/constantDiameter/constantDiameter.H b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/diameterModels/constantDiameter/constantDiameter.H index 27cb0482ee..bd7fefc05b 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/diameterModels/constantDiameter/constantDiameter.H +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/diameterModels/constantDiameter/constantDiameter.H @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2013 OpenFOAM Foundation - Copyright (C) 2020 OpenCFD Ltd. + Copyright (C) 2020-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -25,7 +25,7 @@ License along with OpenFOAM. If not, see . Class - Foam::diameterModels::constant + Foam::multiphaseEuler::diameterModels::constant Description Constant dispersed-phase particle diameter model. @@ -35,8 +35,8 @@ SourceFiles \*---------------------------------------------------------------------------*/ -#ifndef diameterModels_constant_H -#define diameterModels_constant_H +#ifndef Foam_multiphaseEuler_diameterModels_constant_H +#define Foam_multiphaseEuler_diameterModels_constant_H #include "diameterModel.H" @@ -44,6 +44,8 @@ SourceFiles namespace Foam { +namespace multiphaseEuler +{ namespace diameterModels { @@ -90,6 +92,7 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace diameterModels +} // End namespace multiphaseEuler } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/diameterModels/diameterModel/diameterModel.C b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/diameterModels/diameterModel/diameterModel.C index da3d0e8f8d..976ec0569b 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/diameterModels/diameterModel/diameterModel.C +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/diameterModels/diameterModel/diameterModel.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2013 OpenFOAM Foundation - Copyright (C) 2019-2021 OpenCFD Ltd. + Copyright (C) 2019-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -31,15 +31,18 @@ License // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // namespace Foam +{ +namespace multiphaseEuler { defineTypeNameAndDebug(diameterModel, 0); defineRunTimeSelectionTable(diameterModel, dictionary); } +} // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -Foam::diameterModel::diameterModel +Foam::multiphaseEuler::diameterModel::diameterModel ( const dictionary& dict, const phaseModel& phase @@ -52,7 +55,8 @@ Foam::diameterModel::diameterModel // * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * // -Foam::autoPtr Foam::diameterModel::New +Foam::autoPtr +Foam::multiphaseEuler::diameterModel::New ( const dictionary& dict, const phaseModel& phase diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/diameterModels/diameterModel/diameterModel.H b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/diameterModels/diameterModel/diameterModel.H index cc3c945965..485cf71021 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/diameterModels/diameterModel/diameterModel.H +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/diameterModels/diameterModel/diameterModel.H @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2013 OpenFOAM Foundation - Copyright (C) 2020 OpenCFD Ltd. + Copyright (C) 2020-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -25,7 +25,7 @@ License along with OpenFOAM. If not, see . Class - Foam::diameterModel + Foam::multiphaseEuler::diameterModel Description Abstract base-class for dispersed-phase particle diameter models. @@ -35,8 +35,8 @@ SourceFiles \*---------------------------------------------------------------------------*/ -#ifndef diameterModel_H -#define diameterModel_H +#ifndef Foam_multiphaseEuler_diameterModel_H +#define Foam_multiphaseEuler_diameterModel_H // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -46,6 +46,8 @@ SourceFiles namespace Foam { +namespace multiphaseEuler +{ /*---------------------------------------------------------------------------*\ Class diameterModel Declaration @@ -115,6 +117,7 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace Foam +} // End namespace multiphaseEuler // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/diameterModels/isothermalDiameter/isothermalDiameter.C b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/diameterModels/isothermalDiameter/isothermalDiameter.C index cf2c79d16b..fb455ea84b 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/diameterModels/isothermalDiameter/isothermalDiameter.C +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/diameterModels/isothermalDiameter/isothermalDiameter.C @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2015 OpenFOAM Foundation + Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -32,6 +33,8 @@ License namespace Foam { +namespace multiphaseEuler +{ namespace diameterModels { defineTypeNameAndDebug(isothermal, 0); @@ -44,11 +47,12 @@ namespace diameterModels ); } } +} // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -Foam::diameterModels::isothermal::isothermal +Foam::multiphaseEuler::diameterModels::isothermal::isothermal ( const dictionary& dict, const phaseModel& phase @@ -62,7 +66,8 @@ Foam::diameterModels::isothermal::isothermal // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -Foam::tmp Foam::diameterModels::isothermal::d() const +Foam::tmp +Foam::multiphaseEuler::diameterModels::isothermal::d() const { const volScalarField& p = phase_.U().db().lookupObject ( diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/diameterModels/isothermalDiameter/isothermalDiameter.H b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/diameterModels/isothermalDiameter/isothermalDiameter.H index b42ef69a89..0a1b8e1827 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/diameterModels/isothermalDiameter/isothermalDiameter.H +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/diameterModels/isothermalDiameter/isothermalDiameter.H @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2013 OpenFOAM Foundation - Copyright (C) 2020 OpenCFD Ltd. + Copyright (C) 2020-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -25,7 +25,7 @@ License along with OpenFOAM. If not, see . Class - Foam::diameterModels::isothermal + Foam::multiphaseEuler::diameterModels::isothermal Description Isothermal dispersed-phase particle diameter model. @@ -35,8 +35,8 @@ SourceFiles \*---------------------------------------------------------------------------*/ -#ifndef diameterModels_isothermal_H -#define diameterModels_isothermal_H +#ifndef Foam_multiphaseEuler_diameterModels_isothermal_H +#define Foam_multiphaseEuler_diameterModels_isothermal_H #include "diameterModel.H" @@ -44,6 +44,8 @@ SourceFiles namespace Foam { +namespace multiphaseEuler +{ namespace diameterModels { @@ -93,6 +95,7 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace diameterModels +} // End namespace multiphaseEuler } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/Ergun/Ergun.C b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/Ergun/Ergun.C index b8efba99c6..2253ff6af6 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/Ergun/Ergun.C +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/Ergun/Ergun.C @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2012 OpenFOAM Foundation + Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -32,6 +33,8 @@ License namespace Foam { +namespace multiphaseEuler +{ namespace dragModels { defineTypeNameAndDebug(Ergun, 0); @@ -44,11 +47,12 @@ namespace dragModels ); } } +} // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -Foam::dragModels::Ergun::Ergun +Foam::multiphaseEuler::dragModels::Ergun::Ergun ( const dictionary& interfaceDict, const phaseModel& phase1, @@ -61,13 +65,13 @@ Foam::dragModels::Ergun::Ergun // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // -Foam::dragModels::Ergun::~Ergun() +Foam::multiphaseEuler::dragModels::Ergun::~Ergun() {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -Foam::tmp Foam::dragModels::Ergun::K +Foam::tmp Foam::multiphaseEuler::dragModels::Ergun::K ( const volScalarField& Ur ) const diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/Ergun/Ergun.H b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/Ergun/Ergun.H index 49db4bb014..a23dfe175b 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/Ergun/Ergun.H +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/Ergun/Ergun.H @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011 OpenFOAM Foundation + Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -24,7 +25,7 @@ License along with OpenFOAM. If not, see . Class - Foam::dragModels::Ergun + Foam::multiphaseEuler::dragModels::Ergun Description H, Enwald, E. Peirano, A-E Almstedt @@ -37,8 +38,8 @@ SourceFiles \*---------------------------------------------------------------------------*/ -#ifndef Ergun_H -#define Ergun_H +#ifndef Foam_multiphaseEuler_dragModels_Ergun_H +#define Foam_multiphaseEuler_dragModels_Ergun_H #include "dragModel.H" @@ -46,6 +47,8 @@ SourceFiles namespace Foam { +namespace multiphaseEuler +{ namespace dragModels { @@ -88,6 +91,7 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace dragModels +} // End namespace multiphaseEuler } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/Gibilaro/Gibilaro.C b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/Gibilaro/Gibilaro.C index beaac85a24..4adb0956ac 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/Gibilaro/Gibilaro.C +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/Gibilaro/Gibilaro.C @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2012 OpenFOAM Foundation + Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -32,6 +33,8 @@ License namespace Foam { +namespace multiphaseEuler +{ namespace dragModels { defineTypeNameAndDebug(Gibilaro, 0); @@ -44,11 +47,12 @@ namespace dragModels ); } } +} // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -Foam::dragModels::Gibilaro::Gibilaro +Foam::multiphaseEuler::dragModels::Gibilaro::Gibilaro ( const dictionary& interfaceDict, const phaseModel& phase1, @@ -61,13 +65,13 @@ Foam::dragModels::Gibilaro::Gibilaro // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // -Foam::dragModels::Gibilaro::~Gibilaro() +Foam::multiphaseEuler::dragModels::Gibilaro::~Gibilaro() {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -Foam::tmp Foam::dragModels::Gibilaro::K +Foam::tmp Foam::multiphaseEuler::dragModels::Gibilaro::K ( const volScalarField& Ur ) const diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/Gibilaro/Gibilaro.H b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/Gibilaro/Gibilaro.H index acd0cc6880..135af0f960 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/Gibilaro/Gibilaro.H +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/Gibilaro/Gibilaro.H @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011 OpenFOAM Foundation + Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -24,7 +25,7 @@ License along with OpenFOAM. If not, see . Class - Foam::dragModels::Gibilaro + Foam::multiphaseEuler::dragModels::Gibilaro Description H, Enwald, E. Peirano, A-E Almstedt @@ -37,8 +38,8 @@ SourceFiles \*---------------------------------------------------------------------------*/ -#ifndef Gibilaro_H -#define Gibilaro_H +#ifndef Foam_multiphaseEuler_dragModels_Gibilaro_H +#define Foam_multiphaseEuler_dragModels_Gibilaro_H #include "dragModel.H" @@ -46,6 +47,8 @@ SourceFiles namespace Foam { +namespace multiphaseEuler +{ namespace dragModels { @@ -88,6 +91,7 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace dragModels +} // End namespace multiphaseEuler } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/GidaspowErgunWenYu/GidaspowErgunWenYu.C b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/GidaspowErgunWenYu/GidaspowErgunWenYu.C index fed9000c4d..c1193fdd28 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/GidaspowErgunWenYu/GidaspowErgunWenYu.C +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/GidaspowErgunWenYu/GidaspowErgunWenYu.C @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation + Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -32,6 +33,8 @@ License namespace Foam { +namespace multiphaseEuler +{ namespace dragModels { defineTypeNameAndDebug(GidaspowErgunWenYu, 0); @@ -44,11 +47,12 @@ namespace dragModels ); } } +} // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -Foam::dragModels::GidaspowErgunWenYu::GidaspowErgunWenYu +Foam::multiphaseEuler::dragModels::GidaspowErgunWenYu::GidaspowErgunWenYu ( const dictionary& interfaceDict, const phaseModel& phase1, @@ -61,13 +65,14 @@ Foam::dragModels::GidaspowErgunWenYu::GidaspowErgunWenYu // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // -Foam::dragModels::GidaspowErgunWenYu::~GidaspowErgunWenYu() +Foam::multiphaseEuler::dragModels::GidaspowErgunWenYu::~GidaspowErgunWenYu() {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -Foam::tmp Foam::dragModels::GidaspowErgunWenYu::K +Foam::tmp +Foam::multiphaseEuler::dragModels::GidaspowErgunWenYu::K ( const volScalarField& Ur ) const diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/GidaspowErgunWenYu/GidaspowErgunWenYu.H b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/GidaspowErgunWenYu/GidaspowErgunWenYu.H index 48d2c41203..3f5285a1e4 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/GidaspowErgunWenYu/GidaspowErgunWenYu.H +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/GidaspowErgunWenYu/GidaspowErgunWenYu.H @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011 OpenFOAM Foundation + Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -24,7 +25,7 @@ License along with OpenFOAM. If not, see . Class - Foam::dragModels::GidaspowErgunWenYu + Foam::multiphaseEuler::dragModels::GidaspowErgunWenYu Description D. Gidaspow, Multiphase flow and fluidization, @@ -35,8 +36,8 @@ SourceFiles \*---------------------------------------------------------------------------*/ -#ifndef GidaspowErgunWenYu_H -#define GidaspowErgunWenYu_H +#ifndef Foam_multiphaseEuler_dragModels_GidaspowErgunWenYu_H +#define Foam_multiphaseEuler_dragModels_GidaspowErgunWenYu_H #include "dragModel.H" @@ -44,6 +45,8 @@ SourceFiles namespace Foam { +namespace multiphaseEuler +{ namespace dragModels { @@ -86,6 +89,7 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace dragModels +} // End namespace multiphaseEuler } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/GidaspowSchillerNaumann/GidaspowSchillerNaumann.C b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/GidaspowSchillerNaumann/GidaspowSchillerNaumann.C index a9c20ab921..db2659ade9 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/GidaspowSchillerNaumann/GidaspowSchillerNaumann.C +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/GidaspowSchillerNaumann/GidaspowSchillerNaumann.C @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation + Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -32,6 +33,8 @@ License namespace Foam { +namespace multiphaseEuler +{ namespace dragModels { defineTypeNameAndDebug(GidaspowSchillerNaumann, 0); @@ -44,11 +47,13 @@ namespace dragModels ); } } +} // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -Foam::dragModels::GidaspowSchillerNaumann::GidaspowSchillerNaumann +Foam::multiphaseEuler::dragModels::GidaspowSchillerNaumann:: +GidaspowSchillerNaumann ( const dictionary& interfaceDict, const phaseModel& phase1, @@ -61,13 +66,15 @@ Foam::dragModels::GidaspowSchillerNaumann::GidaspowSchillerNaumann // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // -Foam::dragModels::GidaspowSchillerNaumann::~GidaspowSchillerNaumann() +Foam::multiphaseEuler::dragModels::GidaspowSchillerNaumann:: +~GidaspowSchillerNaumann() {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -Foam::tmp Foam::dragModels::GidaspowSchillerNaumann::K +Foam::tmp +Foam::multiphaseEuler::dragModels::GidaspowSchillerNaumann::K ( const volScalarField& Ur ) const diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/GidaspowSchillerNaumann/GidaspowSchillerNaumann.H b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/GidaspowSchillerNaumann/GidaspowSchillerNaumann.H index 5f3d55ddbc..24af98b750 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/GidaspowSchillerNaumann/GidaspowSchillerNaumann.H +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/GidaspowSchillerNaumann/GidaspowSchillerNaumann.H @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011 OpenFOAM Foundation + Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -24,7 +25,7 @@ License along with OpenFOAM. If not, see . Class - Foam::dragModels::GidaspowSchillerNaumann + Foam::multiphaseEuler::dragModels::GidaspowSchillerNaumann Description H, Enwald, E. Peirano, A-E Almstedt @@ -44,8 +45,8 @@ SourceFiles \*---------------------------------------------------------------------------*/ -#ifndef GidaspowSchillerNaumann_H -#define GidaspowSchillerNaumann_H +#ifndef Foam_multiphaseEuler_dragModels_GidaspowSchillerNaumann_H +#define Foam_multiphaseEuler_dragModels_GidaspowSchillerNaumann_H #include "dragModel.H" @@ -53,6 +54,8 @@ SourceFiles namespace Foam { +namespace multiphaseEuler +{ namespace dragModels { @@ -95,6 +98,7 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace dragModels +} // End namespace multiphaseEuler } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/SchillerNaumann/SchillerNaumann.C b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/SchillerNaumann/SchillerNaumann.C index 09a3545cee..0190f746f8 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/SchillerNaumann/SchillerNaumann.C +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/SchillerNaumann/SchillerNaumann.C @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation + Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -32,6 +33,8 @@ License namespace Foam { +namespace multiphaseEuler +{ namespace dragModels { defineTypeNameAndDebug(SchillerNaumann, 0); @@ -44,11 +47,12 @@ namespace dragModels ); } } +} // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -Foam::dragModels::SchillerNaumann::SchillerNaumann +Foam::multiphaseEuler::dragModels::SchillerNaumann::SchillerNaumann ( const dictionary& interfaceDict, const phaseModel& phase1, @@ -61,13 +65,14 @@ Foam::dragModels::SchillerNaumann::SchillerNaumann // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // -Foam::dragModels::SchillerNaumann::~SchillerNaumann() +Foam::multiphaseEuler::dragModels::SchillerNaumann::~SchillerNaumann() {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -Foam::tmp Foam::dragModels::SchillerNaumann::K +Foam::tmp +Foam::multiphaseEuler::dragModels::SchillerNaumann::K ( const volScalarField& Ur ) const diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/SchillerNaumann/SchillerNaumann.H b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/SchillerNaumann/SchillerNaumann.H index 61859f4070..f11ac06095 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/SchillerNaumann/SchillerNaumann.H +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/SchillerNaumann/SchillerNaumann.H @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011 OpenFOAM Foundation + Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -24,7 +25,7 @@ License along with OpenFOAM. If not, see . Class - Foam::dragModels::SchillerNaumann + Foam::multiphaseEuler::dragModels::SchillerNaumann Description @@ -33,8 +34,8 @@ SourceFiles \*---------------------------------------------------------------------------*/ -#ifndef SchillerNaumann_H -#define SchillerNaumann_H +#ifndef Foam_multiphaseEuler_dragModels_SchillerNaumann_H +#define Foam_multiphaseEuler_dragModels_SchillerNaumann_H #include "dragModel.H" @@ -42,6 +43,8 @@ SourceFiles namespace Foam { +namespace multiphaseEuler +{ namespace dragModels { @@ -84,6 +87,7 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace dragModels +} // End namespace multiphaseEuler } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/SyamlalOBrien/SyamlalOBrien.C b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/SyamlalOBrien/SyamlalOBrien.C index b0646777c1..8c29ad32b1 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/SyamlalOBrien/SyamlalOBrien.C +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/SyamlalOBrien/SyamlalOBrien.C @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation + Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -32,6 +33,8 @@ License namespace Foam { +namespace multiphaseEuler +{ namespace dragModels { defineTypeNameAndDebug(SyamlalOBrien, 0); @@ -44,11 +47,12 @@ namespace dragModels ); } } +} // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -Foam::dragModels::SyamlalOBrien::SyamlalOBrien +Foam::multiphaseEuler::dragModels::SyamlalOBrien::SyamlalOBrien ( const dictionary& interfaceDict, const phaseModel& phase1, @@ -61,13 +65,14 @@ Foam::dragModels::SyamlalOBrien::SyamlalOBrien // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // -Foam::dragModels::SyamlalOBrien::~SyamlalOBrien() +Foam::multiphaseEuler::dragModels::SyamlalOBrien::~SyamlalOBrien() {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -Foam::tmp Foam::dragModels::SyamlalOBrien::K +Foam::tmp +Foam::multiphaseEuler::dragModels::SyamlalOBrien::K ( const volScalarField& Ur ) const diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/SyamlalOBrien/SyamlalOBrien.H b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/SyamlalOBrien/SyamlalOBrien.H index bd4b714c33..34067eb45e 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/SyamlalOBrien/SyamlalOBrien.H +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/SyamlalOBrien/SyamlalOBrien.H @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011 OpenFOAM Foundation + Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -24,7 +25,7 @@ License along with OpenFOAM. If not, see . Class - Foam::dragModels::SyamlalOBrien + Foam::multiphaseEuler::dragModels::SyamlalOBrien Description Syamlal, M., Rogers, W. and O'Brien, T. J. (1993) MFIX documentation, @@ -36,8 +37,8 @@ SourceFiles \*---------------------------------------------------------------------------*/ -#ifndef SyamlalOBrien_H -#define SyamlalOBrien_H +#ifndef Foam_multiphaseEuler_dragModels_SyamlalOBrien_H +#define Foam_multiphaseEuler_dragModels_SyamlalOBrien_H #include "dragModel.H" @@ -45,6 +46,8 @@ SourceFiles namespace Foam { +namespace multiphaseEuler +{ namespace dragModels { @@ -87,6 +90,7 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace dragModels +} // End namespace multiphaseEuler } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/WenYu/WenYu.C b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/WenYu/WenYu.C index 1ba93914a7..4b6722a8e6 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/WenYu/WenYu.C +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/WenYu/WenYu.C @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation + Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -32,6 +33,8 @@ License namespace Foam { +namespace multiphaseEuler +{ namespace dragModels { defineTypeNameAndDebug(WenYu, 0); @@ -44,11 +47,12 @@ namespace dragModels ); } } +} // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -Foam::dragModels::WenYu::WenYu +Foam::multiphaseEuler::dragModels::WenYu::WenYu ( const dictionary& interfaceDict, const phaseModel& phase1, @@ -61,13 +65,13 @@ Foam::dragModels::WenYu::WenYu // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // -Foam::dragModels::WenYu::~WenYu() +Foam::multiphaseEuler::dragModels::WenYu::~WenYu() {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -Foam::tmp Foam::dragModels::WenYu::K +Foam::tmp Foam::multiphaseEuler::dragModels::WenYu::K ( const volScalarField& Ur ) const diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/WenYu/WenYu.H b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/WenYu/WenYu.H index 2b60eeaf5f..a5aa3c3802 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/WenYu/WenYu.H +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/WenYu/WenYu.H @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011 OpenFOAM Foundation + Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -24,7 +25,7 @@ License along with OpenFOAM. If not, see . Class - Foam::dragModels::WenYu + Foam::multiphaseEuler::dragModels::WenYu Description H, Enwald, E. Peirano, A-E Almstedt @@ -47,8 +48,8 @@ SourceFiles \*---------------------------------------------------------------------------*/ -#ifndef WenYu_H -#define WenYu_H +#ifndef Foam_multiphaseEuler_dragModels_WenYu_H +#define Foam_multiphaseEuler_dragModels_WenYu_H #include "dragModel.H" @@ -56,6 +57,8 @@ SourceFiles namespace Foam { +namespace multiphaseEuler +{ namespace dragModels { @@ -98,6 +101,7 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace dragModels +} // End namespace multiphaseEuler } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/blended/blended.C b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/blended/blended.C index 2a96058f9e..c54bf672b8 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/blended/blended.C +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/blended/blended.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011 OpenFOAM Foundation - Copyright (C) 2020 OpenCFD Ltd. + Copyright (C) 2020-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -33,6 +33,8 @@ License namespace Foam { +namespace multiphaseEuler +{ namespace dragModels { defineTypeNameAndDebug(blended, 0); @@ -45,11 +47,12 @@ namespace dragModels ); } } +} // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -Foam::dragModels::blended::blended +Foam::multiphaseEuler::dragModels::blended::blended ( const dictionary& interfaceDict, const phaseModel& phase1, @@ -64,7 +67,7 @@ Foam::dragModels::blended::blended // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -Foam::tmp Foam::dragModels::blended::K +Foam::tmp Foam::multiphaseEuler::dragModels::blended::K ( const volScalarField& Ur ) const diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/blended/blended.H b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/blended/blended.H index 2557bab0e6..aa39a18663 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/blended/blended.H +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/blended/blended.H @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011 OpenFOAM Foundation - Copyright (C) 2020 OpenCFD Ltd. + Copyright (C) 2020-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -25,7 +25,7 @@ License along with OpenFOAM. If not, see . Class - Foam::dragModels::blended + Foam::multiphaseEuler::dragModels::blended Description Blends two drag models based on the phase fractions to handle @@ -36,8 +36,8 @@ SourceFiles \*---------------------------------------------------------------------------*/ -#ifndef blended_H -#define blended_H +#ifndef Foam_multiphaseEuler_dragModels_blended_H +#define Foam_multiphaseEuler_dragModels_blended_H #include "dragModel.H" @@ -45,6 +45,8 @@ SourceFiles namespace Foam { +namespace multiphaseEuler +{ namespace dragModels { @@ -93,6 +95,7 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace dragModels +} // End namespace multiphaseEuler } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/dragModel/dragModel.C b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/dragModel/dragModel.C index 026152379b..29ad59478c 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/dragModel/dragModel.C +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/dragModel/dragModel.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011 OpenFOAM Foundation - Copyright (C) 2019-2021 OpenCFD Ltd. + Copyright (C) 2019-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -31,15 +31,18 @@ License // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // namespace Foam +{ +namespace multiphaseEuler { defineTypeNameAndDebug(dragModel, 0); defineRunTimeSelectionTable(dragModel, dictionary); } +} // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -Foam::dragModel::dragModel +Foam::multiphaseEuler::dragModel::dragModel ( const dictionary& dict, const phaseModel& phase1, @@ -56,7 +59,8 @@ Foam::dragModel::dragModel // * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * // -Foam::autoPtr Foam::dragModel::New +Foam::autoPtr +Foam::multiphaseEuler::dragModel::New ( const dictionary& dict, const phaseModel& phase1, diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/dragModel/dragModel.H b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/dragModel/dragModel.H index a3b2365e5f..54c21a876d 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/dragModel/dragModel.H +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/dragModel/dragModel.H @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2015 OpenFOAM Foundation + Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -24,7 +25,7 @@ License along with OpenFOAM. If not, see . Class - Foam::dragModel + Foam::multiphaseEuler::dragModel Description @@ -33,8 +34,8 @@ SourceFiles \*---------------------------------------------------------------------------*/ -#ifndef dragModel_H -#define dragModel_H +#ifndef Foam_multiphaseEuler_dragModel_H +#define Foam_multiphaseEuler_dragModel_H // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -44,6 +45,8 @@ SourceFiles namespace Foam { +namespace multiphaseEuler +{ /*---------------------------------------------------------------------------*\ Class dragModel Declaration @@ -144,6 +147,7 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +} // End namespace multiphaseEuler } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/interface/interface.C b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/interface/interface.C index f26752e827..24f6c4afb2 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/interface/interface.C +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/interface/interface.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011 OpenFOAM Foundation - Copyright (C) 2020 OpenCFD Ltd. + Copyright (C) 2020-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -33,6 +33,8 @@ License namespace Foam { +namespace multiphaseEuler +{ namespace dragModels { defineTypeNameAndDebug(interface, 0); @@ -45,11 +47,12 @@ namespace dragModels ); } } +} // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -Foam::dragModels::interface::interface +Foam::multiphaseEuler::dragModels::interface::interface ( const dictionary& interfaceDict, const phaseModel& phase1, @@ -62,7 +65,7 @@ Foam::dragModels::interface::interface // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -Foam::tmp Foam::dragModels::interface::K +Foam::tmp Foam::multiphaseEuler::dragModels::interface::K ( const volScalarField& Ur ) const diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/interface/interface.H b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/interface/interface.H index 097a81b792..0687db8b57 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/interface/interface.H +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/dragModels/interface/interface.H @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011 OpenFOAM Foundation + Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -24,7 +25,7 @@ License along with OpenFOAM. If not, see . Class - Foam::dragModels::interface + Foam::multiphaseEuler::dragModels::interface Description Drag between phase separated by a VoF resolved interface. @@ -34,8 +35,8 @@ SourceFiles \*---------------------------------------------------------------------------*/ -#ifndef interface_H -#define interface_H +#ifndef Foam_multiphaseEuler_dragModels_interface_H +#define Foam_multiphaseEuler_dragModels_interface_H #include "dragModel.H" @@ -43,6 +44,8 @@ SourceFiles namespace Foam { +namespace multiphaseEuler +{ namespace dragModels { @@ -85,6 +88,7 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace dragModels +} // End namespace multiphaseEuler } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/heatTransferModels/RanzMarshall/RanzMarshall.C b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/heatTransferModels/RanzMarshall/RanzMarshall.C index 82a5be7b0a..c8b1c26167 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/heatTransferModels/RanzMarshall/RanzMarshall.C +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/heatTransferModels/RanzMarshall/RanzMarshall.C @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2012 OpenFOAM Foundation + Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -32,6 +33,8 @@ License namespace Foam { +namespace multiphaseEuler +{ namespace heatTransferModels { defineTypeNameAndDebug(RanzMarshall, 0); @@ -44,11 +47,12 @@ namespace heatTransferModels ); } } +} // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -Foam::heatTransferModels::RanzMarshall::RanzMarshall +Foam::multiphaseEuler::heatTransferModels::RanzMarshall::RanzMarshall ( const dictionary& interfaceDict, const volScalarField& alpha1, @@ -62,13 +66,14 @@ Foam::heatTransferModels::RanzMarshall::RanzMarshall // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // -Foam::heatTransferModels::RanzMarshall::~RanzMarshall() +Foam::multiphaseEuler::heatTransferModels::RanzMarshall::~RanzMarshall() {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -Foam::tmp Foam::heatTransferModels::RanzMarshall::K +Foam::tmp +Foam::multiphaseEuler::heatTransferModels::RanzMarshall::K ( const volScalarField& Ur ) const diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/heatTransferModels/RanzMarshall/RanzMarshall.H b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/heatTransferModels/RanzMarshall/RanzMarshall.H index 8c88fbc33c..85dbef3580 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/heatTransferModels/RanzMarshall/RanzMarshall.H +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/heatTransferModels/RanzMarshall/RanzMarshall.H @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2012 OpenFOAM Foundation + Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -24,7 +25,7 @@ License along with OpenFOAM. If not, see . Class - Foam::heatTransferModels::RanzMarshall + Foam::multiphaseEuler::heatTransferModels::RanzMarshall Description @@ -33,8 +34,8 @@ SourceFiles \*---------------------------------------------------------------------------*/ -#ifndef RanzMarshall_H -#define RanzMarshall_H +#ifndef Foam_multiphaseEuler_heatTransferModels_RanzMarshall_H +#define Foam_multiphaseEuler_heatTransferModels_RanzMarshall_H #include "heatTransferModel.H" @@ -42,6 +43,8 @@ SourceFiles namespace Foam { +namespace multiphaseEuler +{ namespace heatTransferModels { @@ -85,6 +88,7 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace heatTransferModels +} // End namespace multiphaseEuler } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/heatTransferModels/heatTransferModel/heatTransferModel.C b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/heatTransferModels/heatTransferModel/heatTransferModel.C index 44b8e6928d..4a310001b7 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/heatTransferModels/heatTransferModel/heatTransferModel.C +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/heatTransferModels/heatTransferModel/heatTransferModel.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2012 OpenFOAM Foundation - Copyright (C) 2019-2021 OpenCFD Ltd. + Copyright (C) 2019-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -31,15 +31,18 @@ License // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // namespace Foam +{ +namespace multiphaseEuler { defineTypeNameAndDebug(heatTransferModel, 0); defineRunTimeSelectionTable(heatTransferModel, dictionary); } +} // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -Foam::heatTransferModel::heatTransferModel +Foam::multiphaseEuler::heatTransferModel::heatTransferModel ( const dictionary& dict, const volScalarField& alpha1, @@ -56,7 +59,8 @@ Foam::heatTransferModel::heatTransferModel // * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * // -Foam::autoPtr Foam::heatTransferModel::New +Foam::autoPtr +Foam::multiphaseEuler::heatTransferModel::New ( const dictionary& dict, const volScalarField& alpha1, diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/heatTransferModels/heatTransferModel/heatTransferModel.H b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/heatTransferModels/heatTransferModel/heatTransferModel.H index fc94fb69d0..f1e8cb7c27 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/heatTransferModels/heatTransferModel/heatTransferModel.H +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/interfacialModels/heatTransferModels/heatTransferModel/heatTransferModel.H @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2015 OpenFOAM Foundation - Copyright (C) 2020 OpenCFD Ltd. + Copyright (C) 2020-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -25,7 +25,7 @@ License along with OpenFOAM. If not, see . Class - Foam::heatTransferModel + Foam::multiphaseEuler::heatTransferModel Description @@ -35,8 +35,8 @@ SourceFiles \*---------------------------------------------------------------------------*/ -#ifndef heatTransferModel_H -#define heatTransferModel_H +#ifndef Foam_multiphaseEuler_heatTransferModel_H +#define Foam_multiphaseEuler_heatTransferModel_H // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -46,6 +46,8 @@ SourceFiles namespace Foam { +namespace multiphaseEuler +{ /*---------------------------------------------------------------------------*\ Class heatTransferModel Declaration @@ -129,6 +131,7 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +} // End namespace multiphaseEuler } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/multiphaseSystem/multiphaseSystem.C b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/multiphaseSystem/multiphaseSystem.C index 4af3fb9467..7d17da77eb 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/multiphaseSystem/multiphaseSystem.C +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/multiphaseSystem/multiphaseSystem.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2018 OpenFOAM Foundation - Copyright (C) 2020 OpenCFD Ltd. + Copyright (C) 2020-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -251,10 +251,22 @@ void Foam::multiphaseSystem::correctContactAngle forAll(boundary, patchi) { - if (isA(gbf[patchi])) + if + ( + isA + ( + gbf[patchi] + ) + ) { - const alphaContactAngleFvPatchScalarField& acap = - refCast(gbf[patchi]); + const auto& acap = + refCast + < + const multiphaseEuler::alphaContactAngleFvPatchScalarField + > + ( + gbf[patchi] + ); vectorField& nHatPatch = nHatb[patchi]; @@ -414,7 +426,7 @@ Foam::multiphaseSystem::multiphaseSystem dragModels_.set ( iter.key(), - dragModel::New + multiphaseEuler::dragModel::New ( iter(), *phases_.lookup(iter.key().first()), @@ -645,7 +657,7 @@ Foam::multiphaseSystem::dragCoeffs() const forAllConstIters(dragModels_, iter) { - const dragModel& dm = *iter(); + const multiphaseEuler::dragModel& dm = *iter(); volScalarField* Kptr = ( diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/multiphaseSystem/multiphaseSystem.H b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/multiphaseSystem/multiphaseSystem.H index 632b2bdeb0..aa57169149 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/multiphaseSystem/multiphaseSystem.H +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/multiphaseSystem/multiphaseSystem.H @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2016 OpenFOAM Foundation - Copyright (C) 2019-2021 OpenCFD Ltd. + Copyright (C) 2019-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -42,8 +42,8 @@ SourceFiles \*---------------------------------------------------------------------------*/ -#ifndef multiphaseSystem_H -#define multiphaseSystem_H +#ifndef Foam_multiphaseEuler_multiphaseSystem_H +#define Foam_multiphaseEuler_multiphaseSystem_H #include "incompressible/transportModel/transportModel.H" #include "IOdictionary.H" @@ -121,8 +121,11 @@ public: }; - typedef HashPtrTable - dragModelTable; + typedef + HashPtrTable + < + multiphaseEuler::dragModel, interfacePair, interfacePair::symmHash + > dragModelTable; typedef HashPtrTable dragCoeffFields; diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/phaseModel/phaseModel.C b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/phaseModel/phaseModel.C index 4b5af03e9f..efe44cab08 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/phaseModel/phaseModel.C +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/phaseModel/phaseModel.C @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation + Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -188,7 +189,7 @@ Foam::phaseModel::phaseModel ); } - dPtr_ = diameterModel::New + dPtr_ = multiphaseEuler::diameterModel::New ( phaseDict_, *this diff --git a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/phaseModel/phaseModel.H b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/phaseModel/phaseModel.H index 4da109e736..66379ce290 100644 --- a/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/phaseModel/phaseModel.H +++ b/src/phaseSystemModels/multiphaseEuler/multiphaseSystem/phaseModel/phaseModel.H @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation + Copyright (C) 2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -31,8 +32,8 @@ SourceFiles \*---------------------------------------------------------------------------*/ -#ifndef phaseModel_H -#define phaseModel_H +#ifndef Foam_multiphaseEuler_phaseModel_H +#define Foam_multiphaseEuler_phaseModel_H #include "dictionary.H" #include "dictionaryEntry.H" @@ -45,8 +46,11 @@ SourceFiles namespace Foam { +namespace multiphaseEuler +{ // Forward declarations class diameterModel; +} /*---------------------------------------------------------------------------*\ Class phaseModel Declaration @@ -88,7 +92,7 @@ class phaseModel autoPtr phiPtr_; //- Diameter model - autoPtr dPtr_; + autoPtr dPtr_; public: diff --git a/src/phaseSystemModels/multiphaseInter/compressibleMultiPhaseTurbulenceModels/compressibleMultiPhaseTurbulenceModels.C b/src/phaseSystemModels/multiphaseInter/compressibleMultiPhaseTurbulenceModels/compressibleMultiPhaseTurbulenceModels.C index a53f543289..b5abbaa5f2 100644 --- a/src/phaseSystemModels/multiphaseInter/compressibleMultiPhaseTurbulenceModels/compressibleMultiPhaseTurbulenceModels.C +++ b/src/phaseSystemModels/multiphaseInter/compressibleMultiPhaseTurbulenceModels/compressibleMultiPhaseTurbulenceModels.C @@ -5,7 +5,7 @@ \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- - Copyright (C) 2017 OpenCFD Ltd + Copyright (C) 2017-2022 OpenCFD Ltd ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -37,6 +37,8 @@ License #include "RASModel.H" #include "LESModel.H" +using namespace Foam::multiphaseInter; + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // defineTurbulenceModelTypes diff --git a/src/phaseSystemModels/multiphaseInter/phasesSystem/InterfaceCompositionModel/InterfaceCompositionModel.C b/src/phaseSystemModels/multiphaseInter/phasesSystem/InterfaceCompositionModel/InterfaceCompositionModel.C index 6fef82db2b..6215e5700d 100644 --- a/src/phaseSystemModels/multiphaseInter/phasesSystem/InterfaceCompositionModel/InterfaceCompositionModel.C +++ b/src/phaseSystemModels/multiphaseInter/phasesSystem/InterfaceCompositionModel/InterfaceCompositionModel.C @@ -5,7 +5,7 @@ \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- - Copyright (C) 2017 OpenCFD Ltd. + Copyright (C) 2017-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -33,6 +33,8 @@ License #include "rhoThermo.H" #include "zeroGradientFvPatchFields.H" +using namespace Foam::multiphaseInter; + // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // template diff --git a/src/phaseSystemModels/multiphaseInter/phasesSystem/InterfaceCompositionModel/InterfaceCompositionModel.H b/src/phaseSystemModels/multiphaseInter/phasesSystem/InterfaceCompositionModel/InterfaceCompositionModel.H index 8f70f06ed5..0c13f932e9 100644 --- a/src/phaseSystemModels/multiphaseInter/phasesSystem/InterfaceCompositionModel/InterfaceCompositionModel.H +++ b/src/phaseSystemModels/multiphaseInter/phasesSystem/InterfaceCompositionModel/InterfaceCompositionModel.H @@ -5,7 +5,7 @@ \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- - Copyright (C) 2017 OpenCFD Ltd. + Copyright (C) 2017-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -45,6 +45,8 @@ SourceFiles namespace Foam { +using namespace multiphaseInter; + // Forward Declarations class phaseModel; class phasePair; @@ -132,7 +134,7 @@ public: InterfaceCompositionModel(const dictionary& dict, const phasePair& pair); //- Destructor - ~InterfaceCompositionModel() = default; + virtual ~InterfaceCompositionModel() = default; // Member Functions diff --git a/src/phaseSystemModels/multiphaseInter/phasesSystem/Make/files b/src/phaseSystemModels/multiphaseInter/phasesSystem/Make/files index e7b4689ac9..304b0439c4 100644 --- a/src/phaseSystemModels/multiphaseInter/phasesSystem/Make/files +++ b/src/phaseSystemModels/multiphaseInter/phasesSystem/Make/files @@ -5,7 +5,7 @@ phasePair/phasePair.C phasePair/phasePairKey.C phasePair/orderedPhasePair.C -phaseSystem/phaseSystem.C +multiphaseInterSystem/multiphaseInterSystem.C multiphaseSystem/multiphaseSystem.C multiphaseSystem/multiphaseSystemNew.C diff --git a/src/phaseSystemModels/multiphaseInter/phasesSystem/MassTransferPhaseSystem/MassTransferPhaseSystem.C b/src/phaseSystemModels/multiphaseInter/phasesSystem/MassTransferPhaseSystem/MassTransferPhaseSystem.C index 2f027a0de4..5de5b50e70 100644 --- a/src/phaseSystemModels/multiphaseInter/phasesSystem/MassTransferPhaseSystem/MassTransferPhaseSystem.C +++ b/src/phaseSystemModels/multiphaseInter/phasesSystem/MassTransferPhaseSystem/MassTransferPhaseSystem.C @@ -5,7 +5,7 @@ \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- - Copyright (C) 2017-2020 OpenCFD Ltd. + Copyright (C) 2017-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -33,6 +33,8 @@ License #include "volFields.H" #include "fundamentalConstants.H" +using namespace Foam::multiphaseInter; + // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // template diff --git a/src/phaseSystemModels/multiphaseInter/phasesSystem/MassTransferPhaseSystem/MassTransferPhaseSystem.H b/src/phaseSystemModels/multiphaseInter/phasesSystem/MassTransferPhaseSystem/MassTransferPhaseSystem.H index 71498129f8..8a10abbad8 100644 --- a/src/phaseSystemModels/multiphaseInter/phasesSystem/MassTransferPhaseSystem/MassTransferPhaseSystem.H +++ b/src/phaseSystemModels/multiphaseInter/phasesSystem/MassTransferPhaseSystem/MassTransferPhaseSystem.H @@ -5,7 +5,7 @@ \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- - Copyright (C) 2017-2020 OpenCFD Ltd. + Copyright (C) 2017-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -34,10 +34,10 @@ SourceFiles \*---------------------------------------------------------------------------*/ -#ifndef MassTransferPhaseSystem_H -#define MassTransferPhaseSystem_H +#ifndef Foam_multiphaseInter_MassTransferPhaseSystem_H +#define Foam_multiphaseInter_MassTransferPhaseSystem_H -#include "phaseSystem.H" +#include "multiphaseInterSystem.H" #include "HashPtrTable.H" #include "interfaceCompositionModel.H" @@ -46,6 +46,8 @@ SourceFiles namespace Foam { +using namespace multiphaseInter; + /*---------------------------------------------------------------------------*\ Class MassTransferPhaseSystem Declaration \*---------------------------------------------------------------------------*/ @@ -144,7 +146,7 @@ public: //- Calculate mass transfer for species virtual void massSpeciesTransfer ( - const phaseModel& phase, + const Foam::phaseModel& phase, volScalarField::Internal& Su, volScalarField::Internal& Sp, const word speciesName diff --git a/src/phaseSystemModels/multiphaseInter/phasesSystem/interfaceCompositionModel/interfaceCompositionModel.C b/src/phaseSystemModels/multiphaseInter/phasesSystem/interfaceCompositionModel/interfaceCompositionModel.C index c347594f0b..d457dff344 100644 --- a/src/phaseSystemModels/multiphaseInter/phasesSystem/interfaceCompositionModel/interfaceCompositionModel.C +++ b/src/phaseSystemModels/multiphaseInter/phasesSystem/interfaceCompositionModel/interfaceCompositionModel.C @@ -5,7 +5,7 @@ \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- - Copyright (C) 2017-2021 OpenCFD Ltd. + Copyright (C) 2017-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -32,14 +32,19 @@ License // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // namespace Foam +{ +namespace multiphaseInter { defineTypeNameAndDebug(interfaceCompositionModel, 0); defineRunTimeSelectionTable(interfaceCompositionModel, dictionary); } +} - -const Foam::Enum -Foam::interfaceCompositionModel::modelVariableNames_ +const Foam::Enum +< + Foam::multiphaseInter::interfaceCompositionModel::modelVariable +> +Foam::multiphaseInter::interfaceCompositionModel::modelVariableNames_ { { modelVariable::T, "temperature" }, { modelVariable::P, "pressure" }, @@ -50,7 +55,7 @@ Foam::interfaceCompositionModel::modelVariableNames_ // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -Foam::interfaceCompositionModel::interfaceCompositionModel +Foam::multiphaseInter::interfaceCompositionModel::interfaceCompositionModel ( const dictionary& dict, const phasePair& pair @@ -74,8 +79,8 @@ Foam::interfaceCompositionModel::interfaceCompositionModel // * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * // -Foam::autoPtr -Foam::interfaceCompositionModel::New +Foam::autoPtr +Foam::multiphaseInter::interfaceCompositionModel::New ( const dictionary& dict, const phasePair& pair @@ -113,31 +118,42 @@ Foam::interfaceCompositionModel::New // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -const Foam::word Foam::interfaceCompositionModel::transferSpecie() const +const Foam::word Foam::multiphaseInter::interfaceCompositionModel +::transferSpecie() const { return speciesName_; } -const Foam::phasePair& Foam::interfaceCompositionModel::pair() const +const Foam::phasePair& Foam::multiphaseInter::interfaceCompositionModel +::pair() const { return pair_; } -const Foam::word& Foam::interfaceCompositionModel::variable() const +const Foam::multiphaseInterSystem& Foam::multiphaseInter +::interfaceCompositionModel::fluid() const +{ + return pair().to().fluid(); +} + + +const Foam::word& Foam::multiphaseInter::interfaceCompositionModel +::variable() const { return modelVariableNames_[modelVariable_]; } -bool Foam::interfaceCompositionModel::includeDivU() const noexcept +bool Foam::multiphaseInter::interfaceCompositionModel::includeDivU() +const noexcept { return true; } -bool Foam::interfaceCompositionModel::includeVolChange() +bool Foam::multiphaseInter::interfaceCompositionModel::includeVolChange() { return includeVolChange_; } diff --git a/src/phaseSystemModels/multiphaseInter/phasesSystem/interfaceCompositionModel/interfaceCompositionModel.H b/src/phaseSystemModels/multiphaseInter/phasesSystem/interfaceCompositionModel/interfaceCompositionModel.H index ae99c70404..6ec0b582e9 100644 --- a/src/phaseSystemModels/multiphaseInter/phasesSystem/interfaceCompositionModel/interfaceCompositionModel.H +++ b/src/phaseSystemModels/multiphaseInter/phasesSystem/interfaceCompositionModel/interfaceCompositionModel.H @@ -5,7 +5,7 @@ \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- - Copyright (C) 2017-2021 OpenCFD Ltd. + Copyright (C) 2017-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -50,9 +50,14 @@ namespace Foam { // Forward Declarations -class phaseModel; class phasePair; +namespace multiphaseInter +{ + +// Forward Declarations +class phaseModel; + /*---------------------------------------------------------------------------*\ Class interfaceCompositionModel Declaration \*---------------------------------------------------------------------------*/ @@ -212,6 +217,7 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace Foam +} // End multiphaseInter // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/phaseSystemModels/multiphaseInter/phasesSystem/phaseSystem/phaseSystem.C b/src/phaseSystemModels/multiphaseInter/phasesSystem/multiphaseInterSystem/multiphaseInterSystem.C similarity index 77% rename from src/phaseSystemModels/multiphaseInter/phasesSystem/phaseSystem/phaseSystem.C rename to src/phaseSystemModels/multiphaseInter/phasesSystem/multiphaseInterSystem/multiphaseInterSystem.C index a4d0230bdc..dbe7501a11 100644 --- a/src/phaseSystemModels/multiphaseInter/phasesSystem/phaseSystem/phaseSystem.C +++ b/src/phaseSystemModels/multiphaseInter/phasesSystem/multiphaseInterSystem/multiphaseInterSystem.C @@ -5,7 +5,7 @@ \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- - Copyright (C) 2017-2021 OpenCFD Ltd. + Copyright (C) 2017-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -25,7 +25,7 @@ License \*---------------------------------------------------------------------------*/ -#include "phaseSystem.H" +#include "multiphaseInterSystem.H" #include "surfaceTensionModel.H" #include "porousModel.H" @@ -46,23 +46,27 @@ License namespace Foam { - defineTypeNameAndDebug(phaseSystem, 0); + defineTypeNameAndDebug(multiphaseInterSystem, 0); } /* * * * * * * * * * * * * * * private static data * * * * * * * * * * * * * */ -const Foam::word Foam::phaseSystem::phasePropertiesName("phaseProperties"); +const Foam::word +Foam::multiphaseInterSystem::phasePropertiesName("phaseProperties"); // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * // -void Foam::phaseSystem::calcMu() +void Foam::multiphaseInterSystem::calcMu() { mu_ = mu()(); } -Foam::phaseSystem::phaseModelTable -Foam::phaseSystem::generatePhaseModels(const wordList& phaseNames) const +Foam::multiphaseInterSystem::phaseModelTable +Foam::multiphaseInterSystem::generatePhaseModels +( + const wordList& phaseNames +) const { phaseModelTable phaseModels; @@ -71,7 +75,7 @@ Foam::phaseSystem::generatePhaseModels(const wordList& phaseNames) const phaseModels.insert ( phaseName, - phaseModel::New + multiphaseInter::phaseModel::New ( *this, phaseName @@ -83,7 +87,7 @@ Foam::phaseSystem::generatePhaseModels(const wordList& phaseNames) const } -Foam::tmp Foam::phaseSystem::generatePhi +Foam::tmp Foam::multiphaseInterSystem::generatePhi ( const phaseModelTable& phaseModels ) const @@ -105,7 +109,7 @@ Foam::tmp Foam::phaseSystem::generatePhi } -void Foam::phaseSystem::generatePairs(const dictTable& modelDicts) +void Foam::multiphaseInterSystem::generatePairs(const dictTable& modelDicts) { forAllConstIters(modelDicts, iter) { @@ -152,7 +156,7 @@ void Foam::phaseSystem::generatePairs(const dictTable& modelDicts) } -void Foam::phaseSystem::generatePairsTable() +void Foam::multiphaseInterSystem::generatePairsTable() { forAllConstIters(phaseModels_, phaseIter1) { @@ -201,7 +205,7 @@ void Foam::phaseSystem::generatePairsTable() // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -Foam::phaseSystem::phaseSystem +Foam::multiphaseInterSystem::multiphaseInterSystem ( const fvMesh& mesh ) @@ -288,13 +292,13 @@ Foam::phaseSystem::phaseSystem // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // -Foam::phaseSystem::~phaseSystem() +Foam::multiphaseInterSystem::~multiphaseInterSystem() {} // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * // -Foam::tmp Foam::phaseSystem::he +Foam::tmp Foam::multiphaseInterSystem::he ( const volScalarField& p, const volScalarField& T @@ -305,7 +309,7 @@ Foam::tmp Foam::phaseSystem::he } -Foam::tmp Foam::phaseSystem::he +Foam::tmp Foam::multiphaseInterSystem::he ( const scalarField& p, const scalarField& T, @@ -317,7 +321,7 @@ Foam::tmp Foam::phaseSystem::he } -Foam::tmp Foam::phaseSystem::he +Foam::tmp Foam::multiphaseInterSystem::he ( const scalarField& p, const scalarField& T, @@ -329,7 +333,7 @@ Foam::tmp Foam::phaseSystem::he } -Foam::tmp Foam::phaseSystem::hc() const +Foam::tmp Foam::multiphaseInterSystem::hc() const { auto iter = phaseModels_.cbegin(); @@ -347,7 +351,7 @@ Foam::tmp Foam::phaseSystem::hc() const } -Foam::tmp Foam::phaseSystem::THE +Foam::tmp Foam::multiphaseInterSystem::THE ( const scalarField& e, const scalarField& p, @@ -360,7 +364,7 @@ Foam::tmp Foam::phaseSystem::THE } -Foam::tmp Foam::phaseSystem::THE +Foam::tmp Foam::multiphaseInterSystem::THE ( const scalarField& e, const scalarField& p, @@ -373,7 +377,7 @@ Foam::tmp Foam::phaseSystem::THE } -Foam::tmp Foam::phaseSystem::rho() const +Foam::tmp Foam::multiphaseInterSystem::rho() const { auto iter = phaseModels_.cbegin(); @@ -391,7 +395,10 @@ Foam::tmp Foam::phaseSystem::rho() const } -Foam::tmp Foam::phaseSystem::rho(const label patchI) const +Foam::tmp Foam::multiphaseInterSystem::rho +( + const label patchI +) const { auto iter = phaseModels_.cbegin(); @@ -414,7 +421,7 @@ Foam::tmp Foam::phaseSystem::rho(const label patchI) const } -Foam::tmp Foam::phaseSystem::Cp() const +Foam::tmp Foam::multiphaseInterSystem::Cp() const { auto iter = phaseModels_.cbegin(); @@ -432,7 +439,7 @@ Foam::tmp Foam::phaseSystem::Cp() const } -Foam::tmp Foam::phaseSystem::Cp +Foam::tmp Foam::multiphaseInterSystem::Cp ( const scalarField& p, const scalarField& T, @@ -455,7 +462,7 @@ Foam::tmp Foam::phaseSystem::Cp } -Foam::tmp Foam::phaseSystem::Cv() const +Foam::tmp Foam::multiphaseInterSystem::Cv() const { auto iter = phaseModels_.cbegin(); @@ -473,7 +480,7 @@ Foam::tmp Foam::phaseSystem::Cv() const } -Foam::tmp Foam::phaseSystem::Cv +Foam::tmp Foam::multiphaseInterSystem::Cv ( const scalarField& p, const scalarField& T, @@ -496,7 +503,7 @@ Foam::tmp Foam::phaseSystem::Cv } -Foam::tmp Foam::phaseSystem::rhoEoS +Foam::tmp Foam::multiphaseInterSystem::rhoEoS ( const scalarField& p, const scalarField& T, @@ -508,7 +515,7 @@ Foam::tmp Foam::phaseSystem::rhoEoS } -Foam::tmp Foam::phaseSystem::gamma() const +Foam::tmp Foam::multiphaseInterSystem::gamma() const { auto iter = phaseModels_.cbegin(); @@ -532,7 +539,7 @@ Foam::tmp Foam::phaseSystem::gamma() const } -Foam::tmp Foam::phaseSystem::gamma +Foam::tmp Foam::multiphaseInterSystem::gamma ( const scalarField& p, const scalarField& T, @@ -546,7 +553,7 @@ Foam::tmp Foam::phaseSystem::gamma } -Foam::tmp Foam::phaseSystem::Cpv() const +Foam::tmp Foam::multiphaseInterSystem::Cpv() const { auto iter = phaseModels_.cbegin(); @@ -564,7 +571,7 @@ Foam::tmp Foam::phaseSystem::Cpv() const } -Foam::tmp Foam::phaseSystem::Cpv +Foam::tmp Foam::multiphaseInterSystem::Cpv ( const scalarField& p, const scalarField& T, @@ -587,7 +594,7 @@ Foam::tmp Foam::phaseSystem::Cpv } -Foam::tmp Foam::phaseSystem::CpByCpv() const +Foam::tmp Foam::multiphaseInterSystem::CpByCpv() const { auto iter = phaseModels_.cbegin(); @@ -605,7 +612,7 @@ Foam::tmp Foam::phaseSystem::CpByCpv() const } -Foam::tmp Foam::phaseSystem::CpByCpv +Foam::tmp Foam::multiphaseInterSystem::CpByCpv ( const scalarField& p, const scalarField& T, @@ -633,14 +640,14 @@ Foam::tmp Foam::phaseSystem::CpByCpv } -Foam::tmp Foam::phaseSystem::W() const +Foam::tmp Foam::multiphaseInterSystem::W() const { NotImplemented; return nullptr; } -Foam::tmp Foam::phaseSystem::kappa() const +Foam::tmp Foam::multiphaseInterSystem::kappa() const { auto iter = phaseModels_.cbegin(); @@ -658,7 +665,10 @@ Foam::tmp Foam::phaseSystem::kappa() const } -Foam::tmp Foam::phaseSystem::kappa(const label patchI) const +Foam::tmp Foam::multiphaseInterSystem::kappa +( + const label patchI +) const { auto iter = phaseModels_.cbegin(); @@ -681,7 +691,7 @@ Foam::tmp Foam::phaseSystem::kappa(const label patchI) const } -Foam::tmp Foam::phaseSystem::alphahe() const +Foam::tmp Foam::multiphaseInterSystem::alphahe() const { phaseModelTable::const_iterator phaseModelIter = phaseModels_.begin(); @@ -699,7 +709,7 @@ Foam::tmp Foam::phaseSystem::alphahe() const } -Foam::tmp Foam::phaseSystem::alphahe +Foam::tmp Foam::multiphaseInterSystem::alphahe ( const label patchi ) const @@ -723,7 +733,7 @@ Foam::tmp Foam::phaseSystem::alphahe } -Foam::tmpFoam::phaseSystem::kappaEff +Foam::tmpFoam::multiphaseInterSystem::kappaEff ( const volScalarField& kappat ) const @@ -734,7 +744,7 @@ Foam::tmpFoam::phaseSystem::kappaEff } -Foam::tmp Foam::phaseSystem::kappaEff +Foam::tmp Foam::multiphaseInterSystem::kappaEff ( const scalarField& kappat, const label patchI @@ -744,7 +754,7 @@ Foam::tmp Foam::phaseSystem::kappaEff } -Foam::tmp Foam::phaseSystem::alphaEff +Foam::tmp Foam::multiphaseInterSystem::alphaEff ( const volScalarField& alphat ) const @@ -767,7 +777,7 @@ Foam::tmp Foam::phaseSystem::alphaEff } -Foam::tmp Foam::phaseSystem::alphaEff +Foam::tmp Foam::multiphaseInterSystem::alphaEff ( const scalarField& alphat, const label patchI @@ -796,13 +806,13 @@ Foam::tmp Foam::phaseSystem::alphaEff } -const Foam::dimensionedScalar& Foam::phaseSystem::Prt() const +const Foam::dimensionedScalar& Foam::multiphaseInterSystem::Prt() const { return Prt_; } -Foam::tmp Foam::phaseSystem::mu() const +Foam::tmp Foam::multiphaseInterSystem::mu() const { auto iter = phaseModels_.cbegin(); @@ -820,7 +830,10 @@ Foam::tmp Foam::phaseSystem::mu() const } -Foam::tmp Foam::phaseSystem::mu(const label patchI) const +Foam::tmp Foam::multiphaseInterSystem::mu +( + const label patchI +) const { auto iter = phaseModels_.cbegin(); @@ -843,7 +856,7 @@ Foam::tmp Foam::phaseSystem::mu(const label patchI) const } -Foam::tmp Foam::phaseSystem::nu() const +Foam::tmp Foam::multiphaseInterSystem::nu() const { auto iter = phaseModels_.cbegin(); @@ -861,7 +874,10 @@ Foam::tmp Foam::phaseSystem::nu() const } -Foam::tmp Foam::phaseSystem::nu(const label patchI) const +Foam::tmp Foam::multiphaseInterSystem::nu +( + const label patchI +) const { auto iter = phaseModels_.cbegin(); @@ -884,31 +900,82 @@ Foam::tmp Foam::phaseSystem::nu(const label patchI) const } -const Foam::surfaceScalarField& Foam::phaseSystem::phi() const +Foam::tmp Foam::multiphaseInterSystem::mut() const +{ + return turb_->mut(); +} + + +Foam::tmp Foam::multiphaseInterSystem::muEff() const +{ + return turb_->muEff(); +} + + +Foam::tmp Foam::multiphaseInterSystem::nut() const +{ + return turb_->nut(); +} + + +Foam::tmp Foam::multiphaseInterSystem::nuEff() const +{ + return turb_->nuEff(); +} + + +Foam::tmp Foam::multiphaseInterSystem::kappaEff() const +{ + return(this->kappa() + this->Cp()*turb_->mut()/Prt_); +} + + +Foam::tmp +Foam::multiphaseInterSystem::kappaEff(const label patchi) const +{ + tmp tCp(this->Cp()().boundaryField()[patchi]); + return this->kappa(patchi) + tCp()*turb_->mut(patchi)/Prt_.value(); +} + + +Foam::tmp Foam::multiphaseInterSystem::alphaEff() const +{ + return this->alpha() + turb_->mut()/Prt_; +} + + +Foam::tmp +Foam::multiphaseInterSystem::alphaEff(const label patchi) const +{ + return (this->alpha(patchi) + turb_->mut(patchi))/Prt_.value(); +} + + +const Foam::surfaceScalarField& Foam::multiphaseInterSystem::phi() const { return phi_; } -Foam::surfaceScalarField& Foam::phaseSystem::phi() +Foam::surfaceScalarField& Foam::multiphaseInterSystem::phi() { return phi_; } -const Foam::surfaceScalarField& Foam::phaseSystem::rhoPhi() const +const Foam::surfaceScalarField& Foam::multiphaseInterSystem::rhoPhi() const { return rhoPhi_; } -Foam::surfaceScalarField& Foam::phaseSystem::rhoPhi() +Foam::surfaceScalarField& Foam::multiphaseInterSystem::rhoPhi() { return rhoPhi_; } -void Foam::phaseSystem::correct() +void Foam::multiphaseInterSystem::correct() { forAllIters(phaseModels_, iter) { @@ -919,7 +986,7 @@ void Foam::phaseSystem::correct() } -void Foam::phaseSystem::correctTurbulence() +void Foam::multiphaseInterSystem::correctTurbulence() { forAllIters(phaseModels_, iter) { @@ -928,32 +995,35 @@ void Foam::phaseSystem::correctTurbulence() } -const Foam::phaseSystem::phaseModelTable& Foam::phaseSystem::phases() const +const Foam::multiphaseInterSystem::phaseModelTable& +Foam::multiphaseInterSystem::phases() const { return phaseModels_; } -Foam::phaseSystem::phaseModelTable& Foam::phaseSystem::phases() +Foam::multiphaseInterSystem::phaseModelTable& +Foam::multiphaseInterSystem::phases() { return phaseModels_; } -const Foam::phaseSystem::phasePairTable& -Foam::phaseSystem::totalPhasePairs() const +const Foam::multiphaseInterSystem::phasePairTable& +Foam::multiphaseInterSystem::totalPhasePairs() const { return totalPhasePairs_; } -Foam::phaseSystem::phasePairTable& Foam::phaseSystem::totalPhasePairs() +Foam::multiphaseInterSystem::phasePairTable& +Foam::multiphaseInterSystem::totalPhasePairs() { return totalPhasePairs_; } -bool Foam::phaseSystem::incompressible() const +bool Foam::multiphaseInterSystem::incompressible() const { forAllConstIters(phaseModels_, iter) { @@ -967,13 +1037,13 @@ bool Foam::phaseSystem::incompressible() const } -bool Foam::phaseSystem::incompressible(const word phaseName) const +bool Foam::multiphaseInterSystem::incompressible(const word phaseName) const { return phaseModels_[phaseName]->thermo().incompressible(); } -bool Foam::phaseSystem::isochoric() const +bool Foam::multiphaseInterSystem::isochoric() const { forAllConstIters(phaseModels_, iter) { @@ -987,14 +1057,14 @@ bool Foam::phaseSystem::isochoric() const } -const Foam::fvMesh& Foam::phaseSystem::mesh() const +const Foam::fvMesh& Foam::multiphaseInterSystem::mesh() const { return mesh_; } Foam::tmp -Foam::phaseSystem::surfaceTensionForce() const +Foam::multiphaseInterSystem::surfaceTensionForce() const { auto tstf = tmp::New ( @@ -1044,7 +1114,7 @@ Foam::phaseSystem::surfaceTensionForce() const } -Foam::tmp Foam::phaseSystem::U() const +Foam::tmp Foam::multiphaseInterSystem::U() const { auto tstf = tmp::New ( @@ -1070,13 +1140,13 @@ Foam::tmp Foam::phaseSystem::U() const Foam::tmp -Foam::phaseSystem::surfaceTensionCoeff(const phasePairKey& key) const +Foam::multiphaseInterSystem::surfaceTensionCoeff(const phasePairKey& key) const { return surfaceTensionModels_[key]->sigma(); } -Foam::tmp Foam::phaseSystem::coeffs +Foam::tmp Foam::multiphaseInterSystem::coeffs ( const word& key ) const @@ -1085,14 +1155,14 @@ Foam::tmp Foam::phaseSystem::coeffs } -void Foam::phaseSystem::addInterfacePorosity(fvVectorMatrix& UEqn) +void Foam::multiphaseInterSystem::addInterfacePorosity(fvVectorMatrix& UEqn) { const scalarField& Vc = mesh_.V(); scalarField& Udiag = UEqn.diag(); forAllConstIters(phaseModels_, iteri) { - const phaseModel& phasei = iteri()(); + const multiphaseInter::phaseModel& phasei = iteri()(); auto iterk = iteri; @@ -1100,7 +1170,7 @@ void Foam::phaseSystem::addInterfacePorosity(fvVectorMatrix& UEqn) { if (iteri()().name() != iterk()().name()) { - const phaseModel& phasek = iterk()(); + const multiphaseInter::phaseModel& phasek = iterk()(); // Phase i and k const phasePairKey keyik @@ -1123,7 +1193,7 @@ void Foam::phaseSystem::addInterfacePorosity(fvVectorMatrix& UEqn) } -Foam::tmp Foam::phaseSystem::K +Foam::tmp Foam::multiphaseInterSystem::K ( const volScalarField& alpha1, const volScalarField& alpha2 @@ -1136,7 +1206,7 @@ Foam::tmp Foam::phaseSystem::K } -Foam::tmp Foam::phaseSystem::nearInterface +Foam::tmp Foam::multiphaseInterSystem::nearInterface ( const volScalarField& alpha1, const volScalarField& alpha2 @@ -1150,7 +1220,8 @@ Foam::tmp Foam::phaseSystem::nearInterface } -Foam::tmp Foam::phaseSystem::nearInterface() const +Foam::tmp +Foam::multiphaseInterSystem::nearInterface() const { auto tnearInt = tmp::New ( @@ -1188,7 +1259,7 @@ Foam::tmp Foam::phaseSystem::nearInterface() const } -Foam::tmp Foam::phaseSystem::nHatfv +Foam::tmp Foam::multiphaseInterSystem::nHatfv ( const volScalarField& alpha1, const volScalarField& alpha2 @@ -1212,7 +1283,7 @@ Foam::tmp Foam::phaseSystem::nHatfv } -Foam::tmp Foam::phaseSystem::nHatf +Foam::tmp Foam::multiphaseInterSystem::nHatf ( const volScalarField& alpha1, const volScalarField& alpha2 @@ -1223,7 +1294,7 @@ Foam::tmp Foam::phaseSystem::nHatf } -bool Foam::phaseSystem::read() +bool Foam::multiphaseInterSystem::read() { if (regIOobject::read()) { diff --git a/src/phaseSystemModels/multiphaseInter/phasesSystem/phaseSystem/phaseSystem.H b/src/phaseSystemModels/multiphaseInter/phasesSystem/multiphaseInterSystem/multiphaseInterSystem.H similarity index 88% rename from src/phaseSystemModels/multiphaseInter/phasesSystem/phaseSystem/phaseSystem.H rename to src/phaseSystemModels/multiphaseInter/phasesSystem/multiphaseInterSystem/multiphaseInterSystem.H index c6a30787cb..899058d569 100644 --- a/src/phaseSystemModels/multiphaseInter/phasesSystem/phaseSystem/phaseSystem.H +++ b/src/phaseSystemModels/multiphaseInter/phasesSystem/multiphaseInterSystem/multiphaseInterSystem.H @@ -5,7 +5,7 @@ \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- - Copyright (C) 2017-2021 OpenCFD Ltd. + Copyright (C) 2017-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -24,17 +24,17 @@ License along with OpenFOAM. If not, see . Class - Foam::phaseSystem + Foam::multiphaseInterSystem Description SourceFiles - phaseSystem.C + multiphaseInterSystem.C \*---------------------------------------------------------------------------*/ -#ifndef phaseSystem_H -#define phaseSystem_H +#ifndef multiphaseInterSystem_H +#define multiphaseInterSystem_H #include "basicThermo.H" @@ -48,6 +48,8 @@ SourceFiles #include "compressibleTransportModel.H" #include "localMin.H" +#include "compressibleTurbulenceModel.H" + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam @@ -61,10 +63,10 @@ class surfaceTensionModel; class porousModel; /*---------------------------------------------------------------------------*\ - Class phaseSystem Declaration + Class multiphaseInterSystem Declaration \*---------------------------------------------------------------------------*/ -class phaseSystem +class multiphaseInterSystem : public basicThermo, public compressibleTransportModel @@ -81,7 +83,7 @@ public: phasePairTable; - typedef HashTable> phaseModelTable; + typedef HashTable> phaseModelTable; typedef HashTable SuSpTable; @@ -145,6 +147,9 @@ protected: //- Turbulent Prandt number dimensionedScalar Prt_; + //- Turbulence model + compressibleTurbulenceModel* turb_; + // Sub Models @@ -162,7 +167,7 @@ protected: void calcMu(); //- Generate the phases - HashTable> generatePhaseModels + HashTable> generatePhaseModels ( const wordList& names ) const; @@ -170,7 +175,7 @@ protected: //- Generate the mixture flux tmp generatePhi ( - const HashTable>& phaseModels + const HashTable>& phaseModels ) const; //- Generate pairs @@ -252,7 +257,7 @@ protected: public: //- Runtime type information - TypeName("phaseSystem"); + TypeName("multiphaseInterSystem"); //- Default name of the phase properties dictionary static const word phasePropertiesName; @@ -261,13 +266,15 @@ public: // Constructors //- Construct from fvMesh - phaseSystem(const fvMesh& mesh); + multiphaseInterSystem(const fvMesh& mesh); //- Destructor - virtual ~phaseSystem(); + virtual ~multiphaseInterSystem(); + // Member Functions + // Energy related thermo functionaliy functions //- Return access to the internal energy field [J/Kg] @@ -484,6 +491,47 @@ public: virtual tmp nu(const label patchi) const; + // Turbulence + + //- Set turbulence model + void setTurbulence(compressibleTurbulenceModel& turb) + { + turb_ = &turb; + } + + //- Return pointer to turbulence model + compressibleTurbulenceModel* turbulence() const + { + return turb_; + } + + //- Return the turbulent dynamic viscosity + tmp mut() const; + + //- Return the effective dynamic viscosity + tmp muEff() const; + + //- Return the turbulent kinematic viscosity + tmp nut() const; + + //- Return the effective kinematic viscosity + tmp nuEff() const; + + //- Effective thermal turbulent diffusivity for temperature + // of mixture [J/m/s/K] + tmp kappaEff() const; + + //- Effective thermal turbulent diffusivity for temperature + // of mixture for patch [J/m/s/K] + tmp kappaEff(const label patchi) const; + + //- Effective thermal turbulent diffusivity of mixture [kg/m/s] + tmp alphaEff() const; + + //- Effective thermal turbulent diffusivity of mixture [kg/m/s] + tmp alphaEff(const label patchi) const; + + // Phase fluxes //- Constant access to the total flux @@ -547,7 +595,7 @@ public: //- Calculate mass transfer for species virtual void massSpeciesTransfer ( - const phaseModel& phase, + const multiphaseInter::phaseModel& phase, volScalarField::Internal& Su, volScalarField::Internal& Sp, const word speciesName @@ -605,8 +653,8 @@ public: template const modelType& lookupSubModel ( - const phaseModel& from, - const phaseModel& to + const multiphaseInter::phaseModel& from, + const multiphaseInter::phaseModel& to ) const; @@ -672,7 +720,7 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #ifdef NoRepository -# include "phaseSystemTemplates.H" +# include "multiphaseInterSystemTemplates.H" #endif // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/phaseSystemModels/multiphaseInter/phasesSystem/phaseSystem/phaseSystemTemplates.H b/src/phaseSystemModels/multiphaseInter/phasesSystem/multiphaseInterSystem/multiphaseInterSystemTemplates.H similarity index 88% rename from src/phaseSystemModels/multiphaseInter/phasesSystem/phaseSystem/phaseSystemTemplates.H rename to src/phaseSystemModels/multiphaseInter/phasesSystem/multiphaseInterSystem/multiphaseInterSystemTemplates.H index 9b129e66df..0c84a95730 100644 --- a/src/phaseSystemModels/multiphaseInter/phasesSystem/phaseSystem/phaseSystemTemplates.H +++ b/src/phaseSystemModels/multiphaseInter/phasesSystem/multiphaseInterSystem/multiphaseInterSystemTemplates.H @@ -5,7 +5,7 @@ \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- - Copyright (C) 2017 OpenCFD Ltd. + Copyright (C) 2017-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -28,7 +28,7 @@ License // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * // template -void Foam::phaseSystem::createSubModels +void Foam::multiphaseInterSystem::createSubModels ( const dictTable& modelDicts, HashTable @@ -57,7 +57,7 @@ void Foam::phaseSystem::createSubModels template -void Foam::phaseSystem::createSubModels +void Foam::multiphaseInterSystem::createSubModels ( const dictTable& modelDicts, const fvMesh& mesh, @@ -87,7 +87,7 @@ void Foam::phaseSystem::createSubModels template -void Foam::phaseSystem::generatePairsAndSubModels +void Foam::multiphaseInterSystem::generatePairsAndSubModels ( const word& modelName, HashTable @@ -107,7 +107,7 @@ void Foam::phaseSystem::generatePairsAndSubModels template -void Foam::phaseSystem::generatePairsAndSubModels +void Foam::multiphaseInterSystem::generatePairsAndSubModels ( const word& modelName, const fvMesh& mesh, @@ -128,7 +128,7 @@ void Foam::phaseSystem::generatePairsAndSubModels template -void Foam::phaseSystem::generatePairsAndSubModels +void Foam::multiphaseInterSystem::generatePairsAndSubModels ( const word& modelName, HashTable @@ -176,7 +176,10 @@ void Foam::phaseSystem::generatePairsAndSubModels template -const modelType& Foam::phaseSystem::lookupSubModel(const phasePair& key) const +const modelType& Foam::multiphaseInterSystem::lookupSubModel +( + const phasePair& key +) const { return mesh().lookupObject @@ -187,10 +190,10 @@ const modelType& Foam::phaseSystem::lookupSubModel(const phasePair& key) const template -const modelType& Foam::phaseSystem::lookupSubModel +const modelType& Foam::multiphaseInterSystem::lookupSubModel ( - const phaseModel& from, - const phaseModel& to + const multiphaseInter::phaseModel& from, + const multiphaseInter::phaseModel& to ) const { return lookupSubModel(orderedPhasePair(from, to)); diff --git a/src/phaseSystemModels/multiphaseInter/phasesSystem/multiphaseSystem/multiphaseSystem.C b/src/phaseSystemModels/multiphaseInter/phasesSystem/multiphaseSystem/multiphaseSystem.C index 346e4aa664..ffda1f535a 100644 --- a/src/phaseSystemModels/multiphaseInter/phasesSystem/multiphaseSystem/multiphaseSystem.C +++ b/src/phaseSystemModels/multiphaseInter/phasesSystem/multiphaseSystem/multiphaseSystem.C @@ -5,7 +5,7 @@ \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- - Copyright (C) 2017-2020 OpenCFD Ltd. + Copyright (C) 2017-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -47,20 +47,22 @@ License // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // namespace Foam +{ +namespace multiphaseInter { defineTypeNameAndDebug(multiphaseSystem, 0); defineRunTimeSelectionTable(multiphaseSystem, dictionary); } - +} // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -Foam::multiphaseSystem::multiphaseSystem +Foam::multiphaseInter::multiphaseSystem::multiphaseSystem ( const fvMesh& mesh ) : - phaseSystem(mesh), + multiphaseInterSystem(mesh), cAlphas_(), ddtAlphaMax_(0.0), limitedPhiAlphas_(phaseModels_.size()), @@ -71,7 +73,7 @@ Foam::multiphaseSystem::multiphaseSystem phases_.setSize(phaseModels_.size()); forAllIters(phaseModels_, iter) { - phaseModel& pm = iter()(); + multiphaseInter::phaseModel& pm = iter()(); phases_.set(phasei++, &pm); } @@ -80,7 +82,7 @@ Foam::multiphaseSystem::multiphaseSystem // Initiate Su and Sp forAllConstIters(phaseModels_, iter) { - const phaseModel& pm = iter()(); + const multiphaseInter::phaseModel& pm = iter()(); Su_.insert ( @@ -119,13 +121,13 @@ Foam::multiphaseSystem::multiphaseSystem // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * // -void Foam::multiphaseSystem::calculateSuSp() +void Foam::multiphaseInter::multiphaseSystem::calculateSuSp() { this->alphaTransfer(Su_, Sp_); } -void Foam::multiphaseSystem::solve() +void Foam::multiphaseInter::multiphaseSystem::solve() { const dictionary& alphaControls = mesh_.solverDict("alpha"); label nAlphaSubCycles(alphaControls.get