|
[Sponsors] |
April 3, 2017, 08:29 |
Writing an equation of state
|
#1 |
Member
Yuva
Join Date: Oct 2015
Location: Korea Rep of
Posts: 33
Rep Power: 11 |
Hello
I would like to write new equation of state in CFX (Martin-Hou equation of state) in order to calculate the thermodynamic properties of the working fluid. I don't know how to do that ? can any one help with an example of implementing formulas in CFX using CFX Expression Language (CEL) ? thank you very much |
|
April 3, 2017, 11:06 |
|
#2 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
For a start, it would be great if you elaborate on your model ( I do not follow every equation of state). You can classify the equation of state into two overall groups: explicit in density (or specific volume), and implicit.
The explicit ones are easy to implement using CEL; however, implicit ones (usually a cubic function) require some kind of root finder to determine the specific volume (density) as a function of P and T. That is better done using UserFortran. Please keep in mind that an equation of state is not an isolated equation for specific volume, P and T. It also requires a consistent specific heat capacity since Cp is a Maxwell's relationship away from the equation of state. If that relation is not satisfied your energy calculations are of little use (broken thermodynamics), and your solution may never converge. My advice is to contact ANSYS CFX support for advice on existing functionality, or steps to implement a new equation of state. Hope the above helps, |
|
April 3, 2017, 13:08 |
|
#3 |
Senior Member
Join Date: Jun 2009
Posts: 174
Rep Power: 17 |
Just use the gas table approach.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Simple piston movement in cylinder- fluid models | arun1994 | CFX | 4 | July 8, 2016 03:54 |
continuity equation was diverging in transient state | stenber | FLUENT | 0 | March 19, 2016 23:37 |
Compression stoke is giving higher pressure than calculated | nickjuana | CFX | 62 | May 19, 2015 14:32 |
writing an acoustic code based on FW-H equation, have a question regarding pressure | mrshb4 | OpenFOAM Running, Solving & CFD | 3 | November 8, 2014 21:12 |
Equation of state for water? | jinwon park | Main CFD Forum | 2 | December 20, 2007 08:32 |