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

CEL mathematical functions in CFD Post

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 5, 2012, 06:37
Default CEL mathematical functions in CFD Post
  #1
Senior Member
 
Join Date: Mar 2010
Posts: 181
Rep Power: 17
Jonathan is on a distinguished road
Hi guys,

I am normally a Fluent user, but an trying to do some quick post processing in CFD/CFX Post, and was wondering if any of the dyed in the wool CFX users could give me a quick helping hand?

I want to post process some data which i have not exported from my Fluent case file, but cannot seem to get CFD Post to recognise my CEL expression.

I was wondering if this was because CEL mathematical expressions are not recognised in CFD post, or perhaps my syntax is wrong? Can anyone help?

the expression is basically:

Code:
1.004*loge(Temperature)@X3-0.287*loge(Pressure)@X3
where X3 is a user created sampling plane.

As you can see, basically, I am trying to check the entropy generation calculation from my solver, but for some reason the expression is not accepted in CFD Post...

Any help from you CFX guys would be much appreciated,
best regards
Jon
Jonathan is offline   Reply With Quote

Old   November 5, 2012, 06:46
Default
  #2
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
You should get a warning that "The dimensions of the argument to function
'loge' are inconsistent".
Make the arguments dimensionless:
Code:
loge(Temperature/1[K])
Lance is offline   Reply With Quote

Old   November 5, 2012, 07:57
Default
  #3
Senior Member
 
Join Date: Mar 2010
Posts: 181
Rep Power: 17
Jonathan is on a distinguished road
Quote:
Originally Posted by Lance View Post
You should get a warning that "The dimensions of the argument to function
'loge' are inconsistent".
Make the arguments dimensionless:
Code:
loge(Temperature/1[K])
Hi Lance,

Thank you very much - yes, I see that now. However, I am not even getting that far ...

At the moment, i am getting the following exact error message:

Code:
ERROR
The following unrecognised name was referenced: loge.
Which is why i thought perhaps the CFX maths functions are not supported. Any ideas re: this specific error?

My exact code is:

Code:
1004*loge(Temperature/1[K])@X3 - 0.287*loge(Pressure/1[Pa])@X3
I have also tried the alias: ln

Thanks for your previous post - much appreciated
Regards
Jon
Jonathan is offline   Reply With Quote

Old   November 5, 2012, 08:13
Default
  #4
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
Sorry, I didnt look carefully at your expression. 'loge' does not accept a location (@X3). But something like:

1004*loge(Temperature/1[K]) - 0.287*loge(Pressure/1[Pa])

would create an variable. Then, go to Variables, create new variable, select your expression, then plot on your surface (or whatever you want to do with the expression/variable)
Lance is offline   Reply With Quote

Old   November 5, 2012, 08:16
Default
  #5
Senior Member
 
Join Date: Mar 2010
Posts: 181
Rep Power: 17
Jonathan is on a distinguished road
Ah thanks Lance - you're a champ - really appreciate that, have been tearing my hair out trying to figure out what i was doing wrong.

Much appreciated.

BTW, best reference for CEL / CCL : CFX User Guide??

CFD-Post UG seems a little thin for detail!
Jonathan is offline   Reply With Quote

Old   November 5, 2012, 08:20
Default
  #6
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
Yes, the Post guide is a bit thin about CEL, but have a look the in the CFX reference guide (cfx_ref.pdf). It has a whole chapter about CEL functions.
Lance is offline   Reply With Quote

Old   November 5, 2012, 08:25
Default
  #7
Senior Member
 
Join Date: Mar 2010
Posts: 181
Rep Power: 17
Jonathan is on a distinguished road
Cool, thanks lance, will check it out

Cheers
Jonathan
Jonathan is offline   Reply With Quote

Old   November 5, 2012, 09:20
Default
  #8
Senior Member
 
Join Date: Mar 2010
Posts: 181
Rep Power: 17
Jonathan is on a distinguished road
Hey thanks again Lance, this is working like a charm ... really appreciate your help today!

Cheers
Jonathan
Jonathan is offline   Reply With Quote

Old   November 5, 2012, 09:23
Default
  #9
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
That's great to hear, and I hope you didnt tear all of your hair out
Lance is offline   Reply With Quote

Old   November 5, 2012, 09:37
Default
  #10
Senior Member
 
Join Date: Mar 2010
Posts: 181
Rep Power: 17
Jonathan is on a distinguished road
haha, no stopped short, but nearly
Jonathan 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
CFD post, expressions help robcowlam FLUENT 0 February 21, 2012 15:14
cfd post hamid1 FLUENT 0 February 21, 2012 11:27
Plotting recirculation zone in CFD Post ashtonJ CFX 0 April 30, 2011 21:31
CFD post vector plot problem bharath CFX 3 February 8, 2011 18:16
ASME CFD Symposium - Call for Papers Chris Kleijn Main CFD Forum 0 September 25, 2001 11:17


All times are GMT -4. The time now is 02:07.