CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Writing an equation of state

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 3, 2017, 07:29
Default Writing an equation of state
  #1
Member
 
Yuva
Join Date: Oct 2015
Location: Korea Rep of
Posts: 33
Rep Power: 10
FAKHREDDINE is on a distinguished road
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
FAKHREDDINE is offline   Reply With Quote

Old   April 3, 2017, 10:06
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,803
Rep Power: 32
Opaque will become famous soon enough
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,
Opaque is offline   Reply With Quote

Old   April 3, 2017, 12:08
Default
  #3
Senior Member
 
Join Date: Jun 2009
Posts: 174
Rep Power: 16
turbo is on a distinguished road
Just use the gas table approach.
turbo is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Simple piston movement in cylinder- fluid models arun1994 CFX 4 July 8, 2016 02:54
continuity equation was diverging in transient state stenber FLUENT 0 March 19, 2016 22:37
Compression stoke is giving higher pressure than calculated nickjuana CFX 62 May 19, 2015 13:32
writing an acoustic code based on FW-H equation, have a question regarding pressure mrshb4 OpenFOAM Running, Solving & CFD 3 November 8, 2014 20:12
Equation of state for water? jinwon park Main CFD Forum 2 December 20, 2007 07:32


All times are GMT -4. The time now is 05:18.