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

Advanced threshold

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 22, 2013, 11:22
Default Advanced threshold
  #1
New Member
 
Ahmet Hungari
Join Date: Aug 2013
Posts: 2
Rep Power: 0
ahmethungari is on a distinguished road
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
ahmethungari is offline   Reply With Quote

Old   August 22, 2013, 12:32
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   August 22, 2013, 12:38
Default
  #3
New Member
 
Ahmet Hungari
Join Date: Aug 2013
Posts: 2
Rep Power: 0
ahmethungari is on a distinguished road
Thanks a lot for the answer. How do I use calculator? I could not figure it out...
ahmethungari is offline   Reply With Quote

Old   August 25, 2013, 07:25
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Reply

Tags
filters, paraview

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
what is coarse threshold and refine threshold? fireman FLUENT 0 January 31, 2010 01:02
How can I learn advanced parts of OpenFOAM? mmahdinia OpenFOAM 2 August 27, 2009 08:35
advanced output huwei CFX 1 March 21, 2001 15:43
Advanced Constraint Monir Hossain CFX 2 January 23, 2001 11:42
Advanced Constraints Sudarshan Kumar CFX 2 November 7, 2000 13:56


All times are GMT -4. The time now is 08:27.