Re: [Paraview] Save Programmable VTKImageData as PNG images
Hi Cory, Thanks to your advice. I posted the issue. <https://gitlab.kitware.com/paraview/paraview/issues/17151 <https://gitlab.kitware.com/paraview/paraview/issues/17151>> Magician > On Feb 4, 2017, at 01:29, Cory Quammen <cory.quam...@kitware.com> wrote: > > I was able to reproduce the problem you are seeing. That is odd. > > Would you mind opening an issue on the bug tracker? > https://gitlab.kitware.com/paraview/paraview/issues > > Thanks, > Cory > > On Fri, Feb 3, 2017 at 12:53 AM, Magician <f_magic...@mac.com> wrote: >> Hi all, >> >> >> I have some 2D VTKImageData and export them as PNG images using 'Save >> Data...'. >> >> I'm trying to get color values from original sources and convert them >> to 8 or 16-bit color values with Programmable Filter. >> But if I apply 'Save Data...' to the results, no PNG images exported >> and get warnings as below: >> >>> Warning: In >>> /Users/kitware/buildbot-slave/b99e1795/source-paraview/VTK/IO/Image/vtkPNGWriter.cxx, >>> line 231 >>> vtkPNGWriter (0x605a8260): PNGWriter only supports unsigned char and >>> unsigned short inputs >> >> The attached dataset is a tiny sample. (including no dtype converter, but >> reproduces same problems) >> The data type of the PNGImage value of ProgrammableFilter1 should be >> 'unsigned char', >> but we may not be able to save it as a PNG image. >> >> Is it a bug? >> >> >> Magician >> >> ___ >> 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] [EXTERNAL] Unable to rescale properly the color map
Hi Luigi, I have the same problem when I display color contours with UNIX Timestamps. The instant solution is using Calculator filter. Subtract 160 from CellIDs, you may get correct results. # Of course I want to be fixed the problem about the precision of contour ranges, too. Magician > On Dec 3, 2016, at 02:00, paraview-requ...@paraview.org wrote: > > Message: 13 > Date: Thu, 1 Dec 2016 21:51:33 + > From: Luigi R <xluig...@hotmail.it> > To: "Scott, W Alan" <wasc...@sandia.gov>, "paraview@paraview.org" > <paraview@paraview.org> > Subject: Re: [Paraview] [EXTERNAL] Unable to rescale properly the > color map > Message-ID: > > <db5pr04mb2088170bebf0512fd5532547b9...@db5pr04mb2088.eurprd04.prod.outlook.com> > > Content-Type: text/plain; charset="iso-8859-1" > > No problem Alan. Thanks for replying. I thought my issue was due to > truncation. Anyhow, I had a look at the bug #16978 and, if I can, I would > like to give my opinion. When min and max are the same or both zero, I expect > as user to see an unique color in the color map either red or blue. If you > add an eps to the max and still show the full rgb color map, I would think > immediately that there are not enough digit in the label and I would start > playing with that or rescaling to find where the differences are. > > > Best regards, > > > Luigi > > > > Da: Scott, W Alan <wasc...@sandia.gov> > Inviato: gioved? 1 dicembre 2016 19.36 > A: Luigi R > Oggetto: RE: [EXTERNAL] [Paraview] Unable to rescale properly the color map > > > Luigi - Since everyone mis-spells my name, and I don't like it, I should have > been more careful with yours. > > > > Sorry about that. > > > > Alan > > > > > > > > From: Scott, W Alan > Sent: Thursday, December 1, 2016 10:57 AM > To: 'Luigi R' <xluig...@hotmail.it>; paraview@paraview.org > Subject: RE: [EXTERNAL] [Paraview] Unable to rescale properly the color map > > > > Lugi, > > I am fairly sure you are seeing this bug: > https://gitlab.kitware.com/paraview/paraview/issues/16978. It is scheduled > to be fixed in an upcoming release, but the solution isn't trivial. I will > add your example to the bug. > > [https://gitlab.kitware.com/uploads/project/avatar/14/pvIcon-512x512.png]<https://gitlab.kitware.com/paraview/paraview/issues/16978> > > color legend max wrong for zero (#16978) ? Issues ? ParaView / > ParaView<https://gitlab.kitware.com/paraview/paraview/issues/16978> > gitlab.kitware.com > The color legend is wrong for any data that has a maximum value same as the > minimum value. Here is how to replicate. * Local server, Linux, 5.2.0-rc2 * > Open... > > > > > > Alan > > > > From: ParaView [mailto:paraview-boun...@paraview.org] On Behalf Of Luigi R > Sent: Thursday, December 1, 2016 6:39 AM > To: paraview@paraview.org<mailto:paraview@paraview.org> > Subject: [EXTERNAL] [Paraview] Unable to rescale properly the color map > > > > Dear developers, > > > > I'm loading a vtp file in Paraview 5.2 containing the agglomerated mesh and a > scalar field (INT32) for the global cellID. The coarsest mesh has few cells > characterized by a high identification number (cellID ranges from 160 to > 1600010]. Paraview is not able to rescale properly the range of the color map > even with the custom data range and everything is displayed with a blue color > and it becomes useless. Is there a way to change the precision for the color > map. > > > > I have also tested the version 5.0.1 which scales better but still cannot go > below a certain range. > > > > Please let me know. > > > > Best regards, > > > > Luigi ___ 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] Find Data does not work on MPI
Hi Cory, Thanks for your advice. I tried some minimal cases again. I executed pvserver with 2 CPUs, and generate a wavelet source. Then I tried to select the points (RTData is >= 100). The messages on Command Prompt are as follows: > C:\Users\magician\Desktop>"C:\Program Files\Microsoft HPC Pack 2008 > R2\Bin\mpiexec > .exe" -np 2 "C:\Program Files\ParaView > 5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\bin\p > vserver.exe" > Waiting for client... > Connection URL: cs://LocalPC:1 > Accepting connection(s): LocalPC:1 > Client connected. > > Traceback (most recent call last): > > Traceback (most recent call last): > File "", line 8, in > File "", line 8, in > File "", line 5, in vtkPythonExtractSelection_RequestData > File "", line 5, in vtkPythonExtractSelection_RequestData > File "C:\Program Files\ParaView > 5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\bin\lib\si > te-packages\paraview\extract_selection.py", line 68, in execute > File "C:\Program Files\ParaView > 5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\bin\lib\si > te-packages\paraview\extract_selection.py", line 68, in execute > elocals = calculator.get_arrays(inputs[0].GetAttributes(attributeType)) > File "C:\Program Files\ParaView > 5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\bin\lib\si > te-packages\paraview\calculator.py", line 43, in get_arrays > elocals = calculator.get_arrays(inputs[0].GetAttributes(attributeType)) > File "C:\Program Files\ParaView > 5.2.0-Qt4-OpenGL2-MPI-Windows-64bit\bin\lib\si > te-packages\paraview\calculator.py", line 43, in get_arrays > from mpi4py import MPI > ImportError: > > No module named mpi4py > from mpi4py import MPI > > ImportError: No module named mpi4py My PV is v5.2.0 on Windows 7/8 64bit, just downloaded from Kitware’s download site. MPI is Microsoft HPC Pack 2008 R2. Perhaps the provided binary does not fully support MPI processing? I should build PV with MPI by myself? Magician > On Nov 28, 2016, at 06:29, Cory Quammen <cory.quam...@kitware.com> wrote: > >> Does anyone use Find Data function on MPI? > > I just tried it with 5.2.0 in parallel and the Find Data dialog works > fine for the queries I tried. > > Could you provide more information about what you are trying to get to > work? Listing the steps you take before running into the problem is > helpful. For example, telling us which data file you loaded, what your > Find Data query is, etc. > > Thanks, > Cory > >>> On Nov 20, 2016, at 14:16, Magician <f_magic...@mac.com> wrote: >>> >>> Hi all, >>> >>> >>> When I operating ParaView on MPI mode, Find Data function does not work >>> correctly. >>> The dialog is just opened, but the 'Run Selection Query' always returns no >>> cell or point. >>> >>> How to select specific cells or points on parallel ParaView? >>> My PV is v5.2.0-RC1 on Windows 8 64bit, and MPI is Microsoft HPC Pack 2008 >>> R2. >>> >>> >>> Magician >> >> ___ >> 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] Find Data does not work on MPI
Does anyone use Find Data function on MPI? > On Nov 20, 2016, at 14:16, Magician <f_magic...@mac.com> wrote: > > Hi all, > > > When I operating ParaView on MPI mode, Find Data function does not work > correctly. > The dialog is just opened, but the 'Run Selection Query' always returns no > cell or point. > > How to select specific cells or points on parallel ParaView? > My PV is v5.2.0-RC1 on Windows 8 64bit, and MPI is Microsoft HPC Pack 2008 R2. > > > Magician ___ 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] View geotiff in Paraview?
Hi Adam, >>> I can?t seem to select Warp by Scalar from the >>> texture map. Warp By Scalar couldn’t apply to Image data directly. So you should convert images to surfaces, and apply the warping filter. TIFF image -> Extract Surface -> Warp By Scalar (or Vector) If your images are not 1 or 3 channels (cf. includes Alpha channel), you should extract elevation channel(s) by Calculator Filter. Magician > Date: Wed, 19 Oct 2016 14:00:16 + > From: Adam Dershowitz <adershow...@exponent.com> > To: "postgu...@web.de" <postgu...@web.de>, "paraview@paraview.org" > <paraview@paraview.org> > Subject: Re: [Paraview] View geotiff in Paraview? > Message-ID: <a9fba99b-896d-40b2-86a2-59a432109...@exponent.com> > Content-Type: text/plain; charset="utf-8" > > That does it. > Thank you! > > -- Adam > > > > > > > > > On 10/19/16, 12:49 AM, "postgu...@web.de" <postgu...@web.de> wrote: > >> Maybe there is a way to achieve what you want for tiff - but I am not aware >> of >> it. >> >> Would it be suitable for you to convert your data to the Netcdf format? That >> you >> can import and then use the warp by scalar filter to show the elevation. >> This is >> what I usually do for topography data. >> >> Cheers >> Venke >> >> >> >>> Adam Dershowitz <adershow...@exponent.com> hat am 18. Oktober 2016 um 16:19 >>> geschrieben: >>> >>> >>> I did figure out how to load the texture. But, now I?m just seeing a solid >>> color on the plane. This is because the region is fairly flat, at a higher >>> elevation, and the tiff contains elevation data anyway. >>> So, this doesn?t do the job. I can?t seem to select Warp by Scalar from the >>> texture map. >>> Any other suggestions? >>> >>> -- Adam >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> On 10/18/16, 5:00 AM, "postgu...@web.de" <postgu...@web.de> wrote: >>> >>>> Hi Adam >>>> >>>> I usually make a vtp File with just a frame from the image coordinates. >>>> Then >>>> I >>>> can load the image as texture to the plane. >>>> >>>> Cheers >>>> Venke >>>> >>>> >>>> >>>>> Adam Dershowitz <adershow...@exponent.com> hat am 17. Oktober 2016 um >>>>> 17:11 >>>>> geschrieben: >>>>> >>>>> >>>>> I have a geotiff that I would like to view in preview. I?m able to open >>>>> it, >>>>> and view it, but the problem is that the scale and origin are not correct. >>>>> It >>>>> seems that preview is just opening it as a TIFF and is ignoring the >>>>> origin, >>>>> corners and pixel size in the geotiff. The problem is that I want to >>>>> overlay >>>>> some other polygons that are in a known location, so this placement is >>>>> important (and off by hundreds of thousands of meters.) >>>>> Can paraview open a geotiff? If not, is there an easy way to just offset >>>>> and >>>>> scale data in Paraview? It seems like it can be done by manually adding a >>>>> Transform filter and then forcing it to scale and translate as necessary. >>>>> Although getting it all lined up is not trivial. >>>>> >>>>> Thanks, >>>>> >>>>> >>>>> -- Adam ___ 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
[Paraview] dataset_adapter with tensors
Hi all, I'm trying to add 3x3 tensor data to vtkPolyData with Python. The version of ParaView is 5.0.0 RC1 and 4.4.0. The smallest example is here: > import vtk > import numpy as np > from paraview.vtk.numpy_interface.dataset_adapter import numpyTovtkDataArray > as da > from paraview.vtk.numpy_interface.dataset_adapter import > vtkDataArrayToVTKArray as va > > m0 = np.array(( > (0, 1, 2, 3, 4, 5, 6, 7, 8), > )) > > d = vtk.vtkPolyData() > d.GetPointData().AddArray(da(m0, 'data')) > > m1 = [] > for i in range(9): > m1.append(d.GetPointData().GetArray('data').GetValue(i)) > print(m1) > > m2 = va(d.GetPointData().GetArray('data')) > print(m2) m1 is good, but m2 is transposed. Is this a bug of vtkDataArrayToVTKArray? Magician ___ 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] vtk.vtkPoints.SetData()
Hi Christophe, Thanks. column_stack() works correctly. Magician On Apr 29, 2015, at 01:00, paraview-requ...@paraview.org wrote: Message: 1 Date: Mon, 27 Apr 2015 20:22:41 +0200 From: Christophe Bourcier christophe.bourcier...@gmail.com To: f_magic...@mac.com Cc: paraview@paraview.org Subject: [Paraview] vtk.vtkPoints.SetData() Message-ID: caktnqfkbsjde+bw5kakjmnrgbdqnxmgvcxe5h_bsprcnh+9...@mail.gmail.com Content-Type: text/plain; charset=utf-8 Hi Magician, Since Paraview 4.2, you have to use column_stack instead of hstack to create a multi-component field. See this thread http://public.kitware.com/pipermail/paraview/2015-April/033756.html Christophe ___ 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
[Paraview] vtk.vtkPoints.SetData()
Hi all, I’m going to generate pointclouds from CSV with Programmable Filter. On ParaView 4.1 or older, the script works: from paraview.vtk.dataset_adapter import numpyTovtkDataArray as da from paraview.vtk.dataset_adapter import vtkDataArrayToVTKArray as va pdi = self.GetInput() X = va(pdi.GetRowData().GetArray('x')) Y = va(pdi.GetRowData().GetArray('y')) Z = va(pdi.GetRowData().GetArray('z')) pts = vtk.vtkPoints() pts.SetData(da(hstack((X, Y, Z)), 'Points’)) But on 4.2 or newer, the script isn’t work: from paraview.vtk.numpy_interface.dataset_adapter import numpyTovtkDataArray as da from paraview.vtk.numpy_interface.dataset_adapter import vtkDataArrayToVTKArray as va pdi = self.GetInput() X = va(pdi.GetRowData().GetArray('x')) Y = va(pdi.GetRowData().GetArray('y')) Z = va(pdi.GetRowData().GetArray('z')) pts = vtk.vtkPoints() pts.SetData(da(hstack((X, Y, Z)), 'Points’)) The error message is as follows: ERROR: In /Users/kitware/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Common/Core/vtkPoints.cxx, line 193 vtkPoints (0x1199f3a60): Number of components is different...can't set data How can I use SetData() method on latest ParaView? Magician ___ 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] How to create streamlines from tecplot velocity data
Hi Danyang, Your question is one of the FAQ: http://public.kitware.com/pipermail/paraview/2010-September/018889.html Magician On Sep 24, 2014, at 15:26, paraview-requ...@paraview.org wrote: Message: 2 Date: Tue, 23 Sep 2014 23:26:00 -0700 From: Danyang Su danyang...@gmail.com To: paraview@paraview.org paraview@paraview.org Subject: [Paraview] How to create streamlines from tecplot velocity data Message-ID: 542263f8.5000...@gmail.com Content-Type: text/plain; charset=utf-8; Format=flowed Dear All, I have tecplot velocity dataset that I want to view with Paraview. I can successfully import the data to paraview, but neither 'cell data to point data' nor 'stream tracer' button is available (grey). The data set is in ascii format as shown below. The source data is also attached. Would anybody please give me some tips? I am a new to paraview and only have basic knowledge of it. Thanks, Danyang title = dataset concrete-decalc variables = x, y, z, vx, vy, vz zone t = velocities, solution time = 1.000E+02 yearsi = 83, j = 159, k =1, f=point 0.2626316E-04 0.000E+00 0.1052632E-02 0.3647120E-11 0.000E+00 -0.6160582E-05 0.7878948E-04 0.000E+00 0.1052632E-02 0.1094119E-10 0.000E+00 -0.6160582E-05 0.1313158E-03 0.000E+00 0.1052632E-02 0.1823477E-10 0.000E+00 -0.6160581E-05 0.1838421E-03 0.000E+00 0.1052632E-02 0.2552754E-10 0.000E+00 -0.6160580E-05 0.2363684E-03 0.000E+00 0.1052632E-02 0.3281916E-10 0.000E+00 -0.6160578E-05 0.2888947E-03 0.000E+00 0.1052632E-02 0.4010932E-10 0.000E+00 -0.6160576E-05 0.3414211E-03 0.000E+00 0.1052632E-02 0.4739768E-10 0.000E+00 -0.6160574E-05 0.3939474E-03 0.000E+00 0.1052632E-02 0.5468392E-10 0.000E+00 -0.6160572E-05 0.4464737E-03 0.000E+00 0.1052632E-02 0.6196771E-10 0.000E+00 -0.6160569E-05 -- next part -- A non-text attachment was scrubbed... Name: concrete-decalc_3.vel.7z Type: application/x-7z-compressed Size: 86267 bytes Desc: not available URL: http://public.kitware.com/pipermail/paraview/attachments/20140923/e8d86110/attachment.7z ___ 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 Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] Save Stereo Screenshots with Python
Hi all, I’d like to export left and right-eye images with Python. Any ideas? I’m using ParaView 4.1.0 and 4.2 RC1. Magician On Sep 6, 2014, at 19:25, Magician f_magic...@mac.com wrote: Hi all, I want to export screenshots of stereo images with Python. The stereo mode is SplitViewportHorizontal (Side-by-Side). When I export images larger than active views, I get bad results as the attached image. How can I export large stereo screenshots correctly? Or I’m planning to export left and right-eye images separately, and composite them with other softwares. How can I export left or right-eye images with Python? Magiciantest_stereo.png ___ 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 Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
[Paraview] Calculating Wall Height
Hi all, I’d like to get height values of wall cells for calculating oil shear velocity or y+. My datasets have no information about wall direction, prism layer or inside, center of cells. Does anyone have good ideas to do it? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] Creating time dependent data from ascii file
Hi Hedieh, Usually transient sources are prepared as sequential files (ex. file.vtk, file0001.vtk, …). If you want to read your data as it is, you should use Programmable filter. But the technique is tricky and heavy to handle. I think it’s better to split your file as X,Y,Z,V. You can use CSV Reader bundled in ParaView. Any texts separated by commas, whitespaces, or other separators are available. Magician On May 23, 2014, at 1:00, paraview-requ...@paraview.org wrote: Date: Thu, 22 May 2014 17:24:13 +0200 From: Hedieh Ebrahimi hedieh.ebrah...@amphos21.com To: paraview@paraview.org paraview@paraview.org Subject: [Paraview] Creating time dependent data from ascii file Message-ID: CA+ze5C7XSYQFtwvtEU_5YVP5=A9s8Vqz8Tz1aNZjt+1Uuwm=i...@mail.gmail.com Content-Type: text/plain; charset=utf-8 Hi all, I have an ascii file like this which I like to open as a time depenedent data in Paraview. I have (x,y,z) for coordinate and then I have a variable V with different values for different time steps. Could anybody please tell me how I can open this data in paraview so I could create an animation in which I would have a mesh colored by variable V changing with time? ( I have exported this ascii file as a plot from Comsol) The file contains a big number of rows like this. x yz V(timeStep=1) V(timeStep=2) 3550.8 1657.72.25 10 Thanks in Advance, ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] non-symmetric representation of symmetric field
Hi Mikhail, I need to get more information about your problem. Can you share your dataset or screenshot? .pvsm state files are more suitable. Magician On May 24, 2014, at 5:33, Mikhail Artemyev artemiev.mikh...@gmail.com wrote: Dear Magician, Thank you for the explanation and for the hint! The only issue is that the last step of your algorithm 3. apply Resample With Dataset filter, not always gives the desired result. I was able to get the same representation like you showed, but it was an accidental choice of several Resample With Dataset filters, and I couldn't repeat it again. My impression is that I have to apply this filter several times to different sources. Am I right? Thank you. Best regards, Mikhail On 05/17/2014 12:00 AM, Magician wrote: Hi Mikhail, Yes, that’s because of the triangulation (or tesselation) of surface representations. Most of the 3D programs including ParaView draw objects as groups of triangles. That’s depends on today’s 3D rendering pipelines such as OpenGL, DirectX, etc. Please googling the keywords: ‘vertex shading’ Even though you read your data as structured grid with point values, ParaView should immediately triangulate all of the rectangles, and interpolating the values between points of the triangles. # If you visualize cell values, there are no problem caused by interpolating. The attached image is one of the solution. 1. read your data 2. make a ‘fine resolution' Plane source with same size to the original (for example, 200x100 structured grid) 3. apply Resample With Dataset filter The result looks nearly-symmetric for me. Magician On May 17, 2014, at 10:40, paraview-requ...@paraview.org wrote: Date: Fri, 16 May 2014 20:40:18 -0500 From: Mikhail Artemyev artemiev.mikh...@gmail.com To: paraview@paraview.org Subject: [Paraview] non-symmetric representation of symmetric field Message-ID: 5376be02.7050...@gmail.com Content-Type: text/plain; charset=iso-8859-1; Format=flowed Dear all, Here is a minimal example of values distributed over a mesh: 0--0--0--0--0 ||| || 00.5---0.75---0.5-0 ||| || 0--0--1--0--0 To visualize this field I wrote a .vts file: ?xml version=1.0? VTKFile type=StructuredGrid version=0.1 byte_order=LittleEndian StructuredGrid WholeExtent=1 5 1 3 1 1 Piece Extent=1 5 1 3 1 1 PointData Scalars=scalars DataArray type=Float64 Name=sol_ format=ascii 0 0 1 0 0 0 0.5 0.75 0.5 0 0 0 0 0 0 /DataArray /PointData Points DataArray type=Float64 NumberOfComponents=3 format=ascii 0 0 0 1 0 0 2 0 0 3 0 0 4 0 0 0 1 0 1 1 0 2 1 0 3 1 0 4 1 0 0 2 0 1 2 0 2 2 0 3 2 0 4 2 0 /DataArray /Points /Piece /StructuredGrid /VTKFile The visual representation of this field, however, doesn't look symmetric (a figure is attached), although the values are symmetric with respect to a Y-axis crossing the center of the domain. Could you please shed some light on where I am wrong - in my understanding of visualization technique, or in a way I pass the data to ParaView? I use ParaView 4.1.0 64-bit, Linux. Thank you. Best regards, Mikhail ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] How to get version number of ParaView with Python?
Hi all, Is there a way to get the version number of ParaView with Python? I’d like to write cross-version scripts. Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] How to get version number of ParaView with Python?
Hi Cory, Andy, and Utkarsh, Thanks for your advices. I never thought the function is in vtkSMProxyManager. I think we need a method on paraview.simple to get the version easily. That's a good idea! I hope, for example, paraview.simple.__version__ or paraview.simple.GetVersion() will be implemented. Magician On May 21, 2014, at 0:23, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: I think we need a method on paraview.simple to get the version easily. Having to access the ProxyManager is kinda lame :). On Tue, May 20, 2014 at 11:05 AM, Andy Bauer andy.ba...@kitware.com wrote: Another suggestion instead of looking at version numbers, you may want to just check if the attribute exists with the hasattr() function. On Tue, May 20, 2014 at 10:59 AM, Cory Quammen cory.quam...@kitware.com wrote: paraview.servermanager.vtkSMProxyManager.GetVersionMajor() paraview.servermanager.vtkSMProxyManager.GetVersionMinor() paraview.servermanager.vtkSMProxyManager.GetVersionPatch() paraview.servermanager.vtkSMProxyManager.GetParaViewSourceVersion() are probably what you are looking for. - Cory On Tue, May 20, 2014 at 10:44 AM, Magician f_magic...@mac.com wrote: Hi all, Is there a way to get the version number of ParaView with Python? I’d like to write cross-version scripts. Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Cannot Automate Vectors with Python and CSV Files
Hi Darren, How about: try: paraview.simple except: from paraview.simple import * points_csv = CSVReader(FileName = '/Users/magician/Documents/ParaViewTest/points.csv') TableToPoints1 = TableToPoints( XColumn = 'x', YColumn = 'y', ZColumn = 'z', ) Show() Calculator1 = Calculator(Function = 'vx*iHat+vy*jHat+vz*kHat') Show() Glyph1 = Glyph( Vectors = ['POINTS', 'Result'], GlyphType = 'Arrow', SetScaleFactor = 1.0, ) Show() Render() I tried on ParaView 4.1.0 of OSX. Magician On May 14, 2014, at 20:18, paraview-requ...@paraview.org wrote: Date: Tue, 13 May 2014 18:46:53 + From: Darren Pereira darren.pere...@mail.utoronto.ca To: paraview@paraview.org paraview@paraview.org Subject: [Paraview] Cannot Automate Vectors with Python and CSV Files Message-ID: 146813590.42...@mail.utoronto.ca Content-Type: text/plain; charset=iso-8859-1 Hey there, I'm working on displaying velocity vectors but have reached a major roadblock. I have a set of CSV files with columns x, y, z, vx, vy, and vz - the positions and velocity components of the velocity vectors I want to show. By manually loading in the CSV files, applying the TableToPoints filter, applying the Calculator filter, and then applying the Glyph filter, I can display these vectors. The problem comes when I try to write a Python script to the exact same thing. This problem has been reported as a bug with Paraview (http://vtk.org/Bug/bug_relationship_graph.php?bug_id=14184graph=dependency), where Python cannot select Row Data. I'm really having difficulty finding a way around it. Is there a way to use my CSV files to display my velocity vectors in a similar fashion, but with Python? What I've done manually is so far the only way I know how to display vectors, but it's not Python compatible. Any help would be greatly appreciated! Thanks, Darren ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] [EXTERNAL] Re: Next/Previous frame shortcut
Hi Matheus, Sorry for the late response. Now ParaView has a similar function. You should check the GUI Toolbar. There is a 'Current Time Controls' bar. Point the second text field (as timesteps) and down the upper or lower arrow of your keyboards. Then the timesteps may be incremented or decremented. Magician On Apr 17, 2014, at 3:55, paraview-requ...@paraview.org wrote: Date: Wed, 16 Apr 2014 18:50:08 + From: Scott, W Alan wasc...@sandia.gov To: Matheus Viana vian...@gmail.com Cc: paraview@paraview.org paraview@paraview.org Subject: Re: [Paraview] [EXTERNAL] Re: Next/Previous frame shortcut Message-ID: 9047ee0d4d3c8e43b93980da10a073809c2e5...@exmb04.srn.sandia.gov Content-Type: text/plain; charset=utf-8 http://paraview.org/Bug/my_view_page.php Report Issue. Then, just fill stuff out. Alan From: Matheus Viana [mailto:vian...@gmail.com] Sent: Wednesday, April 16, 2014 12:48 PM To: Scott, W Alan Cc: Moreland, Kenneth; paraview@paraview.org Subject: Re: [EXTERNAL] Re: [Paraview] Next/Previous frame shortcut I can do it if you tell me how. I have never done that before.. Matheus Viana Postdoctoral Research Employee Developmental and Cell Biology University of California Irvine 2014-04-16 11:46 GMT-07:00 Scott, W Alan wasc...@sandia.govmailto:wasc...@sandia.gov: No. This really is a good idea. Mind writing up a bug, or want me to do it? Alan From: ParaView [mailto:paraview-boun...@paraview.orgmailto:paraview-boun...@paraview.org] On Behalf Of Matheus Viana Sent: Wednesday, April 16, 2014 12:37 PM To: Moreland, Kenneth Cc: paraview@paraview.orgmailto:paraview@paraview.org Subject: [EXTERNAL] Re: [Paraview] Next/Previous frame shortcut Oh yes yes.. But I meant keyboard shortcut. I have to compare two consecutive frames many times and it really sucks to use the mouse for clicking the buttons. A keyboard shortcut would make my life so much easier... Matheus Viana Postdoctoral Research Employee Developmental and Cell Biology University of California Irvine 2014-04-16 11:26 GMT-07:00 Moreland, Kenneth kmo...@sandia.govmailto:kmo...@sandia.gov: There are next/previous frame buttons in the top toolbar. -Ken From: Matheus Viana vian...@gmail.commailto:vian...@gmail.com Date: Wednesday, April 16, 2014 11:35 AM To: paraview@paraview.orgmailto:paraview@paraview.org paraview@paraview.orgmailto:paraview@paraview.org Subject: [EXTERNAL] [Paraview] Next/Previous frame shortcut Hi People. Could anyone tell me if there is any shortcut for next/previous frame in Paraview? Thanks a lot. Matheus Viana Postdoctoral Research Employee Developmental and Cell Biology University of California Irvine ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Variable that is difference between this time and time 0
HI Alan, Sorry for the late response. There are some techniques about comparing two datasets: http://www.google.co.jp/search?q=paraview+multiple+input If you can read initial and transient datasets with separated sources, these techniques may be applicable: 1. using Resample with Dataset and Calculator filter 2. using Python Calculator with multiple inputs 3. using Programmable Filter with multiple inputs (directly subtracting two datasets) 4. using Programmable Filter with multiple inputs (storing two datasets into NumPy array with dataset adapter, and subtracting them) I usually use 3rd method. But I don’t have any good ideas deciding which the initial one is…. Magician On Apr 18, 2014, at 14:00, paraview-requ...@paraview.org wrote: Message: 1 Date: Thu, 17 Apr 2014 16:23:53 + From: Scott, W Alan wasc...@sandia.gov To: paraview@paraview.org paraview@paraview.org Subject: [Paraview] Variable that is difference between this time and time 0 Message-ID: 9047ee0d4d3c8e43b93980da10a073809c2e5...@exmb04.srn.sandia.gov Content-Type: text/plain; charset=us-ascii Can you perform mathematical operations (e.g. addition, subtraction) on variables between different time steps? For example, if I have a point variable, can I compute the difference between that variable at time t with that variable at time zero? Thanks! Alan ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] vtkPolyhedron with Programmable Filter
Hi all, I’m trying to generate polyhedral cells with the Programmable Filter, but there are no information. Does anyone have sample codes to do it? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Surface LIC Problem
Hi Burlen, Richard, Utkarsh, Thanks for your advices. I misunderstood that the Surface LIC Plugin should calculate some kinds of the vector fields on surfaces. My models are generated by NS solvers, so the surfaces have non-zero vectors without slipping or moving wall. For example, can I calculate surface friction vectors with ParaView? I have flow fields and other physical constants. # Extracting issue was solved by using Extract Subset filter. # My meshes were structured grids of turbomachinery in this time, # so all the walls can be extracted by the ijk coordinates. Magician On Feb 10, 2014, at 23:42, paraview-requ...@paraview.org wrote: Message: 5 Date: Mon, 10 Feb 2014 09:42:27 -0500 From: Utkarsh Ayachit utkarsh.ayac...@kitware.com To: Richard Grenon richard.gre...@onera.fr Cc: Magician f_magic...@mac.com, ParaView paraview@paraview.org Subject: Re: [Paraview] Surface LIC Problem Message-ID: cadhsjjaz3ys240zkyprffacg8hymo6wr6q0hqubpuxhl0wy...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 You could also either use Extract Block to remove blocks on which you don't want to render LIC and then do LIC on the rest. There are others ways for this subsetting too, based on the nature of your data: e.g. you could your Extract Selection or Threshold to remove the cells that you don't want to render LIC on and then render the result. On Mon, Feb 10, 2014 at 3:57 AM, Richard Grenon richard.gre...@onera.fr wrote: Hello Which vector field are you using with LIC ? The LIC control panel allows to choose the vector to be used, and you MUST choose a vector field that is NOT ZERO on the surface. With Euler CFD results, the velocity vector is not zero at the wall, and you can use this vector. With Navier-Stokes CFD results, the velocity vector is zero at the wall, and you have to use the skin friction vector instead. Richard On Feb 9, 2014, at 10:09, Burlen Loring burlen.lor...@gmail.com wrote: I'm not 100% sure I understand the situation. A picture or sample dataset would help. Is it that some of the surfaces don't have the velocity field defined on them? Burlen On 02/08/2014 04:42 AM, Magician wrote: I'm trying the Surface LIC Plugin. My models are formatted as VTK MultiBlock Dataset, and there are geometries of fluids and walls. I'd like to visualize LIC on the walls. First I applied Surface LIC to the walls, the results are something wrong. Next to the fluids, they are OK. But there are extra walls which I don't want to visualize (ex. Inlets/Outlets, external boundaries). Maybe the reason of the walls are that they don't have the velocity values of main flows. I also tried the Resample with Dataset filter for linking main flows to the walls. The results are roughly good, but sometimes the resampling qualitys are poor (dropping the values). Is there a good way to visualize the part of the walls' LIC? My sources have complicated shapes, so I want to make the best use of the information of blocks of walls. Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Surface LIC Problem
Richard, Sorry, that's my mistake. The surfaces DON'T have non-zero vectors without slipping or moving wall. I'm going to export surface vectors such as oilflow vector from solvers. Magician On Feb 14, 2014, at 23:00, Richard Grenon richard.gre...@onera.fr wrote: Hello. What are these non-zero surface vectors without slipping or moving walls ? With NS solvers, the velocity vector in an axis system bound to a wall should ALWAYS be zero at the wall (moving wall or not moving wall): this is the adherence condition. As LIC needs a non zero vector at the wall in an axis system bound to the wall, you cannot use the velocity vector, and you MUST use the skin friction vector. My NS solver gives the three components of the skin friction vector in an axis system bound to the wall as three scalar arrays. So I have to use the PV Calculator filter in order to build the vector array from these three scalar arrays, something like Friction_vector = x_component*iHat+y_component*jHat+z_component*kHat But you may also use the Calculator filter to build the friction vector from the stress tensor and the normal vector at the wall. It depends on the output of your solver. Richard Le 14/02/2014 14:34, Magician a écrit : Hi Burlen, Richard, Utkarsh, Thanks for your advices. I misunderstood that the Surface LIC Plugin should calculate some kinds of the vector fields on surfaces. My models are generated by NS solvers, so the surfaces have non-zero vectors without slipping or moving wall. For example, can I calculate surface friction vectors with ParaView? I have flow fields and other physical constants. # Extracting issue was solved by using Extract Subset filter. # My meshes were structured grids of turbomachinery in this time, # so all the walls can be extracted by the ijk coordinates. Magician -- Richard GRENON ONERA Departement d'Aerodynamique Appliquee - DAAP/ACI 8 rue des Vertugadins 92190 MEUDON - FRANCE phone : +33 1 46 73 42 17 fax : +33 1 46 73 41 46 mailto:richard.gre...@onera.fr http://www.onera.fr ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Setting Exact Sights with Python
Hi all, I'm trying to control Camera Positions with Python. It looks like that ParaView's Camera Positions such as View Points (Camera Position) and Focal Points have some relations to the Zoom or other parameters. Additionally the Python's Camera object has many options which couldn't check on 'Adjust Camera' GUI window. Similar to other CG tools, I'd like to set the sights of visualizing scenes exactly with the coordinates of view and the focal points. Any ideas? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Surface LIC Problem
Hi all, I'm trying the Surface LIC Plugin. My models are formatted as VTK MultiBlock Dataset, and there are geometries of fluids and walls. I'd like to visualize LIC on the walls. First I applied Surface LIC to the walls, the results are something wrong. Next to the fluids, they are OK. But there are extra walls which I don't want to visualize (ex. Inlets/Outlets, external boundaries). Maybe the reason of the walls are that they don't have the velocity values of main flows. I also tried the Resample with Dataset filter for linking main flows to the walls. The results are roughly good, but sometimes the resampling qualitys are poor (dropping the values). Is there a good way to visualize the part of the walls' LIC? My sources have complicated shapes, so I want to make the best use of the information of blocks of walls. Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Generate Programmable Sources with Timesteps
Hi Utkarsh, Great! Almost the code works. Maybe the last variable 'req_timesteps[0]' is wrong, isn't it? My code is working with 'req_time'. Then I have one question. What does the function SetOutputTimesteps() of RequestInformation means? I tested to remove the block, but the source still works as before. Magician On Feb 5, 2014, at 5:19, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: Magician, I've updated the Wiki. The API has changed since ParaView 4.0. It's no longer DATA_TIME_STEPS/UPDATE_TIME_STEPS, it has been replaced by DATA_TIME_STEP/UPDATE_TIME_STEP. Utkarsh On Thu, Nov 28, 2013 at 4:59 PM, Magician f_magic...@mac.com wrote: Any ideas? I'd like to generate moving object with the Programmable Source, but there are not enough informations on the Web to do it. Magician Begin forwarded message: From: Magician f_magic...@mac.com Subject: Generate Programmable Sources with Timesteps Date: November 27, 2013 at 6:50:54 GMT+9 To: ParaView paraview@paraview.org Hi all, I'm trying to generate programmable sources with timesteps. The URL may describe how to do them: http://www.paraview.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters.#Producing_Data_with_Timesteps_.28Source.29 But when I try the code, I got an error as below: Traceback (most recent call last): File string, line 19, in module File string, line 14, in RequestData File string, line 5, in GetUpdateTimesteps AttributeError: UPDATE_TIME_STEPS I have Mac OS 10.9 and ParaView 4.0.1. The attached pvsm file is what I coded. # just copied the sample code How can I run it exactly? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Get Values of CSV sources with Programmable Filter
Hi Berk, Thanks for your reply. Hmmm... My purpose is extracting CSVs to vtkImageData with the Programmable Filter. And the CSVs don't have headers, so it's not so good idea for me to get values per columns. If possible, I want to get the values as 2D numpy.array directly as numpy.loadtxt(). Magician On Feb 6, 2014, at 0:03, Berk Geveci berk.gev...@kitware.com wrote: If one of the inputs to the programmable filter is a table, you can values (columns) from it with something like: inputs[0].RowData['array_name'] This will give a (n,1) numpy array where n == number of rows. Best, -berk On Wed, Feb 5, 2014 at 9:29 AM, Magician f_magic...@mac.com wrote: Hi Utkarsh, I already checked it, but there are no information about getting all values of VTKTable with NumPy. Now I'm using for-loops and the GetValue(i, j) function, but it's not smart. Do you have any other information? Magician On Feb 5, 2014, at 4:05, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: Here's some text that describes how to go back and forth between NumPy and VTK arrays :http://www.paraview.org/Wiki/ParaView/Users_Guide/Python_Programmable_Filter#Mixing_VTK_and_NumPy_APIs Utkarsh On Fri, Jan 31, 2014 at 10:30 PM, Magician f_magic...@mac.com wrote: Hi all, I'm using PV 4.1.0 and trying to get values of CSV sources with Programmable Filter. It's better to get them as numpy.array. How can I code it? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Saving Programmable Filter as a PNG image
Hi Utkarsh, Excellent! That works!! Magician On Feb 5, 2014, at 4:04, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: In vtkImageData, the scalars are associated with points, not cell. Add the unsigned char array to the PointData, not CellData. Also note that you'll need to update your whole extent, image dimensions etc. since now you have 3x3 points and not 3x3 cells (==4x4 points). Utkarsh On Tue, Feb 4, 2014 at 11:08 AM, Magician f_magic...@mac.com wrote: Hi all, I want to save vtkImageData as a PNG image. The vtkImageData is generated by Programmable Filter. My PV version is 4.1.0. I have a small CSV data as below: 1,0.5,0 0.5,1,0.5 0,0.5,1 I opened the data and applied the Programmable Filter as below: #Output Data Set Type: vtkImageData #Script: inp = self.GetInput() out = self.GetOutput() out.SetDimensions(4, 4, 1) out.SetOrigin(0, 0, 0) out.SetSpacing(1, 1, 1) ca = vtk.vtkUnsignedCharArray() ca.SetName('image') ca.SetNumberOfComponents(3) ca.SetNumberOfTuples(9) out.GetCellData().SetScalars(ca) for i in range(3): for j in range(3): ca.SetTuple3(i * 3 + j, inp.GetValue(i, j).ToFloat() * 255.0, 0.0, 0.0) #RequestInformation Script: from paraview import util inp = self.GetInput() util.SetOutputWholeExtent(self, [0, 3, 0, 3, 0, 0]) I got a 3x3 matrix image on the View. Then I saved the data as a PNG image, I got the warning and no image was found: Warning: In /Users/kitware/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/IO/Image/vtkPNGWriter.cxx, line 198 vtkPNGWriter (0x11c80a540): PNGWriter only supports unsigned char and unsigned short inputs How can I save the Programmable Filter as an image? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Get Values of CSV sources with Programmable Filter
Hi Utkarsh, I already checked it, but there are no information about getting all values of VTKTable with NumPy. Now I'm using for-loops and the GetValue(i, j) function, but it's not smart. Do you have any other information? Magician On Feb 5, 2014, at 4:05, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: Here's some text that describes how to go back and forth between NumPy and VTK arrays :http://www.paraview.org/Wiki/ParaView/Users_Guide/Python_Programmable_Filter#Mixing_VTK_and_NumPy_APIs Utkarsh On Fri, Jan 31, 2014 at 10:30 PM, Magician f_magic...@mac.com wrote: Hi all, I'm using PV 4.1.0 and trying to get values of CSV sources with Programmable Filter. It's better to get them as numpy.array. How can I code it? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Saving Programmable Filter as a PNG image
Hi all, I want to save vtkImageData as a PNG image. The vtkImageData is generated by Programmable Filter. My PV version is 4.1.0. I have a small CSV data as below: 1,0.5,0 0.5,1,0.5 0,0.5,1 I opened the data and applied the Programmable Filter as below: #Output Data Set Type: vtkImageData #Script: inp = self.GetInput() out = self.GetOutput() out.SetDimensions(4, 4, 1) out.SetOrigin(0, 0, 0) out.SetSpacing(1, 1, 1) ca = vtk.vtkUnsignedCharArray() ca.SetName('image') ca.SetNumberOfComponents(3) ca.SetNumberOfTuples(9) out.GetCellData().SetScalars(ca) for i in range(3): for j in range(3): ca.SetTuple3(i * 3 + j, inp.GetValue(i, j).ToFloat() * 255.0, 0.0, 0.0) #RequestInformation Script: from paraview import util inp = self.GetInput() util.SetOutputWholeExtent(self, [0, 3, 0, 3, 0, 0]) I got a 3x3 matrix image on the View. Then I saved the data as a PNG image, I got the warning and no image was found: Warning: In /Users/kitware/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/IO/Image/vtkPNGWriter.cxx, line 198 vtkPNGWriter (0x11c80a540): PNGWriter only supports unsigned char and unsigned short inputs How can I save the Programmable Filter as an image? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Get Values of CSV sources with Programmable Filter
Hi all, I'm using PV 4.1.0 and trying to get values of CSV sources with Programmable Filter. It's better to get them as numpy.array. How can I code it? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Visualize CSVs as Images
Hi all, I have sequential CSVs which only have contour values as m*n matrices. I want to visualize and animate them like VTK Images (arrays of pixels), but PV's CSV Reader requires values of each point. My CSVs are exported and refreshed by other asynchronous softwares, so I have to read the CSVs into PV without pre-processing them. I think Programmable Source filter may be suitable, but I don't know how to read sequential datasets with it. Any ideas? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Python - Access the name of blocks in a MultiBlockDataSet
Hi Aurélien and Paul, Check the entry: http://public.kitware.com/pipermail/paraview/2013-July/028749.html 1. Get the blocks' names with [source].GetDataInformation().GetCompositeDataInformation().GetName() I think it's not easy to get indices of blocks. Magician On Jan 25, 2014, at 2:32, paraview-requ...@paraview.org wrote: Not sure if there is anything easier but this should work: input.GetMetaData( *BLOCK_INDEX* ).Get(vtk.vtkCompositeDataSet.NAME()) Regards, Paul On Jan 25, 2014, at 2:00, paraview-requ...@paraview.org wrote: Date: Fri, 24 Jan 2014 11:04:58 -0500 From: Aur?lien Marsan aur.mar...@gmail.com To: paraview@paraview.org Subject: [Paraview] Python - Access the name of blocks in a MultiBlockDataSet Message-ID: CALBJ7LKkph_FR0ByRmxR0YrfC1aT5=xbcmsxad56+zb-y18...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Dear all, I do not find the command in order to get the names of blocks included in a MultiBlockDatSet. Does anyone knows it ? Many thanks, Regards, A. Marsan ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Animation Speed of 2D/3D View
Hi all, I have sequential CSVs of pointclouds and the size of each data is MBs. When 'Cache Geometry' is off, the animations on 3D View are very slow. But when the setting is on, the animations are extremely fast. I'd like to control the animations' speed of Views on PV. Any ideas? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] How to display normals, INPUT from a VTK file in Paraview ?
Hi Vincent, I can't find what is happening. If you can, please attach sample data to your mail. I tried displaying normals of Sphere sources, and succeeded with the 3D Glyph filter. It's better for you to try simple datasets. Magician On Jan 16, 2014, at 23:31, Vincent Leroy vincent.le...@innosea.fr wrote: Hi Magician, Thank you for your help, i tried Cell Centers filter and then 'Glyph with custom source' filter and it worked ! I can see the normals when I ask for 'points' or 'surface' display. Do you know why I can't plot them with 3D glyph ? I would like to have arrows instead of simple lines. Thank you again Vincent On 2014-01-15 14:19, Magician wrote: Hi Vincent, Try Cell Centers filter. Maybe normals are mapped to points (generated at cell centers). Next applying Glyph filter and you may get expected results. Magician On Jan 15, 2014, at 2:00, paraview-request@paraview.orgwrote: Message: 1 Date: Tue, 14 Jan 2014 16:14:53 +0100 From: Vincent Leroy vincent.le...@innosea.fr To: paraview@paraview.org Subject: [Paraview] How to display normals, INPUT from a VTK file in Paraview ? Message-ID: 2b1afa04c2e02ba0e58a24fd83c2f...@innosea.fr Content-Type: text/plain; charset=utf-8 Hi, I am a new user of Paraview. I am facing a problem I cannot solve and I have not found any relevant practice on the internet (guide user, mailing, ...)... I want to visualise my mesh with normals specified IN MY VTK FILE (and NOT the Normals Glyphs calculated by the software) (I have these normals calculations in another code and I do not want to change that). I am importing a mesh in Paraview from a VTK file. The VTK file contains the following elements: # vtk DataFile Version 2.0 hydrodynamic vtk mesh for paraview vizu ASCII DATASET POLYDATA POINTS 458 float x0 y0 z0 (points coordinates) ... ... ... ... POLYGONS 465 2325 4 n1 n2 n3 n4 (points IDs) 4 ... ... ... ... .. C ELL_DATA 465 NORMALS cell_normals float ... ... ... (normals coordinates) A 'cell_normals' array appears in 'Information'; I am able to color the surface (each cell) of the mesh according to the values of the cell_normals array (Magnitude, X, Y or Z) but nothing more. This gives me information on the normals orientation but I have no visual on the vectors. How is it possible de visualise these normals (displayed as vectors) on Paraview without calculating them with the software? What is the correct pratice ? I need to know if they are well oriented, I also need some visual on the mesh I am studying. Thanks a lot, Best regards. -- Vincent ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] How to display normals, INPUT from a VTK file in Paraview ?
Hi Vincent, Try Cell Centers filter. Maybe normals are mapped to points (generated at cell centers). Next applying Glyph filter and you may get expected results. Magician On Jan 15, 2014, at 2:00, paraview-requ...@paraview.org wrote: Message: 1 Date: Tue, 14 Jan 2014 16:14:53 +0100 From: Vincent Leroy vincent.le...@innosea.fr To: paraview@paraview.org Subject: [Paraview] How to display normals, INPUT from a VTK file in Paraview ? Message-ID: 2b1afa04c2e02ba0e58a24fd83c2f...@innosea.fr Content-Type: text/plain; charset=utf-8 Hi, I am a new user of Paraview. I am facing a problem I cannot solve and I have not found any relevant practice on the internet (guide user, mailing, ...)... I want to visualise my mesh with normals specified IN MY VTK FILE (and NOT the Normals Glyphs calculated by the software) (I have these normals calculations in another code and I do not want to change that). I am importing a mesh in Paraview from a VTK file. The VTK file contains the following elements: # vtk DataFile Version 2.0 hydrodynamic vtk mesh for paraview vizu ASCII DATASET POLYDATA POINTS 458 float x0 y0 z0 (points coordinates) ... ... ... ... POLYGONS 465 2325 4 n1 n2 n3 n4 (points IDs) 4 ... ... ... ... .. CELL_DATA 465 NORMALS cell_normals float ... ... ... (normals coordinates) A 'cell_normals' array appears in 'Information'; I am able to color the surface (each cell) of the mesh according to the values of the cell_normals array (Magnitude, X, Y or Z) but nothing more. This gives me information on the normals orientation but I have no visual on the vectors. How is it possible de visualise these normals (displayed as vectors) on Paraview without calculating them with the software? What is the correct pratice ? I need to know if they are well oriented, I also need some visual on the mesh I am studying. Thanks a lot, Best regards. -- Vincent ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] [EXTERNAL] XMLPolyDataReader Error on Windows (UNCLASSIFIED)
Hi Michael, Thanks for your reply. I hope the official binaries are built with validated libraries. The errors may against the ParaView's concept - scalability. Magician 2013/12/11 4:16、Stephens, Michael M ERDC-RDE-ITL-MS michael.m.steph...@erdc.dren.mil のメール: Classification: UNCLASSIFIED Caveats: FOUO ah yes. we've been down this road before. windows has a insidious bug in the the run-time environment. can't fseek properly. I have heard but can't not verify that if you build paraview with visual studio 2012 or greater the bug has been fixed. I know for a fact that building with VS 2010 do NOT work. I don't know what kitware uses to build their window releases. -m -Original Message- From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org] On Behalf Of Magician Sent: Tuesday, December 10, 2013 9:18 AM To: ParaView Subject: [EXTERNAL] [Paraview] XMLPolyDataReader Error on Windows Hi all, I have about 10GB pointcloud data with CSV format. The points have some kinds of scalar values. I opened the data and applied Table to Points filter, saved them as Binary XML PolyData. The saved data were about 4GB. Then I tried to open them, but I got errors as below: ERROR: In C:\DBD\pvs-x64\paraview\src\paraview\VTK\IO\XMLParser\vtkXMLDataParser.cxx, line 604 vtkXMLDataParser (0D4BBA90): Error reading uncompressed binary data header. Read 0 of 4 bytes. ERROR: In C:\DBD\pvs-x64\paraview\src\paraview\VTK\IO\XML\vtkXMLDataReader.cxx, line 510 vtkXMLPolyDataReader (0D458AE0): Cannot read point data array frame from PointData in piece 0. The data array in the element may be too short. When I saved VTP data, I used ParaView 4.0.1 on 64bit CentOS. The errors are dumped by ParaView 4.0.1 and 4.1.0 RC1 on 64bit Windows 7 Pro. I tried several machines but the results were same. The physical memories are over 16GB and HDD spaces are enough. I also tried other large VTP pointcloud data, they were about 2GB and had same format as larger ones. The smaller (2GB) data could read by all ParaViews on Linux and Windows. Are there any differences between Linux to Windows? How can I open large (over 4GB) VTP data on Windows?? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview Classification: UNCLASSIFIED Caveats: FOUO ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] XMLPolyDataReader Error on Windows
Hi all, I have about 10GB pointcloud data with CSV format. The points have some kinds of scalar values. I opened the data and applied Table to Points filter, saved them as Binary XML PolyData. The saved data were about 4GB. Then I tried to open them, but I got errors as below: ERROR: In C:\DBD\pvs-x64\paraview\src\paraview\VTK\IO\XMLParser\vtkXMLDataParser.cxx, line 604 vtkXMLDataParser (0D4BBA90): Error reading uncompressed binary data header. Read 0 of 4 bytes. ERROR: In C:\DBD\pvs-x64\paraview\src\paraview\VTK\IO\XML\vtkXMLDataReader.cxx, line 510 vtkXMLPolyDataReader (0D458AE0): Cannot read point data array frame from PointData in piece 0. The data array in the element may be too short. When I saved VTP data, I used ParaView 4.0.1 on 64bit CentOS. The errors are dumped by ParaView 4.0.1 and 4.1.0 RC1 on 64bit Windows 7 Pro. I tried several machines but the results were same. The physical memories are over 16GB and HDD spaces are enough. I also tried other large VTP pointcloud data, they were about 2GB and had same format as larger ones. The smaller (2GB) data could read by all ParaViews on Linux and Windows. Are there any differences between Linux to Windows? How can I open large (over 4GB) VTP data on Windows?? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Python scripting question
Hi Alan, How about the script: for key in GetSources().keys(): s = GetSources()[key] Delete(s) del s Magician On Dec 6, 2013, at 23:34, paraview-requ...@paraview.org wrote: Message: 3 Date: Fri, 6 Dec 2013 03:37:45 + From: Scott, W Alan wasc...@sandia.gov Subject: Re: [Paraview] [EXTERNAL] Re: Python scripting question To: Andy Bauer andy.ba...@kitware.com Cc: paraview@paraview.org paraview@paraview.org Message-ID: 9047ee0d4d3c8e43b93980da10a073808648e...@exmb04.srn.sandia.gov Content-Type: text/plain; charset=us-ascii Utkarsh - interested in passing in your $0.02? Thanks, Alan From: Andy Bauer [mailto:andy.ba...@kitware.com] Sent: Tuesday, December 03, 2013 7:23 PM To: Scott, W Alan Cc: paraview@paraview.org Subject: [EXTERNAL] Re: [Paraview] Python scripting question Hmm, I'm not sure this is the proper way to do it since I get a warning but it appears to work: a = GetActiveSource() # requires a leaf of the pipeline tree to be selected Delete(a) The warning I get is: ERROR: In C:\DBD\pvs-x64\paraview\src\paraview\ParaViewCore\ServerManager\Core\vtkSMProxyListDomain.cxx, line 189 vtkSMProxyListDomain (12E46ED0): Index 2 greater than max 1 Somewhere in the Python API there's a method to get the filter proxy by name but I don't remember that off the top of my head. If this doesn't work for you, Utkarsh probably has a better way :) Andy On Tue, Dec 3, 2013 at 8:04 PM, Scott, W Alan wasc...@sandia.govmailto:wasc...@sandia.gov wrote: Hi, I have a user that is trying to delete all of the entries in the pipeline browser, in a python script. I tried using the trace recorder, and that didn't work. Does anyone have any idea what command would do this? Thanks, Alan ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Fwd: Generate Programmable Sources with Timesteps
Any ideas? I'd like to generate moving object with the Programmable Source, but there are not enough informations on the Web to do it. Magician Begin forwarded message: From: Magician f_magic...@mac.com Subject: Generate Programmable Sources with Timesteps Date: November 27, 2013 at 6:50:54 GMT+9 To: ParaView paraview@paraview.org Hi all, I'm trying to generate programmable sources with timesteps. The URL may describe how to do them: http://www.paraview.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters.#Producing_Data_with_Timesteps_.28Source.29 But when I try the code, I got an error as below: Traceback (most recent call last): File string, line 19, in module File string, line 14, in RequestData File string, line 5, in GetUpdateTimesteps AttributeError: UPDATE_TIME_STEPS I have Mac OS 10.9 and ParaView 4.0.1. The attached pvsm file is what I coded. # just copied the sample code How can I run it exactly? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Generate Programmable Sources with Timesteps
Hi all, I'm trying to generate programmable sources with timesteps. The URL may describe how to do them: http://www.paraview.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters.#Producing_Data_with_Timesteps_.28Source.29 But when I try the code, I got an error as below: Traceback (most recent call last): File string, line 19, in module File string, line 14, in RequestData File string, line 5, in GetUpdateTimesteps AttributeError: UPDATE_TIME_STEPS I have Mac OS 10.9 and ParaView 4.0.1. The attached pvsm file is what I coded. # just copied the sample code How can I run it exactly? Magician ps_with_time.pvsm Description: Binary data ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Load Plugin Error
Hi Utkarsh, DYLD_PRINT_LIBRARIES_POST_LAUNCH shows just 2 libraries: dyld: loaded: /System/Library/CoreServices/Encodings/libJapaneseConverter.dylib dyld: loaded: /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/CoreServicesInternal and they were shown by DYLD_PRINT_LIBRARIES. There are few informations about Mac OS X. So I'll compare with ParaView on my Linux. Magician On 2013/05/03, at 23:33, Utkarsh Ayachit wrote: Can you also try setting DYLD_PRINT_LIBRARIES_POST_LAUNCH. The log you sent doesn't have all the libs. What I want is the output one gets on a linux system with LD_DEBUG=libs. Not exactly sure how to do that on OsX. Maybe someone else here knows. Utkarsh On Thu, May 2, 2013 at 9:55 AM, Magician f_magic...@mac.com wrote: Hi Utkarsh, Thanks for your advice. I tried DYLD_PRINT_LIBRARIES. The attachment file is the result. But I couldn't find the outputs are correct or not. Magician On 2013/05/02, at 21:39, Utkarsh Ayachit wrote: Try setting DYLD_PRINT_LIBRARIES environment variable and ensure that what's getting loaded is correct. https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/dyld.1.html Utkarsh On Wed, May 1, 2013 at 7:55 PM, Magician f_magic...@mac.com wrote: Hi Utkarsh, Yes, I built both ParaView 3.98.1 and plugins from sources on same terminal. There are additional informations. The attached file is CMake log of TensorGlyph. When I build plugins, I set ParaView_DIR at build directory of PV 3.98.1. Pre-installed plugins are working fine. Magician On 2013/05/01, at 22:55, Utkarsh Ayachit wrote: Are you trying to load them in the ParaView binary you built or the one downloaded from paraview.org? On Wed, May 1, 2013 at 8:08 AM, Magician f_magic...@mac.com wrote: Hi all, I'm trying to build and load 3rd parties' plugins on Mac OS 10.7.5. The sources of plugins are downloaded here: http://paraview.org/Wiki/ParaView/User_Created_Plugins Today I built both ParaView 3.98.1 and plugins successfully, but when I load plugins, ParaView hangs for seconds and terminated. This time I tried libTensorGlyphFilter.dylib, but all other plugins were same. The attached file is the error log. How could I solve the problem? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Load Plugin Error
Hi Utkarsh, Thanks for your advice. I tried DYLD_PRINT_LIBRARIES. The attachment file is the result. But I couldn't find the outputs are correct or not. Magician On 2013/05/02, at 21:39, Utkarsh Ayachit wrote: Try setting DYLD_PRINT_LIBRARIES environment variable and ensure that what's getting loaded is correct. https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/dyld.1.html Utkarsh On Wed, May 1, 2013 at 7:55 PM, Magician f_magic...@mac.com wrote: Hi Utkarsh, Yes, I built both ParaView 3.98.1 and plugins from sources on same terminal. There are additional informations. The attached file is CMake log of TensorGlyph. When I build plugins, I set ParaView_DIR at build directory of PV 3.98.1. Pre-installed plugins are working fine. Magician On 2013/05/01, at 22:55, Utkarsh Ayachit wrote: Are you trying to load them in the ParaView binary you built or the one downloaded from paraview.org? On Wed, May 1, 2013 at 8:08 AM, Magician f_magic...@mac.com wrote: Hi all, I'm trying to build and load 3rd parties' plugins on Mac OS 10.7.5. The sources of plugins are downloaded here: http://paraview.org/Wiki/ParaView/User_Created_Plugins Today I built both ParaView 3.98.1 and plugins successfully, but when I load plugins, ParaView hangs for seconds and terminated. This time I tried libTensorGlyphFilter.dylib, but all other plugins were same. The attached file is the error log. How could I solve the problem? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview magician$ export DYLD_PRINT_LIBRARIES=1 magician$ open -a /Applications/ParaView/ParaView\ 3.98.1.app dyld: loaded: /usr/bin/open dyld: loaded: /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa dyld: loaded: /usr/lib/libSystem.B.dylib dyld: loaded: /usr/lib/libobjc.A.dylib dyld: loaded: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices dyld: loaded: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation dyld: loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices dyld: loaded: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation dyld: loaded: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit dyld: loaded: /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData dyld: loaded: /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices dyld: loaded: /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox dyld: loaded: /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit dyld: loaded: /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore dyld: loaded: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox dyld: loaded: /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore dyld: loaded: /System/Library/Frameworks/Security.framework/Versions/A/Security dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition dyld: loaded: /usr/lib/libauto.dylib dyld: loaded: /usr/lib/libicucore.A.dylib dyld: loaded: /usr/lib/libxml2.2.dylib dyld: loaded: /usr/lib/libz.1.dylib dyld: loaded: /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI dyld: loaded: /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio dyld: loaded: /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration dyld: loaded: /usr/lib/liblangid.dylib dyld: loaded: /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport dyld: loaded: /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit dyld: loaded: /usr/lib/libDiagnosticMessagesClient.dylib dyld: loaded: /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis dyld: loaded: /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage dyld: loaded: /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL dyld: loaded: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork dyld: loaded: /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration dyld: loaded: /usr/lib/libCRFSuite.dylib dyld: loaded: /usr/lib/libc++.1.dylib dyld: loaded: /usr/lib/libstdc++.6.dylib dyld: loaded: /usr
Re: [Paraview] Load Plugin Error
Hi Utkarsh, Yes, I built both ParaView 3.98.1 and plugins from sources on same terminal. There are additional informations. The attached file is CMake log of TensorGlyph. When I build plugins, I set ParaView_DIR at build directory of PV 3.98.1. Pre-installed plugins are working fine. Magician On 2013/05/01, at 22:55, Utkarsh Ayachit wrote: Are you trying to load them in the ParaView binary you built or the one downloaded from paraview.org? On Wed, May 1, 2013 at 8:08 AM, Magician f_magic...@mac.com wrote: Hi all, I'm trying to build and load 3rd parties' plugins on Mac OS 10.7.5. The sources of plugins are downloaded here: http://paraview.org/Wiki/ParaView/User_Created_Plugins Today I built both ParaView 3.98.1 and plugins successfully, but when I load plugins, ParaView hangs for seconds and terminated. This time I tried libTensorGlyphFilter.dylib, but all other plugins were same. The attached file is the error log. How could I solve the problem? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview magician$ cmake ../ -- The C compiler identification is Clang 3.1.0 -- The CXX compiler identification is Clang 3.1.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - not found -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found -- Looking for Q_WS_QWS -- Looking for Q_WS_QWS - not found -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - found -- Looking for QT_MAC_USE_COCOA -- Looking for QT_MAC_USE_COCOA - found -- Found Qt4: /opt/local/bin/qmake (found version 4.8.4) CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 2.8) should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run cmake --help-policy CMP. This warning is for project developers. Use -Wno-dev to suppress it. -- Configuring done CMake Warning (dev) at /Users/magician/Downloads/ParaView-3.98.1-source/CMake/ParaViewPlugins.cmake:997 (ADD_LIBRARY): Policy CMP0003 should be set before this line. Add code such as if(COMMAND cmake_policy) cmake_policy(SET CMP0003 NEW) endif(COMMAND cmake_policy) as early as possible but after the most recent call to cmake_minimum_required or cmake_policy(VERSION). This warning appears because target TensorGlyphFilter links to some libraries for which the linker must search: m, -lm and other libraries with known full path: /Users/magician/ParaView-3.98.1-build/lib/libvtkpqComponents-pv3.98.1.dylib /usr/lib/libutil.dylib /opt/local/lib/libQtHelp.dylib CMake is adding directories in the second list to the linker search path in case they are needed to find libraries from the first list (for backwards compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to enable or disable this behavior explicitly. Run cmake --help-policy CMP0003 for more information. Call Stack (most recent call first): CMakeLists.txt:42 (ADD_PARAVIEW_PLUGIN) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning at /Users/magician/Downloads/ParaView-3.98.1-source/CMake/ParaViewPlugins.cmake:997 (ADD_LIBRARY): Cannot generate a safe linker search path for target TensorGlyphFilter because files in some directories may conflict with libraries in implicit directories: link library [libpython2.7.dylib] in /usr/lib may be hidden by files in: /opt/local/lib link library [libz.dylib] in /usr/lib may be hidden by files in: /opt/local/lib Some of these libraries may not be found correctly. Call Stack (most recent call first): CMakeLists.txt:42 (ADD_PARAVIEW_PLUGIN) -- Generating done -- Build files have been written to: /Applications/ParaView/Plugins/TensorGlyph/bin ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Inaccurate results with Probe filter
Sorry. I forgot to add an address of PV mailing list. Magician On 2013/03/20, at 10:33, Magician wrote: Hi Tony, I discussed similar problems. http://www.paraview.org/pipermail/paraview/2012-June/025273.html The interpolation and integration method (both space and time domain) of ParaView are very simple, but not ideal. ParaView splits all cells into tetrahedra or triangle and interpolate values with linear algorithm. I haven't research FIELDVIEW's method yet, but it may be different from PVs. Magician On 2013/03/20, at 4:13, paraview-requ...@paraview.org wrote: Hi Tony, What kind of cells are these? Can you make the data available to us? -berk On Tue, Mar 19, 2013 at 12:16 PM, Tony McDaniel tonymcdan...@gmail.comwrote: I'm using the Probe Location filter to extract data from a 3D CFD solution for an internal flow, and I'm not getting the data that I should be for some (but not all) of the points. The dataset is approximately 7 million nodes saved in Ensight format. I'm comparing the data returned by Paraview to the data at the same locations in FieldView. For licensing reasons, I would prefer to use Paraview for this research, but I also need accurate solutions. For two representative probe locations, I have the following results: x y z pv_density fv_density pv_pressure fv_pressure 0.3912-0.0376-0.05660.9040 0.904067779.9 67779.9 0.3912-0.0426-0.05160.8275 0.862365849.0 66176.3 The first point matches precisely between Paraview and FieldView. However, the second point is substantially different. In addition, the velocity at point two is {0,0,0} indicating that the point is on the boundary, though it is not actually. Looking at color plots in Paraview, the color under the point location clearly matches the numbers from FieldView. I've uploaded plots showing pressure in the plane containing the two locations here: https://dl.dropbox.com/u/**744216/probe1.pnghttps://dl.dropbox.com/u/744216/probe1.png https://dl.dropbox.com/u/**744216/probe2.pnghttps://dl.dropbox.com/u/744216/probe2.png The values are wrong for points that are close to the boundary, and match FieldView for points away from the boundary. I have also tried importing the locations from a CSV file and using the Resample Dataset and get the same values. Can anyone shed light on why this is happening? ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] animating multiple vtp files
Hi Jelle, There are 3 problems to be solved: 1) Combine .pvd files as a transient dataset 2) Generate ParticlePaths 3) Animate ParticlePaths 1) is a FAQ: http://www.paraview.org/pipermail/paraview/2007-June/005165.html ...and 3) too: http://www.mail-archive.com/paraview@paraview.org/msg01966.html But I don't have a good idea about 2). Of course ParaView have ParticlePath filter, but that couldn't work with my datasets. So I always convert particle data into pathlines and read them. Magician On 2013/03/19, at 5:10, paraview-requ...@paraview.org wrote: Message: 2 Date: Mon, 18 Mar 2013 21:04:18 +0100 From: Jelle Thys thysjelle1...@hotmail.com Subject: [Paraview] animating multiple vtp files To: paraview@paraview.org Message-ID: dub102-ds313e186d1f59987b2c50eb6...@phx.gbl Content-Type: text/plain; charset=iso-8859-1 Diavoorstelling afspelenhttp://g.msn.com/5meen_us/171?path=/photomail/{c89b4387-3747-436d-9a34-c8e85c3de8af}image=8F34A7DF1DB8D256!344imagehi=8F34A7DF1DB8D256!342CID=-8127686850778705322 Alle foto's opslaan Wil je deze foto's allemaal tegelijk opslaan? Hoe doe je dat http://help.live.com/help.aspx?mkt=nl-nlproject=WL_Mailv3querytype=keywordquery=segami_lla_evas Foto's zijn 30 dagen online beschikbaar. Hello The software package I used to simulatie particle behaviour has the option to create .VTP files, which I could use to visualize the particle paths in Paraview. (There is an attached image that shows the created files) I'm able to visualize my fluid domain in Paraview but I don't understand how I can visualize and animate the particle paths. I will be glad if someone can help me to animatie the particle paths. Kind regards http://public.bay.livefilestore.com/y1pO9Mo38QVlB-kQceLBhN_xkedxTnHwfl4V9tGKeg-_d9ZO2ENkM37q7E1G6__MJC2/Knipsel.jpg?download ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] TimestepValues of Parental Sources
Hi all, I'd like to export integrated values of unsteady sources with Python. I'm planning to get sources by GetActiveSource() method. But if I apply Integrate Variables filter, the sources lose TimestepValues, so I can't get them. Are there any ideas to get timestep values of parental sources? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Changing orientation axis color
Hi James, Me too. The axes label color is not saved when rebooting PV. One solution using Python is here: rv = GetRenderView() rv.OrientationAxesLabelColor = [0.5, 0.5, 0.5] Render() You should change the color values you want. Save the script and read from Macros - Add new macro You can execute it only clicking the button generated on the toolbar. Magician On 2013/02/16, at 2:00, paraview-requ...@paraview.org wrote: Sounds like a bug to me. Mind reporting on the bug tracker? (http://paraview.org/Bug) Thanks Utkarsh On Wed, Feb 13, 2013 at 4:39 PM, James Thunes j.thu...@gmail.com wrote: I'm using paraview 3.98.0 64 bit on OS X 10.7.5. Orientation axis label color defaults to cyan. Changing color via Edit-View Settings-Annotation-Axis Label Color works for current session, but changes when reopened. Does anybody have an idea on what is wrong / a solution? Thanks ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Get Value for a certien point
Hi lily, How about Probe Location Filter? Magician On 2013/02/12, at 22:54, paraview-requ...@paraview.org wrote: thanks kyle but this is not exactly what I wanna do I wanna use python scripting to do that so I need a command that takes x,y and z and gives the value of the point on that coordinates Date: Mon, 11 Feb 2013 09:33:49 -0500 Subject: Re: [Paraview] Get Value for a certien point From: kyle.l...@kitware.com To: the.1.l...@hotmail.com In Mon, Feb 11, 2013 at 7:43 AM, the lily the.1.l...@hotmail.com wrote: Dear all I applied the contour filter on my data and I would like to know the value of each point on that surface I want paraview to get the value (scalar value) for a given point (x,y,z) is there a way to do that ? You can make a surface selection and then use the spreadsheet view to look at the corresponding data values. Cheers, Kyle ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Python Script: Rescale to Data Range
Hi Roman, I have an other solution about this problem using Python. The code takes you the ranges of any values: sm = servermanager.Fetch(your_source) sm.GetCellData().GetArray(your_value).GetRange(0) ...and you can apply them to your Color Maps. You should apply your source's and value's name (ex. 'Slice1' 'Velocity'). If you want to get point data, change GetCellData() to GetPointData(). And if your sources have high-dimensional value (such as vectors) and want to get the range of n-th component, change n value of GetRange(n). If your sources are MultiBlock dataset, you should get only one block before getting value as below: sm.GetBlock(N).GetCellData().GetArray(your_value).GetRange(0) N is the number of blocks. # Now I have not enough samples, perhaps the codes couldn't work, sorry. Magician On 2013/02/09, at 0:38, paraview-requ...@paraview.org wrote: If you have the source code, you can look at the pv source/Plugins/CoProcessingScriptGenerator/cp_export.py. It might be a bit confusing but the section you'll want to look at is below. I think you're problem is that you don't have any slice object to get the data information from. Andy = if %s : # rescale data range import math for view in cp_views: if timestep %% view.cpFrequency == 0 or datadescription.GetForceOutput() == True: reps = view.Representations for rep in reps: if hasattr(rep, 'Visibility') and rep.Visibility == 1 and hasattr(rep, 'MapScalars') and rep.MapScalars != '': input = rep.Input input.UpdatePipeline() #make sure range is up-to-date lut = rep.LookupTable if lut == None: continue if rep.ColorAttributeType == 'POINT_DATA': datainformation = input.GetPointDataInformation() elif rep.ColorAttributeType == 'CELL_DATA': datainformation = input.GetCellDataInformation() else: print 'something strange with color attribute type', rep.ColorAttributeType if lut.VectorMode != 'Magnitude' or \ datainformation.GetArray(rep.ColorArrayName).GetNumberOfComponents() == 1: datarange = datainformation.GetArray(rep.ColorArrayName).GetRange(lut.VectorComponent) else: datarange = [0,0] for i in range(datainformation.GetArray(rep.ColorArrayName).GetNumberOfComponents()): for j in range(2): datarange[j] += datainformation.GetArray(rep.ColorArrayName).GetRange(i)[j]*datainformation.GetArray(rep.ColorArrayName).GetRange(i)[j] datarange[0] = math.sqrt(datarange[0]) datarange[1] = math.sqrt(datarange[1]) rgbpoints = lut.RGBPoints.GetData() numpts = len(rgbpoints)/4 minvalue = min(datarange[0], rgbpoints[0]) maxvalue = max(datarange[1], rgbpoints[(numpts-1)*4]) if minvalue != rgbpoints[0] or maxvalue != rgbpoints[(numpts-1)*4]: # rescale all of the points oldrange = rgbpoints[(numpts-1)*4] - rgbpoints[0] newrange = maxvalue - minvalue newrgbpoints = list(rgbpoints) for v in range(numpts): newrgbpoints[v*4] = minvalue+(rgbpoints[v*4] - rgbpoints[0])*newrange/oldrange lut.RGBPoints.SetData(newrgbpoints) On Fri, Feb 8, 2013 at 6:35 AM, Kisler roman.kis...@tnt.tu-berlin.dewrote: Hi everyone, I write a python script (Paraview 3.14.1 64-bit) in which a loop loads files, makes slices etc., prints an image and deletes all variables within each iteration step. Therefore I need a python code which rescales the colorbar in each step. So far I found this code in another mailing conversation (see http://www.paraview.org/pipermail/paraview/2009-January/010809.html).Unfortunately the command range=slice.GetDataInformation().GetPointDataInformation().GetArrayInformation(0).GetComponentRange(0) doesn't work in my script and delivers the following error message: AttributeError: 'NoneType' object has no attribute 'GetDataInformation' and refers to the line written above (range=...). I would appreciate any help, be it a more detailed explanation of the script which can be found in the link posted above or another possibility of implementing it. Kindest regards, Roman ___ Powered by www.kitware.com Visit other
Re: [Paraview] unsteady simulation data (Fluent)-read as stack in ParaView-animation
Hi Lilly, How did you export EnSight files from Fluent? Is your case (or encas) files are related separately with each timestep? You can define time sections in case files. The files may be generated with ascii encoding, so you can edit it with text editors. Make a case file with time section. The document may help you. http://www3.ensight.com/EnSight10_Docs/UserManual.pdf Magician On 2013/01/16, at 1:27, paraview-requ...@paraview.org wrote: Date: Tue, 15 Jan 2013 10:46:23 -0500 From: Utkarsh Ayachit utkarsh.ayac...@kitware.com Subject: Re: [Paraview] unsteady simulation data (Fluent)-read as stack inParaView-animation To: richschm...@web.de Cc: ParaView paraview@paraview.org Message-ID: CADHSJjCrQXmr0PP4=bDemE8zRALS43EKeaa0W1-neZOOON=g...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 What version of ParaView is this? 3.98.0 should support reading file series for fluent datasets. If you could attach a small sample to reproduce this problem, that'd be great. Utkarsh On Tue, Jan 15, 2013 at 4:12 AM, richschm...@web.de wrote: Dear all, I am trying to load a stack of unsteady data (EnSight-data created by Fluent) to ParaView since I want to create a transient animation. But everytime I am choosing the set of data only the first file is loaded. Is there a way to load a full stack of data created by Fluent, process it and save it as animation using ParaView? Thanks a million for any help and idea! Lilly ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Limit Slice to a non-infinite area
Hi Florian, 'Extract Selection' or 'Extract Cells by Region' filter may help you. Apply them to your Sliced sources. Magician On 2012/12/11, at 2:00, paraview-requ...@paraview.org wrote: Message: 4 Date: Mon, 10 Dec 2012 17:45:54 +0100 From: Florian Lindner mailingli...@xgm.de Subject: [Paraview] Limit Slice to a non-infinite area To: paraview@paraview.org paraview@paraview.org Message-ID: 4829488.nSPkbuLBMC@horus Content-Type: text/plain; charset=us-ascii Hello, can I make a slice using a non-infinite plane? Usually a slice always spans the entire domain. Can I limit the area of a slice? e.g. if I want to use the integrate variables filter to integrate only on a part of the domain. Thanks, Florian ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] PointSprite Plugin on PV 3.98.0
Hi Utkarsh, Thanks for your reply. The PointSprite Plugin is very useful when we visualize 3D Point Cloud data. I hope the issue will be fixed. Magician On 2012/11/21, at 6:37, Utkarsh Ayachit wrote: PointSprite plugin has issues when VisItBridge is enabled hence it's not built in that case. You can rebuild ParaView from source without VisIt-bridge and the plugin should be available. Utkarsh On Tue, Nov 20, 2012 at 4:34 PM, Magician f_magic...@mac.com wrote: Hi all, We're testing ParaView 3.98.0 for weeks and we found no PointSplite Plugin on this version. Where is it? Or we can't use it any longer? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] PointSprite Plugin on PV 3.98.0
Hi all, We're testing ParaView 3.98.0 for weeks and we found no PointSplite Plugin on this version. Where is it? Or we can't use it any longer? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Inconsistent results with the stream trace filter
Hi Joseph, I tried your data and got a result as yours. Your data only includes Hex, Wedge, Tet and Pyramid, but streamlines are stopped earlier. Same as my polyhedral pipe sample, I applied Tetrahedralize filter to your pipe source, and I could get valid streamlines. Magician Pipe.tar.gz attached to the bug report below, in the form of an Ensight Case. First extract the archive and to open in Paraview, use All files (*) when browsing and select the .encas, then select EnSight Files. Regards, Joseph David Borġ http://www.jdborg.com On 12 October 2012 03:28, Yuanxin Liu leo.liu at kitware.com wrote: Hi, Is it possible for you to upload the data? By the way, if the cell type is polyhedron, then this is quite likely the same bug as this: http://paraview.org/Bug/view.php?id=13442 Leo On Thu, Oct 11, 2012 at 6:17 AM, Joe Borġ mail at jdborg.com wrote: Hi guys, I've got an odd issue with the stream trace and stream trace custom source filters in Paraview (3.14.1 64bit). No matter what settings I use, the traces die off very soon and some even carry on straight (even when there's no fluid). See the two screenshots I've got from Paraview. http://jdborg.com/images/paraview/pv_inlet.png http://jdborg.com/images/paraview/pv_outlet.png Not sure if this is a setting that's easy to miss or if it's more terminal. Thanks, Regards, Joseph David Borġ http://www.jdborg.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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Inconsistent results with the stream trace filter
Hi Joe, Tetrahedralize filter is applicable. All cells are splitted into Tetrahedral ones. Try it. Magician On 2012/10/17, at 23:40, Joe Borġ wrote: Thanks Magician, Thanks for testing. What are you using to convert to tet? Is it a ParaView feature? Leo, can the priority of the bug be raised please? Regards, Joseph David Borġ http://www.jdborg.com On 17 October 2012 14:20, Magician f_magic...@mac.com wrote: Hi Joseph, I tried your data and got a result as yours. Your data only includes Hex, Wedge, Tet and Pyramid, but streamlines are stopped earlier. Same as my polyhedral pipe sample, I applied Tetrahedralize filter to your pipe source, and I could get valid streamlines. Magician Pipe.tar.gz attached to the bug report below, in the form of an Ensight Case. First extract the archive and to open in Paraview, use All files (*) when browsing and select the .encas, then select EnSight Files. Regards, Joseph David Borġ http://www.jdborg.com On 12 October 2012 03:28, Yuanxin Liu leo.liu at kitware.com wrote: Hi, Is it possible for you to upload the data? By the way, if the cell type is polyhedron, then this is quite likely the same bug as this: http://paraview.org/Bug/view.php?id=13442 Leo On Thu, Oct 11, 2012 at 6:17 AM, Joe Borġ mail at jdborg.com wrote: Hi guys, I've got an odd issue with the stream trace and stream trace custom source filters in Paraview (3.14.1 64bit). No matter what settings I use, the traces die off very soon and some even carry on straight (even when there's no fluid). See the two screenshots I've got from Paraview. http://jdborg.com/images/paraview/pv_inlet.png http://jdborg.com/images/paraview/pv_outlet.png Not sure if this is a setting that's easy to miss or if it's more terminal. Thanks, Regards, Joseph David Borġ http://www.jdborg.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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Temporal Streamlines
Hi all, I'm now trying to visualize temporal flow patterns with streamlines. ParaView's Stream Tracer with Custom Source filter may be able to generate streamlines of the fixed flow of each timestep. Can I generate temporal streamlines with general PV filters? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Temporal Streamlines
Hi Berk, I meant particle paths. My sources are temporal EnSight Gold data or VTKs merged by PVD. Magician On 2012/10/17, at 0:11, Berk Geveci wrote: By temporal streamlines, do you mean particle paths? Streaklines? ParaView can do both. I'd recommend the development version though. We made significant improvements in the usability of those filters. Leo can tell you more. On Tue, Oct 16, 2012 at 8:55 AM, Magician f_magic...@mac.com wrote: Hi all, I'm now trying to visualize temporal flow patterns with streamlines. ParaView's Stream Tracer with Custom Source filter may be able to generate streamlines of the fixed flow of each timestep. Can I generate temporal streamlines with general PV filters? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Temporal Streamlines
Sorry, I forgot a most important information. I also tried Particle Pathlines filter, but I couldn't get any valid pathlines. Magician On 2012/10/17, at 0:28, Magician wrote: Hi Berk, I meant particle paths. My sources are temporal EnSight Gold data or VTKs merged by PVD. Magician On 2012/10/17, at 0:11, Berk Geveci wrote: By temporal streamlines, do you mean particle paths? Streaklines? ParaView can do both. I'd recommend the development version though. We made significant improvements in the usability of those filters. Leo can tell you more. On Tue, Oct 16, 2012 at 8:55 AM, Magician f_magic...@mac.com wrote: Hi all, I'm now trying to visualize temporal flow patterns with streamlines. ParaView's Stream Tracer with Custom Source filter may be able to generate streamlines of the fixed flow of each timestep. Can I generate temporal streamlines with general PV filters? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] How to save only the output, for instance, Calculator filter?
Hi Mohamad, If you do not mind doing more steps: 1. Save your source as XML-VTK formats. 2. Re-open the XML-VTK Data. You may choose which variables will be activated on Properties tab, and you should check which you want to save. 3. Save it again. Magician On 2012/10/07, at 11:16, paraview-requ...@paraview.org wrote: Message: 3 Date: Sat, 6 Oct 2012 17:16:58 -0700 From: Mohamad M. Nasr-Azadani mmn...@gmail.com Subject: [Paraview] How to save only the output, for instance, Calculator filter? To: paraview@paraview.org Message-ID: cae_bc5z5wsvpp4pbmfkxyr-soot04n-eodxk99afogkvkys...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Hi guys, I am just doing some simple calculations on some VTR files using the Calculator filter. When I try to Save Data, it appears that the input data to the calculator is also being saved. Is there anyway to specify which variable to be saved when Saving data? Thanks, Mohamad ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Screenshot sizes on pvbatch
Mirko and Gena, Thanks for your reply. I tried both advices. I couldn't access vtkRenderLargeImage from pvbatch, but the 'Magnification' option takes good results! I always export large screenshots because of resizing (for pseudo-antialiasing), so this technique is very nice for me. Magician On 2012/09/21, at 1:00, paraview-requ...@paraview.org wrote: Message: 3 Date: Thu, 20 Sep 2012 09:56:05 +0200 From: mirko heuegger mheueg...@gmail.com Subject: Re: [Paraview] Screenshot sizes on pvbatch To: Magician f_magic...@mac.com Cc: paraview@paraview.org Message-ID: CACR=3k7hvgupvfx+dcpdplockmu+askp57qh6cqftjgrfkv...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 Hello! On Wed, Sep 19, 2012 at 5:43 PM, Magician f_magic...@mac.com wrote: Hi all, I'm trying to save screenshots with pvbatch (v3.14.1). -cut- Is there any ideas to export larger images than displays? I'm not sure if pvBatch/python exposes the vtkRenderLargeImage class, but if so, it might be helpful. some links about it: http://www.vtk.org/doc/nightly/html/classvtkRenderLargeImage.html and http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/RenderLargeImage hth mirko -- Real programmers don't document; if it was hard to write, it should be hard to understand. -- Message: 4 Date: Thu, 20 Sep 2012 12:58:19 +0400 From: Gena Bug archaero...@mail.ru Subject: Re: [Paraview] Screenshot sizes on pvbatch To: paraview@paraview.org Message-ID: 201209201258.19394.archaero...@mail.ru Content-Type: Text/Plain; charset=utf-8 Hi! You can also try this: WriteImage('boo.png', Magnification = 2) http://www.paraview.org/pipermail/paraview/2011-October/023106.html ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Screenshot sizes on pvbatch
Hi all, I'm trying to save screenshots with pvbatch (v3.14.1). I set larger ViewSizes than display resolution, but exported images are cropped with the display. Is there any ideas to export larger images than displays? # Fortunately without re-compiling ParaView. Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Getting point values on pvbatch
Hi all, I'm trying to get point values from several sources on pvbatch. I'm using ParaView 3.14.1 with local client (single CPU) mode. My pipeline is as below: source.vtm | --CellDatatoPointData1 | |-/ResampleWithDataset1 (Input) | --IntegrateVariables1 |-Line1 | --/ResampleWithDataset1 (Source) --ResampleWithDataset1 The original source (source.vtm) is XML MultiBlock including Pressure values. Now I'm debugging my codes on Python Shell. First I get sources as below: GetSources().keys() [('IntegrateVariables1', '2579'), ('CellDatatoPointData1', '2293'), ('source.vtm', '2175'), ('ResampleWithDataset1', '2490'), ('Line1', '2305')] original = GetSources()[(source.vtm, 2175)] source = GetSources()[(CellDatatoPointData1, 2293)] integrate = GetSources()[(IntegrateVariables1, 2579)] line = GetSources()[(Line1, 2305)] resample = GetSources()[(ResampleWithDataset1, 2490)] And all sources are grabbed successfully: original paraview.servermanager.XMLMultiBlockDataReader object at 0x11d81c4d0 source paraview.servermanager.CellDatatoPointData object at 0x11d81c490 integrate paraview.servermanager.IntegrateVariables object at 0x11d81c3d0 line paraview.servermanager.Line object at 0x11d81c450 resample paraview.servermanager.ResampleWithDataset object at 0x11d81c390 Next I want to get these values: a) original's coordXs, coordYs, coordZs b) source's Pressures c) integrate's Pressures d) resample's Pressures For example, I can get Pressure's range as below: source.PointData.GetArray(Pressure).GetRange() But I'm missing to get each points' raw values, and I can't find where the points' coordinates are. Fortunately I can only get integrated value with GetRange()[0], but I think it's not a good way. How can I get each points' or integrated raw values and coordinates with Python? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Adding custom buttons on Toolbar
Hi all, I'm planning to add custom tools for ParaView. My first plan is: - Add a button (with graphical icon) on Toolbars' space. - The function is changing camera's position, focal point and reset zoom. I'm not so familiar with developing plugins. Are there any informations or sample codes to do it? # I tried Add new macro with a Python script of camera motion, # but the insufficiency is the button's appearance. Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Applying filters from Python Shell
Hi David, Thanks for your reply. Executing Show() command, the Calculator Filter is activated. # Show() command isn't recorded by Start Trace, # so I didn't think of it. Magician On 2012/08/17, at 23:55, David E DeMarle wrote: Show() David E DeMarle Kitware, Inc. RD Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Fri, Aug 17, 2012 at 10:00 AM, Magician f_magic...@mac.com wrote: Hi all, I'm trying to apply Calculator filter to active source from the Python Shell. I executed these codes: calc = Calculator() calc.AttributeMode = point_data calc.Function = iHat+jHat+kHat calc.ResultArrayName = 'SampleVect' Applying the script, a new Calculator source is generated, but the source isn't activated on the current view. Valid sources have eye icons on the Pipeline Browser, but the Calculator source which is generated by Python doesn't have it. How can I finish to generate the filter source from Python? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Applying filters from Python Shell
Hi all, I'm trying to apply Calculator filter to active source from the Python Shell. I executed these codes: calc = Calculator() calc.AttributeMode = point_data calc.Function = iHat+jHat+kHat calc.ResultArrayName = 'SampleVect' Applying the script, a new Calculator source is generated, but the source isn't activated on the current view. Valid sources have eye icons on the Pipeline Browser, but the Calculator source which is generated by Python doesn't have it. How can I finish to generate the filter source from Python? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Copy sources repeatedly with Programmable Filter
Hi Hal, Thanks again for your reply. I've been trying almost all of the filters, but I didn't know how to use the Glyph With Custom Source filter. Applying the filter to plane source with any PolyData, I got good results. Magician On 2012/08/13, at 19:39, Hal Canary wrote: On 08/11/2012 08:48 PM, Magician wrote: What I want to do is: 1. Read or generate one source (Box, Sphere, or other PolyData) 2. Copying it repeatedly (hundreds of copies, along both x and y axes) Have you tried the Glyph With Custom Source? http://cs.unc.edu/~hal/images/glyph-with-custom ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Copy sources repeatedly with Programmable Filter
Hi all, I'm trying to copy vtkPolyData sources with Programmable Filter. My latest code is here: input = self.GetPolyDataInput() output = self.GetPolyDataOutput() points = vtk.vtkPoints() for i in range(0, input.GetNumberOfPoints()): point_i = input.GetPoint(i) x, y, z = point_i[:3] z = z + 2.0 points.InsertPoint(i, x, y, z) output.SetPoints(points) And now I want to copy them repeatedly with only one filter. (Ex: 10 blocks at intervals.) How to do it? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Copy sources repeatedly with Programmable Filter
Hi Hal, Thanks for your reply. What I want to do is: 1. Read or generate one source (Box, Sphere, or other PolyData) 2. Copying it repeatedly (hundreds of copies, along both x and y axes) So far I wrote a VTK file including all sources, but now I want to to change the numbers, sizes and pitches on ParaView. Magician On 2012/08/12, at 1:00, paraview-requ...@paraview.org wrote: Message: 4 Date: Sat, 11 Aug 2012 11:05:05 -0400 From: Hal Canary h...@cs.unc.edu Subject: Re: [Paraview] Copy sources repeatedly with Programmable Filter To: paraview@paraview.org Message-ID: 502674a1.2060...@cs.unc.edu Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 08/11/2012 09:16 AM, Magician wrote: I'm trying to copy vtkPolyData sources with Programmable Filter. My latest code is here: input = self.GetPolyDataInput() output = self.GetPolyDataOutput() points = vtk.vtkPoints() for i in range(0, input.GetNumberOfPoints()): point_i = input.GetPoint(i) x, y, z = point_i[:3] z = z + 2.0 points.InsertPoint(i, x, y, z) output.SetPoints(points) And now I want to copy them repeatedly with only one filter. (Ex: 10 blocks at intervals.) How to do it? It sounds like you want to select all of the sources and apply the Append Geometry filter. ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] [EXTERNAL] Warp by scalar for CELL_DATA
Hi Mohammad, Sorry for late my reply. There is an easy example: # vtk DataFile Version 2.0 QuadCell ASCII DATASET UNSTRUCTURED_GRID POINTS 9 FLOAT 0 0 0 0.4 0 0 1 0 0 0 0.25 0 0.4 0.25 0 1 0.25 0 0 1 0 0.4 1 0 1 1 0 CELLS 4 20 4 0 1 4 3 4 1 2 5 4 4 3 4 7 6 4 4 5 8 7 CELL_TYPES 4 9 9 9 9 CELL_DATA 4 SCALARS scalar FLOAT 1 LOOKUP_TABLE DEFAULT 1.0 2.0 4.0 8.0 This source includes 4 Quad cells and Cell-based Scalar values. These cells' area values are different. If you apply Cell Data to Point Data filter, the ID:4 point's value is calculated as 3.75 {= (1.0 + 2.0 + 4.0 + 8.0) / 4.0}. Magician On 2012/07/18, at 7:56, Mohammad Mirzadeh wrote: Hi Magician, Thanks for the information. Could you please let me know of your source? Thanks, Mohammad On Tue, Jul 17, 2012 at 3:21 PM, Magician f_magic...@mac.com wrote: Hi Mohammad, According to my research, Cell Data to Point Data is just calculating averages of surrounding cells. I think it's not proper to explain the function as 'interpolation'. Also I hope it will be adapted to geometric interpolation method. Magician Thanks that might work. Just another question. What type of interpolation does PV use to map cell data information to point data? Obviously there are more nodes than cells ... is it using some sort of least-square method? On Tue, Jul 17, 2012 at 12:36 AM, Felipe Bordeu felipe.bor...@ec-nantes.frwrote: hi, you can use the shrink filter with a shrink factor of 0.9 to get disconnected nodes. the you can apply the warp filter. Felipe Le 17/07/2012 03:09, Mohammad Mirzadeh a ?crit : Yeah I did that. Problem is, cell_data variables are discontinuous at some points and I fear interpolation will introduce unnecessary oscillations ... On Mon, Jul 16, 2012 at 6:03 PM, Scott, W Alan wasc...@sandia.gov wrote: Could you just run Point Data to Cell Data, then the Warp by scalar filter? Alan *From:* paraview-boun...@paraview.org [mailto: paraview-boun...@paraview.org] *On Behalf Of *Mohammad Mirzadeh *Sent:* Monday, July 16, 2012 6:52 PM *To:* paraview@paraview.org *Subject:* [EXTERNAL] [Paraview] Warp by scalar for CELL_DATA Is there a filter similar to warp by scalar but for CELL_DATA variables? ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] [EXTERNAL] Warp by scalar for CELL_DATA
Hi Mohammad, According to my research, Cell Data to Point Data is just calculating averages of surrounding cells. I think it's not proper to explain the function as 'interpolation'. Also I hope it will be adapted to geometric interpolation method. Magician Thanks that might work. Just another question. What type of interpolation does PV use to map cell data information to point data? Obviously there are more nodes than cells ... is it using some sort of least-square method? On Tue, Jul 17, 2012 at 12:36 AM, Felipe Bordeu felipe.bor...@ec-nantes.frwrote: hi, you can use the shrink filter with a shrink factor of 0.9 to get disconnected nodes. the you can apply the warp filter. Felipe Le 17/07/2012 03:09, Mohammad Mirzadeh a ?crit : Yeah I did that. Problem is, cell_data variables are discontinuous at some points and I fear interpolation will introduce unnecessary oscillations ... On Mon, Jul 16, 2012 at 6:03 PM, Scott, W Alan wasc...@sandia.gov wrote: Could you just run Point Data to Cell Data, then the Warp by scalar filter? Alan *From:* paraview-boun...@paraview.org [mailto: paraview-boun...@paraview.org] *On Behalf Of *Mohammad Mirzadeh *Sent:* Monday, July 16, 2012 6:52 PM *To:* paraview@paraview.org *Subject:* [EXTERNAL] [Paraview] Warp by scalar for CELL_DATA Is there a filter similar to warp by scalar but for CELL_DATA variables? ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Scaling Vector Arrow
Hi all, I want to visualize velocity fields with Glyph filter. We can apply scaling factor to Glyph filter. I'd like to fix shaft radius and tip size, and scale only shaft length with velocity magnitude. But if I apply scaling factor, both length and radius are scaled. Is there a way to do it? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Problem about Generate Ids filter
Hi all, Today I tried Generate Ids filter. When I applied it, Points' and Cells' IDs are generated, but first values of original source are disappeared. Is it a bug? Can I generate IDs not to overwrite original values? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Question about Integrate Variables Filter
Hi Leo Sam, Thanks for your replies. The bilinear integration method which Sam wrote was just I intended. I could open the PDF document on Mac OS X and iOS (iPhone/iPad). Additionally, I found a similar problems on Temporal Statistics filter. I prepared two transiend data sets. Case 1: t=1.0, scalar=1 t=2.0, scalar=2 t=4.0, scalar=4 Case 2: t=1.0, scalar=1 t=1.1, scalar=2 t=4.0, scalar=4 Both Temporal Average Values are 2.. And if I apply Temporal Interpolation filter and Temporal Statistics filter again, there are different results. The reason is the Temporal Static filter is just calculating sum average, and transient time values are not considered. I'd like to get time-weighted average values by Temporal Statistics filter. Magician On 2012/06/11, at 9:36, Yuanxin Liu wrote: Hi, Sam, Would you mind reposting this? The pdf file seems corrupt. thanks, Leo On Sun, Jun 10, 2012 at 7:38 PM, Samuel Key samuel...@bresnan.net wrote: Hi Leo, Though likely more arithmetically intense than you would like, I have attached a 3-page write-up on how to do an exact integration over the surface of a bi-linear isoparametric coordinate based quadrilateral in three-space. It is easily adapted to a flux integration as well. If it helps, please free to incorporate it into ParaView. Sam Key. On 6/10/2012 12:55 PM, Yuanxin Liu wrote: Hi, This is not really a bug, but just what the linear precision integration does. As you can see in vtkIntegrateAttributes.cxx:215, the quad cell is basically cut into two triangles along a diagonal, integration is done for each triangle and the results are added up. So, depending where your 1 falls on a diagonal vertex, you will get different results. Leo On Sat, Jun 9, 2012 at 8:57 AM, Magician f_magic...@mac.com wrote: Hi all, Now I found a bug of the filter. My ParaView's version is 3.14.1. I define node names as below: c--d | | a--b Case 1: a=1.0, b=0.0, c=0.0, d=0.0 Integration Value = 0.3 Case 2: a=0.0, b=1.0, c=0.0, d=0.0 Integration Value = 0.1 Case 3: a=0.0, b=0.0, c=1.0, d=0.0 Integration Value = 0.1 Case 4: a=0.0, b=0.0, c=0.0, d=1.0 Integration Value = 0.3 So Integration Values are calculated as (2*a+b+c+2*d)/6. I think it's not a good result. Magician On 2012/06/08, at 12:54, Magician wrote: Hi all, I'm now comparing integration results of each postprocessors. I made a simple Quadratic VTK model as below: # vtk DataFile Version 2.0 QuadCell ASCII DATASET UNSTRUCTURED_GRID POINTS 4 FLOAT 0 0 0 1 0 0 0 1 0 1 1 0 CELLS 1 5 4 0 1 3 2 CELL_TYPES 1 9 POINT_DATA 4 SCALARS scalar FLOAT 1 LOOKUP_TABLE DEFAULT 0.0 1.0 2.0 4.0 When I apply Point Data to Cell Data filter, scalar values are interpolated as 1.75. It may be calculated as (0.0+1.0+2.0+4.0)/4.0. But when I apply Integrate Variables filter, scalar value is integrated as 1.833 The area value of quadratic cell is 1.0, so I thought integrated values should be equal to cell data. How the integrated value is calculated? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Question about Integrate Variables Filter
Hi all, Now I found a bug of the filter. My ParaView's version is 3.14.1. I define node names as below: c--d | | a--b Case 1: a=1.0, b=0.0, c=0.0, d=0.0 Integration Value = 0.3 Case 2: a=0.0, b=1.0, c=0.0, d=0.0 Integration Value = 0.1 Case 3: a=0.0, b=0.0, c=1.0, d=0.0 Integration Value = 0.1 Case 4: a=0.0, b=0.0, c=0.0, d=1.0 Integration Value = 0.3 So Integration Values are calculated as (2*a+b+c+2*d)/6. I think it's not a good result. Magician On 2012/06/08, at 12:54, Magician wrote: Hi all, I'm now comparing integration results of each postprocessors. I made a simple Quadratic VTK model as below: # vtk DataFile Version 2.0 QuadCell ASCII DATASET UNSTRUCTURED_GRID POINTS 4 FLOAT 0 0 0 1 0 0 0 1 0 1 1 0 CELLS 1 5 4 0 1 3 2 CELL_TYPES 1 9 POINT_DATA 4 SCALARS scalar FLOAT 1 LOOKUP_TABLE DEFAULT 0.0 1.0 2.0 4.0 When I apply Point Data to Cell Data filter, scalar values are interpolated as 1.75. It may be calculated as (0.0+1.0+2.0+4.0)/4.0. But when I apply Integrate Variables filter, scalar value is integrated as 1.833 The area value of quadratic cell is 1.0, so I thought integrated values should be equal to cell data. How the integrated value is calculated? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Question about Integrate Variables Filter
Hi all, I'm now comparing integration results of each postprocessors. I made a simple Quadratic VTK model as below: # vtk DataFile Version 2.0 QuadCell ASCII DATASET UNSTRUCTURED_GRID POINTS 4 FLOAT 0 0 0 1 0 0 0 1 0 1 1 0 CELLS 1 5 4 0 1 3 2 CELL_TYPES 1 9 POINT_DATA 4 SCALARS scalar FLOAT 1 LOOKUP_TABLE DEFAULT 0.0 1.0 2.0 4.0 When I apply Point Data to Cell Data filter, scalar values are interpolated as 1.75. It may be calculated as (0.0+1.0+2.0+4.0)/4.0. But when I apply Integrate Variables filter, scalar value is integrated as 1.833 The area value of quadratic cell is 1.0, so I thought integrated values should be equal to cell data. How the integrated value is calculated? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Rename filtered sources with Python
Hi Seb, Thanks for your advices. I tried RenameSource. It's easy to use, and I got good results. Magician On 2012/06/05, at 23:58, Sebastien Jourdain wrote: Here are the two way of doing that: First set the name at the creation by doing that: c = Cone(guiName = MySuperName) Or renaming it afterward RenameSource( proxy = p, newName = MySuperNewName) Seb On Tue, Jun 5, 2012 at 10:18 AM, Magician f_magic...@mac.com wrote: Hi all, I've been trying to automate ParaView with Python for weeks. Now I want to rename filter results such as ExtractBlock1 to any other names. I searched documents on the web and properties of ActiveSource and others, but I couldn't find how to rename them. I found a tip of renaming Sphere sources, but I couldn't apply it to my cases: http://www.paraview.org/pipermail/paraview/2009-June/012350.html Does anyone have good ideas? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] vtkXOpenGLRenderWindow Error
Hi all, I've been trying to solve the problem. I found an important setting about it. Our ParaView is running on shared Linux cluster, so we operate ParaView with VNC Client. My VNC setting is very simple as below: vncviewer -geometry [width]x[height] But other users' settings are little different: vncviewer -geometry [width]x[height] -depth 32 The -depth option is critical. Maybe this option influences OpenGL setting of VNC, and ParaView gets into GLX errors. I suggested removing -depth option and restarting VNC server, then our ParaView executed perfectly. Magician On 2012/06/01, at 12:58, Magician wrote: Hi all, I was trying to build ParaView on CentOS. It looked OK, but today other users on our machine tried to run ParaView, they got errors as below: ERROR: In /home/magician/ParaView-3.14.1-Source/VTK/Rendering/vtkXOpenGLRenderWindow.cxx, line 404 vtkXOpenGLRenderWindow (0x2d2e410): Could not find a decent visual ERROR: In /home/magician/ParaView-3.14.1-Source/VTK/Rendering/vtkXOpenGLRenderWindow.cxx, line 404 vtkXOpenGLRenderWindow (0x2d2e410): Could not find a decent visual X Error: BadValue (integer parameter out of range for operation) 2 Extension:146 (Uknown extension) Minor opcode: 3 (Unknown request) Resource id: 0x22 ERROR: In /home/magician/ParaView-3.14.1-Source/VTK/Rendering/vtkXOpenGLRenderWindow.cxx, line 629 vtkXOpenGLRenderWindow (0x2d2e410): Cannot create GLX context. Aborting. Maybe our ParaView tried to access my home directory from other users, these errors are dumped. I checked my CMakeCache again, and I found these parameters: VTK_GLEXT_FILE: /home/magician/ParaView-3.14.1-Source/VTK/Utilities/ParseOGLExt/headers/glext.h VTK_GLXEXT_FILE: /home/magician/ParaView-3.14.1-Source/VTK/Utilities/ParseOGLExt/headers/glxext.h VTK_MATERIAL_DIRS: /home/magician/ParaView-bin/VTK/Utilities/MaterialLibrary/Repository VTK_WGLEXT_FILE: /home/magician/ParaView-3.14.1-Source/VTK/Utilities/ParseOGLExt/headers/wglext.h VTK_WRAP_HINTS: /home/magician/ParaView-3.14.1-Source/VTK/Wrapping/hints Maybe our ParaView's build setting depends on original source data on my home directory, but it's not good for using many users. Which is the best way to change our GL settings? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Save Data with Python
Hi all, I'm trying to save transient sources with Python scripts. I'd like to save with these formats: - VTK MultiBlock Formats (*.vtm) - ASCII-XML Formats - Save all timesteps I tried Trace tool, but it couldn't catch Save Data processes. How can I save data with Python scripts? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Average values over time
Hi all, I want to visualize time-averaged flow patterns of 3D CFD models, but ParaView may not have integration filter over time. Is there any ideas to do it on latest version of ParaView? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] saving color map
Hi Hila, How about using Save State into .pvsm? If you read .pvsm file from Load State, all states will be restored. Magician On 2012/05/19, at 8:14, paraview-requ...@paraview.org wrote: Date: Sat, 19 May 2012 01:46:04 +0300 From: Hila Hiler hilahi...@gmail.com Subject: [Paraview] saving color map To: paraview@paraview.org Message-ID: CACeyOhbL8cTn-VKv8CHDoDF=ztw1vclab3b7brs4a1cnvyt...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Hi ParaView users, forgive me if my question was asked a lot ... I'm new to Paraview. I have a vtp file which is a colored surface. when I open it in Paraview the scalars array appears. I edited the color map with the color scale and the viewing is great! now I want to save it in order to open it in another software (that knows to view colors from scalars as well) so how can I do this? the saving with colors process ... I tried by 'Save Data' option but the scalars as were edited weren't saved ... Hila ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Install ParaView on a specified directory
Hi Utkarsh, Thanks for your advice. I tried patchelf, but I couldn't get expected result. The best way now I found was to add a path to /usr/local/paraview-3.14.1/bin. I'll do it for a time. Magician On 2012/05/07, at 0:03, Utkarsh Ayachit wrote: paraview executable expects to find the libs either the standard libs locations or that specified by LD_LIBRARY_PATH or under a relative path exe_dir../lib/paraview-3.14 (from memory, so may be slightly different). When you make a symbolic link, you end up messing this search logic. One solution is to use patchelf (http://nixos.org/patchelf.html) to add the location of the libs to the rpath for every executable you're creating the symlink for. Utkarsh On Sat, May 5, 2012 at 10:05 AM, Magician f_magic...@mac.com wrote: Hi all, I built ParaView with helpful advices of the ML's users. Now I want to install ParaView on a specified directory. (ex. /usr/local/paraview-3.14.1) There appeared to be a parameter such as CMAKE_INSTALL_PREFIX, so I set it as /usr/local/paraview-3.14.1 and ran configure. The installation looked successfully finished. Additionally I appended libraries' paths to /etc/ld.so.conf. I could execute /usr/local/paraview-3.14.1/bin/paraview and everything looked fine. But if I made symbolic link as ln -s /usr/local/paraview-3.14.1/bin/paraview /usr/local/bin/paraview and tried to execute paraview, I got an error as below: Error converting executable file /usr/local/bin/../lib/paraview-3.14/paraview to real path: No such file or directory Which is the best way to change the installation directory and execute with a symbolic link on /usr/local/bin? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Install ParaView on a specified directory
Hi all, I built ParaView with helpful advices of the ML's users. Now I want to install ParaView on a specified directory. (ex. /usr/local/paraview-3.14.1) There appeared to be a parameter such as CMAKE_INSTALL_PREFIX, so I set it as /usr/local/paraview-3.14.1 and ran configure. The installation looked successfully finished. Additionally I appended libraries' paths to /etc/ld.so.conf. I could execute /usr/local/paraview-3.14.1/bin/paraview and everything looked fine. But if I made symbolic link as ln -s /usr/local/paraview-3.14.1/bin/paraview /usr/local/bin/paraview and tried to execute paraview, I got an error as below: Error converting executable file /usr/local/bin/../lib/paraview-3.14/paraview to real path: No such file or directory Which is the best way to change the installation directory and execute with a symbolic link on /usr/local/bin? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] libQtHelp.so.4 error
Hi Utkarsh, I had been trying to solve libQtHelp errors. Finally I succeeded to run my ParaView. I missed two important settings. First one was about Qt. Qt 4.6.2 was pre-installed on CentOS 6.2 and I additionally installed Qt 4.6.4 from tarball, so both versions of Qt were mixed on my CMake setting. My old ParaView on CentOS 6.2 looked no problem, but it referred pre-installed Qt 4.6.2. On the other hand, CentOS 5.3's Qt was 3.3, so it couldn't be referred from ParaView (it was already built with Qt 4.6.4). When I changed QT_QMAKE_EXECUTABLE as /usr/local/bin/qmake from /usr/bin/qmake-qt4 (pre-installed qmake) and re-configured on CentOS 6.2, all Qt settings were updated. Second one was about LD_LIBRARY_PATH as you mensioned. My ParaView (built with Qt 4.6.4) still dumped libQtHelp errors. If I did export LD_LIBRARY_PATH=/usr/local/lib, my ParaView ran. And also I modified /etc/ld.so.conf, they ran too. Thanks for your advices!! Magician On 2012/04/25, at 22:19, Utkarsh Ayachit wrote: Looks like /usr/local/lib is not a default path where your CentOS looks for loading libs. The ParaView from the binary dir works since it uses rpaths for all libs and it has the rpath for the Qt libs too. That gets removed on install and hence the issue. Try googling around, there must be a way to extend your default lib search path. Utkarsh On Tue, Apr 24, 2012 at 8:51 AM, Magician f_magic...@mac.com wrote: Hi Utkarsh, Thanks for your Advices. I tried to do LD_DEBUG, and 2 different results are found. If I did it for ./ParaView_bin/paraview (built by make): 6166: find library=libQtHelp.so.4 [0]; searching 6166: search path=/home/magician/Desktop/ParaView-bin/bin:/usr/local/lib/tls/x86_64:/usr/local/lib/tls:/usr/local/lib/x86_64:/usr/local/lib:tls/x86_64:tls:x86_64: (RPATH from file ./bin/paraview) 6166: trying file=/home/magician/Desktop/ParaView-bin/bin/libQtHelp.so.4 6166: trying file=/usr/local/lib/tls/x86_64/libQtHelp.so.4 6166: trying file=/usr/local/lib/tls/libQtHelp.so.4 6166: trying file=/usr/local/lib/x86_64/libQtHelp.so.4 6166: trying file=/usr/local/lib/libQtHelp.so.4 ...And ParaView was started successfully. Then I also did it for /usr/local/bin/paraview (installed by make install): 6321: find library=libQtHelp.so.4 [0]; searching 6321: search path=/usr/local/lib/paraview-3.14:/usr/local/tls/x86_64:/usr/local/tls:/usr/local/x86_64:/usr/local (LD_LIBRARY_PATH) 6321: trying file=/usr/local/lib/paraview-3.14/libQtHelp.so.4 6321: trying file=/usr/local/tls/x86_64/libQtHelp.so.4 6321: trying file=/usr/local/tls/libQtHelp.so.4 6321: trying file=/usr/local/x86_64/libQtHelp.so.4 6321: trying file=/usr/local/libQtHelp.so.4 6321: search cache=/etc/ld.so.cache 6321: search path=/lib64/tls/x86_64:/lib64/tls:/lib64/x86_64:/lib64:/usr/lib64/tls/x86_64:/usr/lib64/tls:/usr/lib64/x86_64:/usr/lib64 (system search path) 6321: trying file=/lib64/tls/x86_64/libQtHelp.so.4 6321: trying file=/lib64/tls/libQtHelp.so.4 6321: trying file=/lib64/x86_64/libQtHelp.so.4 6321: trying file=/lib64/libQtHelp.so.4 6321: /usr/local/lib/paraview-3.14/paraview: error while loading shared libraries: libQtHelp.so.4: cannot open shared object file: Error 40 ...And ParaView couldn't be started. I hope ParaView could run on /usr/local/bin by all users of my machine. On 2012/04/24, at 2:02, Utkarsh Ayachit wrote: Try running ParaView as: LD_DEBUG=libs ./bin/paraview ~/Kitware/ParaView3/ParaViewBin Pipe the output to a file and look at the output. It should tell you where it's looking for the QtHelp. Utkarsh On Sun, Apr 22, 2012 at 10:39 AM, Magician f_magic...@mac.com wrote: Hi all, I succeeded to build ParaView on CentOS 6.2, and I had another Linux Workstation of CentOS 5.3. So I built ParaView 3.14.1 on CentOS 5.3, but I got some troubles to execute ParaView. I installed those packages by yum command: libXext-devel.x86_64 dbus-devel.x86_64 libXext-devel.x86_64 glib2-devel.x86_64 gstreamer-devel.x86_64 gstreamer-plugins-base-devel.x86_64 gtk2-devel.x86_64 libXt-devel.x86_64 And I built Python 2.7.2 (as Shared Library), cmake 2.8.7 and Qt 4.6.4 from sources. Then I built ParaView, it seemed to be installed successfully. But when I execute ParaView, I got an error as below: /usr/local/lib/paraview-3.14/paraview: error while loading shared libraries: libQtHelp.so.4: cannot open shared object file: No such file or directory So I made symbolic link as below: ln -s /usr/local/lib/libQtHelp.so.4 /lib64/libQtHelp.so.4 But I got another error: /usr/local/lib/paraview-3.14/paraview: error while loading shared libraries: libQtHelp.so.4: cannot open shared object file: Error 40 How could I solve these problems? Magician
Re: [Paraview] libQtHelp.so.4 error
Hi Utkarsh, Thanks for your Advices. I tried to do LD_DEBUG, and 2 different results are found. If I did it for ./ParaView_bin/paraview (built by make): 6166: find library=libQtHelp.so.4 [0]; searching 6166: search path=/home/magician/Desktop/ParaView-bin/bin:/usr/local/lib/tls/x86_64:/usr/local/lib/tls:/usr/local/lib/x86_64:/usr/local/lib:tls/x86_64:tls:x86_64: (RPATH from file ./bin/paraview) 6166: trying file=/home/magician/Desktop/ParaView-bin/bin/libQtHelp.so.4 6166: trying file=/usr/local/lib/tls/x86_64/libQtHelp.so.4 6166: trying file=/usr/local/lib/tls/libQtHelp.so.4 6166: trying file=/usr/local/lib/x86_64/libQtHelp.so.4 6166: trying file=/usr/local/lib/libQtHelp.so.4 ...And ParaView was started successfully. Then I also did it for /usr/local/bin/paraview (installed by make install): 6321: find library=libQtHelp.so.4 [0]; searching 6321: search path=/usr/local/lib/paraview-3.14:/usr/local/tls/x86_64:/usr/local/tls:/usr/local/x86_64:/usr/local (LD_LIBRARY_PATH) 6321: trying file=/usr/local/lib/paraview-3.14/libQtHelp.so.4 6321: trying file=/usr/local/tls/x86_64/libQtHelp.so.4 6321: trying file=/usr/local/tls/libQtHelp.so.4 6321: trying file=/usr/local/x86_64/libQtHelp.so.4 6321: trying file=/usr/local/libQtHelp.so.4 6321: search cache=/etc/ld.so.cache 6321: search path=/lib64/tls/x86_64:/lib64/tls:/lib64/x86_64:/lib64:/usr/lib64/tls/x86_64:/usr/lib64/tls:/usr/lib64/x86_64:/usr/lib64 (system search path) 6321: trying file=/lib64/tls/x86_64/libQtHelp.so.4 6321: trying file=/lib64/tls/libQtHelp.so.4 6321: trying file=/lib64/x86_64/libQtHelp.so.4 6321: trying file=/lib64/libQtHelp.so.4 6321: /usr/local/lib/paraview-3.14/paraview: error while loading shared libraries: libQtHelp.so.4: cannot open shared object file: Error 40 ...And ParaView couldn't be started. I hope ParaView could run on /usr/local/bin by all users of my machine. On 2012/04/24, at 2:02, Utkarsh Ayachit wrote: Try running ParaView as: LD_DEBUG=libs ./bin/paraview ~/Kitware/ParaView3/ParaViewBin Pipe the output to a file and look at the output. It should tell you where it's looking for the QtHelp. Utkarsh On Sun, Apr 22, 2012 at 10:39 AM, Magician f_magic...@mac.com wrote: Hi all, I succeeded to build ParaView on CentOS 6.2, and I had another Linux Workstation of CentOS 5.3. So I built ParaView 3.14.1 on CentOS 5.3, but I got some troubles to execute ParaView. I installed those packages by yum command: libXext-devel.x86_64 dbus-devel.x86_64 libXext-devel.x86_64 glib2-devel.x86_64 gstreamer-devel.x86_64 gstreamer-plugins-base-devel.x86_64 gtk2-devel.x86_64 libXt-devel.x86_64 And I built Python 2.7.2 (as Shared Library), cmake 2.8.7 and Qt 4.6.4 from sources. Then I built ParaView, it seemed to be installed successfully. But when I execute ParaView, I got an error as below: /usr/local/lib/paraview-3.14/paraview: error while loading shared libraries: libQtHelp.so.4: cannot open shared object file: No such file or directory So I made symbolic link as below: ln -s /usr/local/lib/libQtHelp.so.4 /lib64/libQtHelp.so.4 But I got another error: /usr/local/lib/paraview-3.14/paraview: error while loading shared libraries: libQtHelp.so.4: cannot open shared object file: Error 40 How could I solve these problems? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] libQtHelp.so.4 error
Hi all, I succeeded to build ParaView on CentOS 6.2, and I had another Linux Workstation of CentOS 5.3. So I built ParaView 3.14.1 on CentOS 5.3, but I got some troubles to execute ParaView. I installed those packages by yum command: libXext-devel.x86_64 dbus-devel.x86_64 libXext-devel.x86_64 glib2-devel.x86_64 gstreamer-devel.x86_64 gstreamer-plugins-base-devel.x86_64 gtk2-devel.x86_64 libXt-devel.x86_64 And I built Python 2.7.2 (as Shared Library), cmake 2.8.7 and Qt 4.6.4 from sources. Then I built ParaView, it seemed to be installed successfully. But when I execute ParaView, I got an error as below: /usr/local/lib/paraview-3.14/paraview: error while loading shared libraries: libQtHelp.so.4: cannot open shared object file: No such file or directory So I made symbolic link as below: ln -s /usr/local/lib/libQtHelp.so.4 /lib64/libQtHelp.so.4 But I got another error: /usr/local/lib/paraview-3.14/paraview: error while loading shared libraries: libQtHelp.so.4: cannot open shared object file: Error 40 How could I solve these problems? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Qt QTWEBKIT library not found
I had been trying to rebuild ParaView, and finally successed. I installed Qt at /usr/local, and cmake couldn't find QtWebKit libraries. I couldn't look up them by find command, but they were in /usr/local/include/QtWebKit, and QtWebKit Library was in /usr/local/lib/libQtWebKit.so.4.#.#. I set these libraries on cmake's CUI, and built ParaView successfully. (Qt 4.7.4 dumped errors on making ParaView, so I used Qt 4.6.4.) But when I started ParaView, I got an error about shared QtWebKit library. I made a symbolic link of libQtWebKit.so.4 in /usr/local/lib/paraview, then ParaView was started successfully. Magician On 2012/04/08, at 17:03, Magician wrote: Utkarsh, I rebuilt Qt with -webkit option, but cmake still dumped same errors. My Qt source is: ftp://ftp.trolltech.no/qt/source/qt-everywhere-opensource-src-4.7.4.tar.gz Comparing my Mac (able to build ParaView), I could find: QT_QTWEBKIT_INCLUDE_DIR /opt/local/include/QtWebKit QT_QTWEBKIT_LIBRARY_RELEASE /opt/local/lib/libQtWebKit.dylib So I tried to find my QtWebKit and libQtWebKit on my CentOS. I found QtWebKit in: /usr/local/include/Qt /usr/local/include/QtWebKit But no libQtWebkit was found by find command. I rebuild Qt again :( Magician On 2012/04/07, at 0:16, Utkarsh Ayachit wrote: Since you're building Qt from source, try to reconfigure and build Qt with WebKit enabled. Your configure command for QT should look something like follows: ./configure -webkit -xmlpatterns any other params Then, before Qt starts building, it spits out a block of text saying what features were enabled/disabled. Pay close attention to that. Post that piece of test if needed. That should tell you if webkit was enabled or disabled. ParaView doesn't currently support not building with WebKit support (except for using John's patch). Utkarsh ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] PV3.14.1 STL reader *could* be broken.
Hi Frank, I have same errors about STL Reader on ParaView 3.14.0. When I read STL data on Linux (CentOS 5.3), ParaView may be terminated irregularly. If on Windows (Windows XP SP3), ParaView dumps errors, but still works. And these problems may be depends on ASCII STL data only. Binary STLs are imported safely. If you want to import STLs right now, how about using Binary format? Some ASCII to Binary STL converters are distributed on the web. And also I hope above bugs are modified. Magician On 2012/04/14, at 1:14, paraview-requ...@paraview.org wrote: Message: 1 Date: Fri, 13 Apr 2012 18:14:18 +0200 From: Albina, Frank frank.alb...@sauber-motorsport.com Subject: [Paraview] PV3.14.1 STL reader *could* be broken. To: paraview@paraview.org paraview@paraview.org Message-ID: 589ceb614006334d93c1a48c1b1964c97f7b982...@srvmes03.spe-ch-md9.net Content-Type: text/plain; charset=us-ascii Dear all! I have just found out that the STL reader is broken under my Linux 64 bits distro for both the PV3.14.1 binaries either compiled from source or downloaded from paraview.org. The linux distribution I am using is SuSE SLED10 SP2. The error message I am getting is: ERROR: In /home/utkarsh/Kitware/superbuild/paraview/src/paraview/VTK/IO/vtkSTLReader.cxx, line 446 vtkSTLReader (0x1bba420): STLReader error reading file: susp-rr-tlink-E-0001-lhs.stl Premature EOF while reading end solid. *** glibc detected *** /home/fal/Downloads/ParaView-3.14.1/lib/paraview-3.14/paraview: double free or corruption (!prev): 0x0163c2f0 *** === Backtrace: = /lib64/libc.so.6[0x2b3d0dbb06de] /lib64/libc.so.6(__libc_free+0x6c)[0x2b3d0dbb1d5c] /lib64/libc.so.6(fclose+0x162)[0x2b3d0dba1cd2] /home/fal/Downloads/ParaView-3.14.1/lib/paraview-3.14/libvtkIO.so.pv3.14(_ZN12vtkSTLReader11RequestDataEP14vtkInformationPP20vtkInformationVectorS3_+0x24f)[0x2b3d098e7c2f] /home/fal/Downloads/ParaView-3.14.1/lib/paraview-3.14/libvtkPVVTKExtensions.so(_ZN19vtkFileSeriesReader11RequestDataEP14vtkInformationPP20vtkInformationVectorS3_+0x65)[0x2b3d006aefa5] /home/fal/Downloads/ParaView-3.14.1/lib/paraview-3.14/libvtkPVVTKExtensions.so(_ZN19vtkFileSeriesReader14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x169)[0x2b3d006adf39] /home/fal/Downloads/ParaView-3.14.1/lib/paraview-3.14/libvtkFiltering.so.pv3.14(_ZN12vtkExecutive13CallAlgorithmEP14vtkInformationiPP20vtkInformationVectorS3_+0x54)[0x2b3d0c26ee44] /home/fal/Downloads/ParaView-3.14.1/lib/paraview-3.14/libvtkFiltering.so.pv3.14(_ZN23vtkDemandDrivenPipeline11ExecuteDataEP14vtkInformationPP20vtkInformationVectorS3_+0x4c)[0x2b3d0c26313c] /home/fal/Downloads/ParaView-3.14.1/lib/paraview-3.14/libvtkFiltering.so.pv3.14(_ZN24vtkCompositeDataPipeline11ExecuteDataEP14vtkInformationPP20vtkInformationVectorS3_+0xa1)[0x2b3d0c245e41] /home/fal/Downloads/ParaView-3.14.1/lib/paraview-3.14/libvtkFiltering.so.pv3.14(_ZN23vtkDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x293)[0x2b3d0c265eb3] /home/fal/Downloads/ParaView-3.14.1/lib/paraview-3.14/libvtkFiltering.so.pv3.14(_ZN32vtkStreamingDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x209)[0x2b3d0c3d29e9] /home/fal/Downloads/ParaView-3.14.1/lib/paraview-3.14/libvtkFiltering.so.pv3.14(_ZN24vtkCompositeDataPipeline15ForwardUpstreamEP14vtkInformation+0x204)[0x2b3d0c244924] /home/fal/Downloads/ParaView-3.14.1/lib/paraview-3.14/libvtkFiltering.so.pv3.14(_ZN23vtkDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x23c)[0x2b3d0c265e5c] /home/fal/Downloads/ParaView-3.14.1/lib/paraview-3.14/libvtkFiltering.so.pv3.14(_ZN32vtkStreamingDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x209)[0x2b3d0c3d29e9] /home/fal/Downloads/ParaView-3.14.1/lib/paraview-3.14/libvtkFiltering.so.pv3.14(_ZN23vtkDemandDrivenPipeline10UpdateDataEi+0x9e)[0x2b3d0c2653fe] /home/fal/Downloads/ParaView-3.14.1/lib/paraview-3.14/libvtkFiltering.so.pv3.14(_ZN32vtkStreamingDemandDrivenPipeline6UpdateEi+0x7b)[0x2b3d0c3cdc4b] /home/fal/Downloads/ParaView-3.14.1/lib/paraview-3.14/libvtkPVServerImplementationCS.so(_Z23vtkSISourceProxyCommandP26vtkClientServerInterpreterP13vtkObjectBasePKcRK21vtkClientServerStreamRS5_+0x522)[0x2b3cfd00c8b2] /home/fal/Downloads/ParaView-3.14.1/lib/paraview-3.14/libvtkPVServerImplementationCS.so(_Z33vtkSIFileSeriesReaderProxyCommandP26vtkClientServerInterpreterP13vtkObjectBasePKcRK21vtkClientServerStreamRS5_+0x19b)[0x2b3cfd006ecb] /home/fal/Downloads/ParaView-3.14.1/lib/paraview-3.14/libvtkClientServer.so(_ZN26vtkClientServerInterpreter20ProcessCommandInvokeERK21vtkClientServerStreami+0x16c)[0x2b3d0689268c] /home/fal/Downloads/ParaView-3.14.1/lib/paraview-3.14/libvtkClientServer.so(_ZN26vtkClientServerInterpreter17ProcessOneMessageERK21vtkClientServerStreami+0x392)[0x2b3d06890eb2] /home/fal/Downloads/ParaView-3.14.1/lib/paraview-3.14
Re: [Paraview] Qt QTWEBKIT library not found
Utkarsh, I rebuilt Qt with -webkit option, but cmake still dumped same errors. My Qt source is: ftp://ftp.trolltech.no/qt/source/qt-everywhere-opensource-src-4.7.4.tar.gz Comparing my Mac (able to build ParaView), I could find: QT_QTWEBKIT_INCLUDE_DIR /opt/local/include/QtWebKit QT_QTWEBKIT_LIBRARY_RELEASE /opt/local/lib/libQtWebKit.dylib So I tried to find my QtWebKit and libQtWebKit on my CentOS. I found QtWebKit in: /usr/local/include/Qt /usr/local/include/QtWebKit But no libQtWebkit was found by find command. I rebuild Qt again :( Magician On 2012/04/07, at 0:16, Utkarsh Ayachit wrote: Since you're building Qt from source, try to reconfigure and build Qt with WebKit enabled. Your configure command for QT should look something like follows: ./configure -webkit -xmlpatterns any other params Then, before Qt starts building, it spits out a block of text saying what features were enabled/disabled. Pay close attention to that. Post that piece of test if needed. That should tell you if webkit was enabled or disabled. ParaView doesn't currently support not building with WebKit support (except for using John's patch). Utkarsh ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Qt QTWEBKIT library not found
JB Lennart Thanks for your advices. I'm still trying to build ParaView on CentOS 6.2. JB I recieved the patch file, but I can't understand the usage How to use the patch file? Lennart I couldn't find VTK_QT_USE_WEBKIT flag. Maybe we couldn't turn off QtWebKit on cmake. Then I'm also trying to build QtWebKit 2.2.0, but errors occur as below: cc1plus: warnings being treated as errors ../../../Source/JavaScriptCore/yarr/YarrPattern.cpp: In member function 'void JSC::Yarr::CharacterClassConstructor::putRange(UChar, UChar)': ../../../Source/JavaScriptCore/yarr/YarrPattern.cpp:127: error: comparison between signed and unsigned integer expressions ../../../Source/JavaScriptCore/yarr/YarrPattern.cpp:133: error: comparison between signed and unsigned integer expressions make[1]: *** [obj/release/YarrPattern.o] Error 1 When I built ParaView 3.12.0 on my Mac (10.7), it was extremely easy. I didn't prepare QtWebKit module, but the cmake process was finished successfully. I wonder how everyone build ParaView on Linux distributions? Magician On 2012/04/05, at 21:35, Biddiscombe, John A. wrote: if your Qt was not built with the web stuff lib then you need to remove all uses of it from paraview. I use the attached patch for pv3.14 You may need to set the Qt web lib to something valid to shut cmake up. JB -Original Message- From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org] On Behalf Of Magician Sent: 05 April 2012 13:26 To: paraview@paraview.org Subject: [Paraview] Qt QTWEBKIT library not found Hi. I'm trying to build ParaView 3.14.0 on clean-installed CentOS 6.2. I followed those steps on ParaView Wiki: http://paraview.org/Wiki/ParaView:Build_And_Install I already installed Python 2.7.2, Qt-Everywhere-Opensource 4.6.2, cmake 2.8.2 from sources on /usr/local. Then I did configure on ccmake, it only said: Qt QTWEBKIT library not found. Qt QTWEBKIT library not found. What could I do for this problem? It may be due to Qt's setting, but I'm not familiar with Qt. :( Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Qt QTWEBKIT library not found
Hi. I'm trying to build ParaView 3.14.0 on clean-installed CentOS 6.2. I followed those steps on ParaView Wiki: http://paraview.org/Wiki/ParaView:Build_And_Install I already installed Python 2.7.2, Qt-Everywhere-Opensource 4.6.2, cmake 2.8.2 from sources on /usr/local. Then I did configure on ccmake, it only said: Qt QTWEBKIT library not found. Qt QTWEBKIT library not found. What could I do for this problem? It may be due to Qt's setting, but I'm not familiar with Qt. :( Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Pick exact points on nodes
Hi, everyone. I want to probe nodes' values and major distances between 2 nodes. ParaView's functions such as Point Source, Probe Location, Ruler can pick points on sources, but they seem not to be able to pick sources' nodes exactly. How can I do them? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Surface Development on ParaView
Thank you, Ken. I tried Calculation filter and got a good result! I used acos() function, so I couldn't extract whole cylindrical surface. But fortunately, my source data is quarter or half one. So it wasn't a problem for me. At first, I thought the Calculator just as a calculating tool with Scalar or Vector values. But on your advice, I believed that is one of the typical post-processing tool of ParaView. Magician On 2012/03/26, at 22:38, Moreland, Kenneth wrote: In the past I have used the calculator filter to convert polar coordinates to cartesian or vice versa. -Ken On 3/26/12 7:08 AM, Magician f_magic...@mac.com wrote: Hi. I'm considering to generate developed surface view on ParaView. My VTK data contains cylindrical surfaces (defined on theta-z spaces), and I want to convert them to flat planes (defined on x-y planes). One idea is re-writing VTK file, but it's pretty troublesome. Are there any ideas to do it easily? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Surface Development on ParaView
Hi. I'm considering to generate developed surface view on ParaView. My VTK data contains cylindrical surfaces (defined on theta-z spaces), and I want to convert them to flat planes (defined on x-y planes). One idea is re-writing VTK file, but it's pretty troublesome. Are there any ideas to do it easily? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] View control with Python
Hi. Now I'm trying to control ParaView's camera angle with Python. I could get Active Camera object by GetActiveCamera() and try SetPosition() etc. But I Couldn't find function as Center of Rotation on Adjust Camera panel. How can I control it with Python? And also I want to get a ParaView's Python reference. We can find scripting tutorials on Users' Guide or Wiki, but it's very difficult to find unpopular functions. Is there a document on which all Python functions are introduced? Magician ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview