wallBoilingHeatTransfer: Sign correction, and clean up unused members
Patch contributed by Timo Niemi, VTT.
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2015-2023 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2015-2024 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -689,9 +689,7 @@ Foam::ThermalPhaseChangePhaseSystem<BasePhaseSystem>::correctInterfaceThermo()
|
||||
|
||||
wallBoilingActive = true;
|
||||
|
||||
nDmdtf +=
|
||||
(interface == wbht.activePhaseInterface() ? +1 : -1)
|
||||
*wbht.dmdtf();
|
||||
nDmdtf += (wbht.flipSign() ? -1 : +1)*wbht.dmdtf();
|
||||
}
|
||||
|
||||
forAllConstIter(phaseInterface, interface, interfaceIter)
|
||||
|
||||
@ -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<scalar>("relax", scalar(1))),
|
||||
seedFraction_(dict.lookupOrDefault<scalar>("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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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> heatTransferModel_;
|
||||
|
||||
//- Relaxation factor
|
||||
const scalar relax_;
|
||||
|
||||
//- Bulk nucleation seed phase fraction
|
||||
const scalar seedFraction_;
|
||||
|
||||
//- Run-time selected heat flux partitioning model
|
||||
autoPtr<Foam::wallBoilingModels::partitioningModel>
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user