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

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

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 11, 2009, 11:07
Default help with cfx-post script : "area....@..."
  #1
New Member
 
joe
Join Date: May 2009
Posts: 4
Rep Power: 8
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, 21:34
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,824
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
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, 03:36
Default
  #3
New Member
 
joe
Join Date: May 2009
Posts: 4
Rep Power: 8
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

Thread Tools
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 On
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 12:09
Proper output of angle of attack in CFX post Kevin CFX 3 October 18, 2006 12:18
(CFX POST) Rotational Speed ARJUN CFX 9 July 13, 2006 20:38
creating expresions in cfx build or cfx post alex CFX 1 August 22, 2002 13:01


All times are GMT -4. The time now is 10:58.