Re: [Paraview] ParaView newbie with a (hopefully) simple question

2017-08-07 Thread u . utku . turuncoglu
Hi,

You can use trace feature (under Tools -> Start Trace) of ParaView to
generate desired Python script with little bit modification. For example,
I generated a Python script to open single pieces of multi-piece dataset
and add loop to script to automatically open them,

from paraview.simple import *
import glob, os

paraview.simple._DisableFirstRenderCameraReset()

os.chdir("/Users/turuncu/Desktop/a")

for file in glob.glob("atmos_CROSSpoint*.vtk"):
# create a new 'Legacy VTK Reader'
ocean_CROSSpoint9600vtk = LegacyVTKReader(FileNames=[file])
...
...
...

So, with same logic you could create a script that group two file and
modify the Python script to make it automatic for any number of files. I
hope it helps,

Regards,

--ufuk

> Hello everyone,
>
> I was assigned a small project on ParaView and I need help getting
> started.
>
> I need to find a way to loop through N number of source files in the
> Pipeline Browser and return the count for number N and group them together
> using the group dataset filter.
>
> Each time I upload the data it will be a different number of files that
> look something like this:
> [image: Inline image 1]
> Right now there are N=22 files but the N will differ each time. So I want
> to create a script/or programmable filter that will loop through every
> file
> in the pipeline browser, add it to a group dataset, and lastly print the
> number N.
>
> How would I begin to do this? Can this be done with a simple script that I
> can just copy and paste each time in the shell? Would it be easier to
> build
> a programmable filter?
>
> Any help would be appreciated !
>
> Thanks,
> Amy
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Dynamic colouring of the geometry in the animation of warped eigenmodes

2017-08-07 Thread Moreland, Kenneth
Juha,

As Cory said you can create a plugin to replicate this behavior, but I believe 
you can also get similar behavior through a collection of filters. Although 
this is a bit cumbersome, you can try the following steps:

1. Before applying the WarpByVector filter, add the Calculator filter to your 
data. Set the "Result Array Name" to "OriginalCoords" and the expression to 
simply "coords". This will capture the point coordinates before warping.
2. Apply WarpByVector to this calculator filter as you did before to the FEM 
data.
3. Apply another Calculator filter to the output of WarpByVector. This time, 
set the "Result Array Name" to "ActualDisplacement" and the expression to 
"coords-OriginalCoords". This will capture the actual displacement applied 
after the scale factor is used.
4. Color your data by the "ActualDispalcement" field.
5. Set up your animation of the "ScaleFactor" for the WarpByVector filter as 
you did before.

You should now see "dynamic" colors based on the magnitude of the actual 
displacement.

-Ken

-Original Message-
From: ParaView [mailto:paraview-boun...@paraview.org] On Behalf Of Cory Quammen
Sent: Monday, August 7, 2017 7:27 AM
To: Juha Kortelainen 
Cc: ParaView 
Subject: [EXTERNAL] Re: [Paraview] Dynamic colouring of the geometry in the 
animation of warped eigenmodes

On Sun, Aug 6, 2017 at 1:30 PM, Juha Kortelainen  
wrote:
> Hi all,
>
> I’m using the warp filter to visualise the computed eigenmodes of a 
> structure (computed using a FEM code). Animating the eigenmodes works 
> fine with the WarpByVector filter using the ScalarFactor as the 
> animation variable. In addition to animating the deformation of the 
> structure, I would like to apply colouring of the deformation vector 
> field on the geometry so that the colour would change dynamically 
> according to the magnitude of deformation during the animation. This 
> can be done with the Salome platform’s ParaViS modile (a modified 
> version of ParaView), which has an additional ScaleVector filter to do 
> the colouring trick. Can this dynamic colouring be done with standard 
> ParaView and if so, how is it done?

Yes, with some work. Take a look at this blog post for the general
idea: 
https://blog.kitware.com/easy-customization-of-the-paraview-python-programmable-filter-property-panel/

Basically, you can create XML plugins based on the Programmable Filter that 
feature some properties, such as a scale factor. The scale factor property 
should be exposed in the animation controls. Within your Programmable Filter 
script, you can perform the scaling of the vector with that scale factor 
property value. There are many examples of Python scripts for the Programmable 
Filter in Section 13.3 the ParaView Guide to get you started.

HTH,
Cory

>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>J
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>



--
Cory Quammen
Staff R Engineer
Kitware, Inc.
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Paraview Catalyst offscreen rendering

2017-08-07 Thread Andy Bauer
Hi,

I'd recommend trying to run pvserver or pvbatch in parallel and see if you
get the same error. My guess is that it's a connection or firewall issue.

On Thu, Aug 3, 2017 at 7:46 AM, Lukáš Kresta  wrote:

> Thank you. With new build from support I got new error: ERROR: In
> /apps/easybuild/build/ParaView/5.4.0/intel-2017a-
> mpi-OSPRay-TEST/ParaView-v5.4.0/ParaViewCore/ClientServerCore/Core/
> vtkTCPNetworkAccessManager.cxx, line 413
> vtkTCPNetworkAccessManager (0x6edc60):
> Should I try to rebuild ParaView or now it is problem with firewall or
> something like that?
>
> 2017-07-27 20:13 GMT+02:00 Andy Bauer :
>
>> I think what you're missing is -DVTK_USE_X=OFF and probably
>> -DVTK_USE_OFFSCREEN=ON. If that doesn't work, please send your
>> CMakeCache.txt from your build directory.
>>
>> On Thu, Jul 27, 2017 at 5:48 AM, Lukáš Kresta 
>> wrote:
>>
>>> it was build with easybuild with these parametrs:
>>>
>>> cmake 
>>> /apps/easybuild/build/ParaView/5.4.0/intel-2017a-mpi-OSPRay/ParaView-v5.4.0/
>>>
>>> -DCMAKE_INSTALL_PREFIX=/apps/all/ParaView/5.4.0-intel-2017a-mpi-OSPRay
>>>
>>> -DCMAKE_C_COMPILER='mpiicc' -DCMAKE_Fortran_FLAGS='-O2 -xHost -ftz 
>>> -fp-speculation=safe -fp-model source -fPIC'
>>>
>>> -DCMAKE_CXX_FLAGS='-O2 -xHost -ftz -fp-speculation=safe -fp-model source 
>>> -fPIC' -DCMAKE_CXX_COMPILER='mpiicpc'
>>>
>>> DCMAKE_Fortran_COMPILER='mpiifort' -DCMAKE_C_FLAGS='-O2 -xHost -ftz 
>>> -fp-speculation=safe -fp-model source -fPIC'
>>>
>>> -DCMAKE_VERBOSE_MAKEFILE=ON -DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON 
>>> -DVTK_OPENGL_HAS_OSMESA=ON
>>>
>>> -DPARAVIEW_USE_MPI=ON -DOPENGL_INCLUDE_DIR=$EBROOTMESA/include 
>>> -DOPENGL_gl_LIBRARY=$EBROOTMESA/lib/libGL.so
>>>
>>> -DOSMESA_INCLUDE_DIR=$EBROOTMESA/include 
>>> -DOSMESA_LIBRARY=$EBROOTMESA/lib/libOSMesa.so
>>>
>>> -DOPENGL_glu_LIBRARY=$EBROOTLIBGLU/lib/libGLU.so -DVTK_USE_SYSTEM_HDF5=ON 
>>> -DPARAVIEW_ENABLE_PYTHON=ON -DBUILD_SHARED_LIBS=ON
>>>
>>> -DVTK_RENDERING_BACKEND=OpenGL2 -DPARAVIEW_USE_OSPRAY=ON 
>>> -DOSPRAY_INSTALL_DIR=$EBROOT
>>>  OSPRAY -DPARAVIEW_QT_VERSION=5 -DBUILD_TESTING=OFF
>>>
>>>
>>> I hope, it will help solve my problem. If you need, i can send you complete 
>>> log.
>>>
>>>
>>> 2017-07-26 17:37 GMT+02:00 Andy Bauer :
>>>
 Hi,

 It sounds like you didn't properly build with OSMesa. If you share your
 CMakeCache.txt from your ParaView build I can see if I can track down the
 problem.

 Best,
 Andy

 On Wed, Jul 26, 2017 at 11:20 AM, Lukáš Kresta 
 wrote:

> Thank you, but I have ParaView build with OSMesa without X. If I run
> program with Catalyst(genereted script from ParaView, with render views) 
> on
> cluster with mpi, ussually one render view will show, but on anothers
> process it crash with this error: ERROR: In .../ParaView-v5.4.0/VTK/Render
> ing/OpenGL2/vtkOpenGLRenderWindow.cxx, line 819
> vtkXOpenGLRenderWindow (0x3f7cbf0): GLEW could not be initialized. I
> have the same error with pvserver with or without 
> --use-offscreen-rendering
> or without pvserver.
>
> If i run Catalyst with script only for live visualization then the
> program go without problem but i dont get pictures which i want. Is there
> some posibility how fix the error or how to get pictures(with offscreen
> rendering)?
>
> 2017-07-14 16:24 GMT+02:00 Andy Bauer :
>
>> Hi,
>>
>> If you're not memory constrained I suggest just doing a full ParaView
>> build with OSMesa and X11 disabled. There are quite a few discussions on
>> the PV mailing list on how to do that.
>>
>> If you're memory constrained then I would suggest building with all
>> of the Catalyst editions enabled and see if that works for you.
>>
>> Best,
>> Andy
>>
>> On Fri, Jul 14, 2017 at 3:31 AM, Lukáš Kresta > > wrote:
>>
>>> Hi,
>>>
>>> I would like to ask, which Paraview Catalyst (python) script
>>> use(with render view or live visualization). If i want save images with
>>> offscreen rendering on HPC.  On cluster is no gpu. And how to properly 
>>> use
>>> it?
>>>
>>> Thank you for your help.
>>>
>>>
>>>
>>>
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/paraview
>>>
>>>
>>
>

>>>
>>
>

Re: [Paraview] Dynamic colouring of the geometry in the animation of warped eigenmodes

2017-08-07 Thread Cory Quammen
On Sun, Aug 6, 2017 at 1:30 PM, Juha Kortelainen
 wrote:
> Hi all,
>
> I’m using the warp filter to visualise the computed eigenmodes of a
> structure (computed using a FEM code). Animating the eigenmodes works fine
> with the WarpByVector filter using the ScalarFactor as the animation
> variable. In addition to animating the deformation of the structure, I would
> like to apply colouring of the deformation vector field on the geometry so
> that the colour would change dynamically according to the magnitude of
> deformation during the animation. This can be done with the Salome
> platform’s ParaViS modile (a modified version of ParaView), which has an
> additional ScaleVector filter to do the colouring trick. Can this dynamic
> colouring be done with standard ParaView and if so, how is it done?

Yes, with some work. Take a look at this blog post for the general
idea: 
https://blog.kitware.com/easy-customization-of-the-paraview-python-programmable-filter-property-panel/

Basically, you can create XML plugins based on the Programmable Filter
that feature some properties, such as a scale factor. The scale factor
property should be exposed in the animation controls. Within your
Programmable Filter script, you can perform the scaling of the vector
with that scale factor property value. There are many examples of
Python scripts for the Programmable Filter in Section 13.3 the
ParaView Guide to get you started.

HTH,
Cory

>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>



-- 
Cory Quammen
Staff R Engineer
Kitware, Inc.
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Link between objects

2017-08-07 Thread Riccardo Rossi
Hi Mathieu.



I gave the box a try and works indeed.



It would be nice though being able to link “fully” any other object as clips or 
slices when comparing multiple dataset and spare the user from changing 
manually the properties of the filters in each dataset.



As for the bugtracker, I’ve already opened a ticket concerning an issue when 
linking the proxy property “plane” of the “Plot over intersection curve” 
filter, which systematically crashes.



Thanks for the feedback,



Riccardo



From: Mathieu Westphal [mailto:mathieu.westp...@kitware.com]
Sent: Monday, August 07, 2017 9:01 AM
To: Riccardo Rossi 
Cc: ParaView 
Subject: Re: [Paraview] Link between objects



Hello Riccardo

It should work and it does in most cases (not in yours though).

You can try the following.

 - Create a Box

 - Create another Box

 - "Object" Link both box

 - Change a parameter in one box, Apply

 - Same parameter is changed in the other box as well

As for your example with the slice (or clip, or any filter using a 
ProxyProperty) this does not seems to work and you indeed need to link the 
proxy property itself in order to obtain this.

In terms of usability, it means that "Object" Link will not go down the object 
tree visible in the manager, but only link all property at the level of the 
object.

I am unsure if this is a missing feature or a bug, in any case, feel free to 
open an issue in the bugtracker, I see that you've already created an account.

Thanks for your report.

Regards,




Mathieu Westphal



On Sun, Aug 6, 2017 at 1:18 AM, Riccardo Rossi  > wrote:

Hi.



I’m a little confused about how links between objects are supposed to work.



For example, if I create two clip filters and make a link between the “plane” 
property of the two objects, everything works fine.



However, if I make the link between the two objects I would expect all the the 
properties to be updated automatically in the child object (as reported in the 
wiki) but this time the link seems not to work at all.


Am I missing something?



Thanks,



Riccardo




 


Virus-free.  

 www.avast.com


___
Powered by www.kitware.com 

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview





---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Link between objects

2017-08-07 Thread Mathieu Westphal
Hello Riccardo

It should work and it does in most cases (not in yours though).
You can try the following.
 - Create a Box
 - Create another Box
 - "Object" Link both box
 - Change a parameter in one box,
*Apply*
 - Same parameter is changed in the other box as well

As for your example with the slice (or clip, or any filter using a
ProxyProperty) this does not seems to work and you indeed need to link the
proxy property itself in order to obtain this.
In terms of usability, it means that "Object" Link will not go down the
object tree visible in the manager, but only link all property at the level
of the object.
I am unsure if this is a missing feature or a bug, in any case, feel free
to open an issue in the bugtracker, I see that you've already created an
account.

Thanks for your report.
Regards,

Mathieu Westphal

On Sun, Aug 6, 2017 at 1:18 AM, Riccardo Rossi  wrote:

> Hi.
>
>
>
> I’m a little confused about how links between objects are supposed to work.
>
>
>
> For example, if I create two clip filters and make a link between the
> “plane” property of the two objects, everything works fine.
>
>
>
> However, if I make the link between the two objects I would expect all the
> the properties to be updated automatically in the child object (as reported
> in the wiki) but this time the link seems not to work at all.
>
>
> Am I missing something?
>
>
>
> Thanks,
>
>
>
> Riccardo
>
>
> 
>  Virus-free.
> www.avast.com
> 
> <#m_950079471057631188_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview