mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
29 lines
609 B
C
29 lines
609 B
C
{
|
|
fvScalarMatrix TEqn
|
|
(
|
|
fvm::ddt(rho, T) + fvm::div(rhoPhi, T) - fvm::Sp(contErr, T)
|
|
- fvm::laplacian(turbulence.alphaEff(), T)
|
|
+ (
|
|
fvc::div(fvc::absolute(phi, U), p)()() - contErr/rho*p
|
|
+ (fvc::ddt(rho, K) + fvc::div(rhoPhi, K))()() - contErr*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();
|
|
}
|