compressibleInterFoam can now run with static or dynamic meshes selected in the constant/dynamicMeshDict dictionary.
29 lines
612 B
C
29 lines
612 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();
|
|
}
|