CFD Online Discussion Forums

CFD Online Discussion Forums (
-   ParaView (
-   -   Advanced threshold (

ahmethungari August 22, 2013 11:22

Advanced threshold
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...


wyldckat August 22, 2013 12:32

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,

ahmethungari August 22, 2013 12:38

Thanks a lot for the answer. How do I use calculator? I could not figure it out...

wyldckat August 25, 2013 07:25

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,

All times are GMT -4. The time now is 01:54.