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

Changing the temperature calculation from Energy Equation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 11, 2017, 00:59
Question Changing the temperature calculation from Energy Equation
  #1
Member
 
godfatherBond's Avatar
 
Maximus Arelius
Join Date: Jan 2017
Location: Morocco
Posts: 36
Rep Power: 9
godfatherBond is on a distinguished road
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!!
godfatherBond is offline   Reply With Quote

Old   October 11, 2017, 02:35
Default
  #2
New Member
 
CFDfreak
Join Date: Dec 2016
Posts: 15
Rep Power: 9
nandhakumar is on a distinguished road
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 05:46.
nandhakumar is offline   Reply With Quote

Old   October 11, 2017, 05:25
Default
  #3
Member
 
godfatherBond's Avatar
 
Maximus Arelius
Join Date: Jan 2017
Location: Morocco
Posts: 36
Rep Power: 9
godfatherBond is on a distinguished road
Quote:
Originally Posted by nandhakumar View Post
asdadasdasdasdasdasdasdsadasd
Did not get you??
__________________
--
🃏Maximus🃏
godfatherBond is offline   Reply With Quote

Old   October 16, 2017, 01:42
Default
  #4
Member
 
godfatherBond's Avatar
 
Maximus Arelius
Join Date: Jan 2017
Location: Morocco
Posts: 36
Rep Power: 9
godfatherBond is on a distinguished road
Quote:
Originally Posted by nandhakumar View Post
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
Thanks @nandhakumar for your reply.
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🃏
godfatherBond is offline   Reply With Quote

Reply

Tags
rhopimplefoam, sigma-y model, temperature calculation


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
Source term energy equation for reactive flows DaIN Main CFD Forum 0 October 6, 2011 16:11
Energy Equation - Temperature difference wawa FLUENT 1 August 26, 2011 08:03
Constant velocity of the material Sas CFX 15 July 13, 2010 09:56
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 16:45
Viscosity and the Energy Equation Rich Main CFD Forum 0 December 16, 2009 15:01


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