# Changing the temperature calculation from Energy Equation

 Register Blogs Members List Search Today's Posts Mark Forums Read

 October 10, 2017, 23:59 Changing the temperature calculation from Energy Equation #1 Member     Maximus Arelius Join Date: Jan 2017 Location: Morocco Posts: 36 Rep Power: 9 Hi Foamers, I am a newbie to the OpenFOAM community and am trying to code Sigma-Y homogeneous fluid model to model primary atomization using the rhoPimpleFoam solver as the basis. Now the temperatutre calculation from the energy equation needs to have a contribution of both phases say Water and Gas i.e. T = h / ( Y*Cp_liq + (1-Y) * Cp_gas ) where Y-Liquid Mass Fraction Now once I find this new temperature , that should be used in the Equation of State to find the density. Could someone please suggest how to approach this problem!!

 October 11, 2017, 01:35 #2 New Member   CFDfreak Join Date: Dec 2016 Posts: 15 Rep Power: 9 Sorry for that previous post. It was error from my side. Since it contains liquid as well the the equation of state will produce more error. The equation of state should be far away from the condenstaion to have less error. Most of the case if it involves liquid as well as vapour we use charts (for example in case of water steam tables). If you want to directly use those charts in openfoam I have no idea. But you can get those formulas and try to implement in openfoam Thank you Last edited by nandhakumar; October 11, 2017 at 04:46.

October 11, 2017, 04:25
#3
Member

Maximus Arelius
Join Date: Jan 2017
Location: Morocco
Posts: 36
Rep Power: 9
Quote:
Did not get you??
__________________
--
🃏Maximus🃏

October 16, 2017, 00:42
#4
Member

Maximus Arelius
Join Date: Jan 2017
Location: Morocco
Posts: 36
Rep Power: 9
Quote:
 Originally Posted by nandhakumar Sorry for that previous post. It was error from my side. Since it contains liquid as well the the equation of state will produce more error. The equation of state should be far away from the condenstaion to have less error. Most of the case if it involves liquid as well as vapour we use charts (for example in case of water steam tables). If you want to directly use those charts in openfoam I have no idea. But you can get those formulas and try to implement in openfoam Thank you
Sorry for not explaining my question correctly.
It is not the steam quality Y.
It is actually the homogeneous fluid approach for two phase flow.
I am trying to solve for two phases i.e. liquid and gas considering them as a single fluid.
Now Temperature of the mixture will have contribution from both phases i.e. CpLiq and CpGas. But the implementation in openfoam has contribution from only one phase.
Do you know how to calculate Temperature from the energy equation using
Temp= Y*CpLiq + (1-Y)*CpGas. Assume for now they are both constant Cp's.
Thanks
__________________
--
🃏Maximus🃏

 Tags rhopimplefoam, sigma-y model, temperature calculation