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

expression in CFX POST

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

Like Tree3Likes
  • 2 Post By ghorrocks
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2016, 12:26
Default expression in CFX POST
  #1
Member
 
Join Date: May 2016
Posts: 40
Rep Power: 6
zryan civil is on a distinguished road
Hello
I want to create expression to find Froude number (v/(gy)^0.5) at a certain location using line, from expression avgvelocity()@line1/(areaInt(water.vf)@line1/area()@line1)*g )^0.5 but it showed error. also I used the same expression for plane, the same problem occur
thanks for your help
zryan civil is offline   Reply With Quote

Old   July 9, 2016, 20:22
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 16,254
Rep Power: 125
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
Showing the error message might help.....

Note there is no function "avgvelocity()@line1".
ghorrocks is offline   Reply With Quote

Old   July 10, 2016, 02:34
Default
  #3
Member
 
Join Date: May 2016
Posts: 40
Rep Power: 6
zryan civil is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Showing the error message might help.....

Note there is no function "avgvelocity()@line1".
now the expression contain, function variable and location but still it gives error if bracket and SQRT removed only error from (Velocity) other wise error occur in all term under root.
areaAve(Velocity)@line1/[(areaInt(Water.Volume Fraction)@line1/area()@line1)*g]^0.5
I used velocity same as in the CFX documentation
zryan civil is offline   Reply With Quote

Old   July 10, 2016, 09:03
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 16,254
Rep Power: 125
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
CEL does not use square brackets. They need to be normal brackets.

You cannot do areaInt() of a line object. Or maybe you can - but the answer is zero as it has no area. Likewise the area() of a line is zero as well.

You still have not posted the error message you are getting....
Red Ember and zryan civil like this.
ghorrocks is offline   Reply With Quote

Old   July 10, 2016, 11:47
Default
  #5
Member
 
Join Date: May 2016
Posts: 40
Rep Power: 6
zryan civil is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
CEL does not use square brackets. They need to be normal brackets.

You cannot do areaInt() of a line object. Or maybe you can - but the answer is zero as it has no area. Likewise the area() of a line is zero as well.

You still have not posted the error message you are getting....
the follow error occur for line and plane
https://drive.google.com/open?id=0B3...HZWQWZzRkFHNHc
https://drive.google.com/open?id=0B3...1daaXlnZEQxRUU
thanks
zryan civil is offline   Reply With Quote

Old   July 10, 2016, 19:25
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 16,254
Rep Power: 125
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
The error message says exactly what the problem is. There is no variable called "Velocity", there is "U Velocity", "V Velocity" and "W Velocity", or the short version u, v, w.
zryan civil likes this.
ghorrocks is offline   Reply With Quote

Old   July 11, 2016, 07:53
Default
  #7
Member
 
Join Date: May 2016
Posts: 40
Rep Power: 6
zryan civil is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
The error message says exactly what the problem is. There is no variable called "Velocity", there is "U Velocity", "V Velocity" and "W Velocity", or the short version u, v, w.
I used U Velocity, and change bracket to normal the same error occur!!!
areaAve(U Velocity)@Plane 1/((areaInt(Water.Volume Fraction)@Plane 1/area()@Plane 1)*g)^0.5
zryan civil is offline   Reply With Quote

Old   July 11, 2016, 08:48
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 16,254
Rep Power: 125
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
Look in the CFX reference guide for the variable names. You need to get the variable names correct or it won't accept them. It is also case sensitive.
ghorrocks is offline   Reply With Quote

Old   July 14, 2016, 07:23
Default
  #9
Member
 
Join Date: May 2016
Posts: 40
Rep Power: 6
zryan civil is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Look in the CFX reference guide for the variable names. You need to get the variable names correct or it won't accept them. It is also case sensitive.
thanks
I used the velocity variable as cited in CFX reference but same error happen, just for test I used pressure (p) it gives a result as in attached pictures.
thanks for your suggestion
https://drive.google.com/open?id=0B3...WNlcjVVTDA1Mzg
https://drive.google.com/open?id=0B3...VpQZUl1c29OZms
zryan civil 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
export expression from CFX post owarlow CFX 5 November 12, 2019 16:43
writing execFlowFunctionObjects immortality OpenFOAM Post-Processing 30 September 15, 2013 06:16
Is it possible to obtain compressor map for axial compressor in CFX post ? Irondome CFX 1 June 16, 2013 06:24
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


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