mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
30 lines
561 B
C
30 lines
561 B
C
{
|
|
fvScalarMatrix TEqn
|
|
(
|
|
fvm::ddt(rho, T)
|
|
+ fvm::div(rhoPhi, T)
|
|
- fvm::laplacian(mixture.alphaEff(turbulence->mut()), T)
|
|
+ (
|
|
fvc::div(fvc::absolute(phi, U), 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();
|
|
}
|