Re: [Paraview] simple Programmable Source

2017-10-11 Thread Cory Quammen
Randy, Try setting a name on the array with scalars.SetName('array_name') This should let you select this array as the color array in ParaView. - Cory On Wed, Oct 11, 2017 at 9:48 PM, Heiland, Randy wrote: > I create the following in the Pgmable Source in PV, but cannot

[Paraview] simple Programmable Source

2017-10-11 Thread Heiland, Randy
I create the following in the Pgmable Source in PV, but cannot figure out how to color the resulting points or 3D glyphs using the scalar values. What am I missing? -Randy # Get a vtk.PolyData object for the output pdo = self.GetPolyDataOutput() # Create points num_pts = 3 newPts =

Re: [Paraview] reading MATLAB file

2017-10-11 Thread Heiland, Randy
Not sure, but think it’s irrelevant for my particular use. I'm going to try the Programmable Source (Python script) approach (and use scipy.io.loadmat to read my .mat file). Maybe I missed it - is there a way to read in this script from a file? (copy/pasting into the Pgmable Source widget

[Paraview] 2d decimation

2017-10-11 Thread Scott, W Alan
I tried the decimation filter on a slice, and it ended up with huge holes. Is this a fool's errand, or should we be able to decimate a slice and not have holes? Do we need a new filter - decimate2d? Alan ___ Powered by www.kitware.com Visit

Re: [Paraview] reading MATLAB file

2017-10-11 Thread Berk Geveci
Is there a Python API to read .mat files? What is the underlying structure? I kind of remember them using HDF5 for some stuff... On Tue, Oct 10, 2017 at 2:18 PM, Heiland, Randy wrote: > Hello, > > I have some matlab files I’d like to get into PV. Initially, the data is > quite

Re: [Paraview] programmable filter, OK in serial, FAILS in mpi

2017-10-11 Thread Berk Geveci
Hi Andre, Are you running pvserver explicitly? If you run it explicitly and connect with the GUI to it, the output of print statements should show up on the terminal you ran mpiexec/mpirun on. Once you do that and we know what the error is, I should be able to help more. PS: What is your data

Re: [Paraview] [paraview] visualize higher order element.

2017-10-11 Thread Andy Bauer
Hi Mathi, When I looked at the file in ParaView it seems like the connectivity is wrong with your cells. If you try the Clean to Grid filter that should fix your problem. I would suggest fixing the connectivity though as the best way to manage the data since the Clean to Grid filter will merge

Re: [Paraview] [paraview] visualize higher order element.

2017-10-11 Thread Ezhilmathi Krishnasamy
Hi Andy, Any idea or info about this extracting the surface of the geometry in higher order element mesh (or solution). Kind regards, Mathi On 20 September 2017 at 21:32, Ezhilmathi Krishnasamy < ezhkr...@student.liu.se> wrote: > Hi Andy, > > Thanks! > > I am attaching you the image here, I

Re: [Paraview] Lambda-2 vortices computation

2017-10-11 Thread Ezhilmathi Krishnasamy
Hi Andy, Thanks it worked! and also there is a forum discussion about it. https://www.paraview.org/pipermail/paraview/2017-June/040299.html Kind regards, Mathi On 7 October 2017 at 13:27, Andy Bauer wrote: > Hi, > > I think the best way is to use the Gradient of