[Paraview] Python scripting/Grid geometry transformation

2013-04-02 Thread Nikolaos Beratlis
Hi, I am reading the following xmf file (attached as var3d.xmf) into Paraview: 0. 1. 2. 0. 2.0944 4.1888 6.2832 1. 2. 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 The grid is a 3D orthogonal grid read in cartesian

Re: [Paraview] XDMF and structured grid in cylindrical coordinates (curvilinear)

2013-04-02 Thread Nikolaos Beratlis
I am currently trying the Function itemtype approach. In all of the examples for the function itemtype it is assumed that arrays are all of the same size. In my case I have three 1D arrays of different sizes: x(nx), y(ny), and z(nz). The operation I need to do to convert to cylindrical coordinates

Re: [Paraview] XDMF and structured grid in cylindrical coordinates (curvilinear)

2013-04-02 Thread Nikolaos Beratlis
I am currently trying the Function itemtype approach. In all of the examples for the function itemtype it assumes that arrays are all of the same size. In my case I have three 1D arrays of different sizes: x(nx), y(ny), and z(nz). The operation I need to do to convert to cylindrical coordinates is:

Re: [Paraview] Assign scalars/vectors to mesh points in vtkRectilinearGrid, C++

2013-04-02 Thread Andy Bauer
Could you share your generated file? I'm not sure why the rescale to data range is scaling it to the range [0,1]. Also, what version of ParaView are you using? Modifying the file won't cause ParaView to reread it as the reader will not notice that the time stamp on the file has changed. Andy On

Re: [Paraview] ParaView 3.98.1: Problems with Space Navigator

2013-04-02 Thread David Lonie
On Tue, Apr 2, 2013 at 12:52 PM, Nenad Vujicic wrote: > Dear Dave, > > It doesn't happen anything, like I didn't touch my 3d mouse. Btw, here is > what is outputted on standard output when I execute 'vrpn_print_devices > device0@localhost': > > on left button pressed: > > Button device0@localhost,

Re: [Paraview] Assign scalars/vectors to mesh points in vtkRectilinearGrid, C++

2013-04-02 Thread Paw Møller
Superb, That was it. Thanks, both of you. But I have another question. The automatic scaling of the vector field works as expected. The scaling of the temperature however does not(array of floats). It set the range to [0 1], regardless of the actual values. Paraview(under information) gives the d

Re: [Paraview] Assign scalars/vectors to mesh points in vtkRectilinearGrid, C++

2013-04-02 Thread Andy Bauer
You're missing the vtkPointData header file so you just need to add: #include "vtkPointData.h" Andy On Tue, Apr 2, 2013 at 3:33 PM, Paw Møller wrote: > Thanks for the answer Joe, > > but I still get a compilation error for > > rgrid->GetPointData()->AddArray(temperature); > > The error: > inval

Re: [Paraview] Assign scalars/vectors to mesh points in vtkRectilinearGrid, C++

2013-04-02 Thread joseph insley
Hi, Paw, I believe the problem is that you are mixing calls for scalars and vectors… For scalars you want to use SetNumberOfValues()/SetValue(): vtkIntArray* temperature = vtkIntArray::New(); temperature->SetName("Temperature"); temperature->SetNumberOfComponents(1); temperature-

Re: [Paraview] Assign scalars/vectors to mesh points in vtkRectilinearGrid, C++

2013-04-02 Thread Paw Møller
Thanks for the answer Joe, but I still get a compilation error for rgrid->GetPointData()->AddArray(temperature); The error: invalid use of incomplete type ‘class vtkPointData’ In file included from /usr/include/vtk-5.8/vtkPointSet.h:29:0, from /usr/include/vtk-5.8/vtkStructuredG

[Paraview] Assign scalars/vectors to mesh points in vtkRectilinearGrid, C++

2013-04-02 Thread Paw Møller
Hi, Using the C++ VTK library for writing an .vtr file, I'm able to create the mesh, but not assign any skalars/vectors to the grid points. This is more or less given in the example file RGrid.cxx. But how do I assign values at the mesh-points? Write the mesh: #include #include #include #inc

Re: [Paraview] Parallel Scalability

2013-04-02 Thread Berk Geveci
Hi Olaf, I am having some difficulty reproducing this issue. It seems to scale fine for me. I have some suggestions for improving workflow andperformance: 1. You can simply use pvbatch for this if you remove the Connect() command from the script. I was running it as: mpiexec -n 2 ~/Work/ParaView

[Paraview] accessing an array in a specific block of a composite dataset

2013-04-02 Thread Hedieh Ebrahimi
Hello all, I have a composite dataset. I want to access the arrays on one of the blocks, then do some simple calculations and then write the output to in a result array using a Python Programmable Filter. I saw some samples on how to do this using Simple dataset, but does anybody have any idea ho

Re: [Paraview] ParaView 3.98.1: Problems with Space Navigator

2013-04-02 Thread Nenad Vujicic
Dear Dave, It doesn't happen anything, like I didn't touch my 3d mouse. Btw, here is what is outputted on standard output when I execute 'vrpn_print_devices device0@localhost': on left button pressed: Button device0@localhost, number 1 was just pressed Button device0@localhost, number 1 was just

Re: [Paraview] ParaView 3.98.1: Problems with Space Navigator

2013-04-02 Thread David Lonie
On Tue, Apr 2, 2013 at 12:39 PM, Nenad Vujicic wrote: > Dear Dave, Aashish, > > Thank you very much for your responses. > > I'm sorry, I tried dummy buttons with both v3.98.1 and current master > ParaView sources, but they didn't help me. Also, I'm still able to select > visibility with grab world

Re: [Paraview] ParaView 3.98.1: Problems with Space Navigator

2013-04-02 Thread Nenad Vujicic
Dear Dave, Aashish, Thank you very much for your responses. I'm sorry, I tried dummy buttons with both v3.98.1 and current master ParaView sources, but they didn't help me. Also, I'm still able to select visibility with grab world style from ParaView's UI (in master sources). Btw, my 3d mouse has

[Paraview] Slice with discrete colours does not work for 10 colors

2013-04-02 Thread Sijbrand Balkema
Hi, I'm trying to make a slice with 10 discrete colours to combine with contour lines (from contour filter). I figured out that I always need one extra value in the contour range to get the right number of lines - so far so good. But somehow the slice filter does not give me the right colour

Re: [Paraview] ParaView 3.98.1: Problems with Space Navigator

2013-04-02 Thread Aashish Chaudhary
Also, This does not look right: Can you try current master of ParaView and re-create the interactions config? It should not allow you to select visibility with grab world style. - Aashish On Tue, Apr 2, 2013 at 10:01 AM, David Lonie wrote: > On Mon, Apr 1, 2013 at

Re: [Paraview] ParaView 3.98.1: Problems with Space Navigator

2013-04-02 Thread David Lonie
On Mon, Apr 1, 2013 at 3:35 PM, Nenad Vujicic wrote: > Hello everyone! > > I'm trying to make my Space Navigator working in ParaView v3.98.1 on my > Windows 8 machine. I built sources without problems (using VS2012, with qt > 4.8.4, python 2.7.3, boost 1.53.0, OpenMPI 1.6.2, VRPN 07_30 - all rebui

[Paraview] ANNOUNCE: Kitware is hiring

2013-04-02 Thread Berk Geveci
Hi folks, If you are interested in a position at Kitware, please review the posting below. See http://jobs.kitware.com/opportunities.html for details and to apply. Specifically, we are interested in filling the following positions: - Information and Scientific Visualization Developer - GUI and A

Re: [Paraview] [EXTERNAL] Geometric center of Dataset

2013-04-02 Thread Hedieh Ebrahimi
Thanks. The thing is I have a composite dataset, the commands above i guess work only for "simple dataset" So I found that these commands for for a composite dataset and they make a copy of input. *from paraview.vtk.dataset_adapter import numpyTovtkDataArray * * * * * *def flatten(input, outpu