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

help with cfx-post script : "area....@..."

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 11, 2009, 12:07
Default help with cfx-post script : "area....@..."
  #1
New Member
 
joe
Join Date: May 2009
Posts: 4
Rep Power: 17
terranova is on a distinguished road
hello,

i want to write a post-script with a request of a certain area (exactly: the area of a contour level).
I need a script, since i want to examine a row of res-files and contur-levels.
I use the perl-command "! $area1 = area("UserSurface conc Bio");" to determine the area. Afterwards i can write $area1 to a file.
The problem is, that, if the contur level does not have an area, i.e. area would be zero (area =0) it gives a failure and the script fails.
Does oneone have an idea to solve this?
thanks joe
terranova is offline   Reply With Quote

Old   May 11, 2009, 22:34
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,841
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Hi,

Why don't you check the min/max values of the variable to ensure the iso-surface will exist before you get the area?

Glenn Horrocks
ghorrocks is offline   Reply With Quote

Old   May 12, 2009, 04:36
Default
  #3
New Member
 
joe
Join Date: May 2009
Posts: 4
Rep Power: 17
terranova is on a distinguished road
thanks,
i thought the same already. problem (or not) are levels somewere in middle between min/max that have no area. But probleby such levels won't exists, so that the min/max method should work.
joe
terranova is offline   Reply With Quote

Reply


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
Transient animation performance in CFX 5.5 POST Sjoerd Romkes CFX 8 February 5, 2013 15:53
CFX Post processing aditya CFX 1 July 6, 2008 13:09
Proper output of angle of attack in CFX post Kevin CFX 3 October 18, 2006 13:18
(CFX POST) Rotational Speed ARJUN CFX 9 July 13, 2006 21:38
creating expresions in cfx build or cfx post alex CFX 1 August 22, 2002 14:01


All times are GMT -4. The time now is 21:23.