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

Retrieve Value from CEL Expression

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 13, 2013, 09:05
Default Retrieve Value from CEL Expression
  #1
New Member
 
Join Date: Apr 2013
Posts: 4
Rep Power: 4
Charon is on a distinguished road
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.
Charon is offline   Reply With Quote

Old   April 14, 2013, 07:14
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,951
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
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.
ghorrocks is offline   Reply With Quote

Old   April 15, 2013, 04:03
Default
  #3
New Member
 
Join Date: Apr 2013
Posts: 4
Rep Power: 4
Charon is on a distinguished road
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.
Charon is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFX CEL Expression for Cavitation Modeling kimotbwb CFX 1 February 15, 2013 06:51
Is there a limit for CEL expression length? fml2 CFX 2 March 27, 2012 02: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


All times are GMT -4. The time now is 09:15.