[Paraview] How to automate cell selection and stitching?

Torbjörn Klatt opensource at torbjoern-klatt.de
Fri Apr 5 04:44:30 EDT 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello ParaView Enthusiasts,

is there a way of automating (in the sense of creating a custom
filter, macro or Python script) the selection, extraction of that
selection and stitching of several selections into a single view?

In my scenario I'm carrying out a parameter study of a mathematical
model simulated on a relatively simple 2D geometry with (currently)
two functions on four areas. The geometry/grid is absolutely the same
for all simulation runs.
I.e. the first (view on YX-axis) 16x16 cells are area one; the next
8x16 cells are area 2; then follows 16x16 cells of area three and
finally 8x16 cells of area four.

However, I want to display the values of the first function (read
'data array') in the first and third area together with the values of
the second function in the second and fourth area in one single view.

My current workflow is as follows:
  1. mark and select the cells of the first area using "Select Cells On"
  2. apply Filter/Data Analysis/Extract Selection
  3. repeat steps 1 and 2 for the remaining three areas
  4. hide the whole (initial) grid and display only the four extracted
data sets
  5. for the first and third extracted area select function 1 for
colouring
  6. for the second and fourth extracted area select function 2 for
colouring

Now I want to do that for each result of my parameter study with
hundreds of independent runs and save the view after applying
aforementioned six steps to an image onto disk.

Is there a way of automating that? Either by creating a macro or
custom filter or via Python scripting. If so, how would that look like?
I haven't created any custom filters yet nor did I any Python
scripting for ParaView.

Cheers and thanks for any help in advance,
Torbjörn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRXo7uAAoJENyw9v81DsTGiaYH/39P9LjufITKawmaLrHKehXQ
V7ND/oysFQ9+/nH8PbTqVzUbVtfLjLw+1hTwAVEMW6JtX5SPh+QO0PSvQo2cSffd
l5rC5dygvXE6BiOLhA1oYvNDACsq95iuB1IWRTLraKzwAFEONsf8Uk9pBdKO7kC8
go6TPbxg7y64bZx1IBChSE8X3QmIC1D40k3qMxyrVCwMFzGB6SRxMZAspFQLySxj
fP6aogttc2JQrdbk8cwbpH1gIXbq4HijXOnLOmb3CKR0eWmdn6tVno8nGw/Fk08s
T5qGTMRkvivQeso719vfqZq9F6iWNqAVPoG47AzsAJC4QX5zmtDG4/ytgy6tkNE=
=/ndd
-----END PGP SIGNATURE-----


More information about the ParaView mailing list