CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   interPhaseChangeFoam: Adding a T.liquid file (https://www.cfd-online.com/Forums/openfoam-pre-processing/243674-interphasechangefoam-adding-t-liquid-file.html)

prinux June 30, 2022 03:15

interPhaseChangeFoam: Adding a T.liquid file
 
Hello Foamers,

I'm relatively new to OpenFOAM and have been tasked to extend interPhaseChangeFoam for solving multiphase simulation with heat and mass transfer. I have added an EEqn.H to the solver files and it compiles without issues.

My question is : How do I initialize temperatures for the different phases in my simulation. I am able to add temperature as a boundary condition to the walls of the domain.

Previously, I had tried to do the same using setFieldsDict, but all it does is initialize the temperature field for the phases, but doesn't get solved for the next time step and the temperature field reverts to the internal field value defined in 0/T.orig file. Do I have to add a T.liquid or a T.vapour file in the 0 folder of my case files, like in multiPhaseEulerFoam, or have I missed something while extending the solver?

I'm using OpenFOAM v8 on Ubuntu 20.04.

Thanks,
Prithvi


All times are GMT -4. The time now is 15:14.