Re: [Paraview] How to detect valid read in Programmable filter

2015-08-03 Thread Dan Lipsa
Hi Dennis, Try isinstance(displ, vtk.numpy_interface.dataset_adapter.VTKNoneArray) Dan On Mon, Aug 3, 2015 at 4:40 PM Dennis Conklin wrote: > All, > > > > I want to try to read some point arrays in the Programmable Filter and > take action based on whether or not the arrays have been loaded i

[Paraview] Tensor transpose for lambda 2

2015-08-03 Thread Gabe Weymouth
I'm doing some fluid flow visualizations, and I'm trying to compute the lambda_2 scalar field (which is the second eigenvalue of a tensor based on the velocity gradient). It seems like the python calculator has NEARLY everything I need (eigenvalue, gradient) but I also need to be able to take the t

Re: [Paraview] Update data after timestep is taken

2015-08-03 Thread Dan Lipsa
Christopher, See the following wiki page http://www.paraview.org/Wiki/ParaView/Python/Dealing_with_time On Mon, Aug 3, 2015 at 8:58 PM Neal,Christopher R wrote: > Hi, > > > I have a Python script that opens an ENSIGHT data file that contains cell > data for several timesteps. I'd like to be ab

[Paraview] Update data after timestep is taken

2015-08-03 Thread Neal,Christopher R
Hi, I have a Python script that opens an ENSIGHT data file that contains cell data for several timesteps. I'd like to be able to perform an operation on one timestep and then advance to the next timetstep. I have tried using the GoToNext() method on the animation scene like it shows when I d

Re: [Paraview] Error building superbuild VS2010

2015-08-03 Thread Bruce Jones
Thanks Ben, I followed your instructions and the build was successful in release mode. However, when I run the executable it crashes on load. Attempting to debug this I tried to build in debug mode using the same approach. Unfortunately the debug build fails with an error, qtmain.lib(qtmain_win.

Re: [Paraview] How to extract a list of the plotting variable names with Python

2015-08-03 Thread Neal,Christopher R
That did exactly what I wanted. Thanks David! Christopher R. Neal Graduate Student Center for Compressible Multiphase Turbulence Mechanical and Aerospace Engineering Department University of Florida Cell: (863)-697-1958 E-mail: chrisn...@ufl.edu From: David

[Paraview] How to detect valid read in Programmable filter

2015-08-03 Thread Dennis Conklin
All, I want to try to read some point arrays in the Programmable Filter and take action based on whether or not the arrays have been loaded into Paraview.I am pretty lost in the PF, so take that for what it's worth. If I try something like try: displ=block.PointData['DISPL'] Print di

Re: [Paraview] FW: adjusting vertical level setting via paraview python script

2015-08-03 Thread Andy Bauer
Yes, that should be the proper workflow. On Mon, Aug 3, 2015 at 4:21 PM, Eatmon Jr., Arnold wrote: > > > From: "", First name Last name > Date: Monday, August 3, 2015 at 2:12 PM > To: Andy Bauer > > Subject: Re: [Paraview] adjusting vertical level setting via paraview > python script > > Unfor

Re: [Paraview] How to extract a list of the plotting variable names with Python

2015-08-03 Thread David E DeMarle
Try: src = GetActiveSource() src.CellData.keys() David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Mon, Aug 3, 2015 at 4:20 PM, Neal,Christopher R wrote: > Hi, > > > I'm trying to extract a list of the names of the available plotti

[Paraview] FW: adjusting vertical level setting via paraview python script

2015-08-03 Thread Eatmon Jr., Arnold
From: "", First name Last name mailto:aeat...@lanl.gov>> Date: Monday, August 3, 2015 at 2:12 PM To: Andy Bauer mailto:andy.ba...@kitware.com>> Subject: Re: [Paraview] adjusting vertical level setting via paraview python script Unfortunately I do not think that version is available which is wh

[Paraview] How to extract a list of the plotting variable names with Python

2015-08-03 Thread Neal,Christopher R
Hi, I'm trying to extract a list of the names of the available plotting variables from a data set that I have loaded. The variable names are all related to cell data in the data set. Something like ['Density','Pressure','Temperature','Velocity'] is what I am trying to extract from the Ensight

Re: [Paraview] adjusting vertical level setting via paraview python script

2015-08-03 Thread Andy Bauer
I think the changes to the XML formats were done prior to PV 4.3.1 but am not certain. When making the scripts in the GUI you'll want to use the same version of ParaView though that is linked with MPAS to make sure the generated Python scripts are compatible. On Mon, Aug 3, 2015 at 3:56 PM, Eatmon

Re: [Paraview] adjusting vertical level setting via paraview python script

2015-08-03 Thread Eatmon Jr., Arnold
Oh, my mistake I didn’t understand the instructions. I will run it again to get .pvtu output, however in my previous scripts that generate VTK output there was an issue where the currently released 4.3.1 version of Paraview could not open the files due to a back compatability issue. I had a deve

Re: [Paraview] adjusting vertical level setting via paraview python script

2015-08-03 Thread Andy Bauer
Hi, Please reply to everyone so that anyone that wants to follow along with the conversation can. Did you get a chance to look through the Catalyst User's Guide? For MPAS, the names of the adaptor outputs are: 'X_Y_NLAYER-primal', 'X_Y_NLAYER-dual', 'X_Y_Z_1LAYER-primal', 'X_Y_Z_1LAYER-d

Re: [Paraview] Differences between OpenGL and OpenGL2 versions of ParaView

2015-08-03 Thread Adam Lyon
Hi Joachim, Do you want me to send in a bug report for these problems? I assume there's no work-around that I can do to make things work. Using OpenGL2 is quite a bit faster, so I'm hoping a fix can come out soon. Thanks! -- Adam *--* *Adam L. Lyon* *Scientist; Associate Division Head for Sys

Re: [Paraview] adjusting vertical level setting via paraview python script

2015-08-03 Thread Andy Bauer
Hi, Dave is correct in that the reader's output needs to match what the adaptor is producing and in this case the MPAS NetCDF reader does not match what the adaptor provides to Catalyst. The way to get around this is to run Catalyst with a sample Python script that outputs the full data set that t

Re: [Paraview] adjusting vertical level setting via paraview python script

2015-08-03 Thread David E DeMarle
Andy Bauer just explained it to me. He'll get back to you soon with a detailed explanation and hints about how to get what you want done. Meanwhile, what is tripping us up is that MPAS's catalyst adaptor is not the same thing as ParaViews MPAS reader. The reader has the SetVerticalLevel(int) metho

Re: [Paraview] Extract the x,y,z extents of a domain in Paraview

2015-08-03 Thread Neal,Christopher R
Thanks Joachim! Do you also happen to know how to obtain the list of plotting variables once a data set has been loaded into Paraview? I would like to get something like, ['Pressure','Density',Velocity']. Thank you, Christopher R. Neal Graduate Student Center for Compressible Multiphase Tur

Re: [Paraview] [Catalyst] multi-block names are not written to file

2015-08-03 Thread Andy Bauer
Hi, This appears to be a bug in VTK. I have a potential fix at https://gitlab.kitware.com/acbauer/vtk/blob/parallelmultiblockdatawriter_write_block_names/IO/ParallelXML/vtkXMLPMultiBlockDataWriter.cxx. You can track the fix at https://gitlab.kitware.com/vtk/vtk/merge_requests/471. Thanks for repo

Re: [Paraview] FullScreen and No Boraders

2015-08-03 Thread Utkarsh Ayachit
> renderWindow->BordersOff(); > renderWindow->SetFullScreen(true); That should have done the trick. Try moving this code to right after the RenderWIndow is created i.e. after vtkSmartPointer::New(); (more specifically, before the RenderWindowInteractor is setup). If I remember correctly, the

[Paraview] FullScreen and No Boraders

2015-08-03 Thread 周恒众
I want to ask some question about VTK. Now I want to create a renderwindow without borders and full of screen . I write code like this: vtkSmartPointer sphereSource = vtkSmartPointer::New(); vtkSmartPointer mapper = vtkSmartPointer::New(); mapper->SetInputConnection(sp

[Paraview] [Catalyst] multi-block names are not written to file

2015-08-03 Thread Deij-van Rijswijk, Menno
Hi, I’m trying to set up a co-processing pipeline by supplying it with a multi-block dataset, of which the individual unstructured grids have names. TL;DR: the block names are not written to XML files when using a Python co-processing pipeline. In detail: The block names are supplied like so

Re: [Paraview] IntegrateVariables filter (add variables)

2015-08-03 Thread Andrew
Hello. Thanks for solution. I tried ExtractBlock filter and it works OK (I able to use Calculator and IntegrateVariables then) but only for volume (Fluid Domain in my case), not for boundaries. I understand that it's not a ParaView problem because it's related to variable sets that CodeSaturne impl

Re: [Paraview] Extract the x,y,z extents of a domain in Paraview

2015-08-03 Thread Joachim Pouderoux
Christopher, Fetching the bounds of a source in Python is as simple as: >>> mySource.GetDataInformation().GetBounds() The vtkPVDataInformation object returned by GetDataInformation() contains many other information