# Expression language

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

 November 13, 2002, 08:39 Expression language #1 Andrej Guest   Posts: n/a Sponsored Links 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

 November 13, 2002, 08:48 Re: Expression language #2 Holidays Guest   Posts: n/a Are you working in conservative values?

 November 13, 2002, 09:21 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

 November 13, 2002, 09:35 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

 November 13, 2002, 09:39 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

 November 14, 2002, 03:21 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?

 November 14, 2002, 05:30 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.

 November 14, 2002, 06:20 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?

 November 14, 2002, 20:16 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

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

 November 18, 2002, 20:54 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

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post mitra FLUENT 14 February 16, 2016 13:07 lzgwhy Main CFD Forum 1 January 11, 2011 19:44 manaliac Main CFD Forum 2 November 29, 2010 07:25 Jamesd69climber CFX 8 February 17, 2005 18:23 Jan CFX 3 July 28, 2003 11:01