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

 August 22, 2013, 11:22 Advanced threshold #1 New Member   Ahmet Hungari Join Date: Aug 2013 Posts: 2 Rep Power: 0 Hi all, I want to use the threshold filter in a more advanced manner. Instead of defining lower and upper bounds of a scalar value, I want to see points with non-consecutive orders. For instance, I need to filter points with scalar values of only 1,3, and 11. Is there any filter for that? Currently, I'm loading same data three times and apply threshold filter for 1,3, and 11 separately... Thanks

 August 22, 2013, 12:32 #2 Super Moderator   Bruno Santos Join Date: Mar 2009 Location: Lisbon, Portugal Posts: 9,679 Blog Entries: 39 Rep Power: 103 Greetings Ahmet and welcome to the forum! Well, the first detail is that you do not need to load the data 3 times, you only need to apply the filter to the same data 3 times. This is why ParaView uses a "pipeline" in the "Pipeline Browser". As for using threshold with a list of values, I think you 'll need to use the "Python Calculator" filter for extracting only the values you want and then using threshold to distinguish the remaining values. Best regards, Bruno __________________ OpenFOAM: FAQ | Getting started Forum: How to get help, to post code/output and forum guide What am I doing/planning: blog/wiki Read this before sending me PM

 August 22, 2013, 12:38 #3 New Member   Ahmet Hungari Join Date: Aug 2013 Posts: 2 Rep Power: 0 Thanks a lot for the answer. How do I use calculator? I could not figure it out...

 August 25, 2013, 07:25 #4 Super Moderator   Bruno Santos Join Date: Mar 2009 Location: Lisbon, Portugal Posts: 9,679 Blog Entries: 39 Rep Power: 103 Hi Ahmet, I think the easiest is actually to use the Python Trace feature that ParaView has got, where you can use from the menu "Tools" the items "Start Trace" and "Stop Trace" for recording the steps you do for applying the 3 threshold filters and respective values and representations. Once you stop the trace, a new window will appear with Python source code. On this new windows, click on its menu item "File -> Save as Macro...". Once the macro is done, you can now use the respective macro that should be available in the "Macros" menu in ParaView, as well as in the macro toolbar. By choosing to run that macro, it will perform the same operations you did before and apply them to the selected item on the "Pipeline Browser". For more information about these features: Best regards, Bruno __________________ OpenFOAM: FAQ | Getting started Forum: How to get help, to post code/output and forum guide What am I doing/planning: blog/wiki Read this before sending me PM

 Tags filters, paraview

 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 fireman FLUENT 0 January 31, 2010 01:02 mmahdinia OpenFOAM 2 August 27, 2009 08:35 huwei CFX 1 March 21, 2001 15:43 Monir Hossain CFX 2 January 23, 2001 11:42 Sudarshan Kumar CFX 2 November 7, 2000 13:56

All times are GMT -4. The time now is 16:46.