solvers::multiphaseEuler: Reorganised thermophysicalPredictor

To ensure transport consistency between the composition and energy both must be
included in the optional energy corrector loop.
This commit is contained in:
Henry Weller
2023-02-10 12:49:35 +00:00
parent 029f58f433
commit f862b5142d
4 changed files with 58 additions and 55 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2015-2022 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2015-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -293,13 +293,20 @@ heatTransfer() const
}
template<class BasePhaseSystem>
void Foam::TwoResistanceHeatTransferPhaseSystem<BasePhaseSystem>::
predictThermophysicalTransport()
{
BasePhaseSystem::predictThermophysicalTransport();
correctInterfaceThermo();
}
template<class BasePhaseSystem>
void Foam::TwoResistanceHeatTransferPhaseSystem<BasePhaseSystem>::
correctThermophysicalTransport()
{
BasePhaseSystem::correctThermophysicalTransport();
correctInterfaceThermo();
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2015-2022 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2015-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -136,7 +136,11 @@ public:
//- Return the heat transfer matrices
virtual autoPtr<phaseSystem::heatTransferTable> heatTransfer() const;
//- Correct the energy transport e.g. alphat and Tf
//- Predict the energy transport e.g. alphat
// and interface properties e.g. Tf
virtual void predictThermophysicalTransport();
//- Correct the energy transport e.g. alphat
virtual void correctThermophysicalTransport();
//- Correct the interface thermodynamics