CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   CEL mathematical functions in CFD Post (https://www.cfd-online.com/Forums/cfx/108926-cel-mathematical-functions-cfd-post.html)

Jonathan November 5, 2012 05:37

CEL mathematical functions in CFD Post
 
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

Lance November 5, 2012 05:46

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])

Jonathan November 5, 2012 06:57

Quote:

Originally Posted by Lance (Post 390297)
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

Lance November 5, 2012 07:13

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)

Jonathan November 5, 2012 07:16

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!

Lance November 5, 2012 07:20

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.

Jonathan November 5, 2012 07:25

Cool, thanks lance, will check it out

Cheers
Jonathan

Jonathan November 5, 2012 08:20

Hey thanks again Lance, this is working like a charm ... really appreciate your help today!

Cheers
Jonathan

Lance November 5, 2012 08:23

That's great to hear, and I hope you didnt tear all of your hair out :)

Jonathan November 5, 2012 08:37

haha, no stopped short, but nearly ;)


All times are GMT -4. The time now is 01:08.