|
[Sponsors] |
August 22, 2013, 12: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, 13:32 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
August 22, 2013, 13: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, 08:25 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
Tags |
filters, paraview |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM advanced training. July 22-26, 2019. Uni. Genova, Italy - Wolfdynamics | joegi.geo | OpenFOAM Announcements from Other Sources | 0 | March 28, 2019 12:57 |
OpenFOAM advanced training. February 5-8, 2019. Uni. Genova, Italy - Wolfdynamics | joegi.geo | OpenFOAM Announcements from Other Sources | 0 | January 10, 2019 02:28 |
velocity and cell coordinates on Threshold plane- Inflow Plane of virtual Disk | surajp92 | STAR-CCM+ | 2 | June 21, 2017 10:48 |
what is coarse threshold and refine threshold? | fireman | FLUENT | 0 | January 31, 2010 01:02 |
advanced output | huwei | CFX | 1 | March 21, 2001 15:43 |