diff --git a/applications/modules/multiphaseEuler/phaseSystems/ThermalPhaseChangePhaseSystem/ThermalPhaseChangePhaseSystem.C b/applications/modules/multiphaseEuler/phaseSystems/ThermalPhaseChangePhaseSystem/ThermalPhaseChangePhaseSystem.C index baa5f46a1b..36efe90555 100644 --- a/applications/modules/multiphaseEuler/phaseSystems/ThermalPhaseChangePhaseSystem/ThermalPhaseChangePhaseSystem.C +++ b/applications/modules/multiphaseEuler/phaseSystems/ThermalPhaseChangePhaseSystem/ThermalPhaseChangePhaseSystem.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2015-2023 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2015-2024 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -689,9 +689,7 @@ Foam::ThermalPhaseChangePhaseSystem::correctInterfaceThermo() wallBoilingActive = true; - nDmdtf += - (interface == wbht.activePhaseInterface() ? +1 : -1) - *wbht.dmdtf(); + nDmdtf += (wbht.flipSign() ? -1 : +1)*wbht.dmdtf(); } forAllConstIter(phaseInterface, interface, interfaceIter) diff --git a/applications/modules/multiphaseEuler/thermophysicalTransportModels/heatTransferModels/wallBoiling/wallBoilingHeatTransfer.C b/applications/modules/multiphaseEuler/thermophysicalTransportModels/heatTransferModels/wallBoiling/wallBoilingHeatTransfer.C index 8d5d8ff891..640c6a1bed 100644 --- a/applications/modules/multiphaseEuler/thermophysicalTransportModels/heatTransferModels/wallBoiling/wallBoilingHeatTransfer.C +++ b/applications/modules/multiphaseEuler/thermophysicalTransportModels/heatTransferModels/wallBoiling/wallBoilingHeatTransfer.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2019-2023 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2019-2024 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -69,7 +69,6 @@ Foam::heatTransferModels::wallBoilingHeatTransfer::wallBoilingHeatTransfer .otherInterface() ), vapourPhaseName_(dict.lookup("vapourPhase")), - liquidPhaseName_(dict.lookup("liquidPhase")), heatTransferModel_ ( heatTransferModel::New @@ -81,7 +80,6 @@ Foam::heatTransferModels::wallBoilingHeatTransfer::wallBoilingHeatTransfer ) ), relax_(dict.lookupOrDefault("relax", scalar(1))), - seedFraction_(dict.lookupOrDefault("nucleationSeedFraction", 1e-4)), partitioningModel_(nullptr), nucleationSiteModel_(nullptr), departureDiamModel_(nullptr), @@ -395,14 +393,14 @@ activePhaseInterface(const phaseInterfaceKey& phaseInterface) const } -Foam::phaseInterfaceKey Foam::heatTransferModels::wallBoilingHeatTransfer:: -activePhaseInterface() const +bool Foam::heatTransferModels::wallBoilingHeatTransfer:: +flipSign() const { const phaseModel& liquid = interface_.continuous(); const phaseSystem& fluid = liquid.fluid(); const phaseModel& vapour(fluid.phases()[vapourPhaseName_]); - return phaseInterfaceKey(vapour, liquid); + return vapour.name() != phaseInterfaceKey(vapour, liquid).first(); } diff --git a/applications/modules/multiphaseEuler/thermophysicalTransportModels/heatTransferModels/wallBoiling/wallBoilingHeatTransfer.H b/applications/modules/multiphaseEuler/thermophysicalTransportModels/heatTransferModels/wallBoiling/wallBoilingHeatTransfer.H index f8af72ce33..025cb4e6ac 100644 --- a/applications/modules/multiphaseEuler/thermophysicalTransportModels/heatTransferModels/wallBoiling/wallBoilingHeatTransfer.H +++ b/applications/modules/multiphaseEuler/thermophysicalTransportModels/heatTransferModels/wallBoiling/wallBoilingHeatTransfer.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2019-2023 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2019-2024 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -46,7 +46,6 @@ Usage { type wallBoiling; - liquidPhase liquid; vapourPhase gas; heatTransferModel @@ -124,18 +123,12 @@ class wallBoilingHeatTransfer //- Name of the vapour phase const word vapourPhaseName_; - //- Name of the liquid phase - const word liquidPhaseName_; - //- Pointer to the underlying heat transfer model autoPtr heatTransferModel_; //- Relaxation factor const scalar relax_; - //- Bulk nucleation seed phase fraction - const scalar seedFraction_; - //- Run-time selected heat flux partitioning model autoPtr partitioningModel_; @@ -206,8 +199,8 @@ public: //- Is there phase change mass transfer for this phaseInterface bool activePhaseInterface(const phaseInterfaceKey&) const; - //- Key for the phase change phaseInterface - phaseInterfaceKey activePhaseInterface() const; + //- True if the sign of dmdtf should be changed + bool flipSign() const; //- Return the rate of phase-change const volScalarField& dmdtf() const; diff --git a/tutorials/multiphaseEuler/boilingBed/0/T.solid b/tutorials/multiphaseEuler/boilingBed/0/T.solid index d40c7a6025..f169d8ae28 100644 --- a/tutorials/multiphaseEuler/boilingBed/0/T.solid +++ b/tutorials/multiphaseEuler/boilingBed/0/T.solid @@ -31,7 +31,7 @@ boundaryField wall { type fixedValue; - value uniform 350; + value uniform 373; } front { diff --git a/tutorials/multiphaseEuler/boilingBed/0/omega.gas b/tutorials/multiphaseEuler/boilingBed/0/omega.gas index e5e1e62c53..5539a98cc5 100644 --- a/tutorials/multiphaseEuler/boilingBed/0/omega.gas +++ b/tutorials/multiphaseEuler/boilingBed/0/omega.gas @@ -10,7 +10,7 @@ FoamFile format ascii; class volScalarField; location "0"; - object omega.liquid; + object omega.gas; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -29,7 +29,7 @@ boundaryField outlet { type inletOutlet; - phi phi.liquid; + phi phi.gas; inletValue uniform 0.0015; value uniform 0.01; } diff --git a/tutorials/multiphaseEuler/boilingBed/constant/phaseProperties b/tutorials/multiphaseEuler/boilingBed/constant/phaseProperties index 43eaf0ef77..b15388c4aa 100644 --- a/tutorials/multiphaseEuler/boilingBed/constant/phaseProperties +++ b/tutorials/multiphaseEuler/boilingBed/constant/phaseProperties @@ -155,7 +155,6 @@ heatTransfer type wallBoiling; vapourPhase gas; - liquidPhase liquid; partitioningModel {