Files
OpenFOAM-12/applications/solvers/multiphase/compressibleInterFoam/TEqn.H
Henry Weller 038d85d713 compressibleInterFoam: Merged with compressibleInterDyMFoam
compressibleInterFoam can now run with static or dynamic meshes selected in the
constant/dynamicMeshDict dictionary.
2018-06-05 11:14:17 +01:00

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();
}