CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

how is latent heat acounted for during phase change in compressibleInterFoam of9?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 20, 2023, 12:16
Question how is latent heat acounted for during phase change in compressibleInterFoam of9?
  #1
New Member
 
S Abrahams
Join Date: Mar 2022
Location: UK
Posts: 15
Rep Power: 4
sabrahams is on a distinguished road
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?
sabrahams is offline   Reply With Quote

Reply

Tags
compressibleinterfoam, latent heat, phase change


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Heat pipe simulation with phase change mecman OpenFOAM Running, Solving & CFD 10 May 8, 2020 04:42
Conjugate heat transfer with phase change produced wrong temperature qtruong OpenFOAM Programming & Development 0 July 10, 2018 15:16
Effective heat capacity - Phase change does not work!!! papteo CFX 8 October 31, 2013 06:15
Phase change heat transfer Lexa FLUENT 0 October 10, 2011 03:53
help needed about phase change Yanhu Guo Main CFD Forum 4 January 24, 2001 00:16


All times are GMT -4. The time now is 12:47.