- prelude to code refactoring NOTE no source code change in this commit, only relocation, renaming and adjustment of Make/{files,options}
48 lines
1.1 KiB
C
48 lines
1.1 KiB
C
for (int Ecorr=0; Ecorr<nEnergyCorrectors; Ecorr++)
|
|
{
|
|
fluid.correctEnergyTransport();
|
|
|
|
autoPtr<phaseSystem::heatTransferTable>
|
|
heatTransferPtr(fluid.heatTransfer());
|
|
|
|
phaseSystem::heatTransferTable&
|
|
heatTransfer = heatTransferPtr();
|
|
|
|
if (!phase1.isothermal())
|
|
{
|
|
fvScalarMatrix E1Eqn
|
|
(
|
|
phase1.heEqn()
|
|
==
|
|
*heatTransfer[phase1.name()]
|
|
+ alpha1*rho1*(U1&g)
|
|
+ fvOptions(alpha1, rho1, thermo1.he())
|
|
);
|
|
|
|
E1Eqn.relax();
|
|
fvOptions.constrain(E1Eqn);
|
|
E1Eqn.solve();
|
|
fvOptions.correct(thermo1.he());
|
|
}
|
|
|
|
if (!phase2.isothermal())
|
|
{
|
|
fvScalarMatrix E2Eqn
|
|
(
|
|
phase2.heEqn()
|
|
==
|
|
*heatTransfer[phase2.name()]
|
|
+ alpha2*rho2*(U2&g)
|
|
+ fvOptions(alpha2, rho2, phase2.thermoRef().he())
|
|
);
|
|
|
|
E2Eqn.relax();
|
|
fvOptions.constrain(E2Eqn);
|
|
E2Eqn.solve();
|
|
fvOptions.correct(thermo2.he());
|
|
}
|
|
|
|
fluid.correctThermo();
|
|
fluid.correct();
|
|
}
|