|
[Sponsors] |
How to calculate Cp (Heat Capacity at Constant Pressure) ? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 30, 2011, 06:01 |
How to calculate Cp (Heat Capacity at Constant Pressure) ?
|
#1 | |
New Member
Gian Maria Di Stefano
Join Date: Jan 2011
Location: University of Applied Science Manno (CH)
Posts: 10
Rep Power: 15 |
Hi foamers,
I'm trying to improve a new solver in OpenFOAM, but I have some problems. I need to calculate Cp (Heat Capacity at Constant Pressure), and I must add it in the standard solver "rhoPorousSimpleFoam". I tried to add a line in "createFields.H", but it doesn't work. Quote:
Or can I load properties of air by an external file? |
||
May 30, 2011, 07:20 |
|
#2 |
Senior Member
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23 |
What does the error say? Is it a compiler error or a runtime error? You will probably find the mistake is in the type you have given for the variable Cp. Check it against the return type of Cp in basicThermo.
__________________
Laurence R. McGlashan :: Website |
|
May 31, 2011, 10:09 |
|
#3 | ||||
New Member
Gian Maria Di Stefano
Join Date: Jan 2011
Location: University of Applied Science Manno (CH)
Posts: 10
Rep Power: 15 |
Hi Laurence, thanks for your reply.
So, I will explain you what is my problem. I want to create a new solutor, and I need for my calculations some variables: - enthalpy - pressure - heat costant Cp - rho But whenever h, p and rho are already gived, I must find the way to calculate Cp. My "createFields.H" file start with these lines: Quote:
Quote:
Quote:
How can I move to correct it? PS: if I check in "basicPsiThermo" file, I find this Quote:
Thanks in advance! |
|||||
May 13, 2019, 08:15 |
|
#5 |
Senior Member
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12 |
Hi foamers,
Why does cp(p,T) function return zero for ideal gas? How can I calculate it for other equation of states? Thanks |
|
November 10, 2021, 12:53 |
Cp=Cp.Janaf+Cp.EOS
|
#6 |
New Member
Join Date: May 2020
Posts: 4
Rep Power: 6 |
Hey, Cp=Cp.Janaf+Cp.EOS. It includes two parts: one is calculated using the Janaf relationship and the other one is calculated using the EOS. For ideal gas equation, the EOS part is zero. But when you are using the real-gas EOS, it is not zero and there is a departure function from the reference state.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
constant pressure drop | Smith | FLUENT | 1 | May 19, 2022 15:24 |
How to achieve constant static pressure in inlet? | Zou Jianfeng | FLUENT | 0 | October 21, 2008 02:55 |
Convective Heat Transfer - Heat Exchanger | Mark | CFX | 6 | November 15, 2004 16:55 |
Gas pressure question | Dan Moskal | Main CFD Forum | 0 | October 24, 2002 23:02 |
Hydrostatic pressure in 2-phase flow modeling (long) | DS & HB | Main CFD Forum | 0 | January 8, 2000 16:00 |