CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   help with cfx-post script : "area....@..." (https://www.cfd-online.com/Forums/cfx/64427-help-cfx-post-script-area.html)

terranova May 11, 2009 11:07

help with cfx-post script : "area....@..."
 
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

ghorrocks May 11, 2009 21:34

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

terranova May 12, 2009 03:36

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


All times are GMT -4. The time now is 12:31.