CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] Advanced threshold

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 22, 2013, 12: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, 13:32
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 13: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, 08:25
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 04:55.