mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
using the continuity error correction formulation developed for twoPhaseEulerFoam and reactingEulerFoam.
30 lines
555 B
C
30 lines
555 B
C
{
|
|
fvScalarMatrix TEqn
|
|
(
|
|
fvm::ddt(rho, T) + fvm::div(rhoPhi, T)
|
|
- fvm::Sp(contErr, T)
|
|
- fvm::laplacian(mixture.alphaEff(turbulence->mut()), T)
|
|
+ (
|
|
divU*p
|
|
+ fvc::ddt(rho, K) + fvc::div(rhoPhi, K)
|
|
)
|
|
*(
|
|
alpha1/mixture.thermo1().Cv()
|
|
+ alpha2/mixture.thermo2().Cv()
|
|
)
|
|
==
|
|
fvOptions(rho, T)
|
|
);
|
|
|
|
TEqn.relax();
|
|
|
|
fvOptions.constrain(TEqn);
|
|
|
|
TEqn.solve();
|
|
|
|
fvOptions.correct(T);
|
|
|
|
mixture.correctThermo();
|
|
mixture.correct();
|
|
}
|