April 20, 2023, 11:16
|
how is latent heat acounted for during phase change in compressibleInterFoam of9?
|
#1
|
New Member
S Abrahams
Join Date: Mar 2022
Location: UK
Posts: 14
Rep Power: 4
|
I'm using compressibleInterFoam in OpenFOAM 9. It is possible to allow phase change using the Kunz, Merkle or Schnerr-Sauer models.
I expected there to be a source term in the temperature equation to account for the latent heat taken/released during vaporisation/condensation. I can't see any such source term or any correction to the temperature due to phase change.
Code:
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))()()
- (U()&(fvModels.source(rho, U)&U)()) - contErr*K
)
*(
alpha1()/mixture.thermo1().Cv()()
+ alpha2()/mixture.thermo2().Cv()()
)
==
fvModels.source(rho, T)
);
TEqn.relax();
fvConstraints.constrain(TEqn);
TEqn.solve();
fvConstraints.constrain(T);
mixture.correctThermo();
mixture.correct();
I believe fvModels.source allows for a user-defined source term in an fvModels file and does not relate to latent heat or phase change.
Is a latent heat source term or temperature correction defined elsewhere? Or is the latent heat energy not accounted for in this solver?
|
|
|