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

Expression language

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 13, 2002, 07:39
Default Expression language
  #1
Andrej
Guest
 
Posts: n/a
Hi !

I am trying to calculate the average streamwise velocity in my flow. CFX guys adviced me to write an expression in CFX-Build e.g.

uaver=volumeAve(u)@fsub (fsub is my subdomain name)

The problem with this is, that the return values are something else then I expected and they are not consistent with the expression

uavar=volumeAve(Velocity u)@fsub

in CFX-Post. Does anyone has a idea what is wrong and how should I get my streamwise velocity average.

Thanks, Andrej

  Reply With Quote

Old   November 13, 2002, 07:48
Default Re: Expression language
  #2
Holidays
Guest
 
Posts: n/a
Are you working in conservative values?
  Reply With Quote

Old   November 13, 2002, 08:21
Default Re: Expression language
  #3
Andrej
Guest
 
Posts: n/a
Hi Holidays !

For faster communication I would rather have your e-mail address.

Till now I haven't discover conservative/non-conservative switch in CFX5 solver.

I think that incompressible calculation was selected somewhere, but I cannot find where.

Nevertheless, this should not effect expression volumeAve()@fsub. For example volumeAve(v)@fsub calculates 10000 time higher value than volumeAve(Velocity v)@fsub in CFX-Post; volumeAve(u)@fsub returns 48 per cent of volumeAve(velocity u)@fsub value.

Andrej

  Reply With Quote

Old   November 13, 2002, 08:35
Default Re: Expression language
  #4
Robin
Guest
 
Posts: n/a
Hi Andrej,

It will affect your calculation in Post. Hybrid values use the value at the wall for the wall node instead of the near wall control volume (which you get if you choose "conservative").

Robin
  Reply With Quote

Old   November 13, 2002, 08:39
Default Re: Expression language
  #5
Andrej
Guest
 
Posts: n/a
Hi !

Hybrid/Conservative switch in CFX-post changes values for max 10 per cent, but not for factor of 10000.

Andrej
  Reply With Quote

Old   November 14, 2002, 02:21
Default Re: Expression language
  #6
Holidays
Guest
 
Posts: n/a
With such a discrepancy you must be able to suspect one or the other to be the faulty expression. Which one is it?
  Reply With Quote

Old   November 14, 2002, 04:30
Default Re: Expression language
  #7
Andrej
Guest
 
Posts: n/a
Hi !

Apparently I discover a new bug; Is there a bug list for CFX programs ? I don't like to spend much time on mistakes of others.

CFX 5.5 is not able to calculate correct volumetric average for velocity components - something has to be wrong with integration. Expressions:

volumeAve(u)@domain and volumeInt(u)@domain do not produce right values. The same is for v and w.

I did't have any problem calculating pressure (p) volumetric average (volumeAve) or areal average (areaAve) for velocity components (u,v,w).

It is just velocity volumetric average or integration which I found WRONG.

Andrej

P.S. Maybe CFX 5.5.1 doesn't have this problem any more.
  Reply With Quote

Old   November 14, 2002, 05:20
Default Re: Expression language
  #8
Michael Bo
Guest
 
Posts: n/a
"P.S. Maybe CFX 5.5.1 doesn't have this problem any more. "

...or 5.6 Beta?

  Reply With Quote

Old   November 14, 2002, 19:16
Default Re: Expression language
  #9
Robin
Guest
 
Posts: n/a
So, to get this straight. You calculated an expression in the solver and the same expression in Post and the result is different?

How were you reporting the result of the expression from the solver?

Also, what units is the solver running in and what units are you evaluating to in Post?

Robin
  Reply With Quote

Old   November 15, 2002, 20:17
Default Re: Expression language
  #10
Neale
Guest
 
Posts: n/a
I don't think this is in the solver, Andrej is saying that volumeAve(Velocity <u|v|w>)@location is giving different results that volumeAve(<u|v|w>)@location, in CFX-Post. Perhaps whoever works on CFX-Post should be informed of this, if it's true and can be reproduced.

Neale.
  Reply With Quote

Old   November 18, 2002, 19:54
Default Re: Expression language
  #11
Robin
Guest
 
Posts: n/a
Yes, I can see that from he previous post. What I would like to know is where he is calling this in the solver and how it is being reported.

Robin
  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
Problem About Running Fluent In Linux mitra FLUENT 18 June 20, 2019 02:11
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 18:44
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 06:25
Lift, Drag Vs time chart,calculations Jamesd69climber CFX 8 February 17, 2005 17:23
Creating, loop or iteration using expression edito Jan CFX 3 July 28, 2003 11:01


All times are GMT -4. The time now is 22:13.