|
[Sponsors] |
April 13, 2013, 10:05 |
Retrieve Value from CEL Expression
|
#1 |
New Member
Join Date: Apr 2013
Posts: 4
Rep Power: 13 |
Hi,
i have got a question about the use of CEL Expressions in ANSYS CFX. I want to define the Massflow through an Inlet by using an cel expression. The density of the fluid is temperture depenent, but the temperture of the fluid entering at the inlet is constant during the simulation. Until now i evatuated the density at the given inlet-temperature manually and enterd the result in the configuration tab. My question is: Is there an cel expression to evaluate the density at a given temperature? Something like: Inlet_Density = evaluate(Oil_Density,300[K]) Thank for your help. |
|
April 14, 2013, 08:14 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
You cannot define something like the "function" gizmo in most programming languages. So just write the expression out for each variable which uses it. Alternately you can use a 1D or 3D interpolation function.
|
|
April 15, 2013, 05:03 |
|
#3 |
New Member
Join Date: Apr 2013
Posts: 4
Rep Power: 13 |
Thank you ghorrocks for your replie.
After reading your reply I realized that the my posted question was kind of sensless. In the end i don't know what i was thinking, when i was posting it. According to your reply, i will just copy the expression for the density an fill in the expression for the inlet-temperature at the nessecary places. Thanks. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFX CEL Expression for Cavitation Modeling | kimotbwb | CFX | 2 | March 28, 2018 04:26 |
Is there a limit for CEL expression length? | fml2 | CFX | 2 | March 27, 2012 03:20 |
How to install CGNS under windows xp? | lzgwhy | Main CFD Forum | 1 | January 11, 2011 19:44 |
CGNS lib and Fortran compiler | manaliac | Main CFD Forum | 2 | November 29, 2010 07:25 |
Lift, Drag Vs time chart,calculations | Jamesd69climber | CFX | 8 | February 17, 2005 18:23 |