From andrew at thevisualroom.com Thu Feb 1 07:56:02 2018 From: andrew at thevisualroom.com (Andrew Roberts) Date: Thu, 1 Feb 2018 12:56:02 +0000 Subject: [Paraview] Integrate Variables Message-ID: Hello, I have a function for mass flowrate that I want to plot over a time period DT. The velocity is time averaged per timestep dt, not the whole time period, DT. In otherwords the number of timesteps is DT/dt. mdot(T) = int_A (rho . u(T) . n . alpha(T)) dA mdot(T) is the massflow rate over time (kg/s) int_A () dA is the integral over the area of a slice through the domain (m^2) rho is the density of the particle phase and this is constant (kg/m^3) u(T) is the time averaged velocity of the particle phase for a timestep of dt and varies with time, T (m/s) n is the unit vector normal to the area (-) alpha is the time averaged volume fraction of the particle phase and also varies with time T (-) I think I am pretty sure that I can compute rho . u . n . alpha My process in paraview: Slice > Origin = 0, 0, 0, Normal = 0, 1, 0, Slice Type = Plane This is the part in the brackets of the massflow rate equation. Mean just means time averaged: Calculator > abs(U1Mean_Y)*2900*alpha1Mean Now I must integrate this over the area of the slice. *** Is it correct to use the Filter > IntegrateVariables? *** I then use PlotSelectionOverTime (which I'm pretty sure is right). Kind regards, Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Thu Feb 1 10:04:38 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Thu, 1 Feb 2018 10:04:38 -0500 Subject: [Paraview] Can I generate a single file that contains data and filter settings? In-Reply-To: References: Message-ID: On Wed, Jan 31, 2018 at 4:51 PM, Wyatt Spear wrote: > The data that I'm generating has a set of scalar values for every point in > the 2D matrix, so a single data row looks like > xcoord, ycoord, zcord(probably superfluous), scalar1, scalar2,...scalarN > Since the data in your example is being rendered as an image directly I'm > not sure how I could incorporate different scalar data which can be selected > from the UI, as I can when running the table-to-points filter on a loaded > CSV file. Ah, I assumed your data was on a regular grid. I've modified the example to set up a vtkPolyData instead to hold an unstructured set of points. I have also shown how to add multiple arrays to the data set. Just treat each scalar column you have as an array. #### import the simple module from the paraview from paraview.simple import * #### disable automatic camera reset on 'Show' paraview.simple._DisableFirstRenderCameraReset() # Create a 2D image data object from paraview import vtk vtk_poly_data = vtk.vtkPolyData() points = vtk.vtkPoints() points.SetNumberOfPoints(200) vtk_poly_data.SetPoints(points) # Wrap data in numpy interface from vtk.numpy_interface import dataset_adapter as dsa poly_data = dsa.WrapDataObject(vtk_poly_data) # Create numpy array. Set your data here import numpy as np x_coords = np.zeros(200) # zeros is just a stand-in for your actual data y_coords = np.ones(200) z_coords = np.zeros(200) poly_data.Points[:,0] = x_coords poly_data.Points[:,1] = y_coords poly_data.Points[:,2] = z_coords # Set the data in the image object scalar1 = np.random.rand(200) poly_data.PointData.append(scalar1, 'scalar1') scalar2 = np.random.rand(200) poly_data.PointData.append(scalar2, 'scalar2') # Now set up a ParaView proxy for the image data tp = PVTrivialProducer() tp.GetClientSideObject().SetOutput(vtk_poly_data) Show(tp) # Set up filters, display options, etc. below > Is there a way to have a python macro cause ParaView to request a file > selection through the UI? Then I could have this single macro loaded and it > could process any CSV file I select. No, there is no ParaView-provided way to do that. Maybe there is some other way you can do that with a different Python module. Note, though, that ParaView does not provide a Python module manager a la pip, so consider doing that experimental. Cheers, Cory > Thanks, > Wyatt > > On Wed, Jan 31, 2018 at 8:23 AM, Cory Quammen > wrote: >> >> Wyatt, >> >> Here's a simple script that sets up a 200 x 200 image data object like >> you might use for displaying a heat map. >> >> #### import the simple module from the paraview >> from paraview.simple import * >> #### disable automatic camera reset on 'Show' >> paraview.simple._DisableFirstRenderCameraReset() >> >> # Create a 2D image data object >> from paraview import vtk >> vtk_image = vtk.vtkImageData() >> vtk_image.SetDimensions(200, 200, 1) # Your size may vary >> >> # Wrap data in numpy interface >> from vtk.numpy_interface import dataset_adapter as dsa >> image = dsa.WrapDataObject(vtk_image) >> >> # Create numpy array. Set your data here >> import numpy as np >> arr = np.zeros(200*200) >> >> # Set the data in the image object >> image.PointData.append(arr, 'myarray') >> >> # Now set up a ParaView proxy for the image data >> tp = PVTrivialProducer() >> tp.GetClientSideObject().SetOutput(vtk_image) >> Show(tp) >> >> >> # Set up filters, display options, etc. below >> >> >> You can modify it as needed to set up your data array as a numpy array. >> >> Hope that helps, >> Cory >> >> On Mon, Jan 29, 2018 at 3:27 PM, Wyatt Spear >> wrote: >> > I think the python scripting with embedded data is worth a try. I'm not >> > familiar with the built-in vs other server modes so I'm not sure what >> > kind >> > of restrictions that entails. Probably my ultimate goal is to build a >> > reader plugin that will parse the data out of my application's native >> > format >> > but generating a script seems like a decent interim solution. >> > >> > Thanks, >> > Wyatt >> > >> > On Mon, Jan 29, 2018 at 5:57 AM, Cory Quammen >> > wrote: >> >> >> >> Wyatt, >> >> >> >> ParaView provides extensive Python scriptability. One solution is to >> >> write out a Python script from your program. Within the Pythons >> >> script, you set up the data, set up filters and modify visualization >> >> settings just as you wish. Once it is loaded, you can continue to >> >> explore your data by creating new filters, changing visualization >> >> parameters, and so on. >> >> >> >> Creating example Python scripts is easy using the Trace functionality >> >> (Tools menu -> Start Trace) - you just interact with the UI and the >> >> equivalent Python operations will be written to the trace file. Use >> >> such a trace as a basis for what is written from your program. >> >> >> >> To save the data to the Python script and then load it is a different >> >> use case from what we typical support, but I think it is doable. It >> >> would just look a little ugly (and it would only work in built-in >> >> server mode). Basically, you could write out your data in a NumPy >> >> array within the script, as if you were entering the array information >> >> by hand, then provide that data to what's called a TrivialProducer >> >> source. This source would stand in place of a reader. There is a >> >> little bit of code required to do that that isn't super obvious - >> >> before sketching it out, would this approach work for your needs? >> >> >> >> Thanks, >> >> Cory >> >> >> >> >> >> >> >> On Sun, Jan 28, 2018 at 10:10 PM, Wyatt Spear >> >> wrote: >> >> > Thanks, I'll take a look at this. My use case is pretty severely >> >> > underutilizing ParaView's capabilities though. I'm rendering very >> >> > large >> >> > multi-variable heat maps. So color mapped 2d points are all I need >> >> > rendered, >> >> > (until I can figure out how to map glyph height to another variable). >> >> > >> >> > =Wyatt >> >> > >> >> > >> >> > On Sat, Jan 27, 2018 at 8:52 AM Samuel Key >> >> > wrote: >> >> >> >> >> >> Wyatt-- >> >> >> >> >> >> While ParaView can read CSV files and subsequently generate images, >> >> >> the >> >> >> CSV format for simulation results limits the functionality available >> >> >> to >> >> >> you >> >> >> in ParaView. My suggestion is that you write your simulation results >> >> >> in >> >> >> a >> >> >> format that contains geometry information, as well as, Point and >> >> >> Cell >> >> >> centered values like displacement, velocity, acceleration, >> >> >> temperature, >> >> >> concentrations, volume fractions, et cetera. >> >> >> >> >> >> The attached document is a good place to start. (This document is >> >> >> very >> >> >> concise and very complete, but the information is only written down >> >> >> once. As >> >> >> a result, the format information is sometimes not located where you >> >> >> need >> >> >> it.) >> >> >> >> >> >> If your simulations are concerned with the deformation of 3-D solids >> >> >> and >> >> >> structures, I can provide you with FORTRAN95 routines that you can >> >> >> use >> >> >> to >> >> >> write VTK-formatted simulation results. >> >> >> >> >> >> Once you can generate VTK-formatted datum sets, The File > Save >> >> >> State >> >> >> command will generate *.pvsm files that will let you "recreate" a >> >> >> previously >> >> >> constructed Browser Pipeline. (The PV *.pvsm reader gives you the >> >> >> opportunity to select a different datum set.) >> >> >> >> >> >> There is a small two-cell mesh file attached that might be helpful >> >> >> to >> >> >> you >> >> >> when constructing a VTK-formatted file writer in your application. >> >> >> >> >> >> --Sam >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> On 1/27/2018 8:46 AM, Wyatt Spear wrote: >> >> >> >> >> >> Greetings, >> >> >> >> >> >> Currently I am using my own application to generate a simple CSV >> >> >> file >> >> >> which can be loaded up in ParaView. I then create the visualization >> >> >> I >> >> >> want >> >> >> with a few manual filter operations. >> >> >> >> >> >> What I would like is to generate a file, preferably still with a >> >> >> field >> >> >> for >> >> >> CSV-like raw data, that tells ParaView to load the data and then >> >> >> apply >> >> >> the >> >> >> filters I want, so the view I want is immediately available upon >> >> >> loading the >> >> >> file and the raw data is available if I want to try other filters. >> >> >> >> >> >> I've taken a look at vpt and pvd files saved from my intended view >> >> >> but >> >> >> I'm >> >> >> not seeing much correspondence between the CSV data I generate, the >> >> >> filters >> >> >> I apply and the data fields in there. I'm also pondering the >> >> >> save-state >> >> >> and >> >> >> trace/macro features of ParaView but I suspect those won't quite >> >> >> square >> >> >> with >> >> >> my aim of generating a file in an external application which >> >> >> includes >> >> >> data. >> >> >> >> >> >> Could someone point me toward a proper way to do this? If it comes >> >> >> down >> >> >> to >> >> >> plugin development I'm willing to take a look at that. >> >> >> >> >> >> Thanks, >> >> >> Wyatt Spear >> >> >> >> >> >> >> >> >> _______________________________________________ >> >> >> 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: >> >> >> https://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 >> >> >> >> >> >> Search the list archives at: http://markmail.org/search/?q=ParaView >> >> >> >> >> >> Follow this link to subscribe/unsubscribe: >> >> >> https://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 >> >> > >> >> > Search the list archives at: http://markmail.org/search/?q=ParaView >> >> > >> >> > Follow this link to subscribe/unsubscribe: >> >> > https://paraview.org/mailman/listinfo/paraview >> >> > >> >> >> >> >> >> >> >> -- >> >> Cory Quammen >> >> Staff R&D Engineer >> >> Kitware, Inc. >> >> >> > >> >> >> >> -- >> Cory Quammen >> Staff R&D Engineer >> Kitware, Inc. >> > -- Cory Quammen Staff R&D Engineer Kitware, Inc. From ufdup89 at gmail.com Thu Feb 1 11:36:43 2018 From: ufdup89 at gmail.com (ufdup) Date: Thu, 1 Feb 2018 17:36:43 +0100 Subject: [Paraview] wrong 'Coloring' in Contour with large datapoints Message-ID: Hi, I have two scalar fields, Q and cosalpha, and they are both 768 x 768 x 12288 big. This data is stored in a hdf5 file, which I load using a xmf file. Loading works fine and I can confirm that by checking the range of my data. cosalpha is the cosine of an angle and ranges from -1 to 1 for example. Q is also correct. I want to create an isosurface of Q and color it with cosalpha. However, after the filter has been applied to Q, the range of cosalpha changes (in the information panel) and the coloring does not work as expected. It seems like that cosalpha is taking the range of Q.... Any hint of what I might be doing wrong? Kind Regards Tiago -------------- next part -------------- An HTML attachment was scrubbed... URL: From super_achie at hotmail.com Thu Feb 1 13:12:21 2018 From: super_achie at hotmail.com (Ahmad .) Date: Thu, 1 Feb 2018 18:12:21 +0000 Subject: [Paraview] Scaling cylinder glyph's radius and height individually In-Reply-To: References: , Message-ID: Sorry about that Cory; will keep this in the mailing list. I have tried to implement your suggestion, and now I have generated a plugin file "libvtkPVGlyphFilterP.so". Please find the files I used to create this plugin in the attachment. What I did after compiling the plugin: 1. Try to use the new class I made, like such: `session_manager_->NewProxy("filters", "GlyphP")));` where GlyphP is what I called my custom glyph filter (see the xml file in the attachment). 2. Compile my application against "libvtkPVGlyphFilterP.so". 3. Run my application and get the following error: ERROR: In /home/ahmad/paraview/ParaViewCore/ServerImplementation/Core/vtkSIProxyDefinitionManager.cxx, line 526 vtkSIProxyDefinitionManager (0x294d320): No proxy that matches: group=filters and proxy=GlyphP were found. I feel like I am missing an important step, which has to do with the XML file, but I don't know how. In the Plugin Wiki of ParaView the instructions I find after compiling are: Then using cmake and a build system, one can build a plugin for this new filter. Once this plugin is loaded the filter will appear under the "Alphabetical" list in the Filters menu. There are no instructions on how to use the new class in a C++ pipeline... Any pointers on this? Best, Ahmad ________________________________ Van: Cory Quammen Verzonden: vrijdag 19 januari 2018 16:59 Aan: Ahmad .; ParaView Onderwerp: Re: [Paraview] Scaling cylinder glyph's radius and height individually Ahmad, Please keep replies on the mailing list. Responses are inlined. On Tue, Jan 16, 2018 at 9:25 AM, Ahmad . > wrote: Hi Cory, Thanks for your reply. I am trying to implement your suggestion of extending the vtkGlyph3D with this additional "scaling by normals". The idea seems quite straightforward. I was just wondering how to incorporate this new class in my C++ pipeline. Currently I create the glyph, and set its properties, like this: vtkSmartPointer glyph; glyph.TakeReference(vtkSMSourceProxy::SafeDownCast( session_manager_->NewProxy("filters", "Glyph"))); controller_->PreInitializeProxy(glyph); vtkSMPropertyHelper(glyph, "Input").Set(producer); vtkSMPropertyHelper(glyph, "Source").Set(GetCylinderSource(glyph)); vtkSMPropertyHelper(glyph, "ScaleMode", true).Set(0); vtkSMPropertyHelper(glyph, "ScaleFactor", true).Set(1.0); vtkSMPropertyHelper(glyph, "GlyphMode", true).Set(0); As you can see I am not directly working with vtkGlyph3D or vtkPVGlyphFilter classes, but I am using the vtkSMPropertyHelper to take care of the boilerplate code. Right. Unfortunately, implementing my suggestion would require creating a subclass of vtkPVGlyphFilter and importing that with a ParaView plugin. See the ParaView Howto on how to add a filter to ParaView. After I created a new class that has this extra scaling option, how would I go about using this in such a pipeline? Do I need to 'register' my "ModifiedGlyph" to the filter proxies to be able to do something like `NewProxy("filters", "ModifiedGlyph")`? Yes, that should do it. Your modified glyph class will be available once you've imported the ParaView plugin mentioned above. A quick question about setting the active normals. Is there an existing way to do this, or would I need to do this myself? I would like to do this the same way one would set the "Scalars": vtkSMPropertyHelper(glyph, "Normals") .SetInputArrayToProcess(vtkDataObject::POINT, "ScalingArray"); I think that should work. Best, Cory Looking forward to your reply. Best, Ahmad ________________________________ Van: Cory Quammen > Verzonden: dinsdag 9 januari 2018 15:30 Aan: Ahmad . CC: paraview at paraview.org Onderwerp: Re: [Paraview] Scaling cylinder glyph's radius and height individually Hi Ahmad, Alas, reading the code of vtkGlyph3D, you cannot orient by a vector array different from the vector array used to do the scaling using the functionality in ParaView. You would have to modify either vtkPVGlyphFilter or its parent class vtkGlyph3D, to do this, and expose the new VTK class through a ParaView plugin [1]. A simple modification would be to add a ScaleMode, say VTK_SCALE_BY_NORMAL, to vtkGlyph3D, and then set the active normals in your data set to the vector by which you wish to scale. Then the "vectors" property could control the orientation and the active normals would control the scale. That's kind of kludgey, but it would be a fairly fast modification to make. HTH, Cory [1] https://www.paraview.org/Wiki/ParaView/Plugin_HowTo ParaView/Plugin HowTo - KitwarePublic www.paraview.org Introduction. ParaView comes with plethora of functionality bundled in: several readers, multitude of filters, quite a few different types of views etc. On Tue, Jan 9, 2018 at 7:43 AM, Ahmad . > wrote: > Just want to add that a programmatic (C++) solution is preferred rather than > using the GUI > > > I have a C++ pipeline where I can set the properties of the cylinder glyph > with vtkSMPropertyHelper. > > I have looked in filters.xml under vtkPVGlyphFilter source proxy (file > located in > /ParaViewCore/ServerManager/SMApplication/Resources) to see > what my options are, but there is only one "SetInputArrayToProcess" that > takes a vector attribute as input; nothing about a vector specifically for > orientation.. > > Suggestions on how to handle this issue, are very welcome; other approaches > than mine as well! > > ________________________________ > Van: Ahmad . > > Verzonden: maandag 8 januari 2018 20:52 > Aan: paraview at paraview.org > Onderwerp: Re: Scaling cylinder glyph's radius and height individually > > > Following up on my own question, I found out that if I scale by "Vector > Components" it is possible to change the length of the cylinders with the > second vector index, and the radius with the first and third. I need to > rearrange my attribute data as such: [radius_x, length, radius_z]. If I keep > radius_x == radius_z, then the cylinder will not deform, and the cross > section stays a perfect circle. See the image in the attachment please. > > > BUT the problem here is that "vector components" also affects the > orientation of my cylindrical glyphs. I can turn this off in the properties > menu, but I need to orient my cylinders based on another vector attribute > data... > > > I feel I'm getting somewhere, but if someone could give me an idea on how to > now orient my glyphs with another vector data than the one I use now for > scaling, that would be much appreciated! > > > Best, > Ahmad > > ________________________________ > Van: Ahmad . > > Verzonden: maandag 8 januari 2018 18:01 > Aan: paraview at paraview.org > Onderwerp: Scaling cylinder glyph's radius and height individually > > > Dear community, > > > When I try to scale cylindrical glyph objects by a 'Scalar', it scales both > the radius and height of the glyphs. > > Is there a way to scale the radius by a Scalar1, and the height be a > Scalar2? > > > I have an unstructured grid, and for each point I want to create a cylinder > that can have an arbitrary radius and height. > > I thought Glyphs would be the way to go, but I'm kind of stuck with this > issue. > > > Any help is much appreciated; or if you can recommend a different way to > achieve the above-mentioned please let me know! > > > Best, > > Ahmad > > > _______________________________________________ > 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 ParaView - KitwarePublic paraview.org ParaView is an open-source, multi-platform application designed to visualize data sets of varying sizes from small to very large. The goals of the ParaView project ... > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > https://paraview.org/mailman/listinfo/paraview ParaView Info Page paraview.org To see the collection of prior postings to the list, visit the ParaView Archives. Using ParaView: To post a message to all the list members, send ... > -- Cory Quammen Staff R&D Engineer Kitware, Inc. -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: vtkPVGlyphFilterP.tar.gz Type: application/gzip Size: 17529 bytes Desc: vtkPVGlyphFilterP.tar.gz URL: From steytle1 at illinois.edu Thu Feb 1 14:59:31 2018 From: steytle1 at illinois.edu (Steytler, Louis Louw) Date: Thu, 1 Feb 2018 19:59:31 +0000 Subject: [Paraview] Integrate Variables Over a Volume Message-ID: <2F8BA25CC0B82C4DB6756F8F663E6DB36B66A480@CITESMBX3.ad.uillinois.edu> Hi Everyone, Is there a way to integrate point or cell data over a volume in ParaView? It seems the "Integrate Variables" filter only integrates point and cell data over lines and surfaces. From the help documentation: "The Integrate Attributes filter integrates point and cell data over lines and surfaces. It also computes length of lines, area of surface, or volume. " I tried integrating over a volume, but this produced an error. Is there another way to do this? Any advice would be much appreciated. Thanks very much, Louis Steytler Department of Mechanical Science and Engineering University of Illinois at Urbana-Champaign 1206 West Green Street Urbana, Il 61801 steytle1 at illinois.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Thu Feb 1 15:16:26 2018 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 1 Feb 2018 15:16:26 -0500 Subject: [Paraview] announce: free VTK, ParaView and CMake training at Kitware New York next month Message-ID: Hi folks, Kitware is going to present three free, one day training courses next month at our Albany NY headquarters. The outline for each day follows. March 13'th "Introductory and applied VTK" morning: Dave DeMarle / Lisa Avila - "A hands on introduction to VTK" afternoon: Aashish Chaudhary - "VTK and Geosciences" Berk Geveci - "Flow Visualization" Ken Martin - "Realistic Rendering" Sankesh Jhaveri - ?A workflow for Medical Visualization? March 14'th "Introductory and applied ParaView" morning: Dan Lipsa / Utkarsh Ayachit - "A hands on introduction to ParaView" afternoon: Andy Bauer - "CFD analysis" T.J. Corona - "Simulation Debugging" Utkarsh Ayachit - "Quantitative Analysis" Bob O'Bara - "Point Cloud Processing" March 15'th "CMake and Friends" all day: w/ Bill Hoffman To reserve a seat for the course, please fill out this google form and we'll get back to you to confirm your reservation. https://goo.gl/forms/M3WmJcV9W6qKTK8x2 David E DeMarle Kitware, Inc. Principal Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ufdup89 at gmail.com Thu Feb 1 20:02:13 2018 From: ufdup89 at gmail.com (ufdup) Date: Fri, 2 Feb 2018 02:02:13 +0100 Subject: [Paraview] wrong 'Coloring' in Contour with large datapoints In-Reply-To: References: Message-ID: Apparently if I use multi-block works (I will make a few more tests). Is there some sort of limitation on the number of points per block? On Thu, Feb 1, 2018 at 5:36 PM, ufdup wrote: > Hi, > > I have two scalar fields, Q and cosalpha, and they are both 768 x 768 x > 12288 big. > > This data is stored in a hdf5 file, which I load using a xmf file. Loading > works fine and > I can confirm that by checking the range of my data. cosalpha is the > cosine of an angle and ranges from -1 to 1 for example. Q is also correct. > > I want to create an isosurface of Q and color it with cosalpha. However, > after the filter has been applied to Q, the range of cosalpha changes (in > the information panel) and the coloring does not work as expected. It seems > like that cosalpha is taking the range of Q.... > > Any hint of what I might be doing wrong? > > Kind Regards > Tiago > -------------- next part -------------- An HTML attachment was scrubbed... URL: From antech777 at gmail.com Fri Feb 2 01:39:33 2018 From: antech777 at gmail.com (Andrew) Date: Fri, 2 Feb 2018 09:39:33 +0300 Subject: [Paraview] Integrate Variables In-Reply-To: References: Message-ID: Hello. The Intergate Variables filter just calculate the area integral of each variable. If you need the mass flow then your workflow is correct. I use the same approach: 1. Slice + coordinate thresholds if it's needed to bound the sloce. 2. Calculator filter with the function like MassFlux=Density*VelocityVector*SurfaceNormalVector 3. Intergate Variables. The MassFlux integral is what we need. Regarding the time dependence I cannot suggest you something because I didn't work with transient cases in ParaView (I use CFD Post for transients). I also don't know the simple way to filter just one variable to integrate. If you have lots of variables like in CFD results it's very inconvenient to dig through all variables in Intagrate results. 2018-02-01 15:56 GMT+03:00 Andrew Roberts : > Hello, > > I have a function for mass flowrate that I want to plot over a time period > DT. The velocity is time averaged per timestep dt, not the whole time > period, DT. In otherwords the number of timesteps is DT/dt. > > mdot(T) = int_A (rho . u(T) . n . alpha(T)) dA > > mdot(T) is the massflow rate over time (kg/s) > int_A () dA is the integral over the area of a slice through the domain > (m^2) > rho is the density of the particle phase and this is constant (kg/m^3) > u(T) is the time averaged velocity of the particle phase for a timestep of > dt and varies with time, T (m/s) > n is the unit vector normal to the area (-) > alpha is the time averaged volume fraction of the particle phase and also > varies with time T (-) > > I think I am pretty sure that I can compute rho . u . n . alpha > > My process in paraview: > > Slice > Origin = 0, 0, 0, Normal = 0, 1, 0, Slice Type = Plane > > This is the part in the brackets of the massflow rate equation. Mean just > means time averaged: > > Calculator > abs(U1Mean_Y)*2900*alpha1Mean > > Now I must integrate this over the area of the slice. > > *** Is it correct to use the Filter > IntegrateVariables? *** > > I then use PlotSelectionOverTime (which I'm pretty sure is right). > > Kind regards, > > Andrew > > > > _______________________________________________ > 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: > https://paraview.org/mailman/listinfo/paraview > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From antech777 at gmail.com Fri Feb 2 04:34:08 2018 From: antech777 at gmail.com (Andrew) Date: Fri, 2 Feb 2018 12:34:08 +0300 Subject: [Paraview] Fwd: Integrate Variables Over a Volume In-Reply-To: References: <2F8BA25CC0B82C4DB6756F8F663E6DB36B66A480@CITESMBX3.ad.uillinois.edu> Message-ID: [Sorry, I forgot to change the mail address to Paraview. So copying it to the list.] Hello. I use ParaView 5.4.1 and I checked Integrate Variables on volume now. It works but, as in some other cases in ParaView, it requires the single entities type. For example, if you have a domain (volume) and boundaries (surfaces), it will not work on you whole input. Use Extract Block to extract the "real" volume prior the Integrate Variables. There is the other thing that is not very good concerning this "entity type problem". If you use the Calculator filter on mixed entities (fluid domain + boundaries) it says that it cannot find a variable, although it shows this variable in it's drop-down list. It's confusing if you encounter this the first time or have forgotten about this issue. May be it would be better to introduce some sort of message to inform a user that there is a "mixed entity issue". 2018-02-01 22:59 GMT+03:00 Steytler, Louis Louw : > Hi Everyone, > > Is there a way to integrate point or cell data over a volume in ParaView? > > It seems the "Integrate Variables" filter only integrates point and cell > data over lines and surfaces. From the help documentation: > > "The Integrate Attributes filter integrates point and cell data over lines > and surfaces. It also computes length of lines, area of surface, or volume. > " > > I tried integrating over a volume, but this produced an error. > > Is there another way to do this? > > Any advice would be much appreciated. > > Thanks very much, > > Louis Steytler > Department of Mechanical Science and Engineering > University of Illinois at Urbana-Champaign > 1206 West Green Street > Urbana, Il 61801 > steytle1 at illinois.edu > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensou > rce/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: > https://paraview.org/mailman/listinfo/paraview > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy.john.parker at googlemail.com Fri Feb 2 04:44:23 2018 From: andy.john.parker at googlemail.com (Andrew Parker) Date: Fri, 2 Feb 2018 09:44:23 +0000 Subject: [Paraview] [EXTERNAL] Re: Make animation from steady state result In-Reply-To: References: <9047EE0D4D3C8E43B93980DA10A073809C2FA05B@EXMB04.srn.sandia.gov> Message-ID: Cory, As a follow up. Can I ask if it would be possible to do all that is suggested on Scott's page: https://www.paraview.org/Wiki/Advanced_Tips_and_Tricks# Animating_a_static_vector_field Along with all of your additional steps below from your last post (be great to add these to Scott's page), entirely in pvpython or pvbatch? I make use of the anaconda version from here: https://anaconda.org/conda-forge/paraview Would it be possible do you think to script all of this? I have not tired it yet I should add just checking for show stoppers before I begin. Thanks, Andy On 19 January 2018 at 13:18, Cory Quammen wrote: > Andrew, > > Responses inlined below: > > On Fri, Jan 19, 2018 at 6:27 AM, Andrew Parker via ParaView > wrote: > > Dear all, > > > > Sorry to post onto an old thread. I have been reading this thread and the > > related write up here: > > https://www.paraview.org/Wiki/Advanced_Tips_and_Tricks# > Animating_a_static_vector_field > > > > This thread (and the tips and tricks post) is really close to what I > want to > > do, but I have a few follow-up questions. I too have a steady-state > > solution field. I want to trace particles from the inlet of my domain to > the > > exit, following the steady-state velocity field, and report for each > > particle the temperature-time history (or any other scalar from my > > simulation) that the particle sees. In additional and crucially, the > time > > the particle has within the domain: a residence time. The residence time > > would be the maximum value or IntegrationTime each particle attains > before > > it leaves the domain. > > > > I see that if I follow the notes I can plot (using Glyphs) the > temperature > > as it varies across my domain as the particles are animated down the > > streamlines: this is working. What I do not seem to be able to find > > however, is the IntegrationTime. It appears as point-field data after > the > > streamlines are created, but vanishes after the contour filter is > applied. > > I guess the contour filter is computing a singular value for all values > of > > the IntegrationTime from T=0 to T=N with a specific level of granularity. > > By default, the Contour filter does not copy the scalar field used to > determine the contour surface since it will always be the same value. > You can tell it to copy the scalar field by enabling the Compute > Scalars option. > > > However, I can't seem to extract the specific value of IntegrationTime > (the > > contour value) when I stop the simulation at any given point. Do you > know > > how to do that? The "time" scale in the VCR window always goes from 0->1 > > not from 0->(max value of IntegrationTime in seconds). Can the actual > value > > of time be backed out or animated? If so how do I do that, or am I > applying > > the Contour filter wrongly: as per the post, I am only using the default > > values in the Counter filter panel. > > Instead of using the Sequence animation mode, use Real Time. Then, set > the Start Time to the minimum IntegrationTime value and End Time to > the maximum IntegrationTime value. You can see these listed either in > the Information tab of the StreamTracer filter in the Pipeline Browser > or under the Contour filter's Property tab under the Isosurfaces > section (Value Range). To show the current time in the render view, > use an Annotate Time source, available in the Sources menu. > > > Finally, and importantly for me, while the Glyphs move across the screen > > following the streamlines, and render via the temperature field, how to I > > actually extract information from this pseudo time series to perform > > analysis? For example, the min and max temperature seen by a particle > as it > > moved across the streamline for instance? I'm actually hoping to plot > > offline (as a function of IntegrationTime) the min and max temperature > > obtained for each particle: I can then take the min and max of that set > for > > the quickest and slowest particles. > > You can run the Connectivity filter on the StreamTracer output to > assign a unique value to each streamline. This unique value will be > called RegionId. It starts at 0 and ends at the number of stream lines > minus 1. Selecting each stream line can be done with the Threshold > filter in ParaView using the RegionId as the threshold array, then you > can see the min/max of your temperature and IntegrationTime variables > in the Information tab. Iterating over all stream lines and saving the > min/max of the different scalar fields is possible using ParaView's > Python scripting capabilities. However, you may find it faster to > export the data to a tool with which you are more familiar. > > To do that, I would suggest saving the Connectivity filter output to a > .csv file. The CSV file will contain all the scalar fields in > different columns, including the aforementioned RegionId field. Simply > filter on the RegionId field using your favorite software/plotting > tool to find the min and max temperature and max IntegrationTime of > the particle along the stream line. > > HTH, > Cory > > > > Using the latest stock version of paraview. > > > > Cheers, > > Andy > > > > On 6 June 2014 at 20:30, Scott, W Alan wrote: > >> > >> Ken and Jean, excellent idea! I liked it so much that I wrote it up in > >> the SNL ParaView tutorials, tips and tricks page. It is located here: > >> http://www.paraview.org/Wiki/Advanced_Tips_and_Tricks > >> > >> > >> > >> Alan > >> > >> > >> > >> From: ParaView [mailto:paraview-bounces at paraview.org] On Behalf Of > >> Moreland, Kenneth > >> Sent: Friday, June 06, 2014 11:43 AM > >> To: David E DeMarle; minh hien > >> Cc: paraview at paraview.org > >> > >> > >> Subject: [EXTERNAL] Re: [Paraview] Make animation from steady state > result > >> > >> > >> > >> Here's a more expanded list of steps outlining the solution David gave > in > >> case you are not very familiar with the contour filter and animation > >> controls in ParaView. > >> > >> > >> > >> 1. Create the streamlines as you normally would. > >> > >> > >> > >> 2. Add a Contour filter to the streamline (third toolbar, second button > >> from the left). > >> > >> 2.a. Change the Contour By property to IntegrationTime. > >> > >> 2.b. Press Apply. > >> > >> This little trick will create a point on each streamline at a particular > >> time in the particle advection simulation that created the streamlines. > >> > >> > >> > >> 3. Open the Animation View (View -> Animation View) > >> > >> 3.a. On the bottom row, select the contour filter in the first chooser > box > >> and Isosurfaces in the second chooser box. Then hit the blue plus > button at > >> the left. > >> > >> 3.b. Make sure Mode is set to Sequence and change No. Frames to 100. > >> > >> 3.c. Hit the play button in the VCR controls (green triangle in the top > >> toolbar). You will see the dots animate over the streamlines. > >> > >> 3.d. You can adjust the speed of the animation by changing the No. > Frames. > >> > >> > >> > >> 4. If you want to see glyphs instead of dots, just add the glyph filter > to > >> the output of the contour filter. > >> > >> > >> > >> BTW, props to Jean Favre for originally posting this solution to the > >> ParaView mailing list (http://markmail.org/message/ms57z7jjubh2pzjg). > >> > >> > >> > >> -Ken > >> > >> > >> > >> From: David E DeMarle > >> Date: Thursday, June 5, 2014 8:07 AM > >> To: minh hien > >> Cc: "paraview at paraview.org" > >> Subject: [EXTERNAL] Re: [Paraview] Make animation from steady state > result > >> > >> > >> > >> Make an isocontour of the streamlines' integrationTime variable. > >> > >> Then in animation view, make a track for the isocontour value. > >> > >> > >> David E DeMarle > >> Kitware, Inc. > >> R&D Engineer > >> 21 Corporate Drive > >> Clifton Park, NY 12065-8662 > >> Phone: 518-881-4909 > >> > >> > >> > >> On Thu, Jun 5, 2014 at 9:52 AM, minh hien wrote: > >> > >> Hi all, > >> > >> > >> > >> I got steady state solution for my problem. After plotting streamlines > at > >> steady state, I would like to make animation showing moving of spheres > >> (resulted from Glyph filter) on the streamlines, the spheres' velocity > >> should be defined by the flow velocity. How can I make this? > >> > >> Any suggestion would be very much appreciated. > >> > >> > >> > >> Thank you in advance. > >> > >> > >> > >> Minh > >> > >> > >> _______________________________________________ > >> 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 > > > > Search the list archives at: http://markmail.org/search/?q=ParaView > > > > Follow this link to subscribe/unsubscribe: > > https://paraview.org/mailman/listinfo/paraview > > > > > > -- > Cory Quammen > Staff R&D Engineer > Kitware, Inc. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Fri Feb 2 10:21:43 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Fri, 2 Feb 2018 10:21:43 -0500 Subject: [Paraview] [EXTERNAL] Re: Make animation from steady state result In-Reply-To: References: <9047EE0D4D3C8E43B93980DA10A073809C2FA05B@EXMB04.srn.sandia.gov> Message-ID: On Fri, Feb 2, 2018 at 4:44 AM, Andrew Parker wrote: > Cory, > > As a follow up. Can I ask if it would be possible to do all that is > suggested on Scott's page: > https://www.paraview.org/Wiki/Advanced_Tips_and_Tricks#Animating_a_static_vector_field > > Along with all of your additional steps below from your last post (be great > to add these to Scott's page), entirely in pvpython or pvbatch? I make use > of the anaconda version from here: https://anaconda.org/conda-forge/paraview > > Would it be possible do you think to script all of this? I have not tired it > yet I should add just checking for show stoppers before I begin. I don't foresee any showstoppers. To make scripting easier, use the Python tracing capability within the ParaView GUI. Tools menu -> Start Trace, then perform the suggested actions. When done, choose Tools -> Stop Trace, and you will see a dialog with the generated script that you can use as a starting point. Thanks, Cory > Thanks, > Andy > > On 19 January 2018 at 13:18, Cory Quammen wrote: >> >> Andrew, >> >> Responses inlined below: >> >> On Fri, Jan 19, 2018 at 6:27 AM, Andrew Parker via ParaView >> wrote: >> > Dear all, >> > >> > Sorry to post onto an old thread. I have been reading this thread and >> > the >> > related write up here: >> > >> > https://www.paraview.org/Wiki/Advanced_Tips_and_Tricks#Animating_a_static_vector_field >> > >> > This thread (and the tips and tricks post) is really close to what I >> > want to >> > do, but I have a few follow-up questions. I too have a steady-state >> > solution field. I want to trace particles from the inlet of my domain to >> > the >> > exit, following the steady-state velocity field, and report for each >> > particle the temperature-time history (or any other scalar from my >> > simulation) that the particle sees. In additional and crucially, the >> > time >> > the particle has within the domain: a residence time. The residence >> > time >> > would be the maximum value or IntegrationTime each particle attains >> > before >> > it leaves the domain. >> > >> > I see that if I follow the notes I can plot (using Glyphs) the >> > temperature >> > as it varies across my domain as the particles are animated down the >> > streamlines: this is working. What I do not seem to be able to find >> > however, is the IntegrationTime. It appears as point-field data after >> > the >> > streamlines are created, but vanishes after the contour filter is >> > applied. >> > I guess the contour filter is computing a singular value for all values >> > of >> > the IntegrationTime from T=0 to T=N with a specific level of >> > granularity. >> >> By default, the Contour filter does not copy the scalar field used to >> determine the contour surface since it will always be the same value. >> You can tell it to copy the scalar field by enabling the Compute >> Scalars option. >> >> > However, I can't seem to extract the specific value of IntegrationTime >> > (the >> > contour value) when I stop the simulation at any given point. Do you >> > know >> > how to do that? The "time" scale in the VCR window always goes from >> > 0->1 >> > not from 0->(max value of IntegrationTime in seconds). Can the actual >> > value >> > of time be backed out or animated? If so how do I do that, or am I >> > applying >> > the Contour filter wrongly: as per the post, I am only using the default >> > values in the Counter filter panel. >> >> Instead of using the Sequence animation mode, use Real Time. Then, set >> the Start Time to the minimum IntegrationTime value and End Time to >> the maximum IntegrationTime value. You can see these listed either in >> the Information tab of the StreamTracer filter in the Pipeline Browser >> or under the Contour filter's Property tab under the Isosurfaces >> section (Value Range). To show the current time in the render view, >> use an Annotate Time source, available in the Sources menu. >> >> > Finally, and importantly for me, while the Glyphs move across the screen >> > following the streamlines, and render via the temperature field, how to >> > I >> > actually extract information from this pseudo time series to perform >> > analysis? For example, the min and max temperature seen by a particle >> > as it >> > moved across the streamline for instance? I'm actually hoping to plot >> > offline (as a function of IntegrationTime) the min and max temperature >> > obtained for each particle: I can then take the min and max of that set >> > for >> > the quickest and slowest particles. >> >> You can run the Connectivity filter on the StreamTracer output to >> assign a unique value to each streamline. This unique value will be >> called RegionId. It starts at 0 and ends at the number of stream lines >> minus 1. Selecting each stream line can be done with the Threshold >> filter in ParaView using the RegionId as the threshold array, then you >> can see the min/max of your temperature and IntegrationTime variables >> in the Information tab. Iterating over all stream lines and saving the >> min/max of the different scalar fields is possible using ParaView's >> Python scripting capabilities. However, you may find it faster to >> export the data to a tool with which you are more familiar. >> >> To do that, I would suggest saving the Connectivity filter output to a >> .csv file. The CSV file will contain all the scalar fields in >> different columns, including the aforementioned RegionId field. Simply >> filter on the RegionId field using your favorite software/plotting >> tool to find the min and max temperature and max IntegrationTime of >> the particle along the stream line. >> >> HTH, >> Cory >> >> >> > Using the latest stock version of paraview. >> > >> > Cheers, >> > Andy >> > >> > On 6 June 2014 at 20:30, Scott, W Alan wrote: >> >> >> >> Ken and Jean, excellent idea! I liked it so much that I wrote it up in >> >> the SNL ParaView tutorials, tips and tricks page. It is located here: >> >> http://www.paraview.org/Wiki/Advanced_Tips_and_Tricks >> >> >> >> >> >> >> >> Alan >> >> >> >> >> >> >> >> From: ParaView [mailto:paraview-bounces at paraview.org] On Behalf Of >> >> Moreland, Kenneth >> >> Sent: Friday, June 06, 2014 11:43 AM >> >> To: David E DeMarle; minh hien >> >> Cc: paraview at paraview.org >> >> >> >> >> >> Subject: [EXTERNAL] Re: [Paraview] Make animation from steady state >> >> result >> >> >> >> >> >> >> >> Here's a more expanded list of steps outlining the solution David gave >> >> in >> >> case you are not very familiar with the contour filter and animation >> >> controls in ParaView. >> >> >> >> >> >> >> >> 1. Create the streamlines as you normally would. >> >> >> >> >> >> >> >> 2. Add a Contour filter to the streamline (third toolbar, second button >> >> from the left). >> >> >> >> 2.a. Change the Contour By property to IntegrationTime. >> >> >> >> 2.b. Press Apply. >> >> >> >> This little trick will create a point on each streamline at a >> >> particular >> >> time in the particle advection simulation that created the streamlines. >> >> >> >> >> >> >> >> 3. Open the Animation View (View -> Animation View) >> >> >> >> 3.a. On the bottom row, select the contour filter in the first chooser >> >> box >> >> and Isosurfaces in the second chooser box. Then hit the blue plus >> >> button at >> >> the left. >> >> >> >> 3.b. Make sure Mode is set to Sequence and change No. Frames to 100. >> >> >> >> 3.c. Hit the play button in the VCR controls (green triangle in the top >> >> toolbar). You will see the dots animate over the streamlines. >> >> >> >> 3.d. You can adjust the speed of the animation by changing the No. >> >> Frames. >> >> >> >> >> >> >> >> 4. If you want to see glyphs instead of dots, just add the glyph filter >> >> to >> >> the output of the contour filter. >> >> >> >> >> >> >> >> BTW, props to Jean Favre for originally posting this solution to the >> >> ParaView mailing list (http://markmail.org/message/ms57z7jjubh2pzjg). >> >> >> >> >> >> >> >> -Ken >> >> >> >> >> >> >> >> From: David E DeMarle >> >> Date: Thursday, June 5, 2014 8:07 AM >> >> To: minh hien >> >> Cc: "paraview at paraview.org" >> >> Subject: [EXTERNAL] Re: [Paraview] Make animation from steady state >> >> result >> >> >> >> >> >> >> >> Make an isocontour of the streamlines' integrationTime variable. >> >> >> >> Then in animation view, make a track for the isocontour value. >> >> >> >> >> >> David E DeMarle >> >> Kitware, Inc. >> >> R&D Engineer >> >> 21 Corporate Drive >> >> Clifton Park, NY 12065-8662 >> >> Phone: 518-881-4909 >> >> >> >> >> >> >> >> On Thu, Jun 5, 2014 at 9:52 AM, minh hien wrote: >> >> >> >> Hi all, >> >> >> >> >> >> >> >> I got steady state solution for my problem. After plotting streamlines >> >> at >> >> steady state, I would like to make animation showing moving of spheres >> >> (resulted from Glyph filter) on the streamlines, the spheres' velocity >> >> should be defined by the flow velocity. How can I make this? >> >> >> >> Any suggestion would be very much appreciated. >> >> >> >> >> >> >> >> Thank you in advance. >> >> >> >> >> >> >> >> Minh >> >> >> >> >> >> _______________________________________________ >> >> 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 >> > >> > Search the list archives at: http://markmail.org/search/?q=ParaView >> > >> > Follow this link to subscribe/unsubscribe: >> > https://paraview.org/mailman/listinfo/paraview >> > >> >> >> >> -- >> Cory Quammen >> Staff R&D Engineer >> Kitware, Inc. > > -- Cory Quammen Staff R&D Engineer Kitware, Inc. From fabian.wein at fau.de Fri Feb 2 10:44:45 2018 From: fabian.wein at fau.de (Fabian Wein) Date: Fri, 2 Feb 2018 16:44:45 +0100 Subject: [Paraview] undefined symbol: PyUnicodeUCS2_AsEncodedString Message-ID: I build latest head of paraview-superbuild with Python enabled and USE_SYSTEM_PYTHON=OFF on a openSUSE Tumbleweed system I get the following error Scanning dependencies of target CinemaPython [ 2%] Copying files for Python package 'cinema_python' [ 2%] Compiling Python package 'cinema_python' Traceback (most recent call last): File "/usr/lib64/python2.7/runpy.py", line 174, in _run_module_as_main [ 2%] Building CXX object VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/CMakeFiles/vtkxdmf2.dir/XdmfHeavyData.cxx.o [ 2%] Building CXX object ThirdParty/protobuf/vtkprotobuf/src/CMakeFiles/protoc_compiler.dir/google/protobuf/stubs/strutil.cc.o "__main__", fname, loader, pkg_name) File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/usr/lib64/python2.7/compileall.py", line 16, in import struct File "/usr/lib64/python2.7/struct.py", line 1, in from _struct import * ImportError: /home/fwein/code/cfs_paraview/build_python/build/install/lib64/python2.7/lib-dynload/_struct.so: undefined symbol: PyUnicodeUCS2_AsEncodedString gmake[8]: *** [ThirdParty/cinema/CMakeFiles/CinemaPython.dir/build.make:61: ThirdParty/cinema/cinema_python.build-complete] Error 1 gmake[7]: *** [CMakeFiles/Makefile2:1192: ThirdParty/cinema/CMakeFiles/CinemaPython.dir/all] Error 2 gmake[7]: *** Waiting for unfinished jobs.... To my knowledge one need to decide if Python is compiled with 16 or 32 bit encoding, on my system I have 32 bit: /usr/bin/python2 Python 2.7.14 (default, Oct 12 2017, 15:50:02) [GCC] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> print(sys.maxunicode) 1114111 When I try the Python built from PV, it has 16 bits: /home/fwein/code/cfs_paraview/build_python/build/superbuild/python/build/python Python 2.7.14 (default, Feb 2 2018, 15:33:16) [GCC 7.3.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> print(sys.maxunicode) 65535 So the mixing from own built python and system python makes problems. Is this mixing a bug? Currently, I don't need python in PV, and for my colleague SYSTEM_PYTHON worked. So just to let you know. BTW, what is the status with python3? Fabian From fabian.wein at fau.de Fri Feb 2 10:55:00 2018 From: fabian.wein at fau.de (Fabian Wein) Date: Fri, 2 Feb 2018 16:55:00 +0100 Subject: [Paraview] undefined symbol: PyUnicodeUCS2_AsEncodedString In-Reply-To: References: Message-ID: It get's (for me) strange: nm /home/fwein/code/cfs_paraview/build_python/build/install/lib64/python2.7/lib-dynload/_struct.so | grep PyUni U PyUnicodeUCS2_AsEncodedString nm -D /usr/lib64/python2.7/lib-dynload/_struct.so | grep PyUnico U PyUnicodeUCS4_AsEncodedString This is as I would expect it. So, I don't understand the error message: ImportError: /home/fwein/code/cfs_paraview/build_python/build/install/lib64/python2.7/lib-dynload/_struct.so: undefined symbol: PyUnicodeUCS2_AsEncodedString Is the error message wrong with the filename? Mabye the path are set wrong?! Fabian From info at seoaachen.de Fri Feb 2 10:52:08 2018 From: info at seoaachen.de (Daniel Zuidinga) Date: Fri, 2 Feb 2018 16:52:08 +0100 Subject: [Paraview] vtu and/or vtu to vtp file Message-ID: Hi, is it possible to convert vtk and/or vtu to vtp file via paraview? br From shawn.waldon at kitware.com Fri Feb 2 10:57:45 2018 From: shawn.waldon at kitware.com (Shawn Waldon) Date: Fri, 2 Feb 2018 10:57:45 -0500 Subject: [Paraview] undefined symbol: PyUnicodeUCS2_AsEncodedString In-Reply-To: References: Message-ID: Hi Fabian, It looks to me like you built against a Python that was configured with UCS2 unicode objects and are linking to a Python that was configured with UCS4 unicode objects. Python is not ABI-compatible with other Pythons that were built with a different kind of unicode support. Shawn On Fri, Feb 2, 2018 at 10:55 AM, Fabian Wein wrote: > It get's (for me) strange: > > nm /home/fwein/code/cfs_paraview/build_python/build/install/lib > 64/python2.7/lib-dynload/_struct.so | grep PyUni > U PyUnicodeUCS2_AsEncodedString > > nm -D /usr/lib64/python2.7/lib-dynload/_struct.so | grep PyUnico > U PyUnicodeUCS4_AsEncodedString > > This is as I would expect it. So, I don't understand the error message: > > ImportError: /home/fwein/code/cfs_paraview/build_python/build/install/lib > 64/python2.7/lib-dynload/_struct.so: undefined symbol: > PyUnicodeUCS2_AsEncodedString > > Is the error message wrong with the filename? > > Mabye the path are set wrong?! > > > Fabian > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensou > rce/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: > https://paraview.org/mailman/listinfo/paraview > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Fri Feb 2 10:59:49 2018 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Fri, 2 Feb 2018 08:59:49 -0700 Subject: [Paraview] vtu and/or vtu to vtp file In-Reply-To: References: Message-ID: Yes, you might need to "Extract Surface" filter, then select the new output and save the dataset from the menu. On Fri, Feb 2, 2018 at 8:52 AM, Daniel Zuidinga wrote: > Hi, > > is it possible to convert vtk and/or vtu to vtp file via paraview? > > br > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensou > rce/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: > https://paraview.org/mailman/listinfo/paraview > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fabian.wein at fau.de Fri Feb 2 11:51:27 2018 From: fabian.wein at fau.de (Fabian Wein) Date: Fri, 2 Feb 2018 17:51:27 +0100 Subject: [Paraview] undefined symbol: PyUnicodeUCS2_AsEncodedString In-Reply-To: References: Message-ID: Hi Shawn, > It looks to me like you built against a Python that was configured with UCS2 unicode objects and are linking to a Python that was configured with UCS4 unicode objects.? Python is not ABI-compatible with other Pythons that were built with a different kind of unicode support. I aggree with your observation. The point is, that not me is linking but it is the paraview-superbuild which failes. With USE_SYSTEM_python=OFF I would expect that my system python is not touched?! BTW, I can confirm that it works with USE_SYSTEM_python=ON, so a trivial workaround exists. Fabian From andy.bauer at kitware.com Fri Feb 2 15:00:54 2018 From: andy.bauer at kitware.com (Andy Bauer) Date: Fri, 2 Feb 2018 15:00:54 -0500 Subject: [Paraview] How to insert annotate time info into catalyst? In-Reply-To: <072811a8-dd15-4977-81a5-eddb5f9277b3@Spark> References: <3a6e23d3-5982-74db-4c77-ab62a03eec16@gmail.com> <072811a8-dd15-4977-81a5-eddb5f9277b3@Spark> Message-ID: For Catalyst Live you can use the Python Annotation filter to show the time after you've extracted the Annotate Time Filter from the Calalyst simulation run. You'll need to change the Array Association to Row Data and put in "Text.GetValue(0)" in the Expression. On Mon, Jan 29, 2018 at 8:59 PM, Seong Mo Yeon wrote: > Hi, Andi Bauer, > > I found that annotate time filter works in live visualization and the > error occurs when output rendering components is activated. > gdb says the error occurs at vtkSMBoundsDomain.cxx: 60 > vtkPVDataInformation* info = this->GetInputInformation(); > if (info) > { > double bounds[6]; > info->GetBounds(bounds); > this->SetDomainValues(bounds); > } > > and the vtkPVDataInformation has the following information: > > members of vtkPVDataInformation: > DataSetType = 19, > CompositeDataSetType = -1, > NumberOfDataSets = 1, > NumberOfPoints = 0, > NumberOfCells = 1, > NumberOfRows = 1, > MemorySize = 1, > PolygonCount = 0, > Bounds = {1.0000000000000001e+299, -1.0000000000000001e+299, > 1.0000000000000001e+299, -1.0000000000000001e+299, 1.0000000000000001e+299, > -1.0000000000000001e+299}, > Extent = {2147483647 <(214)%20748-3647>, -2147483647 <(214)%20748-3647>, > 2147483647 <(214)%20748-3647>, -2147483647 <(214)%20748-3647>, 2147483647 > <(214)%20748-3647>, -2147483647 <(214)%20748-3647>}, > TimeSpan = {-1.0000000000000001e+299, 1.0000000000000001e+299}, > Time = 0.0050000000000000001, > HasTime = 1, > NumberOfTimeSteps = 0, > DataClassName = 0x55555996b050 "vtkTable", > TimeLabel = 0x0, > CompositeDataClassName = 0x0, > CompositeDataSetName = 0x0, > PointDataInformation = 0x555558ec6430, > CellDataInformation = 0x555558ec66d0, > FieldDataInformation = 0x555558ec6770, > VertexDataInformation = 0x555558ec6890, > EdgeDataInformation = 0x555558ec67f0, > RowDataInformation = 0x555558ec6370, > CompositeDataInformation = 0x555558eb5430, > PointArrayInformation = 0x555558ec6c50, > PortNumber = 0 > > my guess is that annotate time filter is a type of vtkTable and Bounds > member variable has too large values. Any idea? > > Regards > > SeongMo > > On 2018? 1? 27? AM 2:06 +0900, Andy Bauer , wrote: > > Hi SeongMo, > > The AnnotateTime source should work with Catalyst. See the attached images > and the annotatetime.py script which I used to create it. > > With your script, what do your images look like? > > You could also try what Ufuk mentioned. I think his work is based on > weather/climate time scales so he has to handle months, leap years, etc. > which ParaView itself doesn't handle naturally. You can see some of the > things he's done with Catalyst at https://blog.kitware.com/ > integration-of-paraview-catalyst-with-regional-earth-system-model/. > > Best, > Andy > > On Thu, Jan 25, 2018 at 10:47 AM, SeongMo wrote: > >> Dear Andy Bauer, >> >> For the color map issue, I think ParaView 5.4.1 resolved it. But, I could >> not figure out annotate time filter issue. may be it is just simple problem >> but I am not sure. Coprocess routine is as follows and python script is >> attached. >> >> It would be appreciated if you make some advice. >> >> >> void CoProcess(Foam::fvMesh& mesh, Foam::Time& runTime) >> { >> vtkNew dataDescription; >> dataDescription->AddInput("input"); >> const double time = runTime.value(); >> const unsigned int timeStep = runTime.timeIndex(); >> dataDescription->SetTimeData(time, timeStep); >> >> if (runTime.end()) >> { >> // assume that we want to all the pipelines to execute >> // if it is the last time step >> dataDescription->ForceOutputOn(); >> } >> if (Processor->RequestDataDescription(dataDescription.GetPointer()) >> != 0) >> { >> Foam::polyMesh::readUpdateState meshState = mesh.readUpdate(); >> >> if(meshState != Foam::polyMesh::UNCHANGED) >> { >> // mesh moved? or mesh topology changed? >> BuildVTKGrid(mesh, true); >> } >> UpdateVTKAttributes(mesh); >> dataDescription->GetInputDescriptionByName("input")-> >> SetGrid(multiBlockDataSet); >> Processor->CoProcess(dataDescription.GetPointer()); >> } >> } >> >> Regards. >> >> SeongMo >> >> SeongMo Yeon, Ph.D, Senior Engineer >> Offshore Hydrodynamics Research >> SAMSUNG HEAVY INDUSTRIES CO., LTD. >> Central Research Institute >> E-mail : seongmo.yeon at gmail.com >> Tel : >> -------------------------------------------------------- >> Fluctuat nec mergitur >> >> On 01/25/2018 06:56 AM, Andy Bauer wrote: >> >> Hi Seongmo, >> >> Please keep the conversations on the mailing list so that anyone can >> follow along or participate. Also, these types of things often get lost in >> my inbox when they don't make it back to the ParaView mailing list. >> >> What version of ParaView Catalyst are you using? I think the annotate >> time filter should work with Catalyst but I haven't verified that. I >> vaguely remember others using that filter with Catalyst though. Also, I >> think the colormap bug was fixed. If you have a way of sharing a sample >> that demonstrates either of those bugs I can try taking a look at the issue. >> >> Best, >> Andy >> >> On Thu, Jan 18, 2018 at 6:40 PM, Seong Mo Yeon >> wrote: >> >>> Dear Andy Bauer >>> >>> I have a quick question. >>> Is it possible to have annotate time filter processed in catalyst >>> adaptor? Current my code cannot that filter. >>> >>> BTW, image extracted from catalyst looks different from render view of >>> paraview at the time of writing a script. e.g., pressure colormap legend is >>> missing. >>> >>> Regards >>> Seongmo >>> >>> On 2018? 1? 18? AM 1:17 +0900, Andy Bauer , >>> wrote: >>> >>> Hi, >>> >>> My guess is that the TimeStep isn't getting set properly in the adaptor >>> (though it looks like it should be in "dataDescription->SetTimeData(runTime.value(), >>> runTime.deltaTValue());"). My suggestion would be to add in the following >>> to either the RequestDataDescription() or DoCoProcessing() methods in the >>> python script to see what Catalyst thinks the time step is: >>> print("In script2.py, the data time step is ", >>> datadescription.GetTimeStep()) >>> >>> >>> On Wed, Jan 17, 2018 at 9:57 AM, SeongMo wrote: >>> >>>> Hi, >>>> >>>> I wrote a OpenFOAM adaptor for Catalyst. >>>> >>>> In the ParaView, the connection is made good and shows filtered flow >>>> field as written in the python script. >>>> >>>> However, filename_%t and image_%t is not expanded as time marching but >>>> just write filename_0 and image_0.png. >>>> >>>> As far as I know, %t should be replaced with current time as given in >>>> dataDescription->SetTimeData. >>>> >>>> Any help would be appreciated. >>>> >>>> >>>> FYI, python script is attached and snippet of my OpenFOAM Adaptor code >>>> for Catalyst is as follows: >>>> >>>> // icoFoam.C >>>> >>>> #ifdef USE_CATALYST >>>> Foam::HashTable options = args.options(); >>>> IStringStream is(options["scriptList"]); >>>> wordList scriptList = readList(is); >>>> OFAdaptor::Initialize(scriptList, mesh); >>>> #endif >>>> while (runTime.loop()) >>>> { >>>> runTime.write(); >>>> #ifdef USE_CATALYST >>>> OFAdaptor::CoProcess(mesh, runTime); >>>> #endif >>>> } >>>> #ifdef USE_CATALYST >>>> OFAdaptor::Finalize(); >>>> #endif >>>> >>>> >>>> // OFAdaptor.C >>>> >>>> void CoProcess(Foam::fvMesh& mesh, Foam::Time& runTime) >>>> { >>>> vtkNew dataDescription; >>>> dataDescription->AddInput("input"); >>>> dataDescription->SetTimeData(runTime.value(), >>>> runTime.deltaTValue()); >>>> if (runTime.end()) >>>> { >>>> // assume that we want to all the pipelines to execute >>>> // if it is the last time step >>>> dataDescription->ForceOutputOn(); >>>> } >>>> if (Processor->RequestDataDescription(dataDescription.GetPointer()) >>>> != 0) >>>> { >>>> Foam::polyMesh::readUpdateState meshState = >>>> mesh.readUpdate(); >>>> >>>> if(meshState != Foam::polyMesh::UNCHANGED) >>>> { >>>> BuildVTKGrid(mesh); >>>> } >>>> UpdateVTKAttributes(mesh); >>>> dataDescription->GetInputDescriptionByName("input")->SetGrid >>>> (multiBlockDataSet); >>>> Processor->CoProcess(dataDescription.GetPointer()); >>>> } >>>> } >>>> >>>> >>>> -- >>>> SeongMo Yeon, Ph.D, Senior Engineer >>>> Offshore Hydrodynamics Research >>>> SAMSUNG HEAVY INDUSTRIES CO., LTD. >>>> Central Research Institute >>>> E-mail : seongmo.yeon at gmail.com >>>> Tel : >>>> -------------------------------------------------------- >>>> Fluctuat nec mergitur >>>> >>>> >>>> _______________________________________________ >>>> 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: >>>> https://paraview.org/mailman/listinfo/paraview >>>> >>>> >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Fri Feb 2 15:35:49 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Fri, 2 Feb 2018 15:35:49 -0500 Subject: [Paraview] Scaling cylinder glyph's radius and height individually In-Reply-To: References: Message-ID: Ahmad, First, I recommend that you try loading your plugin in the ParaView UI, using the ParaView that you built your plugin against. Then, in Tools -> Manage Plugins. Click on Load New... and select the file libvtkPVGlyphFilterP.so. You should now be able to find your filter GlyphP in the Filters menu. Second, to instantiate the filter the way you are trying is correct, but first you need to load the plugin. I believe you can do it this way: vtkSMPluginManager::LoadLocalPlugin("//libvtkPVGlyphFilterP.so"); HTH, Cory On Thu, Feb 1, 2018 at 1:12 PM, Ahmad . wrote: > Sorry about that Cory; will keep this in the mailing list. > > > I have tried to implement your suggestion, and now I have generated a plugin > file "libvtkPVGlyphFilterP.so". > > Please find the files I used to create this plugin in the attachment. > > > What I did after compiling the plugin: > > > Try to use the new class I made, like such: > `session_manager_->NewProxy("filters", "GlyphP")));` > where GlyphP is what I called my custom glyph filter (see the xml file in > the attachment). > Compile my application against "libvtkPVGlyphFilterP.so". > Run my application and get the following error: > > > ERROR: In > /home/ahmad/paraview/ParaViewCore/ServerImplementation/Core/vtkSIProxyDefinitionManager.cxx, > line 526 > vtkSIProxyDefinitionManager (0x294d320): No proxy that matches: > group=filters and proxy=GlyphP were found. > > I feel like I am missing an important step, which has to do with the XML > file, but I don't know how. > > In the Plugin Wiki of ParaView the instructions I find after compiling are: > Then using cmake and a build system, one can build a plugin for this new > filter. Once this plugin is loaded the filter will appear under the > "Alphabetical" list in the Filters menu. > There are no instructions on how to use the new class in a C++ pipeline... > > Any pointers on this? > > Best, > Ahmad > > ________________________________ > Van: Cory Quammen > Verzonden: vrijdag 19 januari 2018 16:59 > Aan: Ahmad .; ParaView > > Onderwerp: Re: [Paraview] Scaling cylinder glyph's radius and height > individually > > Ahmad, > > Please keep replies on the mailing list. Responses are inlined. > > On Tue, Jan 16, 2018 at 9:25 AM, Ahmad . wrote: > > Hi Cory, > > > Thanks for your reply. > > > I am trying to implement your suggestion of extending the vtkGlyph3D with > this additional "scaling by normals". > > The idea seems quite straightforward. I was just wondering how to > incorporate this new class in my C++ pipeline. > > Currently I create the glyph, and set its properties, like this: > > > vtkSmartPointer glyph; > glyph.TakeReference(vtkSMSourceProxy::SafeDownCast( > session_manager_->NewProxy("filters", "Glyph"))); > controller_->PreInitializeProxy(glyph); > > vtkSMPropertyHelper(glyph, "Input").Set(producer); > vtkSMPropertyHelper(glyph, "Source").Set(GetCylinderSource(glyph)); > vtkSMPropertyHelper(glyph, "ScaleMode", true).Set(0); > vtkSMPropertyHelper(glyph, "ScaleFactor", true).Set(1.0); > vtkSMPropertyHelper(glyph, "GlyphMode", true).Set(0); > > As you can see I am not directly working with vtkGlyph3D or vtkPVGlyphFilter > classes, but I am using the vtkSMPropertyHelper to take care of the > boilerplate code. > > > Right. Unfortunately, implementing my suggestion would require creating a > subclass of vtkPVGlyphFilter and importing that with a ParaView plugin. See > the ParaView Howto on how to add a filter to ParaView. > > After I created a new class that has this extra scaling option, how would I > go about using this in such a pipeline? Do I need to 'register' my > "ModifiedGlyph" to the filter proxies to be able to do something like > `NewProxy("filters", "ModifiedGlyph")`? > > > Yes, that should do it. Your modified glyph class will be available once > you've imported the ParaView plugin mentioned above. > > A quick question about setting the active normals. Is there an existing way > to do this, or would I need to do this myself? I would like to do this the > same way one would set the "Scalars": > > > vtkSMPropertyHelper(glyph, "Normals") > .SetInputArrayToProcess(vtkDataObject::POINT, "ScalingArray"); > > > I think that should work. > > Best, > Cory > > > Looking forward to your reply. > > Best, > Ahmad > > > > ________________________________ > Van: Cory Quammen > Verzonden: dinsdag 9 januari 2018 15:30 > Aan: Ahmad . > CC: paraview at paraview.org > Onderwerp: Re: [Paraview] Scaling cylinder glyph's radius and height > individually > > Hi Ahmad, > > Alas, reading the code of vtkGlyph3D, you cannot orient by a vector > array different from the vector array used to do the scaling using the > functionality in ParaView. You would have to modify either > vtkPVGlyphFilter or its parent class vtkGlyph3D, to do this, and > expose the new VTK class through a ParaView plugin [1]. A simple > modification would be to add a ScaleMode, say VTK_SCALE_BY_NORMAL, to > vtkGlyph3D, and then set the active normals in your data set to the > vector by which you wish to scale. Then the "vectors" property could > control the orientation and the active normals would control the > scale. That's kind of kludgey, but it would be a fairly fast > modification to make. > > HTH, > Cory > > [1] https://www.paraview.org/Wiki/ParaView/Plugin_HowTo > ParaView/Plugin HowTo - KitwarePublic > www.paraview.org > Introduction. ParaView comes with plethora of functionality bundled in: > several readers, multitude of filters, quite a few different types of views > etc. > > > > > On Tue, Jan 9, 2018 at 7:43 AM, Ahmad . wrote: >> Just want to add that a programmatic (C++) solution is preferred rather >> than >> using the GUI >> >> >> I have a C++ pipeline where I can set the properties of the cylinder glyph >> with vtkSMPropertyHelper. >> >> I have looked in filters.xml under vtkPVGlyphFilter source proxy (file >> located in >> /ParaViewCore/ServerManager/SMApplication/Resources) to see >> what my options are, but there is only one "SetInputArrayToProcess" that >> takes a vector attribute as input; nothing about a vector specifically for >> orientation.. >> >> Suggestions on how to handle this issue, are very welcome; other >> approaches >> than mine as well! >> >> ________________________________ >> Van: Ahmad . >> Verzonden: maandag 8 januari 2018 20:52 >> Aan: paraview at paraview.org >> Onderwerp: Re: Scaling cylinder glyph's radius and height individually >> >> >> Following up on my own question, I found out that if I scale by "Vector >> Components" it is possible to change the length of the cylinders with the >> second vector index, and the radius with the first and third. I need to >> rearrange my attribute data as such: [radius_x, length, radius_z]. If I >> keep >> radius_x == radius_z, then the cylinder will not deform, and the cross >> section stays a perfect circle. See the image in the attachment please. >> >> >> BUT the problem here is that "vector components" also affects the >> orientation of my cylindrical glyphs. I can turn this off in the >> properties >> menu, but I need to orient my cylinders based on another vector attribute >> data... >> >> >> I feel I'm getting somewhere, but if someone could give me an idea on how >> to >> now orient my glyphs with another vector data than the one I use now for >> scaling, that would be much appreciated! >> >> >> Best, >> Ahmad >> >> ________________________________ >> Van: Ahmad . >> Verzonden: maandag 8 januari 2018 18:01 >> Aan: paraview at paraview.org >> Onderwerp: Scaling cylinder glyph's radius and height individually >> >> >> Dear community, >> >> >> When I try to scale cylindrical glyph objects by a 'Scalar', it scales >> both >> the radius and height of the glyphs. >> >> Is there a way to scale the radius by a Scalar1, and the height be a >> Scalar2? >> >> >> I have an unstructured grid, and for each point I want to create a >> cylinder >> that can have an arbitrary radius and height. >> >> I thought Glyphs would be the way to go, but I'm kind of stuck with this >> issue. >> >> >> Any help is much appreciated; or if you can recommend a different way to >> achieve the above-mentioned please let me know! >> >> >> Best, >> >> Ahmad >> >> >> _______________________________________________ >> 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 > ParaView - KitwarePublic > paraview.org > ParaView is an open-source, multi-platform application designed to visualize > data sets of varying sizes from small to very large. The goals of the > ParaView project ... > > >> >> Search the list archives at: http://markmail.org/search/?q=ParaView >> >> Follow this link to subscribe/unsubscribe: >> https://paraview.org/mailman/listinfo/paraview > ParaView Info Page > paraview.org > To see the collection of prior postings to the list, visit the ParaView > Archives. Using ParaView: To post a message to all the list members, send > ... > > >> > > > > -- > Cory Quammen > Staff R&D Engineer > Kitware, Inc. > > > > > -- > Cory Quammen > Staff R&D Engineer > Kitware, Inc. -- Cory Quammen Staff R&D Engineer Kitware, Inc. From juan.e.sanchez at gmail.com Sat Feb 3 14:26:59 2018 From: juan.e.sanchez at gmail.com (Juan Sanchez) Date: Sat, 3 Feb 2018 13:26:59 -0600 Subject: [Paraview] Issues creating paraview input Message-ID: Hello, I have a multiblock vtu writer and an ASCII tecplot writer that I wrote for my software several years ago, and seems to work fine when read into Visit. However, I am having a very difficult time getting any results to work in paraview. Tecplot: 1. Tecplot Files fails when trying to display data 2. Tecplot Files (visit) only sees point data and not any element data. My assumption for the Tecplot readers is that there is probably a line length limitation somewhere in both tecplot readers. Causing the readers to silently fail in odd places. Paraview: Paraview reader is able to read my vtm, and vtu files, once I tell it that the vtm file is multiblock format. Surface plots work, but all but one volume disappears for the volume plot. Question: Is there a file format library for Python that is known to generate good results for Paraview? An example for these listed requirements would be most helpful: 1. 2d (triangular) or 3d (tetrahedral) mesh 2. multiple blocks to the structure. 3. Vertex centered point data 4. Element centered vector data 5. Use modules available in a full featured Python distribution (like Anaconda Python). - vtk - h5py The reason why I would like it in Python, is that I no longer wish to compile new file format writers into my application. Regards, Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: From super_achie at hotmail.com Sat Feb 3 15:01:48 2018 From: super_achie at hotmail.com (Ahmad .) Date: Sat, 3 Feb 2018 20:01:48 +0000 Subject: [Paraview] Scaling cylinder glyph's radius and height individually In-Reply-To: References: , Message-ID: Thanks Cory, that's the function I was looking for. Got it working now ? I attached a working version for anyone interested; README inside with some instructions Cheers! ________________________________ Van: Cory Quammen Verzonden: vrijdag 2 februari 2018 21:35 Aan: Ahmad . CC: ParaView Onderwerp: Re: [Paraview] Scaling cylinder glyph's radius and height individually Ahmad, First, I recommend that you try loading your plugin in the ParaView UI, using the ParaView that you built your plugin against. Then, in Tools -> Manage Plugins. Click on Load New... and select the file libvtkPVGlyphFilterP.so. You should now be able to find your filter GlyphP in the Filters menu. Second, to instantiate the filter the way you are trying is correct, but first you need to load the plugin. I believe you can do it this way: vtkSMPluginManager::LoadLocalPlugin("//libvtkPVGlyphFilterP.so"); HTH, Cory On Thu, Feb 1, 2018 at 1:12 PM, Ahmad . wrote: > Sorry about that Cory; will keep this in the mailing list. > > > I have tried to implement your suggestion, and now I have generated a plugin > file "libvtkPVGlyphFilterP.so". > > Please find the files I used to create this plugin in the attachment. > > > What I did after compiling the plugin: > > > Try to use the new class I made, like such: > `session_manager_->NewProxy("filters", "GlyphP")));` > where GlyphP is what I called my custom glyph filter (see the xml file in > the attachment). > Compile my application against "libvtkPVGlyphFilterP.so". > Run my application and get the following error: > > > ERROR: In > /home/ahmad/paraview/ParaViewCore/ServerImplementation/Core/vtkSIProxyDefinitionManager.cxx, > line 526 > vtkSIProxyDefinitionManager (0x294d320): No proxy that matches: > group=filters and proxy=GlyphP were found. > > I feel like I am missing an important step, which has to do with the XML > file, but I don't know how. > > In the Plugin Wiki of ParaView the instructions I find after compiling are: > Then using cmake and a build system, one can build a plugin for this new > filter. Once this plugin is loaded the filter will appear under the > "Alphabetical" list in the Filters menu. > There are no instructions on how to use the new class in a C++ pipeline... > > Any pointers on this? > > Best, > Ahmad > > ________________________________ > Van: Cory Quammen > Verzonden: vrijdag 19 januari 2018 16:59 > Aan: Ahmad .; ParaView > > Onderwerp: Re: [Paraview] Scaling cylinder glyph's radius and height > individually > > Ahmad, > > Please keep replies on the mailing list. Responses are inlined. > > On Tue, Jan 16, 2018 at 9:25 AM, Ahmad . wrote: > > Hi Cory, > > > Thanks for your reply. > > > I am trying to implement your suggestion of extending the vtkGlyph3D with > this additional "scaling by normals". > > The idea seems quite straightforward. I was just wondering how to > incorporate this new class in my C++ pipeline. > > Currently I create the glyph, and set its properties, like this: > > > vtkSmartPointer glyph; > glyph.TakeReference(vtkSMSourceProxy::SafeDownCast( > session_manager_->NewProxy("filters", "Glyph"))); > controller_->PreInitializeProxy(glyph); > > vtkSMPropertyHelper(glyph, "Input").Set(producer); > vtkSMPropertyHelper(glyph, "Source").Set(GetCylinderSource(glyph)); > vtkSMPropertyHelper(glyph, "ScaleMode", true).Set(0); > vtkSMPropertyHelper(glyph, "ScaleFactor", true).Set(1.0); > vtkSMPropertyHelper(glyph, "GlyphMode", true).Set(0); > > As you can see I am not directly working with vtkGlyph3D or vtkPVGlyphFilter > classes, but I am using the vtkSMPropertyHelper to take care of the > boilerplate code. > > > Right. Unfortunately, implementing my suggestion would require creating a > subclass of vtkPVGlyphFilter and importing that with a ParaView plugin. See > the ParaView Howto on how to add a filter to ParaView. > > After I created a new class that has this extra scaling option, how would I > go about using this in such a pipeline? Do I need to 'register' my > "ModifiedGlyph" to the filter proxies to be able to do something like > `NewProxy("filters", "ModifiedGlyph")`? > > > Yes, that should do it. Your modified glyph class will be available once > you've imported the ParaView plugin mentioned above. > > A quick question about setting the active normals. Is there an existing way > to do this, or would I need to do this myself? I would like to do this the > same way one would set the "Scalars": > > > vtkSMPropertyHelper(glyph, "Normals") > .SetInputArrayToProcess(vtkDataObject::POINT, "ScalingArray"); > > > I think that should work. > > Best, > Cory > > > Looking forward to your reply. > > Best, > Ahmad > > > > ________________________________ > Van: Cory Quammen > Verzonden: dinsdag 9 januari 2018 15:30 > Aan: Ahmad . > CC: paraview at paraview.org > Onderwerp: Re: [Paraview] Scaling cylinder glyph's radius and height > individually > > Hi Ahmad, > > Alas, reading the code of vtkGlyph3D, you cannot orient by a vector > array different from the vector array used to do the scaling using the > functionality in ParaView. You would have to modify either > vtkPVGlyphFilter or its parent class vtkGlyph3D, to do this, and > expose the new VTK class through a ParaView plugin [1]. A simple > modification would be to add a ScaleMode, say VTK_SCALE_BY_NORMAL, to > vtkGlyph3D, and then set the active normals in your data set to the > vector by which you wish to scale. Then the "vectors" property could > control the orientation and the active normals would control the > scale. That's kind of kludgey, but it would be a fairly fast > modification to make. > > HTH, > Cory > > [1] https://www.paraview.org/Wiki/ParaView/Plugin_HowTo ParaView/Plugin HowTo - KitwarePublic www.paraview.org Introduction. ParaView comes with plethora of functionality bundled in: several readers, multitude of filters, quite a few different types of views etc. > ParaView/Plugin HowTo - KitwarePublic > www.paraview.org [https://www.paraview.org/wp-content/uploads/2016/01/paraview_logo.png] ParaView www.paraview.org Welcome to ParaView. ParaView is an open-source, multi-platform data analysis and visualization application. ParaView users can quickly build visualizations to ... > Introduction. ParaView comes with plethora of functionality bundled in: > several readers, multitude of filters, quite a few different types of views > etc. > > > > > On Tue, Jan 9, 2018 at 7:43 AM, Ahmad . wrote: >> Just want to add that a programmatic (C++) solution is preferred rather >> than >> using the GUI >> >> >> I have a C++ pipeline where I can set the properties of the cylinder glyph >> with vtkSMPropertyHelper. >> >> I have looked in filters.xml under vtkPVGlyphFilter source proxy (file >> located in >> /ParaViewCore/ServerManager/SMApplication/Resources) to see >> what my options are, but there is only one "SetInputArrayToProcess" that >> takes a vector attribute as input; nothing about a vector specifically for >> orientation.. >> >> Suggestions on how to handle this issue, are very welcome; other >> approaches >> than mine as well! >> >> ________________________________ >> Van: Ahmad . >> Verzonden: maandag 8 januari 2018 20:52 >> Aan: paraview at paraview.org >> Onderwerp: Re: Scaling cylinder glyph's radius and height individually >> >> >> Following up on my own question, I found out that if I scale by "Vector >> Components" it is possible to change the length of the cylinders with the >> second vector index, and the radius with the first and third. I need to >> rearrange my attribute data as such: [radius_x, length, radius_z]. If I >> keep >> radius_x == radius_z, then the cylinder will not deform, and the cross >> section stays a perfect circle. See the image in the attachment please. >> >> >> BUT the problem here is that "vector components" also affects the >> orientation of my cylindrical glyphs. I can turn this off in the >> properties >> menu, but I need to orient my cylinders based on another vector attribute >> data... >> >> >> I feel I'm getting somewhere, but if someone could give me an idea on how >> to >> now orient my glyphs with another vector data than the one I use now for >> scaling, that would be much appreciated! >> >> >> Best, >> Ahmad >> >> ________________________________ >> Van: Ahmad . >> Verzonden: maandag 8 januari 2018 18:01 >> Aan: paraview at paraview.org >> Onderwerp: Scaling cylinder glyph's radius and height individually >> >> >> Dear community, >> >> >> When I try to scale cylindrical glyph objects by a 'Scalar', it scales >> both >> the radius and height of the glyphs. >> >> Is there a way to scale the radius by a Scalar1, and the height be a >> Scalar2? >> >> >> I have an unstructured grid, and for each point I want to create a >> cylinder >> that can have an arbitrary radius and height. >> >> I thought Glyphs would be the way to go, but I'm kind of stuck with this >> issue. >> >> >> Any help is much appreciated; or if you can recommend a different way to >> achieve the above-mentioned please let me know! >> >> >> Best, >> >> Ahmad >> >> >> _______________________________________________ >> 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 ParaView - KitwarePublic paraview.org ParaView is an open-source, multi-platform application designed to visualize data sets of varying sizes from small to very large. The goals of the ParaView project ... > ParaView - KitwarePublic > paraview.org > ParaView is an open-source, multi-platform application designed to visualize > data sets of varying sizes from small to very large. The goals of the > ParaView project ... > > >> >> Search the list archives at: http://markmail.org/search/?q=ParaView >> >> Follow this link to subscribe/unsubscribe: >> https://paraview.org/mailman/listinfo/paraview ParaView Info Page paraview.org To see the collection of prior postings to the list, visit the ParaView Archives. Using ParaView: To post a message to all the list members, send ... > ParaView Info Page > paraview.org > To see the collection of prior postings to the list, visit the ParaView > Archives. Using ParaView: To post a message to all the list members, send > ... > > >> > > > > -- > Cory Quammen > Staff R&D Engineer > Kitware, Inc. > > > > > -- > Cory Quammen > Staff R&D Engineer > Kitware, Inc. -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GlyphExtended.tar.gz Type: application/gzip Size: 13211 bytes Desc: GlyphExtended.tar.gz URL: From paul.carrico at free.fr Mon Feb 5 03:26:33 2018 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Mon, 05 Feb 2018 09:26:33 +0100 Subject: [Paraview] FEM solver interfaced with Paraview Message-ID: <8ddcee335f6c5358e4c7c3e80a36bb6b@free.fr> Dear all, A while ago, I've initiated an internal project to export results from my Finite Element solver (mechanical and thermal FEA's) and to visualize it into Paraview (https://www.paraview.org/pipermail/paraview/2017-November/041481.html); but I was quite overloaded and this topic has been postponed. Currently the format of my the solver is not a part of the list (https://www.paraview.org/Wiki/ParaView/Users_Guide/List_of_readers), and I'm thinking about the strategy to get the results, to perform additional calculations, and finally to post-process it into Paraview. _Nota_: I'm using 2D and 3D meshes, structures and unstructured ones, with different element orders, and different type of results (nodal values and/or cell ones). Some of the following questions have probably ever been asked, but: * What is the best format to create a result file readable by Paraview, especially for huge file? after some readings, VTK XML format seems to be the most interesting (parallelization capabilities) compared to the legacy VTK one, am I right or do ou have any other suggestion? * I'm still trying to figure out if xdmf and/or hdf5 format are relevant, and if they are relevant for my application: any feedback on it? The workflow I'm imaginating sounds like: Intermediate calculations ^ | Raw data (ascii file) from my solver --> intermediate file in xdmf or hdf5 format --> Paraview input file (depending on the reader) Any feedback, advice and suggestion will be highly appreciated (I'm quite new with Paraview) Regards Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From fabian.wein at fau.de Mon Feb 5 04:12:50 2018 From: fabian.wein at fau.de (Fabian Wein) Date: Mon, 5 Feb 2018 10:12:50 +0100 Subject: [Paraview] FEM solver interfaced with Paraview In-Reply-To: <8ddcee335f6c5358e4c7c3e80a36bb6b@free.fr> References: <8ddcee335f6c5358e4c7c3e80a36bb6b@free.fr> Message-ID: of the following questions have probably ever been asked, but: > > 1. What is the best format to create a result file readable by Paraview, especially for huge file? after some readings, VTK XML format seems to be the most interesting (parallelization capabilities) compared to the legacy VTK one, am I right or do ou have any other suggestion? > 2. I?m still trying to figure out if xdmf and/or hdf5 format are relevant, and if they are relevant for my application: any feedback on it? > > The workflow I?m imaginating sounds like: > > ??????????????????????????????????????????????????????????????????????????????????? ?Intermediate calculations > > Raw data (ascii file) from my solver --> intermediate file in xdmf or hdf5 format --> Paraview input file (depending on the reader) To my understanding there is no xdmf OR hdf5: http://xdmf.org/index.php/Main_Page We also have an own FEM Code. We export directly hdf5 files (w/o xdmf) which we read with an own paraview reader plugin. Now we would probably try xdmf and see if we can circumvent having an own reader plugin. hdf5 has libs for all languages (C/C++, Python, Matlab) and e.g. the handling in Python is quite convenient. Almost a one-liner. The hdf5 C/C++ lib for writing the data is not the best software I know but it is ok. I would not export to ascii first but directly use the hdf5 libs. Fabian From cory.quammen at kitware.com Mon Feb 5 10:32:22 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 5 Feb 2018 10:32:22 -0500 Subject: [Paraview] FEM solver interfaced with Paraview In-Reply-To: <8ddcee335f6c5358e4c7c3e80a36bb6b@free.fr> References: <8ddcee335f6c5358e4c7c3e80a36bb6b@free.fr> Message-ID: [snip] > Some of the following questions have probably ever been asked, but: > > What is the best format to create a result file readable by Paraview, > especially for huge file? after some readings, VTK XML format seems to be > the most interesting (parallelization capabilities) compared to the legacy > VTK one, am I right or do ou have any other suggestion? You are right, the VTK XML file formats are quite capable; I would avoid the legacy formats. > I?m still trying to figure out if xdmf and/or hdf5 format are relevant, and > if they are relevant for my application: any feedback on it? > Personally, having worked with writing to both types of data sets, I would choose VTK XML over XDMF. > > The workflow I?m imaginating sounds like: > > > Intermediate calculations > ^ > | > > Raw data (ascii file) from my solver --> intermediate file in xdmf or hdf5 > format --> Paraview input file (depending on the reader) If you choose to ultimately write out to VTK XML files, I would skip the intermediate file writing step. HTH, Cory > > Any feedback, advice and suggestion will be highly appreciated > > (I?m quite new with Paraview) > > > Regards > > > Paul > > > _______________________________________________ > 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: > https://paraview.org/mailman/listinfo/paraview > -- Cory Quammen Staff R&D Engineer Kitware, Inc. From djortley at gmail.com Mon Feb 5 16:59:57 2018 From: djortley at gmail.com (David Ortley) Date: Mon, 5 Feb 2018 14:59:57 -0700 Subject: [Paraview] Pasting multiple .csv inputs together Message-ID: All, Say I have a .csv file containing x, y and z output from a simulation, and a second .csv file with the same number of rows that contains just a single column containing something such as pressure. Is there a Paraview equivalent of the unix 'paste' command that will do a column bind? Some way to turn something that might look like: geom.csv: x,y,z -1,-1,0 0,0,1.2 ... press.csv: pres 1.23 3.45 ... into: x,y,z,pres -1,-1,0,1.23 0,0,1.2,3.45 ... Or some way to amend a set of points from TableToPoints with a loaded .csv? Obviously the assumption is that the information in the additional file is in the same order as the loaded geometry. -David Ortley -------------- next part -------------- An HTML attachment was scrubbed... URL: From jgonzalez49 at ucmerced.edu Mon Feb 5 17:27:22 2018 From: jgonzalez49 at ucmerced.edu (Jeremias Gonzalez) Date: Mon, 5 Feb 2018 14:27:22 -0800 Subject: [Paraview] Using Probe Filter To Get The Average Value Around A Point Message-ID: Hi, I'm trying to find a way to get the average value around a point in a mesh that I know to be noisy due to its coarseness. Currently, I am unable to understand determine the exact nature of the radius and number of point parameters from the documentation ( https://www.paraview.org/ParaView/Doc/Nightly/www/py-doc/paraview.simple.ProbeLocation.html ), but I am guessing from some third party posts that the radius enables one to find a point nearby to a desired point in a given region, and the number of points expands the amount captured. The problem I have past that, if those are correct understandings, is what to do with the probe once I have it. Looking at the resulting spreadsheet from using the probe location with a given radius and number of points each labelled from 0 to 99, for example, it seems that I may have to use another loop, after I introduce and use the probe, with code like my_running_total=0 for y in range(0, 99): my_running_total += mycalcprobepoint.GetPointData(y).GetArray('Result').GetValue(0) my_running_total /= 100 that will take that batch of points collected by the probe and average all the values I want. Is this the correct interpretation, and a valid way to carry out this objective? From kmorel at sandia.gov Mon Feb 5 19:57:05 2018 From: kmorel at sandia.gov (Moreland, Kenneth) Date: Tue, 6 Feb 2018 00:57:05 +0000 Subject: [Paraview] Using Probe Filter To Get The Average Value Around A Point Message-ID: <28067C7F-8443-4DEB-BCC7-504D72F38B5C@sandia.gov> Jeremias, When you set a radius and number of points in the probe filter, then the filter will randomly sample the volume within the defined sphere the number of times requested. The resulting values are the field values at those randomly sampled locations. An easy way to get an average of your samples is to run the result of the probe filter through the descriptive statistics filter. Look at the "Statistical Model" table and it will report the mean value for each field. (Note that if you are using ParaView 5.4 there is a bug, #17627, that shows the Statistical Model table wrong by default. You have to also change the Composite Data Set Index parameter in the Display part of the properties panel to select only the Derived Statistics block.) A couple of caveats to this approach. First, because the sampling is random, don't expect the exact same answer every time you run it. Second, if one of the samples happens to lie outside of the mesh, that sample will be filled with 0's for all fields. That will throw off the average value. That said, another approach you might want to take is to first filter the data in a way that blurs out the noise first. One way you can do that is to run the Point Volume Interpolator filter. Change the Kernel to something like Gaussian (the default Voronoi filter will not do the averaging that you want). Set the radius appropriately. You can then probe the resulting data set with a single value (radius 0) and immediate see the "averaged" result. -Ken ?On 2/5/18, 5:27 PM, "ParaView on behalf of Jeremias Gonzalez" wrote: Hi, I'm trying to find a way to get the average value around a point in a mesh that I know to be noisy due to its coarseness. Currently, I am unable to understand determine the exact nature of the radius and number of point parameters from the documentation ( https://www.paraview.org/ParaView/Doc/Nightly/www/py-doc/paraview.simple.ProbeLocation.html ), but I am guessing from some third party posts that the radius enables one to find a point nearby to a desired point in a given region, and the number of points expands the amount captured. The problem I have past that, if those are correct understandings, is what to do with the probe once I have it. Looking at the resulting spreadsheet from using the probe location with a given radius and number of points each labelled from 0 to 99, for example, it seems that I may have to use another loop, after I introduce and use the probe, with code like my_running_total=0 for y in range(0, 99): my_running_total += mycalcprobepoint.GetPointData(y).GetArray('Result').GetValue(0) my_running_total /= 100 that will take that batch of points collected by the probe and average all the values I want. Is this the correct interpretation, and a valid way to carry out this objective? _______________________________________________ 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: https://paraview.org/mailman/listinfo/paraview From simon.michalke at fau.de Tue Feb 6 04:37:25 2018 From: simon.michalke at fau.de (Michalke, Simon) Date: Tue, 06 Feb 2018 10:37:25 +0100 Subject: [Paraview] PythonFullExample does not send any data Message-ID: <64c182b2855bc54fcfcf3cd0b4d5ea15@fau.de> Hello, I am trying to code a tool to send live data from a simulation to paraview. I build my paraview with the latest superbuild and with system python (3.4m). Then I tried to run the "PythonFullExample". After un-commenting line 25 in fedriver.py: coprocessor.addscript("cpscript.py") the script still does not send any data. There are no error messages as well. I made sure that paraview is listening to the correct port. In general, I cannot find any python example on how to attach values to a poly element or a point. Regards, Simon Michalke From maria.dimitrova at helsinki.fi Tue Feb 6 07:01:16 2018 From: maria.dimitrova at helsinki.fi (Dimitrova, Maria) Date: Tue, 6 Feb 2018 12:01:16 +0000 Subject: [Paraview] Segmentation fault when trying to use the SurfaceLIC representation for a vti file Message-ID: Hello, I am having issues with a new installation of Paraview on a Debian computer. I have loaded the SurfaceLIC plugin and open a vti file. When I select the SurfaceLIC representation Paraview crashes with the following output on the command line: $ paraview Generic Warning: In /build/paraview-NOjbRJ/paraview-5.1.2+dfsg1/VTK/Rendering/Volume/vtkVolumeTextureMapper3D.cxx, line 682 vtkVolumeTextureMapper3D::vtkVolumeTextureMapper3D was deprecated for VTK 7.0 and will be removed in a future version. Generic Warning: In /build/paraview-NOjbRJ/paraview-5.1.2+dfsg1/VTK/Rendering/VolumeOpenGL/vtkOpenGLVolumeTextureMapper3D.cxx, line 57 vtkOpenGLVolumeTextureMapper3D::vtkOpenGLVolumeTextureMapper3D was deprecated for VTK 7.0 and will be removed in a future version. ERROR: In /build/paraview-NOjbRJ/paraview-5.1.2+dfsg1/VTK/Rendering/OpenGL/vtkPixelBufferObject.cxx, line 578 vtkPixelBufferObject (0x55e89ba74ed0): failed at glBufferData 1 OpenGL errors detected 0 : (1285) Out of memory ERROR: In /build/paraview-NOjbRJ/paraview-5.1.2+dfsg1/VTK/Rendering/OpenGL/vtkTextureObject.cxx, line 1456 vtkTextureObject (0x55e89b57e1c0): failed at glGetTexImage 1 OpenGL errors detected 0 : (1282) Invalid operation ERROR: In /build/paraview-NOjbRJ/paraview-5.1.2+dfsg1/VTK/Rendering/OpenGL/vtkPixelBufferObject.cxx, line 504 vtkPixelBufferObject (0x55e89ba74ed0): failed at glMapBuffer 1 OpenGL errors detected 0 : (1282) Invalid operation Segmentation fault The vti files can be processed successfully on other computers. Has anybody else come across this kind of problem? Best regards, Maria -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy.bauer at kitware.com Tue Feb 6 08:18:58 2018 From: andy.bauer at kitware.com (Andy Bauer) Date: Tue, 6 Feb 2018 08:18:58 -0500 Subject: [Paraview] PythonFullExample does not send any data In-Reply-To: <64c182b2855bc54fcfcf3cd0b4d5ea15@fau.de> References: <64c182b2855bc54fcfcf3cd0b4d5ea15@fau.de> Message-ID: In cpscript.py you will need to change the following line: coprocessor.EnableLiveVisualization(False, 1) to: coprocessor.EnableLiveVisualization(True, 1) As for building VTK objects through the Python API, the VTK Examples at https://lorensen.github.io/VTKExamples/site/Python/ should have several will help you out. Cheers, Andy On Tue, Feb 6, 2018 at 4:37 AM, Michalke, Simon wrote: > Hello, > > I am trying to code a tool to send live data from a simulation to > paraview. I build my paraview with the latest superbuild and with system > python (3.4m). Then I tried to run the "PythonFullExample". After > un-commenting line 25 in fedriver.py: > coprocessor.addscript("cpscript.py") > the script still does not send any data. There are no error messages as > well. I made sure that paraview is listening to the correct port. > > In general, I cannot find any python example on how to attach values to a > poly element or a point. > > Regards, > Simon Michalke > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensou > rce/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: > https://paraview.org/mailman/listinfo/paraview > -------------- next part -------------- An HTML attachment was scrubbed... URL: From simon.michalke at fau.de Tue Feb 6 10:44:06 2018 From: simon.michalke at fau.de (Michalke, Simon) Date: Tue, 06 Feb 2018 16:44:06 +0100 Subject: [Paraview] PythonFullExample does not send any data In-Reply-To: References: <64c182b2855bc54fcfcf3cd0b4d5ea15@fau.de> Message-ID: Thank you very much, it works now. Since I am getting the initial data via http and process it manually, is there a way to "directly" open a connection and send data? I think the coprocessor structure is not suitable for my case. Something like: con = openConnection() con.sendData(data) con.sendData(data) con.sendData(data) con.close() where data is something like vtkPolyData. Or, alternatively transfer the grid at the beginning and only send the data as vtk*Array itself after first initialization. Cheers, Simon Am 2018-02-06 14:18, schrieb Andy Bauer: > In cpscript.py you will need to change the following line: > coprocessor.EnableLiveVisualization(False, 1) > > to: > coprocessor.EnableLiveVisualization(True, 1) > > As for building VTK objects through the Python API, the VTK Examples at > https://lorensen.github.io/VTKExamples/site/Python/ should have several > will help you out. > > Cheers, > Andy > > On Tue, Feb 6, 2018 at 4:37 AM, Michalke, Simon > wrote: > >> Hello, >> >> I am trying to code a tool to send live data from a simulation to >> paraview. I build my paraview with the latest superbuild and with >> system >> python (3.4m). Then I tried to run the "PythonFullExample". After >> un-commenting line 25 in fedriver.py: >> coprocessor.addscript("cpscript.py") >> the script still does not send any data. There are no error messages >> as >> well. I made sure that paraview is listening to the correct port. >> >> In general, I cannot find any python example on how to attach values >> to a >> poly element or a point. >> >> Regards, >> Simon Michalke >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensou >> rce/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: >> https://paraview.org/mailman/listinfo/paraview >> From th.lauke at arcor.de Tue Feb 6 12:32:54 2018 From: th.lauke at arcor.de (th.lauke at arcor.de) Date: Tue, 6 Feb 2018 18:32:54 +0100 (CET) Subject: [Paraview] file naming of downloadable data files In-Reply-To: <234429046.15929.1517937026358@mail.vodafone.de> References: <0be9c1674c3794c35a115486d102b382@www.kitware.com> <1745149018.7299.1517902861625@mail.vodafone.de> <308934171.15134.1517933576735@mail.vodafone.de> <2134928684.15827.1517936635602@mail.vodafone.de> <234429046.15929.1517937026358@mail.vodafone.de> Message-ID: <173864583.16224.1517938374185@mail.vodafone.de> Hi all, the data files https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v5.4&type=binary&os=Sources&downloadFile=ParaViewData-v5.4.1.tar.gz e.g. have a confusing file naming :( What's the intention for this? Thus I could hardly identify the wanted file :[ Many thanks for an explanation Thomas From andy.bauer at kitware.com Tue Feb 6 17:40:40 2018 From: andy.bauer at kitware.com (Andy Bauer) Date: Tue, 6 Feb 2018 17:40:40 -0500 Subject: [Paraview] PythonFullExample does not send any data In-Reply-To: References: <64c182b2855bc54fcfcf3cd0b4d5ea15@fau.de> Message-ID: Hi Simon, I'm confused a to where the data is being sent from and to. If it's from the simulation and to the adaptor then all of that would get done before Catalyst would ever see it. If it's from the adaptor to Catalyst or to the PV GUI through the Live connection you'll probably want to look at coprocessing.py and grep through it for "live". I don't look too often at the Live sections of the code so it would take a bit of time to go through all of the details on it properly. Best, Andy On Tue, Feb 6, 2018 at 10:44 AM, Michalke, Simon wrote: > Thank you very much, it works now. > > Since I am getting the initial data via http and process it manually, is > there a way to "directly" open a connection and send data? I think the > coprocessor structure is not suitable for my case. Something like: > > con = openConnection() > > con.sendData(data) > con.sendData(data) > con.sendData(data) > > con.close() > > where data is something like vtkPolyData. Or, alternatively transfer the > grid at the beginning and only send the data as vtk*Array itself after > first initialization. > > Cheers, > Simon > > > Am 2018-02-06 14:18, schrieb Andy Bauer: > >> In cpscript.py you will need to change the following line: >> coprocessor.EnableLiveVisualization(False, 1) >> >> to: >> coprocessor.EnableLiveVisualization(True, 1) >> >> As for building VTK objects through the Python API, the VTK Examples at >> https://lorensen.github.io/VTKExamples/site/Python/ should have several >> will help you out. >> >> Cheers, >> Andy >> >> On Tue, Feb 6, 2018 at 4:37 AM, Michalke, Simon >> wrote: >> >> Hello, >>> >>> I am trying to code a tool to send live data from a simulation to >>> paraview. I build my paraview with the latest superbuild and with system >>> python (3.4m). Then I tried to run the "PythonFullExample". After >>> un-commenting line 25 in fedriver.py: >>> coprocessor.addscript("cpscript.py") >>> the script still does not send any data. There are no error messages as >>> well. I made sure that paraview is listening to the correct port. >>> >>> In general, I cannot find any python example on how to attach values to a >>> poly element or a point. >>> >>> Regards, >>> Simon Michalke >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensou >>> rce/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: >>> https://paraview.org/mailman/listinfo/paraview >>> >>> -------------- next part -------------- An HTML attachment was scrubbed... URL: From jgonzalez49 at ucmerced.edu Tue Feb 6 20:21:37 2018 From: jgonzalez49 at ucmerced.edu (Jeremias Gonzalez) Date: Tue, 6 Feb 2018 17:21:37 -0800 Subject: [Paraview] Using Probe Filter To Get The Average Value Around A Point In-Reply-To: <28067C7F-8443-4DEB-BCC7-504D72F38B5C@sandia.gov> References: <28067C7F-8443-4DEB-BCC7-504D72F38B5C@sandia.gov> Message-ID: <607343c2-fbc3-6dfb-ec3d-0cc0182e51d7@ucmerced.edu> Thank you very much for your explanations and suggestions. Responses interspersed below. On 2/5/2018 4:57 PM, Moreland, Kenneth wrote: > Jeremias, > > When you set a radius and number of points in the probe filter, then the filter will randomly sample the volume within the defined sphere the number of times requested. The resulting values are the field values at those randomly sampled locations. > > An easy way to get an average of your samples is to run the result of the probe filter through the descriptive statistics filter. Look at the "Statistical Model" table and it will report the mean value for each field. (Note that if you are using ParaView 5.4 there is a bug, #17627, that shows the Statistical Model table wrong by default. You have to also change the Composite Data Set Index parameter in the Display part of the properties panel to select only the Derived Statistics block.) > > A couple of caveats to this approach. First, because the sampling is random, don't expect the exact same answer every time you run it. Second, if one of the samples happens to lie outside of the mesh, that sample will be filled with 0's for all fields. That will throw off the average value. Is there a probe setting that will simply grab all the points living in the original mesh within the radius of the sphere I choose? > > That said, another approach you might want to take is to first filter the data in a way that blurs out the noise first. One way you can do that is to run the Point Volume Interpolator filter. Change the Kernel to something like Gaussian (the default Voronoi filter will not do the averaging that you want). Set the radius appropriately. You can then probe the resulting data set with a single value (radius 0) and immediate see the "averaged" result. > > -Ken I don't seem to be finding any information on what exactly the Gaussian kernel does with the data, so how close is it to the plain averaging I would like it to be doing? From kmorel at sandia.gov Tue Feb 6 21:45:33 2018 From: kmorel at sandia.gov (Moreland, Kenneth) Date: Wed, 7 Feb 2018 02:45:33 +0000 Subject: [Paraview] Using Probe Filter To Get The Average Value Around A Point In-Reply-To: <607343c2-fbc3-6dfb-ec3d-0cc0182e51d7@ucmerced.edu> References: <28067C7F-8443-4DEB-BCC7-504D72F38B5C@sandia.gov>, <607343c2-fbc3-6dfb-ec3d-0cc0182e51d7@ucmerced.edu> Message-ID: <352A5591-BA22-4421-A2C3-1ADDA46D2F1D@sandia.gov> As far as I know, there is no way to get the probe filter to get all points within a radius as you describe. You may instead consider the Point Data to Cell Data Filter. That will for each cell take the values of all attached points and average them. The point volume interpolator filter will create a grid (by default 100^3) and, in gaussian kernel mode, will ?splat? a gaussian function onto the grid from every point. Another way to think of it is that a 3D gaussian function is convolved with a 3D function comprising an impulse function at every point in the mesh scaled by the field value (and then sampled on the grid). -Ken Sent from my iPad > On Feb 6, 2018, at 8:21 PM, Jeremias Gonzalez wrote: > > Thank you very much for your explanations and suggestions. Responses interspersed below. > >> On 2/5/2018 4:57 PM, Moreland, Kenneth wrote: >> Jeremias, >> When you set a radius and number of points in the probe filter, then the filter will randomly sample the volume within the defined sphere the number of times requested. The resulting values are the field values at those randomly sampled locations. > >> An easy way to get an average of your samples is to run the result of the probe filter through the descriptive statistics filter. Look at the "Statistical Model" table and it will report the mean value for each field. (Note that if you are using ParaView 5.4 there is a bug, #17627, that shows the Statistical Model table wrong by default. You have to also change the Composite Data Set Index parameter in the Display part of the properties panel to select only the Derived Statistics block.) >> A couple of caveats to this approach. First, because the sampling is random, don't expect the exact same answer every time you run it. Second, if one of the samples happens to lie outside of the mesh, that sample will be filled with 0's for all fields. That will throw off the average value. > > Is there a probe setting that will simply grab all the points living in the original mesh within the radius of the sphere I choose? > >> That said, another approach you might want to take is to first filter the data in a way that blurs out the noise first. One way you can do that is to run the Point Volume Interpolator filter. Change the Kernel to something like Gaussian (the default Voronoi filter will not do the averaging that you want). Set the radius appropriately. You can then probe the resulting data set with a single value (radius 0) and immediate see the "averaged" result. >> -Ken > > I don't seem to be finding any information on what exactly the Gaussian kernel does with the data, so how close is it to the plain averaging I would like it to be doing? From steytle1 at illinois.edu Wed Feb 7 12:06:18 2018 From: steytle1 at illinois.edu (Steytler, Louis Louw) Date: Wed, 7 Feb 2018 17:06:18 +0000 Subject: [Paraview] Broken Streamlines Message-ID: <2F8BA25CC0B82C4DB6756F8F663E6DB36B6729B9@CITESMBX3.ad.uillinois.edu> Hi Everyone, When generating streamlines from a 3D computation, in some parts, the streamlines appear broken. This is shown in the attached image (the arrows point to the broken parts). Increasing the "Maximum Streamline Length" parameter did not help. Using the "Point to Cell Data" filter, and then generating streamlines on the cell data did not help. Although in the image shown the broken parts are in an area of low velocity, this happens in regions of high velocity as well. It also does not seem to depend on grid resolution, as the broken parts show up all over. Has anyone experienced anything like this? Any ideas how to work around this? Thanks very much, Louis Steytler Department of Mechanical Science and Engineering University of Illinois at Urbana-Champaign 1206 West Green Street Urbana, Il 61801 steytle1 at illinois.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: broken_streamlines.png Type: image/png Size: 318031 bytes Desc: broken_streamlines.png URL: From andy.bauer at kitware.com Wed Feb 7 12:23:27 2018 From: andy.bauer at kitware.com (Andy Bauer) Date: Wed, 7 Feb 2018 12:23:27 -0500 Subject: [Paraview] Broken Streamlines In-Reply-To: <2F8BA25CC0B82C4DB6756F8F663E6DB36B6729B9@CITESMBX3.ad.uillinois.edu> References: <2F8BA25CC0B82C4DB6756F8F663E6DB36B6729B9@CITESMBX3.ad.uillinois.edu> Message-ID: Hi, You may want to try playing with some of the advanced options for computing streamlines (click on the gear button in the upper right corner of the parameters for the filter). If that doesn't help, you may want to share your dataset so that we can investigate. Also, is this a 2D simulation? It may be that the streamline is going out of the plane of your grid and therefore terminating. --Andy On Wed, Feb 7, 2018 at 12:06 PM, Steytler, Louis Louw wrote: > Hi Everyone, > > When generating streamlines from a 3D computation, in some parts, the > streamlines appear broken. This is shown in the attached image (the arrows > point to the broken parts). > > Increasing the "Maximum Streamline Length" parameter did not help. > > Using the "Point to Cell Data" filter, and then generating streamlines on > the cell data did not help. > > Although in the image shown the broken parts are in an area of low > velocity, this happens in regions of high velocity as well. It also does > not seem to depend on grid resolution, as the broken parts show up all over. > > Has anyone experienced anything like this? Any ideas how to work around > this? > > Thanks very much, > > Louis Steytler > Department of Mechanical Science and Engineering > University of Illinois at Urbana-Champaign > 1206 West Green Street > Urbana, Il 61801 > steytle1 at illinois.edu > > _______________________________________________ > 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: > https://paraview.org/mailman/listinfo/paraview > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy.bauer at kitware.com Wed Feb 7 12:33:02 2018 From: andy.bauer at kitware.com (Andy Bauer) Date: Wed, 7 Feb 2018 12:33:02 -0500 Subject: [Paraview] Broken Streamlines In-Reply-To: References: <2F8BA25CC0B82C4DB6756F8F663E6DB36B6729B9@CITESMBX3.ad.uillinois.edu> Message-ID: Additionally, you can view the ReasonForTermination cell data output to see why the streamlines terminated. Click on the ? button to see what the values correspond to. On Wed, Feb 7, 2018 at 12:23 PM, Andy Bauer wrote: > Hi, > > You may want to try playing with some of the advanced options for > computing streamlines (click on the gear button in the upper right corner > of the parameters for the filter). > > If that doesn't help, you may want to share your dataset so that we can > investigate. Also, is this a 2D simulation? It may be that the streamline > is going out of the plane of your grid and therefore terminating. > > --Andy > > On Wed, Feb 7, 2018 at 12:06 PM, Steytler, Louis Louw < > steytle1 at illinois.edu> wrote: > >> Hi Everyone, >> >> When generating streamlines from a 3D computation, in some parts, the >> streamlines appear broken. This is shown in the attached image (the arrows >> point to the broken parts). >> >> Increasing the "Maximum Streamline Length" parameter did not help. >> >> Using the "Point to Cell Data" filter, and then generating streamlines on >> the cell data did not help. >> >> Although in the image shown the broken parts are in an area of low >> velocity, this happens in regions of high velocity as well. It also does >> not seem to depend on grid resolution, as the broken parts show up all over. >> >> Has anyone experienced anything like this? Any ideas how to work around >> this? >> >> Thanks very much, >> >> Louis Steytler >> Department of Mechanical Science and Engineering >> University of Illinois at Urbana-Champaign >> 1206 West Green Street >> Urbana, Il 61801 >> steytle1 at illinois.edu >> >> _______________________________________________ >> 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: >> https://paraview.org/mailman/listinfo/paraview >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From steytle1 at illinois.edu Wed Feb 7 15:28:53 2018 From: steytle1 at illinois.edu (Steytler, Louis Louw) Date: Wed, 7 Feb 2018 20:28:53 +0000 Subject: [Paraview] Broken Streamlines In-Reply-To: <847211ba-9b77-31d4-d351-ae62282855ee@lbl.gov> References: <2F8BA25CC0B82C4DB6756F8F663E6DB36B6729B9@CITESMBX3.ad.uillinois.edu>, <847211ba-9b77-31d4-d351-ae62282855ee@lbl.gov> Message-ID: <2F8BA25CC0B82C4DB6756F8F663E6DB36B672AE0@CITESMBX3.ad.uillinois.edu> Hi Everyone, Thanks very much for all the suggestions. Setting the streamline interpolator type to: streamTracer1.InterpolatorType = 'Interpolator with Cell Locator' solved the problem! Thanks again, Louis Steytler Department of Mechanical Science and Engineering University of Illinois at Urbana-Champaign 1206 West Green Street Urbana, Il 61801 steytle1 at illinois.edu ________________________________ From: Burlen Loring [bloring at lbl.gov] Sent: 07 February 2018 12:50 PM To: Steytler, Louis Louw Subject: Re: [Paraview] Broken Streamlines Hi Louis, Is there any chance this is the rendering precision issue called depth buffer fighting? What happens when you turn off display of the plane? Are the streamlines still broken? Burlen On 02/07/2018 09:06 AM, Steytler, Louis Louw wrote: Hi Everyone, When generating streamlines from a 3D computation, in some parts, the streamlines appear broken. This is shown in the attached image (the arrows point to the broken parts). Increasing the "Maximum Streamline Length" parameter did not help. Using the "Point to Cell Data" filter, and then generating streamlines on the cell data did not help. Although in the image shown the broken parts are in an area of low velocity, this happens in regions of high velocity as well. It also does not seem to depend on grid resolution, as the broken parts show up all over. Has anyone experienced anything like this? Any ideas how to work around this? Thanks very much, Louis Steytler Department of Mechanical Science and Engineering University of Illinois at Urbana-Champaign 1206 West Green Street Urbana, Il 61801 steytle1 at illinois.edu _______________________________________________ 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: https://paraview.org/mailman/listinfo/paraview -------------- next part -------------- An HTML attachment was scrubbed... URL: From manoch at iris.washington.edu Wed Feb 7 15:49:45 2018 From: manoch at iris.washington.edu (Manochehr Bahavar) Date: Wed, 7 Feb 2018 12:49:45 -0800 Subject: [Paraview] RuntimeError: maximum recursion depth exceeded Message-ID: Hello, I have a Python reader that creates a vtkPolyData object and when it wants to change its Representation to Points, it returns the following error: RuntimeError: maximum recursion depth exceeded However, if I run the same sequence of code in the Paraview?s Python Shell: view = GetRenderView() src = FindSource('Model_EQ') dp = GetDisplayProperties(src) dp.Representation=?Points' It works just fine. The error is generated when it is executing dp = GetDisplayProperties(src) Any suggestions? Thanks, ?manoch From berk.geveci at kitware.com Wed Feb 7 16:04:12 2018 From: berk.geveci at kitware.com (Berk Geveci) Date: Wed, 7 Feb 2018 16:04:12 -0500 Subject: [Paraview] Broken Streamlines In-Reply-To: <2F8BA25CC0B82C4DB6756F8F663E6DB36B6729B9@CITESMBX3.ad.uillinois.edu> References: <2F8BA25CC0B82C4DB6756F8F663E6DB36B6729B9@CITESMBX3.ad.uillinois.edu> Message-ID: Hey Louis, Can you provide the data and example script? Best, -berk On Wed, Feb 7, 2018 at 12:06 PM, Steytler, Louis Louw wrote: > Hi Everyone, > > When generating streamlines from a 3D computation, in some parts, the > streamlines appear broken. This is shown in the attached image (the arrows > point to the broken parts). > > Increasing the "Maximum Streamline Length" parameter did not help. > > Using the "Point to Cell Data" filter, and then generating streamlines on > the cell data did not help. > > Although in the image shown the broken parts are in an area of low > velocity, this happens in regions of high velocity as well. It also does > not seem to depend on grid resolution, as the broken parts show up all over. > > Has anyone experienced anything like this? Any ideas how to work around > this? > > Thanks very much, > > Louis Steytler > Department of Mechanical Science and Engineering > University of Illinois at Urbana-Champaign > 1206 West Green Street > Urbana, Il 61801 > steytle1 at illinois.edu > > _______________________________________________ > 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: > https://paraview.org/mailman/listinfo/paraview > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From weston at wortiz.com Wed Feb 7 16:34:32 2018 From: weston at wortiz.com (Weston Ortiz) Date: Wed, 7 Feb 2018 14:34:32 -0700 Subject: [Paraview] Possible to view ExodusII HEX9 data? Message-ID: Is there any way I could render HEX9 exodusii data as as HEX8 data in paraview, (ignoring the 9th node) or work with it directly? HEX9 numbering: https://github.com/gsjaardema/seacas/blob/master/docs/topology/hex09.png It appears that Paraview reads the file as HEX8 but is reading the center node as part of one of the hexahedron's edges (see attached image) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: simple_cube.png Type: image/png Size: 159750 bytes Desc: not available URL: From utkarsh.ayachit at kitware.com Wed Feb 7 16:54:26 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Wed, 7 Feb 2018 16:54:26 -0500 Subject: [Paraview] Disconnect and save animation Message-ID: Folks, I am trying to get a feel is anyone uses this functionality at all. If not, we'd like to remove it as it simplifies a few interactions, besides reducing code complexity. The functionality I am referring to allows one to disconnect from a remote server and then save animation on the server before the server exits but after the client has disconnected. Thanks Utkarsh From timothy.a.beach at nasa.gov Wed Feb 7 21:46:03 2018 From: timothy.a.beach at nasa.gov (Beach, Timothy A. (GRC-LTE0)[Vantage Partners, LLC]) Date: Thu, 8 Feb 2018 02:46:03 +0000 Subject: [Paraview] Possible bug (Actually 2) Message-ID: I have a problem with unstructured CFD datasets using the Ensight format. The following illustrates the problem. I make a slice at a certain value of y and look at velocity vectors. Everything is good. I use calculator to make a dependent variable from CoordY and contour at the same y value. These 2 surfaces are identical and shading by any variable yields identical results. If I put velocity vectors on the constant y contour surface, they are wrong. This procedure works as expected with plot3d structured datasets. The other thing I?ve noticed, when using a cylindrical slice, it always uses the y axis. Setting X or Z anything else has no effect. This happens on all my datasets. I?m using my own compile of Version 5.4.1 on a mac. Any ideas, comments or suggestions? Thanks Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: From wascott at sandia.gov Wed Feb 7 22:07:17 2018 From: wascott at sandia.gov (Scott, W Alan) Date: Thu, 8 Feb 2018 03:07:17 +0000 Subject: [Paraview] [EXTERNAL] Possible bug (Actually 2) In-Reply-To: References: Message-ID: <7079518ec68946d0bbd9812bb6b5016f@ES01AMSNLNT.srn.sandia.gov> Hi Tim, I don?t know about your first question, but with regarts to a cylindrical slice, this has been fixed in the developers tree (Master). This will appear fixed in the 5.5.0 release, scheduled for this coming spring. If you want to try it out, go to paraview.org, then Downloads, then Nightly. There are numerous bugs on this, but the one I just found and resolved is here: https://gitlab.kitware.com/paraview/paraview/issues/17624 Alan From: ParaView [mailto:paraview-bounces at paraview.org] On Behalf Of Beach, Timothy A. (GRC-LTE0)[Vantage Partners, LLC] Sent: Wednesday, February 7, 2018 7:46 PM To: paraview at paraview.org Subject: [EXTERNAL] [Paraview] Possible bug (Actually 2) I have a problem with unstructured CFD datasets using the Ensight format. The following illustrates the problem. I make a slice at a certain value of y and look at velocity vectors. Everything is good. I use calculator to make a dependent variable from CoordY and contour at the same y value. These 2 surfaces are identical and shading by any variable yields identical results. If I put velocity vectors on the constant y contour surface, they are wrong. This procedure works as expected with plot3d structured datasets. The other thing I?ve noticed, when using a cylindrical slice, it always uses the y axis. Setting X or Z anything else has no effect. This happens on all my datasets. I?m using my own compile of Version 5.4.1 on a mac. Any ideas, comments or suggestions? Thanks Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: From banesulli at gmail.com Thu Feb 8 01:44:04 2018 From: banesulli at gmail.com (Bane Sullivan) Date: Thu, 8 Feb 2018 01:44:04 -0500 Subject: [Paraview] Negative ViewUp in VR Message-ID: I?m curious if there is a simple way to change the ViewUp property of the camera for VR to be (0,0,-1) instead of the default (0,0,1). I use ParaView for geophysical and other geoscientific visualizations where it is common to define positive Z as down rather than up. Being able to switch the ViewUp vector to (0,0,-1) would help us keep our axial conventions when sending to OpenVR. Thanks, Bane https://github.com/banesullivan/ParaViewGeophysics -------------- next part -------------- An HTML attachment was scrubbed... URL: From hbuesing at eonerc.rwth-aachen.de Thu Feb 8 05:42:47 2018 From: hbuesing at eonerc.rwth-aachen.de (Buesing, Henrik) Date: Thu, 8 Feb 2018 10:42:47 +0000 Subject: [Paraview] Visualize equdistant cell-centered data In-Reply-To: References: Message-ID: Ok. Let me rephrase my question. Maybe someone speaks Matlab? Full Matlab Code below (see [1]). Let's assume I have a 2x2 matrix with color values C=[1 2; 3 4]. Now I can visualize this matrix with on a 2x2 grid with surf in Matlab. What I get is one square with the color values on each node (see Case 1 in the Matlab code). This is what Paraview does! What I want is the following: I define a new grid, which is 3x3. So one value more in each direction than I have color values. On this grid the color values live cell-centered. If I now visualize this in Matlab, I get a 2x2 block matrix with color values from 1-4. This is what I want! To sum up: I want to keep my color values, but I want to define a new cell-centered grid (with size(C,1)+1) where these color values live on. Is this somehow possible in Paraview? Thank you! Henrik [1] % Full Matlab Code to visualize the two cases. C = [1 2; 3 4]; % Case 1 x=linspace(0,1,size(C,1)); y=x; [X,Y]=meshgrid(x,y); Z=zeros(size(C)); figure;surf(X,Y,Z,C);shading interp;view(0,90); colorbar % Case 2 x=linspace(0,1,size(C,1)+1); y=x; [X,Y]=meshgrid(x,y); Z=zeros(size(C)+1); figure;surf(X,Y,Z,C);shading flat;view(0,90); colorbar -- Dipl.-Math. Henrik B?sing Institute for Applied Geophysics and Geothermal Energy E.ON Energy Research Center RWTH Aachen University Mathieustr. 10 | Tel +49 (0)241 80 49907 52074 Aachen, Germany | Fax +49 (0)241 80 49889 http://www.eonerc.rwth-aachen.de/GGE hbuesing at eonerc.rwth-aachen.de Von: ParaView [mailto:paraview-bounces at paraview.org] Im Auftrag von Buesing, Henrik Gesendet: Freitag, 19. Januar 2018 21:13 An: paraview at paraview.org Betreff: [Paraview] Visualize equdistant cell-centered data Dear all, I have a "Structured (Curvilinear) Grid" (*.vts), which gets read in as 314531 cells and 330000 points. I would like to tell Paraview that this is equidistant cell-centered data (330000 cells). I want every cell to get one color, such that color interpolation becomes correct. Can I somehow convert the data I have? Thank you! Henrik B?sing -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.ott at erdw.ethz.ch Thu Feb 8 06:58:27 2018 From: richard.ott at erdw.ethz.ch (Ott Richard) Date: Thu, 8 Feb 2018 11:58:27 +0000 Subject: [Paraview] ParaView Digest, Vol 166, Issue 7 In-Reply-To: References: Message-ID: come on! I've unsubscribed 3 times now, why do I still get these mails??? Richard Ott ETH Z?rich PhD student Sonneggstrasse 5 8092 Z?rich +41 44 633 89 06 richard.ott at erdw.ethz.ch ________________________________________ Von: ParaView [paraview-bounces at paraview.org]" im Auftrag von "paraview-request at paraview.org [paraview-request at paraview.org] Gesendet: Mittwoch, 7. Februar 2018 18:00 An: paraview at paraview.org Betreff: ParaView Digest, Vol 166, Issue 7 Send ParaView mailing list submissions to paraview at paraview.org To subscribe or unsubscribe via the World Wide Web, visit https://paraview.org/mailman/listinfo/paraview or, via email, send a message with subject or body 'help' to paraview-request at paraview.org You can reach the person managing the list at paraview-owner at paraview.org When replying, please edit your Subject line so it is more specific than "Re: Contents of ParaView digest..." Today's Topics: 1. file naming of downloadable data files (th.lauke at arcor.de) 2. Re: PythonFullExample does not send any data (Andy Bauer) 3. Re: Using Probe Filter To Get The Average Value Around A Point (Jeremias Gonzalez) 4. Re: Using Probe Filter To Get The Average Value Around A Point (Moreland, Kenneth) ---------------------------------------------------------------------- Message: 1 Date: Tue, 6 Feb 2018 18:32:54 +0100 (CET) From: th.lauke at arcor.de To: paraview at paraview.org Subject: [Paraview] file naming of downloadable data files Message-ID: <173864583.16224.1517938374185 at mail.vodafone.de> Content-Type: text/plain; charset=UTF-8 Hi all, the data files https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v5.4&type=binary&os=Sources&downloadFile=ParaViewData-v5.4.1.tar.gz e.g. have a confusing file naming :( What's the intention for this? Thus I could hardly identify the wanted file :[ Many thanks for an explanation Thomas ------------------------------ Message: 2 Date: Tue, 6 Feb 2018 17:40:40 -0500 From: Andy Bauer To: "Michalke, Simon" Cc: paraview at paraview.org Subject: Re: [Paraview] PythonFullExample does not send any data Message-ID: Content-Type: text/plain; charset="utf-8" Hi Simon, I'm confused a to where the data is being sent from and to. If it's from the simulation and to the adaptor then all of that would get done before Catalyst would ever see it. If it's from the adaptor to Catalyst or to the PV GUI through the Live connection you'll probably want to look at coprocessing.py and grep through it for "live". I don't look too often at the Live sections of the code so it would take a bit of time to go through all of the details on it properly. Best, Andy On Tue, Feb 6, 2018 at 10:44 AM, Michalke, Simon wrote: > Thank you very much, it works now. > > Since I am getting the initial data via http and process it manually, is > there a way to "directly" open a connection and send data? I think the > coprocessor structure is not suitable for my case. Something like: > > con = openConnection() > > con.sendData(data) > con.sendData(data) > con.sendData(data) > > con.close() > > where data is something like vtkPolyData. Or, alternatively transfer the > grid at the beginning and only send the data as vtk*Array itself after > first initialization. > > Cheers, > Simon > > > Am 2018-02-06 14:18, schrieb Andy Bauer: > >> In cpscript.py you will need to change the following line: >> coprocessor.EnableLiveVisualization(False, 1) >> >> to: >> coprocessor.EnableLiveVisualization(True, 1) >> >> As for building VTK objects through the Python API, the VTK Examples at >> https://lorensen.github.io/VTKExamples/site/Python/ should have several >> will help you out. >> >> Cheers, >> Andy >> >> On Tue, Feb 6, 2018 at 4:37 AM, Michalke, Simon >> wrote: >> >> Hello, >>> >>> I am trying to code a tool to send live data from a simulation to >>> paraview. I build my paraview with the latest superbuild and with system >>> python (3.4m). Then I tried to run the "PythonFullExample". After >>> un-commenting line 25 in fedriver.py: >>> coprocessor.addscript("cpscript.py") >>> the script still does not send any data. There are no error messages as >>> well. I made sure that paraview is listening to the correct port. >>> >>> In general, I cannot find any python example on how to attach values to a >>> poly element or a point. >>> >>> Regards, >>> Simon Michalke >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensou >>> rce/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: >>> https://paraview.org/mailman/listinfo/paraview >>> >>> -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 3 Date: Tue, 6 Feb 2018 17:21:37 -0800 From: Jeremias Gonzalez To: "Moreland, Kenneth" , ParaView Subject: Re: [Paraview] Using Probe Filter To Get The Average Value Around A Point Message-ID: <607343c2-fbc3-6dfb-ec3d-0cc0182e51d7 at ucmerced.edu> Content-Type: text/plain; charset=utf-8; format=flowed Thank you very much for your explanations and suggestions. Responses interspersed below. On 2/5/2018 4:57 PM, Moreland, Kenneth wrote: > Jeremias, > > When you set a radius and number of points in the probe filter, then the filter will randomly sample the volume within the defined sphere the number of times requested. The resulting values are the field values at those randomly sampled locations. > > An easy way to get an average of your samples is to run the result of the probe filter through the descriptive statistics filter. Look at the "Statistical Model" table and it will report the mean value for each field. (Note that if you are using ParaView 5.4 there is a bug, #17627, that shows the Statistical Model table wrong by default. You have to also change the Composite Data Set Index parameter in the Display part of the properties panel to select only the Derived Statistics block.) > > A couple of caveats to this approach. First, because the sampling is random, don't expect the exact same answer every time you run it. Second, if one of the samples happens to lie outside of the mesh, that sample will be filled with 0's for all fields. That will throw off the average value. Is there a probe setting that will simply grab all the points living in the original mesh within the radius of the sphere I choose? > > That said, another approach you might want to take is to first filter the data in a way that blurs out the noise first. One way you can do that is to run the Point Volume Interpolator filter. Change the Kernel to something like Gaussian (the default Voronoi filter will not do the averaging that you want). Set the radius appropriately. You can then probe the resulting data set with a single value (radius 0) and immediate see the "averaged" result. > > -Ken I don't seem to be finding any information on what exactly the Gaussian kernel does with the data, so how close is it to the plain averaging I would like it to be doing? ------------------------------ Message: 4 Date: Wed, 7 Feb 2018 02:45:33 +0000 From: "Moreland, Kenneth" To: Jeremias Gonzalez Cc: ParaView Subject: Re: [Paraview] Using Probe Filter To Get The Average Value Around A Point Message-ID: <352A5591-BA22-4421-A2C3-1ADDA46D2F1D at sandia.gov> Content-Type: text/plain; charset="utf-8" As far as I know, there is no way to get the probe filter to get all points within a radius as you describe. You may instead consider the Point Data to Cell Data Filter. That will for each cell take the values of all attached points and average them. The point volume interpolator filter will create a grid (by default 100^3) and, in gaussian kernel mode, will ?splat? a gaussian function onto the grid from every point. Another way to think of it is that a 3D gaussian function is convolved with a 3D function comprising an impulse function at every point in the mesh scaled by the field value (and then sampled on the grid). -Ken Sent from my iPad > On Feb 6, 2018, at 8:21 PM, Jeremias Gonzalez wrote: > > Thank you very much for your explanations and suggestions. Responses interspersed below. > >> On 2/5/2018 4:57 PM, Moreland, Kenneth wrote: >> Jeremias, >> When you set a radius and number of points in the probe filter, then the filter will randomly sample the volume within the defined sphere the number of times requested. The resulting values are the field values at those randomly sampled locations. > >> An easy way to get an average of your samples is to run the result of the probe filter through the descriptive statistics filter. Look at the "Statistical Model" table and it will report the mean value for each field. (Note that if you are using ParaView 5.4 there is a bug, #17627, that shows the Statistical Model table wrong by default. You have to also change the Composite Data Set Index parameter in the Display part of the properties panel to select only the Derived Statistics block.) >> A couple of caveats to this approach. First, because the sampling is random, don't expect the exact same answer every time you run it. Second, if one of the samples happens to lie outside of the mesh, that sample will be filled with 0's for all fields. That will throw off the average value. > > Is there a probe setting that will simply grab all the points living in the original mesh within the radius of the sphere I choose? > >> That said, another approach you might want to take is to first filter the data in a way that blurs out the noise first. One way you can do that is to run the Point Volume Interpolator filter. Change the Kernel to something like Gaussian (the default Voronoi filter will not do the averaging that you want). Set the radius appropriately. You can then probe the resulting data set with a single value (radius 0) and immediate see the "averaged" result. >> -Ken > > I don't seem to be finding any information on what exactly the Gaussian kernel does with the data, so how close is it to the plain averaging I would like it to be doing? ------------------------------ Subject: Digest Footer _______________________________________________ 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: https://paraview.org/mailman/listinfo/paraview ------------------------------ End of ParaView Digest, Vol 166, Issue 7 **************************************** From ozakin at usc.edu Thu Feb 8 07:38:23 2018 From: ozakin at usc.edu (yaman ozakin) Date: Thu, 8 Feb 2018 15:38:23 +0300 Subject: [Paraview] ParaView Digest, Vol 166, Issue 7 In-Reply-To: References: Message-ID: Same here. I think the unnecessarily complicated unsubscription system might be broken. I can't reach the next step after pasting the confirmation string. Not to mention that *there is a next step* after clicking a link in a confirmation email and then pasting the confirmation string. Whose idea was it to make unsubscribing more secure than most banking web sites? :) --- Yaman ?zak?n *<:^) Research Assistant - Geophysics earth.usc.edu/~ozakin/ University of Southern California On Thu, Feb 8, 2018 at 3:37 PM, yaman ozakin wrote: > Same here. > > I think the unnecessarily complicated unsubscription system might be > broken. I can't reach the next step after pasting the confirmation string. > Not to mention that *there is a next step* after clicking a link in a > confirmation email and then pasting the confirmation string. Whose idea was > it to make unsubscribing more secure than most banking web sites? :) > > --- > Yaman ?zak?n *<:^) > Research Assistant - Geophysics > earth.usc.edu/~ozakin/ > University of Southern California > > On Thu, Feb 8, 2018 at 2:58 PM, Ott Richard > wrote: > >> come on! I've unsubscribed 3 times now, why do I still get these mails??? >> >> >> Richard Ott >> ETH Z?rich >> PhD student >> >> Sonneggstrasse 5 >> >> 8092 Z?rich >> >> +41 44 633 89 06 >> richard.ott at erdw.ethz.ch >> >> ________________________________________ >> Von: ParaView [paraview-bounces at paraview.org]" im Auftrag von & >> quot;paraview-request at paraview.org [paraview-request at paraview.org] >> Gesendet: Mittwoch, 7. Februar 2018 18:00 >> An: paraview at paraview.org >> Betreff: ParaView Digest, Vol 166, Issue 7 >> >> Send ParaView mailing list submissions to >> paraview at paraview.org >> >> To subscribe or unsubscribe via the World Wide Web, visit >> https://urldefense.proofpoint.com/v2/url?u=https-3A__paravie >> w.org_mailman_listinfo_paraview&d=DwIFAw&c=clK7kQUTWtAVEOVIg >> vi0NU5BOUHhpN0H8p7CSfnc_gI&r=pOEltBBB0Tkd7ps2jHF3Rw&m=CjwAzA >> 9C4irLYtyTmA5pL1A9-8OpnnJfRm5prt3jY30&s=IOgSJbhLIqDth5hfwji8 >> 0Sn265ivYIaOg9ZejY9WXEI&e= >> or, via email, send a message with subject or body 'help' to >> paraview-request at paraview.org >> >> You can reach the person managing the list at >> paraview-owner at paraview.org >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of ParaView digest..." >> >> >> Today's Topics: >> >> 1. file naming of downloadable data files (th.lauke at arcor.de) >> 2. Re: PythonFullExample does not send any data (Andy Bauer) >> 3. Re: Using Probe Filter To Get The Average Value Around A >> Point (Jeremias Gonzalez) >> 4. Re: Using Probe Filter To Get The Average Value Around A >> Point (Moreland, Kenneth) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Tue, 6 Feb 2018 18:32:54 +0100 (CET) >> From: th.lauke at arcor.de >> To: paraview at paraview.org >> Subject: [Paraview] file naming of downloadable data files >> Message-ID: <173864583.16224.1517938374185 at mail.vodafone.de> >> Content-Type: text/plain; charset=UTF-8 >> >> Hi all, >> >> the data files https://urldefense.proofpoint. >> com/v2/url?u=https-3A__www.paraview.org_paraview-2Ddownloads >> _download.php-3Fsubmit-3DDownload-26version-3Dv5.4- >> 26type-3Dbinary-26os-3DSources-26downloadFile-3DParaViewData >> -2Dv5.4.1.tar.gz&d=DwIFAw&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H >> 8p7CSfnc_gI&r=pOEltBBB0Tkd7ps2jHF3Rw&m=CjwAzA9C4irLYtyTmA5pL >> 1A9-8OpnnJfRm5prt3jY30&s=RIZnMnFOPOSN6pgZvN-RcuPn6FPrUByb7kI6Gy8ATtU&e= >> e.g. have a confusing file naming :( >> >> What's the intention for this? Thus I could hardly identify the wanted >> file :[ >> >> Many thanks for an explanation >> Thomas >> >> >> ------------------------------ >> >> Message: 2 >> Date: Tue, 6 Feb 2018 17:40:40 -0500 >> From: Andy Bauer >> To: "Michalke, Simon" >> Cc: paraview at paraview.org >> Subject: Re: [Paraview] PythonFullExample does not send any data >> Message-ID: >> > gmail.com> >> Content-Type: text/plain; charset="utf-8" >> >> Hi Simon, >> >> I'm confused a to where the data is being sent from and to. If it's from >> the simulation and to the adaptor then all of that would get done before >> Catalyst would ever see it. If it's from the adaptor to Catalyst or to the >> PV GUI through the Live connection you'll probably want to look at >> coprocessing.py and grep through it for "live". I don't look too often at >> the Live sections of the code so it would take a bit of time to go through >> all of the details on it properly. >> >> Best, >> Andy >> >> On Tue, Feb 6, 2018 at 10:44 AM, Michalke, Simon >> wrote: >> >> > Thank you very much, it works now. >> > >> > Since I am getting the initial data via http and process it manually, is >> > there a way to "directly" open a connection and send data? I think the >> > coprocessor structure is not suitable for my case. Something like: >> > >> > con = openConnection() >> > >> > con.sendData(data) >> > con.sendData(data) >> > con.sendData(data) >> > >> > con.close() >> > >> > where data is something like vtkPolyData. Or, alternatively transfer the >> > grid at the beginning and only send the data as vtk*Array itself after >> > first initialization. >> > >> > Cheers, >> > Simon >> > >> > >> > Am 2018-02-06 14:18, schrieb Andy Bauer: >> > >> >> In cpscript.py you will need to change the following line: >> >> coprocessor.EnableLiveVisualization(False, 1) >> >> >> >> to: >> >> coprocessor.EnableLiveVisualization(True, 1) >> >> >> >> As for building VTK objects through the Python API, the VTK Examples at >> >> https://urldefense.proofpoint.com/v2/url?u=https-3A__lorense >> n.github.io_VTKExamples_site_Python_&d=DwIFAw&c=clK7kQUTWtA >> VEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=pOEltBBB0Tkd7ps2jHF3Rw&m= >> CjwAzA9C4irLYtyTmA5pL1A9-8OpnnJfRm5prt3jY30&s=dGEuCERJsl5LRJ >> SGLNF4gQ1R2AixReuCwSAv-aynwv0&e= should have several >> >> will help you out. >> >> >> >> Cheers, >> >> Andy >> >> >> >> On Tue, Feb 6, 2018 at 4:37 AM, Michalke, Simon > > >> >> wrote: >> >> >> >> Hello, >> >>> >> >>> I am trying to code a tool to send live data from a simulation to >> >>> paraview. I build my paraview with the latest superbuild and with >> system >> >>> python (3.4m). Then I tried to run the "PythonFullExample". After >> >>> un-commenting line 25 in fedriver.py: >> >>> coprocessor.addscript("cpscript.py") >> >>> the script still does not send any data. There are no error messages >> as >> >>> well. I made sure that paraview is listening to the correct port. >> >>> >> >>> In general, I cannot find any python example on how to attach values >> to a >> >>> poly element or a point. >> >>> >> >>> Regards, >> >>> Simon Michalke >> >>> _______________________________________________ >> >>> Powered by www.kitware.com >> >>> >> >>> Visit other Kitware open-source projects at >> >>> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitw >> are.com_opensou&d=DwIFAw&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8 >> p7CSfnc_gI&r=pOEltBBB0Tkd7ps2jHF3Rw&m=CjwAzA9C4irLYtyTmA5pL1 >> A9-8OpnnJfRm5prt3jY30&s=MQItyjuJK3BpTpDHXMSCoJgREBQxVS5OO8y5G8oBenU&e= >> >>> rce/opensource.html >> >>> >> >>> Please keep messages on-topic and check the ParaView Wiki at: >> >>> https://urldefense.proofpoint.com/v2/url?u=http-3A__paraview >> .org_Wiki_ParaView&d=DwIFAw&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN >> 0H8p7CSfnc_gI&r=pOEltBBB0Tkd7ps2jHF3Rw&m=CjwAzA9C4irLYtyTmA5 >> pL1A9-8OpnnJfRm5prt3jY30&s=vWF8x66gwF7IEg4rcqUU7DV5QDs-PwP0lZ32XdjJwag&e= >> >>> >> >>> Search the list archives at: https://urldefense.proofpoint. >> com/v2/url?u=http-3A__markmail.org_search_-3Fq-3DParaView&d= >> DwIFAw&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=pOElt >> BBB0Tkd7ps2jHF3Rw&m=CjwAzA9C4irLYtyTmA5pL1A9-8OpnnJfRm5prt3j >> Y30&s=XYxfP2NVK1WSIVvpELwtWFTp4uJiB1surn4mkpHcgsQ&e= >> >>> >> >>> Follow this link to subscribe/unsubscribe: >> >>> https://urldefense.proofpoint.com/v2/url?u=https-3A__paravie >> w.org_mailman_listinfo_paraview&d=DwIFAw&c=clK7kQUTWtAVEOVIg >> vi0NU5BOUHhpN0H8p7CSfnc_gI&r=pOEltBBB0Tkd7ps2jHF3Rw&m=CjwAzA >> 9C4irLYtyTmA5pL1A9-8OpnnJfRm5prt3jY30&s=IOgSJbhLIqDth5hfwji8 >> 0Sn265ivYIaOg9ZejY9WXEI&e= >> >>> >> >>> >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: > paraview.org_pipermail_paraview_attachments_20180206_9fee58a >> d_attachment-2D0001.html&d=DwIFAw&c=clK7kQUTWtAVEOVIgvi0N >> U5BOUHhpN0H8p7CSfnc_gI&r=pOEltBBB0Tkd7ps2jHF3Rw&m=CjwAzA9C4i >> rLYtyTmA5pL1A9-8OpnnJfRm5prt3jY30&s=r7jWitWebUmGIVApLUKRS8pI >> xEAb6wd6w7klBGPTr34&e=> >> >> ------------------------------ >> >> Message: 3 >> Date: Tue, 6 Feb 2018 17:21:37 -0800 >> From: Jeremias Gonzalez >> To: "Moreland, Kenneth" , ParaView >> >> Subject: Re: [Paraview] Using Probe Filter To Get The Average Value >> Around A Point >> Message-ID: <607343c2-fbc3-6dfb-ec3d-0cc0182e51d7 at ucmerced.edu> >> Content-Type: text/plain; charset=utf-8; format=flowed >> >> Thank you very much for your explanations and suggestions. Responses >> interspersed below. >> >> On 2/5/2018 4:57 PM, Moreland, Kenneth wrote: >> > Jeremias, >> > >> > When you set a radius and number of points in the probe filter, then >> the filter will randomly sample the volume within the defined sphere the >> number of times requested. The resulting values are the field values at >> those randomly sampled locations. > >> > An easy way to get an average of your samples is to run the result of >> the probe filter through the descriptive statistics filter. Look at the >> "Statistical Model" table and it will report the mean value for each field. >> (Note that if you are using ParaView 5.4 there is a bug, #17627, that shows >> the Statistical Model table wrong by default. You have to also change the >> Composite Data Set Index parameter in the Display part of the properties >> panel to select only the Derived Statistics block.) >> > >> > A couple of caveats to this approach. First, because the sampling is >> random, don't expect the exact same answer every time you run it. Second, >> if one of the samples happens to lie outside of the mesh, that sample will >> be filled with 0's for all fields. That will throw off the average value. >> >> Is there a probe setting that will simply grab all the points living in >> the original mesh within the radius of the sphere I choose? >> >> > >> > That said, another approach you might want to take is to first filter >> the data in a way that blurs out the noise first. One way you can do that >> is to run the Point Volume Interpolator filter. Change the Kernel to >> something like Gaussian (the default Voronoi filter will not do the >> averaging that you want). Set the radius appropriately. You can then probe >> the resulting data set with a single value (radius 0) and immediate see the >> "averaged" result. >> > >> > -Ken >> >> I don't seem to be finding any information on what exactly the Gaussian >> kernel does with the data, so how close is it to the plain averaging I >> would like it to be doing? >> >> >> ------------------------------ >> >> Message: 4 >> Date: Wed, 7 Feb 2018 02:45:33 +0000 >> From: "Moreland, Kenneth" >> To: Jeremias Gonzalez >> Cc: ParaView >> Subject: Re: [Paraview] Using Probe Filter To Get The Average Value >> Around A Point >> Message-ID: <352A5591-BA22-4421-A2C3-1ADDA46D2F1D at sandia.gov> >> Content-Type: text/plain; charset="utf-8" >> >> As far as I know, there is no way to get the probe filter to get all >> points within a radius as you describe. You may instead consider the Point >> Data to Cell Data Filter. That will for each cell take the values of all >> attached points and average them. >> >> The point volume interpolator filter will create a grid (by default >> 100^3) and, in gaussian kernel mode, will ?splat? a gaussian function onto >> the grid from every point. Another way to think of it is that a 3D gaussian >> function is convolved with a 3D function comprising an impulse function at >> every point in the mesh scaled by the field value (and then sampled on the >> grid). >> >> -Ken >> >> Sent from my iPad >> >> > On Feb 6, 2018, at 8:21 PM, Jeremias Gonzalez >> wrote: >> > >> > Thank you very much for your explanations and suggestions. Responses >> interspersed below. >> > >> >> On 2/5/2018 4:57 PM, Moreland, Kenneth wrote: >> >> Jeremias, >> >> When you set a radius and number of points in the probe filter, then >> the filter will randomly sample the volume within the defined sphere the >> number of times requested. The resulting values are the field values at >> those randomly sampled locations. > >> >> An easy way to get an average of your samples is to run the result of >> the probe filter through the descriptive statistics filter. Look at the >> "Statistical Model" table and it will report the mean value for each field. >> (Note that if you are using ParaView 5.4 there is a bug, #17627, that shows >> the Statistical Model table wrong by default. You have to also change the >> Composite Data Set Index parameter in the Display part of the properties >> panel to select only the Derived Statistics block.) >> >> A couple of caveats to this approach. First, because the sampling is >> random, don't expect the exact same answer every time you run it. Second, >> if one of the samples happens to lie outside of the mesh, that sample will >> be filled with 0's for all fields. That will throw off the average value. >> > >> > Is there a probe setting that will simply grab all the points living in >> the original mesh within the radius of the sphere I choose? >> > >> >> That said, another approach you might want to take is to first filter >> the data in a way that blurs out the noise first. One way you can do that >> is to run the Point Volume Interpolator filter. Change the Kernel to >> something like Gaussian (the default Voronoi filter will not do the >> averaging that you want). Set the radius appropriately. You can then probe >> the resulting data set with a single value (radius 0) and immediate see the >> "averaged" result. >> >> -Ken >> > >> > I don't seem to be finding any information on what exactly the Gaussian >> kernel does with the data, so how close is it to the plain averaging I >> would like it to be doing? >> >> ------------------------------ >> >> Subject: Digest Footer >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitw >> are.com_opensource_opensource.html&d=DwIFAw&c=clK7kQUTWtAVEO >> VIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=pOEltBBB0Tkd7ps2jHF3Rw&m=Cjw >> AzA9C4irLYtyTmA5pL1A9-8OpnnJfRm5prt3jY30&s=v1osG4Wmtb71PKFBp >> HSbX6y99dLXmsb9bDmz2oOAFqE&e= >> >> Please keep messages on-topic and check the ParaView Wiki at: >> https://urldefense.proofpoint.com/v2/url?u=http-3A__paraview >> .org_Wiki_ParaView&d=DwIFAw&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN >> 0H8p7CSfnc_gI&r=pOEltBBB0Tkd7ps2jHF3Rw&m=CjwAzA9C4irLYtyTmA5 >> pL1A9-8OpnnJfRm5prt3jY30&s=vWF8x66gwF7IEg4rcqUU7DV5QDs-PwP0lZ32XdjJwag&e= >> >> Search the list archives at: https://urldefense.proofpoint. >> com/v2/url?u=http-3A__markmail.org_search_-3Fq-3DParaView&d= >> DwIFAw&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=pOElt >> BBB0Tkd7ps2jHF3Rw&m=CjwAzA9C4irLYtyTmA5pL1A9-8OpnnJfRm5prt3j >> Y30&s=XYxfP2NVK1WSIVvpELwtWFTp4uJiB1surn4mkpHcgsQ&e= >> >> Follow this link to subscribe/unsubscribe: >> https://urldefense.proofpoint.com/v2/url?u=https-3A__paravie >> w.org_mailman_listinfo_paraview&d=DwIFAw&c=clK7kQUTWtAVEOVIg >> vi0NU5BOUHhpN0H8p7CSfnc_gI&r=pOEltBBB0Tkd7ps2jHF3Rw&m=CjwAzA >> 9C4irLYtyTmA5pL1A9-8OpnnJfRm5prt3jY30&s=IOgSJbhLIqDth5hfwji8 >> 0Sn265ivYIaOg9ZejY9WXEI&e= >> >> >> ------------------------------ >> >> End of ParaView Digest, Vol 166, Issue 7 >> **************************************** >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitw >> are.com_opensource_opensource.html&d=DwIFAw&c=clK7kQUTWtAVEO >> VIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=pOEltBBB0Tkd7ps2jHF3Rw&m=Cjw >> AzA9C4irLYtyTmA5pL1A9-8OpnnJfRm5prt3jY30&s=v1osG4Wmtb71PKFBp >> HSbX6y99dLXmsb9bDmz2oOAFqE&e= >> >> Please keep messages on-topic and check the ParaView Wiki at: >> https://urldefense.proofpoint.com/v2/url?u=http-3A__paraview >> .org_Wiki_ParaView&d=DwIFAw&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN >> 0H8p7CSfnc_gI&r=pOEltBBB0Tkd7ps2jHF3Rw&m=CjwAzA9C4irLYtyTmA5 >> pL1A9-8OpnnJfRm5prt3jY30&s=vWF8x66gwF7IEg4rcqUU7DV5QDs-PwP0lZ32XdjJwag&e= >> >> Search the list archives at: https://urldefense.proofpoint. >> com/v2/url?u=http-3A__markmail.org_search_-3Fq-3DParaView&d= >> DwIFAw&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=pOElt >> BBB0Tkd7ps2jHF3Rw&m=CjwAzA9C4irLYtyTmA5pL1A9-8OpnnJfRm5prt3j >> Y30&s=XYxfP2NVK1WSIVvpELwtWFTp4uJiB1surn4mkpHcgsQ&e= >> >> Follow this link to subscribe/unsubscribe: >> https://urldefense.proofpoint.com/v2/url?u=https-3A__paravie >> w.org_mailman_listinfo_paraview&d=DwIFAw&c=clK7kQUTWtAVEOVIg >> vi0NU5BOUHhpN0H8p7CSfnc_gI&r=pOEltBBB0Tkd7ps2jHF3Rw&m=CjwAzA >> 9C4irLYtyTmA5pL1A9-8OpnnJfRm5prt3jY30&s=IOgSJbhLIqDth5hfwji8 >> 0Sn265ivYIaOg9ZejY9WXEI&e= >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Thu Feb 8 08:29:12 2018 From: ken.martin at kitware.com (Ken Martin) Date: Thu, 8 Feb 2018 08:29:12 -0500 Subject: [Paraview] Negative ViewUp in VR In-Reply-To: References: Message-ID: Yes, the VR support includes setting any axis as view up. From ParaView if you go to the steam menu, then select the vtk button a dashboard should show up that gives you the option. I'm not sure if the nightly PV includes the menu image, if not I have attached it to this email. Just place it in the directory where you run PV from. On Thu, Feb 8, 2018 at 1:44 AM, Bane Sullivan wrote: > I?m curious if there is a simple way to change the ViewUp property of the > camera for VR to be (0,0,-1) instead of the default (0,0,1). > > I use ParaView for geophysical and other geoscientific visualizations > where it is common to define positive Z as down rather than up. Being able > to switch the ViewUp vector to (0,0,-1) would help us keep our axial > conventions when sending to OpenVR. > > Thanks, > > Bane > https://github.com/banesullivan/ParaViewGeophysics > > > > _______________________________________________ > 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: > https://paraview.org/mailman/listinfo/paraview > > -- Ken Martin PhD Distinguished Engineer Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenVRDashboard.jpg Type: image/jpeg Size: 106575 bytes Desc: not available URL: From cory.quammen at kitware.com Thu Feb 8 10:12:22 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Thu, 8 Feb 2018 10:12:22 -0500 Subject: [Paraview] Visualize equdistant cell-centered data In-Reply-To: References: Message-ID: Henrik, I believe I understand what you are trying to do. However, there is nothing available in ParaView to do this simply. You could use the Programmable Filter to create a new structured grid with the C+1 number of points in each dimension and then set the point data array in the C-sized grid to be a cell data array in the (C+1)-sized grid. The data layout is such that that should work. However, you will need to set up the points manually. Hope that helps, Cory On Thu, Feb 8, 2018 at 5:42 AM, Buesing, Henrik < hbuesing at eonerc.rwth-aachen.de> wrote: > Ok. Let me rephrase my question. Maybe someone speaks Matlab? Full Matlab > Code below (see [1]). > > > > Let?s assume I have a 2x2 matrix with color values C=[1 2; 3 4]. Now I can > visualize this matrix with on a 2x2 grid with surf in Matlab. What I get is > one square with the color values on each node (see Case 1 in the Matlab > code). This is what Paraview does! > > > > What I want is the following: I define a new grid, which is 3x3. So one > value more in each direction than I have color values. On this grid the > color values live cell-centered. If I now visualize this in Matlab, I get a > 2x2 block matrix with color values from 1-4. This is what I want! > > > > To sum up: I want to keep my color values, but I want to define a new > cell-centered grid (with size(C,1)+1) where these color values live on. Is > this somehow possible in Paraview? > > Thank you! > Henrik > > > > > > > > [1] > > > > % Full Matlab Code to visualize the two cases. > > > > C = [1 2; 3 4]; > > > > % Case 1 > > x=linspace(0,1,size(C,1)); > > y=x; > > [X,Y]=meshgrid(x,y); > > Z=zeros(size(C)); > > figure;surf(X,Y,Z,C);shading interp;view(0,90); > > colorbar > > > > % Case 2 > > x=linspace(0,1,size(C,1)+1); > > y=x; > > [X,Y]=meshgrid(x,y); > > Z=zeros(size(C)+1); > > figure;surf(X,Y,Z,C);shading flat;view(0,90); > > colorbar > > > > -- > > Dipl.-Math. Henrik B?sing > > Institute for Applied Geophysics and Geothermal Energy > > E.ON Energy Research Center > > RWTH Aachen University > > > > Mathieustr. 10 | Tel +49 (0)241 80 49907 <+49%20241%208049907> > > 52074 Aachen, Germany | Fax +49 (0)241 80 49889 <+49%20241%208049889> > > > > http://www.eonerc.rwth-aachen.de/GGE > > hbuesing at eonerc.rwth-aachen.de > > > > *Von:* ParaView [mailto:paraview-bounces at paraview.org] *Im Auftrag von *Buesing, > Henrik > *Gesendet:* Freitag, 19. Januar 2018 21:13 > *An:* paraview at paraview.org > *Betreff:* [Paraview] Visualize equdistant cell-centered data > > > > Dear all, > > > > I have a ?Structured (Curvilinear) Grid? (*.vts), which gets read in as > 314531 cells and 330000 points. I would like to tell Paraview that this is > equidistant cell-centered data (330000 cells). I want every cell to get one > color, such that color interpolation becomes correct. > > > > Can I somehow convert the data I have? > > > > Thank you! > Henrik B?sing > > > > _______________________________________________ > 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: > https://paraview.org/mailman/listinfo/paraview > > -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Luc.Hermitte at cnes.fr Thu Feb 8 10:46:27 2018 From: Luc.Hermitte at cnes.fr (Hermitte Luc (CS SI)) Date: Thu, 8 Feb 2018 15:46:27 +0000 Subject: [Paraview] paraview-superbuild Qt5 not found Message-ID: Hi, I'm trying to build paraview with the superbuild procedure, and with a custom install of Qt5. I'm calling cmake with the following options?: cmake -Dqt5_enabled=On -DUSE_SYSTEM_qt5=On(/Off) -DQt5_DIR=/path/to/qt/5.9.1/lib/cmake/Qt5 .. Note that, in doubt, I've also exported Qt5_DIR as an environment variable. Alas I observe errors like the following --------------------------- CMake Error at superbuild/cmake/patches/ExternalProject.cmake:2295 (get_property): get_property could not find TARGET qt5. Perhaps it has not yet been created. Call Stack (most recent call first): superbuild/cmake/patches/ExternalProject.cmake:2568 (_ep_add_configure_command) superbuild/cmake/SuperbuildExternalProject.cmake:183 (ExternalProject_add) superbuild/cmake/SuperbuildMacros.cmake:881 (_superbuild_ExternalProject_add) superbuild/cmake/SuperbuildMacros.cmake:674 (_superbuild_add_project_internal) superbuild/CMakeLists.txt:124 (superbuild_process_dependencies) ... --------------------------- If I don't set qt5_enabled, and if instead I go into the build sub-directory superbuild/paraview/build/ and rerun cmake with "-DPARAVIEW_BUILD_QT_GUI=On" I can succeed. Alas it kind of defects the purpose of a superbuild. Did I miss something, or is this a bug like the one reported for HDF5 last year? Regards, -- Luc Hermitte From ben.boeckel at kitware.com Thu Feb 8 10:58:11 2018 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Thu, 8 Feb 2018 10:58:11 -0500 Subject: [Paraview] paraview-superbuild Qt5 not found In-Reply-To: References: Message-ID: <20180208155811.GA24943@megas.kitware.com> On Thu, Feb 08, 2018 at 15:46:27 +0000, Hermitte Luc (CS SI) wrote: > I'm calling cmake with the following options?: > cmake -Dqt5_enabled=On -DUSE_SYSTEM_qt5=On(/Off) -DQt5_DIR=/path/to/qt/5.9.1/lib/cmake/Qt5 .. The input setting is `ENABLE_qt5`. The `qt5_enabled` variable indicates whether Qt5 is being built or not (either by request or because of a dependency). It's value is set internally and the cache value is not used. --Ben From banesulli at gmail.com Thu Feb 8 14:41:02 2018 From: banesulli at gmail.com (Bane Sullivan) Date: Thu, 8 Feb 2018 14:41:02 -0500 Subject: [Paraview] Finding Data Range Over All Timesteps Python Message-ID: I?m curious if there is a way to calculate the range of a data array over all time steps much like the ?Rescale to data range over all time steps.? I want to calculate this data range in a Python Programmable Filter in the RequestInformation() script so that at the start, I have the total range over all time steps to then perform a normalization over that range in the RequestData() script that uses that total data range rather than the range of the data array at that given timestep. Currently my workaround is: View by the data array -> Start recording a Trace -> Rescale the colormap to data range over all time steps -> Stop Trace -> find the range given to the RescaleTransferFunction in the Trace-> hardcode those values into the python programmable filter to perform the normalization over that min/max range. Thanks, Bane https://github.com/banesullivan/ParaViewGeophysics -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Thu Feb 8 16:06:48 2018 From: berk.geveci at kitware.com (Berk Geveci) Date: Thu, 8 Feb 2018 16:06:48 -0500 Subject: [Paraview] Broken Streamlines In-Reply-To: <2F8BA25CC0B82C4DB6756F8F663E6DB36B672AE0@CITESMBX3.ad.uillinois.edu> References: <2F8BA25CC0B82C4DB6756F8F663E6DB36B6729B9@CITESMBX3.ad.uillinois.edu> <847211ba-9b77-31d4-d351-ae62282855ee@lbl.gov> <2F8BA25CC0B82C4DB6756F8F663E6DB36B672AE0@CITESMBX3.ad.uillinois.edu> Message-ID: Hi Louis, Very cool dataset. My guess is that there is a topology problem with this dataset - some cells that are neighbors but don't exactly share vertices on neighboring faces. Maybe hanging nodes because of some sort of refinement? This is usually when the point locator fails. To locate a cell containing a point, it first locates the closest point and then walks neighboring cells until it finds a match. The walk will fail if two neighbor cells don't actually share points because of some weird topology. The cell locators is the fix to these issues. The reason it is not currently the default is performance. We are working on improving the cell locator performance so that it can be the default behavior in the future. Also, as Andy mentioned, the ReasonForTermination array provides good info for debugging such issues. Here are the possible values: OUT_OF_DOMAIN = 0, NOT_INITIALIZED = 1 , UNEXPECTED_VALUE = 2, OUT_OF_LENGTH = 4, OUT_OF_STEPS = 5, STAGNATION = 6, If you see OUT_OF_DOMAIN inside the mesh, it is usually an indication that you should either fix your mesh or use the cell locator. Best, -berk On Wed, Feb 7, 2018 at 3:28 PM, Steytler, Louis Louw wrote: > Hi Everyone, > > Thanks very much for all the suggestions. > > Setting the streamline interpolator type to: > > > > *streamTracer1.InterpolatorType = 'Interpolator with Cell Locator' *solved > the problem! > > Thanks again, > > Louis Steytler > Department of Mechanical Science and Engineering > University of Illinois at Urbana-Champaign > 1206 West Green Street > Urbana, Il 61801 > steytle1 at illinois.edu > ------------------------------ > *From:* Burlen Loring [bloring at lbl.gov] > *Sent:* 07 February 2018 12:50 PM > *To:* Steytler, Louis Louw > *Subject:* Re: [Paraview] Broken Streamlines > > Hi Louis, > > Is there any chance this is the rendering precision issue called depth > buffer fighting? What happens when you turn off display of the plane? Are > the streamlines still broken? > > Burlen > > > On 02/07/2018 09:06 AM, Steytler, Louis Louw wrote: > > Hi Everyone, > > When generating streamlines from a 3D computation, in some parts, the > streamlines appear broken. This is shown in the attached image (the arrows > point to the broken parts). > > Increasing the "Maximum Streamline Length" parameter did not help. > > Using the "Point to Cell Data" filter, and then generating streamlines on > the cell data did not help. > > Although in the image shown the broken parts are in an area of low > velocity, this happens in regions of high velocity as well. It also does > not seem to depend on grid resolution, as the broken parts show up all over. > > Has anyone experienced anything like this? Any ideas how to work around > this? > > Thanks very much, > > Louis Steytler > Department of Mechanical Science and Engineering > University of Illinois at Urbana-Champaign > 1206 West Green Street > Urbana, Il 61801 > steytle1 at illinois.edu > > > _______________________________________________ > 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:https://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 > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > https://paraview.org/mailman/listinfo/paraview > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wascott at sandia.gov Thu Feb 8 17:09:45 2018 From: wascott at sandia.gov (Scott, W Alan) Date: Thu, 8 Feb 2018 22:09:45 +0000 Subject: [Paraview] Large Data, local server Message-ID: Hi all, Thought I would pass a success story around. I just watched a user open a 102 million cell dataset, with two thousand files per timestep, using 58 Gig of memory, on a standalone version of ParaView. Slow, but it all held together. ParaView rocks. Alan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nicholas.Stegmeier at sdstate.edu Thu Feb 8 18:43:02 2018 From: Nicholas.Stegmeier at sdstate.edu (Stegmeier, Nicholas) Date: Thu, 8 Feb 2018 23:43:02 +0000 Subject: [Paraview] Process Id Scalars on 2D rectilinear data Message-ID: Hello, I am having trouble applying the Process Id Scalars filter to my 2D parallel rectilinear data. The filter is always grayed out, even when I have the data selected in the pipeline. Is there any reason that this filter would not work for my data? Thank you, Nick Stegmeier -------------- next part -------------- An HTML attachment was scrubbed... URL: From wascott at sandia.gov Thu Feb 8 19:07:04 2018 From: wascott at sandia.gov (Scott, W Alan) Date: Fri, 9 Feb 2018 00:07:04 +0000 Subject: [Paraview] [EXTERNAL] Process Id Scalars on 2D rectilinear data In-Reply-To: References: Message-ID: <593eacbffe154c29a34c52fd2e127d5c@ES01AMSNLNT.srn.sandia.gov> Can you open a new, clean ParaView, remote server, and do the following:? * Sources/ Plane * Filters/ Alphabetical/ Process Id Scalars If not, look at Help/ About/ Connection Information. Does Remote Connection say Yes? Alan From: ParaView [mailto:paraview-bounces at public.kitware.com] On Behalf Of Stegmeier, Nicholas Sent: Thursday, February 8, 2018 4:43 PM To: paraview at paraview.org Subject: [EXTERNAL] [Paraview] Process Id Scalars on 2D rectilinear data Hello, I am having trouble applying the Process Id Scalars filter to my 2D parallel rectilinear data. The filter is always grayed out, even when I have the data selected in the pipeline. Is there any reason that this filter would not work for my data? Thank you, Nick Stegmeier -------------- next part -------------- An HTML attachment was scrubbed... URL: From hbuesing at eonerc.rwth-aachen.de Fri Feb 9 02:42:54 2018 From: hbuesing at eonerc.rwth-aachen.de (Buesing, Henrik) Date: Fri, 9 Feb 2018 07:42:54 +0000 Subject: [Paraview] Visualize equdistant cell-centered data In-Reply-To: References: Message-ID: Dear Cory, Thank you very much for your reply! I think, then I will build the new grid in my application already. With this I do not need to go through complicated post-processing steps. Thank you! Henrik -- Dipl.-Math. Henrik B?sing Institute for Applied Geophysics and Geothermal Energy E.ON Energy Research Center RWTH Aachen University Mathieustr. 10 | Tel +49 (0)241 80 49907 52074 Aachen, Germany | Fax +49 (0)241 80 49889 http://www.eonerc.rwth-aachen.de/GGE hbuesing at eonerc.rwth-aachen.de Von: Cory Quammen [mailto:cory.quammen at kitware.com] Gesendet: Donnerstag, 8. Februar 2018 16:12 An: Buesing, Henrik Cc: paraview at paraview.org Betreff: Re: [Paraview] Visualize equdistant cell-centered data Henrik, I believe I understand what you are trying to do. However, there is nothing available in ParaView to do this simply. You could use the Programmable Filter to create a new structured grid with the C+1 number of points in each dimension and then set the point data array in the C-sized grid to be a cell data array in the (C+1)-sized grid. The data layout is such that that should work. However, you will need to set up the points manually. Hope that helps, Cory On Thu, Feb 8, 2018 at 5:42 AM, Buesing, Henrik > wrote: Ok. Let me rephrase my question. Maybe someone speaks Matlab? Full Matlab Code below (see [1]). Let?s assume I have a 2x2 matrix with color values C=[1 2; 3 4]. Now I can visualize this matrix with on a 2x2 grid with surf in Matlab. What I get is one square with the color values on each node (see Case 1 in the Matlab code). This is what Paraview does! What I want is the following: I define a new grid, which is 3x3. So one value more in each direction than I have color values. On this grid the color values live cell-centered. If I now visualize this in Matlab, I get a 2x2 block matrix with color values from 1-4. This is what I want! To sum up: I want to keep my color values, but I want to define a new cell-centered grid (with size(C,1)+1) where these color values live on. Is this somehow possible in Paraview? Thank you! Henrik [1] % Full Matlab Code to visualize the two cases. C = [1 2; 3 4]; % Case 1 x=linspace(0,1,size(C,1)); y=x; [X,Y]=meshgrid(x,y); Z=zeros(size(C)); figure;surf(X,Y,Z,C);shading interp;view(0,90); colorbar % Case 2 x=linspace(0,1,size(C,1)+1); y=x; [X,Y]=meshgrid(x,y); Z=zeros(size(C)+1); figure;surf(X,Y,Z,C);shading flat;view(0,90); colorbar -- Dipl.-Math. Henrik B?sing Institute for Applied Geophysics and Geothermal Energy E.ON Energy Research Center RWTH Aachen University Mathieustr. 10 | Tel +49 (0)241 80 49907 52074 Aachen, Germany | Fax +49 (0)241 80 49889 http://www.eonerc.rwth-aachen.de/GGE hbuesing at eonerc.rwth-aachen.de Von: ParaView [mailto:paraview-bounces at paraview.org] Im Auftrag von Buesing, Henrik Gesendet: Freitag, 19. Januar 2018 21:13 An: paraview at paraview.org Betreff: [Paraview] Visualize equdistant cell-centered data Dear all, I have a ?Structured (Curvilinear) Grid? (*.vts), which gets read in as 314531 cells and 330000 points. I would like to tell Paraview that this is equidistant cell-centered data (330000 cells). I want every cell to get one color, such that color interpolation becomes correct. Can I somehow convert the data I have? Thank you! Henrik B?sing _______________________________________________ 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: https://paraview.org/mailman/listinfo/paraview -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Fri Feb 9 09:20:13 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Fri, 9 Feb 2018 09:20:13 -0500 Subject: [Paraview] Visualize equdistant cell-centered data In-Reply-To: References: Message-ID: On Fri, Feb 9, 2018 at 2:42 AM, Buesing, Henrik < hbuesing at eonerc.rwth-aachen.de> wrote: > Dear Cory, > > > > Thank you very much for your reply! I think, then I will build the new > grid in my application already. With this I do not need to go through > complicated post-processing steps. > > Thank you! > Henrik > > > Henrik, Thank seems like a reasonable solution :-) Cory > > > -- > > Dipl.-Math. Henrik B?sing > > Institute for Applied Geophysics and Geothermal Energy > > E.ON Energy Research Center > > RWTH Aachen University > > > > Mathieustr. 10 > | > Tel +49 (0)241 80 49907 <+49%20241%208049907> > > 52074 Aachen, Germany | Fax +49 (0)241 80 49889 <+49%20241%208049889> > > > > http://www.eonerc.rwth-aachen.de/GGE > > hbuesing at eonerc.rwth-aachen.de > > > > *Von:* Cory Quammen [mailto:cory.quammen at kitware.com] > *Gesendet:* Donnerstag, 8. Februar 2018 16:12 > *An:* Buesing, Henrik > *Cc:* paraview at paraview.org > *Betreff:* Re: [Paraview] Visualize equdistant cell-centered data > > > > Henrik, > > > > I believe I understand what you are trying to do. However, there is > nothing available in ParaView to do this simply. > > > > You could use the Programmable Filter to create a new structured grid with > the C+1 number of points in each dimension and then set the point data > array in the C-sized grid to be a cell data array in the (C+1)-sized grid. > The data layout is such that that should work. However, you will need to > set up the points manually. > > > > Hope that helps, > > Cory > > > > On Thu, Feb 8, 2018 at 5:42 AM, Buesing, Henrik < > hbuesing at eonerc.rwth-aachen.de> wrote: > > Ok. Let me rephrase my question. Maybe someone speaks Matlab? Full Matlab > Code below (see [1]). > > > > Let?s assume I have a 2x2 matrix with color values C=[1 2; 3 4]. Now I can > visualize this matrix with on a 2x2 grid with surf in Matlab. What I get is > one square with the color values on each node (see Case 1 in the Matlab > code). This is what Paraview does! > > > > What I want is the following: I define a new grid, which is 3x3. So one > value more in each direction than I have color values. On this grid the > color values live cell-centered. If I now visualize this in Matlab, I get a > 2x2 block matrix with color values from 1-4. This is what I want! > > > > To sum up: I want to keep my color values, but I want to define a new > cell-centered grid (with size(C,1)+1) where these color values live on. Is > this somehow possible in Paraview? > > Thank you! > Henrik > > > > > > > > [1] > > > > % Full Matlab Code to visualize the two cases. > > > > C = [1 2; 3 4]; > > > > % Case 1 > > x=linspace(0,1,size(C,1)); > > y=x; > > [X,Y]=meshgrid(x,y); > > Z=zeros(size(C)); > > figure;surf(X,Y,Z,C);shading interp;view(0,90); > > colorbar > > > > % Case 2 > > x=linspace(0,1,size(C,1)+1); > > y=x; > > [X,Y]=meshgrid(x,y); > > Z=zeros(size(C)+1); > > figure;surf(X,Y,Z,C);shading flat;view(0,90); > > colorbar > > > > -- > > Dipl.-Math. Henrik B?sing > > Institute for Applied Geophysics and Geothermal Energy > > E.ON Energy Research Center > > RWTH Aachen University > > > > Mathieustr. 10 > | > Tel +49 (0)241 80 49907 <+49%20241%208049907> > > 52074 Aachen, Germany | Fax +49 (0)241 80 49889 <+49%20241%208049889> > > > > http://www.eonerc.rwth-aachen.de/GGE > > hbuesing at eonerc.rwth-aachen.de > > > > *Von:* ParaView [mailto:paraview-bounces at paraview.org] *Im Auftrag von *Buesing, > Henrik > *Gesendet:* Freitag, 19. Januar 2018 21:13 > *An:* paraview at paraview.org > *Betreff:* [Paraview] Visualize equdistant cell-centered data > > > > Dear all, > > > > I have a ?Structured (Curvilinear) Grid? (*.vts), which gets read in as > 314531 cells and 330000 points. I would like to tell Paraview that this is > equidistant cell-centered data (330000 cells). I want every cell to get one > color, such that color interpolation becomes correct. > > > > Can I somehow convert the data I have? > > > > Thank you! > Henrik B?sing > > > > > _______________________________________________ > 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: > https://paraview.org/mailman/listinfo/paraview > > > > > > -- > > Cory Quammen > Staff R&D Engineer > Kitware, Inc. > -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephen.wornom at inria.fr Fri Feb 9 09:40:54 2018 From: stephen.wornom at inria.fr (Stephen Wornom) Date: Fri, 9 Feb 2018 15:40:54 +0100 (CET) Subject: [Paraview] Visualize equdistant cell-centered data In-Reply-To: References: Message-ID: <143972496.7019569.1518187254173.JavaMail.zimbra@inria.fr> Always include the question that you are answering, Stephen ----- Original Message ----- > From: "Cory Quammen" > To: "Henrik Buesing" > Cc: paraview at paraview.org > Sent: Friday, February 9, 2018 3:20:13 PM > Subject: Re: [Paraview] Visualize equdistant cell-centered data > On Fri, Feb 9, 2018 at 2:42 AM, Buesing, Henrik < > hbuesing at eonerc.rwth-aachen.de > wrote: > > Dear Cory, > > > Thank you very much for your reply! I think, then I will build the new grid > > in my application already. With this I do not need to go through > > complicated > > post-processing steps. > > > Thank you! > > > Henrik > > Henrik, > Thank seems like a reasonable solution :-) > Cory > > -- > > > Dipl.-Math. Henrik B?sing > > > Institute for Applied Geophysics and Geothermal Energy > > > E.ON Energy Research Center > > > RWTH Aachen University > > > Mathieustr. 10 | Tel +49 (0)241 80 49907 > > > 52074 Aachen, Germany | Fax +49 (0)241 80 49889 > > > http://www.eonerc.rwth-aachen.de/GGE > > > hbuesing at eonerc.rwth-aachen.de > > > Von: Cory Quammen [mailto: cory.quammen at kitware.com ] > > > Gesendet: Donnerstag, 8. Februar 2018 16:12 > > > An: Buesing, Henrik < hbuesing at eonerc.rwth-aachen.de > > > > Cc: paraview at paraview.org > > > Betreff: Re: [Paraview] Visualize equdistant cell-centered data > > > Henrik, > > > I believe I understand what you are trying to do. However, there is nothing > > available in ParaView to do this simply. > > > You could use the Programmable Filter to create a new structured grid with > > the C+1 number of points in each dimension and then set the point data > > array > > in the C-sized grid to be a cell data array in the (C+1)-sized grid. The > > data layout is such that that should work. However, you will need to set up > > the points manually. > > > Hope that helps, > > > Cory > > > On Thu, Feb 8, 2018 at 5:42 AM, Buesing, Henrik < > > hbuesing at eonerc.rwth-aachen.de > wrote: > > > > Ok. Let me rephrase my question. Maybe someone speaks Matlab? Full Matlab > > > Code below (see [1]). > > > > > > Let?s assume I have a 2x2 matrix with color values C=[1 2; 3 4]. Now I > > > can > > > visualize this matrix with on a 2x2 grid with surf in Matlab. What I get > > > is > > > one square with the color values on each node (see Case 1 in the Matlab > > > code). This is what Paraview does! > > > > > > What I want is the following: I define a new grid, which is 3x3. So one > > > value > > > more in each direction than I have color values. On this grid the color > > > values live cell-centered. If I now visualize this in Matlab, I get a 2x2 > > > block matrix with color values from 1-4. This is what I want! > > > > > > To sum up: I want to keep my color values, but I want to define a new > > > cell-centered grid (with size(C,1)+1) where these color values live on. > > > Is > > > this somehow possible in Paraview? > > > > > > Thank you! > > > > > > Henrik > > > > > > [1] > > > > > > % Full Matlab Code to visualize the two cases. > > > > > > C = [1 2; 3 4]; > > > > > > % Case 1 > > > > > > x=linspace(0,1,size(C,1)); > > > > > > y=x; > > > > > > [X,Y]=meshgrid(x,y); > > > > > > Z=zeros(size(C)); > > > > > > figure;surf(X,Y,Z,C);shading interp;view(0,90); > > > > > > colorbar > > > > > > % Case 2 > > > > > > x=linspace(0,1,size(C,1)+1); > > > > > > y=x; > > > > > > [X,Y]=meshgrid(x,y); > > > > > > Z=zeros(size(C)+1); > > > > > > figure;surf(X,Y,Z,C);shading flat;view(0,90); > > > > > > colorbar > > > > > > -- > > > > > > Dipl.-Math. Henrik B?sing > > > > > > Institute for Applied Geophysics and Geothermal Energy > > > > > > E.ON Energy Research Center > > > > > > RWTH Aachen University > > > > > > Mathieustr. 10 | Tel +49 (0)241 80 49907 > > > > > > 52074 Aachen, Germany | Fax +49 (0)241 80 49889 > > > > > > http://www.eonerc.rwth-aachen.de/GGE > > > > > > hbuesing at eonerc.rwth-aachen.de > > > > > > Von: ParaView [mailto: paraview-bounces at paraview.org ] Im Auftrag von > > > Buesing, Henrik > > > > > > Gesendet: Freitag, 19. Januar 2018 21:13 > > > > > > An: paraview at paraview.org > > > > > > Betreff: [Paraview] Visualize equdistant cell-centered data > > > > > > Dear all, > > > > > > I have a ?Structured (Curvilinear) Grid? (*.vts), which gets read in as > > > 314531 cells and 330000 points. I would like to tell Paraview that this > > > is > > > equidistant cell-centered data (330000 cells). I want every cell to get > > > one > > > color, such that color interpolation becomes correct. > > > > > > Can I somehow convert the data I have? > > > > > > Thank you! > > > > > > Henrik B?sing > > > > > > _______________________________________________ > > > > > > 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: > > > > > > https://paraview.org/mailman/listinfo/paraview > > > > > -- > > > Cory Quammen > > > Staff R&D Engineer > > > Kitware, Inc. > > -- > Cory Quammen > Staff R&D 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: > https://public.kitware.com/mailman/listinfo/paraview -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike.jackson at bluequartz.net Fri Feb 9 11:03:10 2018 From: mike.jackson at bluequartz.net (Michael Jackson) Date: Fri, 09 Feb 2018 11:03:10 -0500 Subject: [Paraview] ParaView 5.4.1 opening a .vtk file Message-ID: <0225304A-DF5E-4263-BD9E-3F6A28BA47BE@bluequartz.net> Can ParaView 5.4.1 open a .vtk file? I have tried and I get the dialog that presents the big long list of possible file readers. Nothing on that list seems to say "vtk" files. Odd. ? Probably "user error" but this seems like it used to work? macOS 10.13.x with the latest download from the ParaView web site. -- Michael Jackson | Owner, President BlueQuartz Software [e] mike.jackson at bluequartz.net [w] www.bluequartz.net From utkarsh.ayachit at kitware.com Fri Feb 9 11:17:33 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Fri, 9 Feb 2018 11:17:33 -0500 Subject: [Paraview] ParaView 5.4.1 opening a .vtk file In-Reply-To: <0225304A-DF5E-4263-BD9E-3F6A28BA47BE@bluequartz.net> References: <0225304A-DF5E-4263-BD9E-3F6A28BA47BE@bluequartz.net> Message-ID: Mike, That happens when the chosen reader for .vtk files reported that it can't read the file for some reason. If you can share the file, we can see why the reader is claiming it can't read the file. Utkarsh On Fri, Feb 9, 2018 at 11:03 AM, Michael Jackson wrote: > Can ParaView 5.4.1 open a .vtk file? I have tried and I get the dialog that presents the big long list of possible file readers. Nothing on that list seems to say "vtk" files. Odd. ? > > Probably "user error" but this seems like it used to work? macOS 10.13.x with the latest download from the ParaView web site. > -- > Michael Jackson | Owner, President > BlueQuartz Software > [e] mike.jackson at bluequartz.net > [w] www.bluequartz.net > > > _______________________________________________ > 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: > https://public.kitware.com/mailman/listinfo/paraview From david.thompson at kitware.com Fri Feb 9 17:17:19 2018 From: david.thompson at kitware.com (David Thompson) Date: Fri, 9 Feb 2018 17:17:19 -0500 Subject: [Paraview] Possible to view ExodusII HEX9 data? In-Reply-To: References: Message-ID: Hi Weston, > Is there any way I could render HEX9 exodusii data as as HEX8 data in paraview, (ignoring the 9th node) or work with it directly? Not without modifying the source. Have you built ParaView yourself or do you install it from packages. > > HEX9 numbering: https://github.com/gsjaardema/seacas/blob/master/docs/topology/hex09.png > > It appears that Paraview reads the file as HEX8 but is reading the center node as part of one of the hexahedron's edges (see attached image) It would help to have a small example file for us to test against. If you want to experiment, you can edit VTK/IO/Exodus/vtkExodusIIReader.cxx around line 3237 (inside vtkExodusIIReaderPrivate::DetermineVtkCellType) and add else if ((elemType.substr(0,3) == "HEX") && (binfo.BdsPerEntry[0] == 9)) { binfo.CellType=VTK_HEXAHEDRON; binfo.PointsPerCell = 8; } You can see that is what we do for 21-node hexes currently. David > _______________________________________________ > 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: > https://paraview.org/mailman/listinfo/paraview From weston at wortiz.com Fri Feb 9 18:16:02 2018 From: weston at wortiz.com (Weston Ortiz) Date: Fri, 9 Feb 2018 16:16:02 -0700 Subject: [Paraview] Possible to view ExodusII HEX9 data? In-Reply-To: References: Message-ID: > Have you built ParaView yourself or do you install it from packages. Usually just from the paraview tarballs, i can try adding the new change code next week though. > It would help to have a small example file for us to test against. Attached is a small example file (lid driven cavity, ldc.exoII) and an example output image of a slice with velocity vectors in ensight Thanks, Weston On Fri, Feb 9, 2018 at 3:17 PM, David Thompson wrote: > Hi Weston, > > > Is there any way I could render HEX9 exodusii data as as HEX8 data in > paraview, (ignoring the 9th node) or work with it directly? > > Not without modifying the source. Have you built ParaView yourself or do > you install it from packages. > > > > > HEX9 numbering: https://github.com/gsjaardema/seacas/blob/master/docs/ > topology/hex09.png > > > > It appears that Paraview reads the file as HEX8 but is reading the > center node as part of one of the hexahedron's edges (see attached image) > > It would help to have a small example file for us to test against. If you > want to experiment, you can edit VTK/IO/Exodus/vtkExodusIIReader.cxx > around line 3237 (inside vtkExodusIIReaderPrivate::DetermineVtkCellType) > and add > > else if ((elemType.substr(0,3) == "HEX") && (binfo.BdsPerEntry[0] > == 9)) > { binfo.CellType=VTK_HEXAHEDRON; binfo.PointsPerCell = > 8; } > > You can see that is what we do for 21-node hexes currently. > > David > > > > _______________________________________________ > > 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: > > https://paraview.org/mailman/listinfo/paraview > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ldc.exoII Type: application/octet-stream Size: 179624 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ldc_ensight_img.png Type: image/png Size: 167573 bytes Desc: not available URL: From utkarsh.ayachit at kitware.com Fri Feb 9 21:14:10 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Fri, 9 Feb 2018 21:14:10 -0500 Subject: [Paraview] Save Animation option in ParaView 5.4.0 vs 5.3.0 In-Reply-To: <7F781841FF1E044388AFA42B70703A7AEA384D41@CHIMBX6.ad.uillinois.edu> References: <7F781841FF1E044388AFA42B70703A7AEA384D41@CHIMBX6.ad.uillinois.edu> Message-ID: Mark, As I was re-reading your email while working on issue #1792 [1] which affects the save animation dialog, I have a few questions: Are you saving the movie as AVI (and on what platform). If so doesn't changing "Frame Rate" have the same effect for avi? If you set your frame rate to 1 frame/second, doesn't that yeild exactly what you're looking for -- each frame stays on for 1s with discrete jumps and no interpolation? Atleast on linux/mac where the FFMPEG writer is used, I can see that the frame rate of 1 fps works as expected. What am I missing? Thanks, Utkarsh [1] https://gitlab.kitware.com/paraview/paraview/issues/17952 On Fri, Jan 26, 2018 at 10:33 AM, Van Moer, Mark W wrote: > I forgot to mention that I can write out the number of frames I want if I > use Sequence instead of Snap to TimeSteps, however, then an Annotate Time > source will show an interpolated time based on the sequence rather than the > actual timesteps. If there?s a work around for that behavior I could do that > instead. > > > > From: Van Moer, Mark W > Sent: Friday, January 26, 2018 9:18 AM > To: ParaView > Subject: Save Animation option in ParaView 5.4.0 vs 5.3.0 > > > > Hello, > > > > In ParaView 5.3.0 and earlier, when Animation mode was Snap to TimeSteps, in > the Save Animation dialog box there was an option for No. of Frames / > timestep. This doesn?t show up in the 5.4.0 dialog box. Was this just moved > or was it removed completely? > > > > My use case for this is a data set with 25 timesteps, each of which is on > the order of either 5 minutes or 30 minutes apart in real world time. I?d > render 30 frames / timestep to get a 25 second movie to show each discrete > timestep for one second. The video should show those discrete jumps in time > and not use interpolation. > > > > I can do the frame replication in BASH but it was handy to have that option. > > > > Thanks, > > Mark > > > _______________________________________________ > 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: > https://paraview.org/mailman/listinfo/paraview > From Nicholas.Stegmeier at sdstate.edu Sat Feb 10 10:09:05 2018 From: Nicholas.Stegmeier at sdstate.edu (Stegmeier, Nicholas) Date: Sat, 10 Feb 2018 15:09:05 +0000 Subject: [Paraview] [EXTERNAL] Process Id Scalars on 2D rectilinear data In-Reply-To: <593eacbffe154c29a34c52fd2e127d5c@ES01AMSNLNT.srn.sandia.gov> References: , <593eacbffe154c29a34c52fd2e127d5c@ES01AMSNLNT.srn.sandia.gov> Message-ID: Hello Scott, Thanks for your reply. It seems I had a misunderstanding of what Process Id Scalars accomplishes. I am actually running Paraview sequentially but loading decomposed data. I'm wondering if there is a way to see how the domain was decomposed when the simulation was running? I could open each file and see the owned indices, but I was hoping for a visual representation. For each processor and time step I have a ".pvtr" file and a ".vtr" file. Do I need to output the process rank to each node in each data file? I would assume there's a better way... Nick ________________________________ From: Scott, W Alan Sent: Thursday, February 8, 2018 6:07:04 PM To: Stegmeier, Nicholas; paraview at paraview.org Subject: RE: [EXTERNAL] [Paraview] Process Id Scalars on 2D rectilinear data Can you open a new, clean ParaView, remote server, and do the following:? * Sources/ Plane * Filters/ Alphabetical/ Process Id Scalars If not, look at Help/ About/ Connection Information. Does Remote Connection say Yes? Alan From: ParaView [mailto:paraview-bounces at public.kitware.com] On Behalf Of Stegmeier, Nicholas Sent: Thursday, February 8, 2018 4:43 PM To: paraview at paraview.org Subject: [EXTERNAL] [Paraview] Process Id Scalars on 2D rectilinear data Hello, I am having trouble applying the Process Id Scalars filter to my 2D parallel rectilinear data. The filter is always grayed out, even when I have the data selected in the pipeline. Is there any reason that this filter would not work for my data? Thank you, Nick Stegmeier -------------- next part -------------- An HTML attachment was scrubbed... URL: From info at paraview-expert.com Sun Feb 11 09:55:34 2018 From: info at paraview-expert.com (Magician) Date: Sun, 11 Feb 2018 23:55:34 +0900 Subject: [Paraview] Set total recording time in VeloView Message-ID: <2998C114-95C6-4593-8084-47B6E7381989@paraview-expert.com> Hi all, I?m using VeloView 3.5.0 (Windows 64bit) and recording VLP-16?s data packets. I want to set the total recording time or stopping time, but VeloView have no option to do it on the GUI. Is there a good way? (ex. using Python) Magician http://www.paraview-expert.com/ From mathieu.westphal at kitware.com Sun Feb 11 23:52:12 2018 From: mathieu.westphal at kitware.com (Mathieu Westphal) Date: Mon, 12 Feb 2018 05:52:12 +0100 Subject: [Paraview] ParaView and VTK course in march and april 2018 in France Message-ID: Hello VTK and ParaView community Kitware will be holding VTK/ParaView courses on march and april 2017 in Lyon, France. 1/ Initial Trainings, VTK on march 13 2018 and ParaView on march 14 2018 Registration and details : VTK and ParaView User 2/ Advanced Trainings, VTK on april 4 2018 and ParaView on april 5 2018. Registration and details: VTK Advanced and ParaView Advanced Note that the course will be taught in English unless all atendees speaks French. If you have any question, please contact us at formations at http://www.kitware.fr Other trainings sessions that you may find interesting (CMake, ITK, 3D Slicer and OpenCV) are announced here . Best Regards, Mathieu Westphal -------------- next part -------------- An HTML attachment was scrubbed... URL: From Luc.Hermitte at cnes.fr Mon Feb 12 05:41:43 2018 From: Luc.Hermitte at cnes.fr (Hermitte Luc (CS SI)) Date: Mon, 12 Feb 2018 10:41:43 +0000 Subject: [Paraview] paraview-superbuild Qt5 not found In-Reply-To: <20180208155811.GA24943@megas.kitware.com> References: <20180208155811.GA24943@megas.kitware.com> Message-ID: Hi, *> On Thu, Feb 08, 2018 at 15:46:27 +0000, Hermitte Luc (CS SI) wrote: > > I'm calling cmake with the following options?: > > cmake -Dqt5_enabled=On -DUSE_SYSTEM_qt5=On(/Off) -DQt5_DIR=/path/to/qt/5.9.1/lib/cmake/Qt5 .. > > The input setting is `ENABLE_qt5`. The `qt5_enabled` variable indicates whether Qt5 is being built or not (either by request or because > of a dependency). It's value is set internally and the cache value is not used. Indeed. Thanks you Ben, and the others that've answered me. I totally missed this option. Thank you -- Luc Hermitte From dennis_conklin at goodyear.com Mon Feb 12 07:51:10 2018 From: dennis_conklin at goodyear.com (Dennis Conklin) Date: Mon, 12 Feb 2018 12:51:10 +0000 Subject: [Paraview] Finding Data Range Over All Timesteps Python Message-ID: Bane, You could run Temporal Statistics to get Max and Min over entire time range, then run calculator to get Range as (Max-Min). Then you could run your filter on this and use the variable from the calculator. Hope this helps Dennis -------------- next part -------------- An HTML attachment was scrubbed... URL: From weston at wortiz.com Mon Feb 12 10:31:55 2018 From: weston at wortiz.com (Weston Ortiz) Date: Mon, 12 Feb 2018 08:31:55 -0700 Subject: [Paraview] Possible to view ExodusII HEX9 data? In-Reply-To: References: Message-ID: Using else if ((elemType.substr(0,3) == "HEX") && (binfo.BdsPerEntry[0] == 9)) { binfo.CellType=VTK_HEXAHEDRON; binfo.PointsPerCell = 9; } Appears to render correctly (see attached plot) I changed the Points per cell to 9 as well, with it as 8 the output was the same as before. I'm guessing this is because exodus stores arrays by element (e.g. [, , ... etc.]) and PointsPerCell is used to index into these If so your hex21 might also need to be changed, cubit/trelis doesn't support hex21 so I couldn't check. Thanks, Weston On Fri, Feb 9, 2018 at 4:16 PM, Weston Ortiz wrote: > > Have you built ParaView yourself or do you install it from packages. > > Usually just from the paraview tarballs, i can try adding the new change > code next week though. > > > It would help to have a small example file for us to test against. > > Attached is a small example file (lid driven cavity, ldc.exoII) and an > example output image of a slice with velocity vectors in ensight > > Thanks, > > Weston > > On Fri, Feb 9, 2018 at 3:17 PM, David Thompson > wrote: > >> Hi Weston, >> >> > Is there any way I could render HEX9 exodusii data as as HEX8 data in >> paraview, (ignoring the 9th node) or work with it directly? >> >> Not without modifying the source. Have you built ParaView yourself or do >> you install it from packages. >> >> > >> > HEX9 numbering: https://github.com/gsjaardema/ >> seacas/blob/master/docs/topology/hex09.png >> > >> > It appears that Paraview reads the file as HEX8 but is reading the >> center node as part of one of the hexahedron's edges (see attached image) >> >> It would help to have a small example file for us to test against. If you >> want to experiment, you can edit VTK/IO/Exodus/vtkExodusIIReader.cxx >> around line 3237 (inside vtkExodusIIReaderPrivate::DetermineVtkCellType) >> and add >> >> else if ((elemType.substr(0,3) == "HEX") && (binfo.BdsPerEntry[0] >> == 9)) >> { binfo.CellType=VTK_HEXAHEDRON; binfo.PointsPerCell = >> 8; } >> >> You can see that is what we do for 21-node hexes currently. >> >> David >> >> >> > _______________________________________________ >> > 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: >> > https://paraview.org/mailman/listinfo/paraview >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hex9plot.png Type: image/png Size: 132521 bytes Desc: not available URL: From david.thompson at kitware.com Mon Feb 12 11:55:10 2018 From: david.thompson at kitware.com (David Thompson) Date: Mon, 12 Feb 2018 11:55:10 -0500 Subject: [Paraview] Possible to view ExodusII HEX9 data? In-Reply-To: References: Message-ID: Hi Weston, Thanks for the report and the test data. I'll see that the fix gets merged in for both HEX9 and HEX21. David > On Feb 12, 2018, at 10:31 AM, Weston Ortiz wrote: > > Using > > else if ((elemType.substr(0,3) == "HEX") && (binfo.BdsPerEntry[0] == 9)) > { binfo.CellType=VTK_HEXAHEDRON; binfo.PointsPerCell = 9; } > > Appears to render correctly (see attached plot) > > I changed the Points per cell to 9 as well, with it as 8 the output was the same as before. > > I'm guessing this is because exodus stores arrays by element (e.g. [, , ... etc.]) and PointsPerCell is used to index into these > > If so your hex21 might also need to be changed, cubit/trelis doesn't support hex21 so I couldn't check. > > Thanks, > > Weston > > On Fri, Feb 9, 2018 at 4:16 PM, Weston Ortiz wrote: > > Have you built ParaView yourself or do you install it from packages. > > Usually just from the paraview tarballs, i can try adding the new change code next week though. > > > It would help to have a small example file for us to test against. > > Attached is a small example file (lid driven cavity, ldc.exoII) and an example output image of a slice with velocity vectors in ensight > > Thanks, > > Weston > > On Fri, Feb 9, 2018 at 3:17 PM, David Thompson wrote: > Hi Weston, > > > Is there any way I could render HEX9 exodusii data as as HEX8 data in paraview, (ignoring the 9th node) or work with it directly? > > Not without modifying the source. Have you built ParaView yourself or do you install it from packages. > > > > > HEX9 numbering: https://github.com/gsjaardema/seacas/blob/master/docs/topology/hex09.png > > > > It appears that Paraview reads the file as HEX8 but is reading the center node as part of one of the hexahedron's edges (see attached image) > > It would help to have a small example file for us to test against. If you want to experiment, you can edit VTK/IO/Exodus/vtkExodusIIReader.cxx around line 3237 (inside vtkExodusIIReaderPrivate::DetermineVtkCellType) and add > > else if ((elemType.substr(0,3) == "HEX") && (binfo.BdsPerEntry[0] == 9)) > { binfo.CellType=VTK_HEXAHEDRON; binfo.PointsPerCell = 8; } > > You can see that is what we do for 21-node hexes currently. > > David > > > > _______________________________________________ > > 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: > > https://paraview.org/mailman/listinfo/paraview > > > > From dennis_conklin at goodyear.com Tue Feb 13 10:16:11 2018 From: dennis_conklin at goodyear.com (Dennis Conklin) Date: Tue, 13 Feb 2018 15:16:11 +0000 Subject: [Paraview] Questions on Add Selection/Subtract Selection Message-ID: All, I am writing some instructional material for my users and am working on "Interactive Selection". As I try to write this I realize that the rules for +/- Selection are confusing to me. Can someone verify that what I'm doing is the intended behavior. If I Click on "Select Cells Through" or "Select Points Through", then Add Selection and Subtract Selection are greyed out and not available. There are instances where I want to combine "Select Cells On", "Select Cells by Polygon", and "Select Cells Through" to finetune my final selection - similar for Points. Add/Subtract don't seem to work between all of the interactive selection methods, which is what I would intuitively expect: For example - click on Add Selection - it will remain highlighted thru the following actions: click on Select Cells On - now you can select cells click again on "Select Cells On" - you can select more cells that are added to the previous selection click on "Select Cells with Polygon" - you can select more cells that are added to the previous selection. click on "Select Block" - block is selected and all previously selected cells are unselected click again on "Select Block" - new block is selected and added to previous selection clock on "Select Cells On" - new cells are selected and previous selection is discarded. The two things which don't seem intuitive are: Why are "Select Cells/Points Through" not using Add Selection - in many cases it is necessary to select using different interactive methods to get the final desired selection. Should Select Block be divided into "Select Block Cells" and "Select Block Points" so that this selection method could be combined with Select Cells/Points On/Through with the "Add Selection" to finetune a selection. Alternately should "Select Block" be smarter and only select Block Cells if the current Selection is Cells, or only select Block Points if the current Selection is Points (and add them to the existing selection instead of replacing it? I realize I may be missing something here, so I'm really just asking for someone to clue me in if I am. Thanks for any insight Dennis -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Tue Feb 13 10:57:04 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Tue, 13 Feb 2018 10:57:04 -0500 Subject: [Paraview] Questions on Add Selection/Subtract Selection In-Reply-To: References: Message-ID: Dennis, > Why are ?Select Cells/Points Through? not using Add Selection ? in many > cases it is necessary to select using different interactive methods to get > the final desired selection. An implementation nuance, and no one asked for it :). The extract filter just support extracting a single frustum. We, in theory can make it support multiple additive frustums, but some additive, some subtractive will make it a trickier implementation. Of course, doable, not since no one asked for it, it never got around to getting implemented. > Should Select Block be divided into ?Select Block Cells? and ?Select Block > Points? Good idea. > so that this selection method could be combined with Select > Cells/Points On/Through with the ?Add Selection? to finetune a selection. > Alternately should ?Select Block? be smarter and only select Block Cells if > the current Selection is Cells, or only select Block Points if the current > Selection is Points (and add them to the existing selection instead of > replacing it? Ah! That's cool and not easily supportable the way things are currently. But Berk and I were chatting and we have an approach to support combining multiple selections add/remove/etc. nicely. Now just convince Alan to make it a priority and I'd love to have it sorted out for the SC release ;). Utkarsh From manoch at iris.washington.edu Tue Feb 13 12:16:40 2018 From: manoch at iris.washington.edu (Manochehr Bahavar) Date: Tue, 13 Feb 2018 09:16:40 -0800 Subject: [Paraview] Python programmable source Message-ID: <2B46F6DC-E5D2-49D8-B526-2250F64F50D6@iris.washington.edu> Hello, I have created a Python programmable source to populate and display a vtkPolyData. All works well, however, I would like to change display settings via the same Python code. I found out that after I press The Apply button I can modify the script to set the representation type to ?Points? but if I place a GetDisplayProperties statement at the end of the script initially to gain access to these properties, I will get: Traceback (most recent call last): File "", line 20, in File "", line 82, in RequestData File "/Applications/ParaView-5.4.1-822-g597adef982.app/Contents/Python/paraview/simple.py", line 454, in GetDisplayProperties return GetRepresentation(proxy, view) File "/Applications/ParaView-5.4.1-822-g597adef982.app/Contents/Python/paraview/simple.py", line 437, in GetRepresentation view = active_objects.view File "/Applications/ParaView-5.4.1-822-g597adef982.app/Contents/Python/paraview/simple.py", line 2213, in get_view self.__get_selection_model("ActiveView").GetCurrentProxy()) File "/Applications/ParaView-5.4.1-822-g597adef982.app/Contents/Python/paraview/simple.py", line 2191, in __get_selection_model pxm = servermanager.ProxyManager(session) RuntimeError: maximum recursion depth exceeded How can I address this problem? Thanks, ?manoch -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy.bauer at kitware.com Tue Feb 13 12:24:38 2018 From: andy.bauer at kitware.com (Andy Bauer) Date: Tue, 13 Feb 2018 12:24:38 -0500 Subject: [Paraview] Python programmable source In-Reply-To: <2B46F6DC-E5D2-49D8-B526-2250F64F50D6@iris.washington.edu> References: <2B46F6DC-E5D2-49D8-B526-2250F64F50D6@iris.washington.edu> Message-ID: The programmable source was designed to work on the server-side data only. By the fact that you're using the built-in server (i.e. the ParaView GUI and pvserver run in the same process space) you have access to client-side information like representation type but that stuff is only available after you've fully executed the programmable source script. You may want to look at using the Python trace functionality and then saving that as a macro. That should be a more consistent solution that also works with a remote pvserver. On Tue, Feb 13, 2018 at 12:16 PM, Manochehr Bahavar < manoch at iris.washington.edu> wrote: > Hello, > > I have created a Python programmable source to populate and display a > vtkPolyData. All works well, however, I would like to change display > settings via the same Python code. I found out that after I press The Apply > button I can modify the script to set the representation type to ?Points? > but if I place a GetDisplayProperties statement at the end of the script > initially to gain access to these properties, I will get: > > Traceback (most recent call last): > File "", line 20, in > File "", line 82, in RequestData > File "/Applications/ParaView-5.4.1-822-g597adef982.app/Contents/Python/paraview/simple.py", > line 454, in GetDisplayProperties > return GetRepresentation(proxy, view) > File "/Applications/ParaView-5.4.1-822-g597adef982.app/Contents/Python/paraview/simple.py", > line 437, in GetRepresentation > view = active_objects.view > File "/Applications/ParaView-5.4.1-822-g597adef982.app/Contents/Python/paraview/simple.py", > line 2213, in get_view > self.__get_selection_model("ActiveView").GetCurrentProxy()) > File "/Applications/ParaView-5.4.1-822-g597adef982.app/Contents/Python/paraview/simple.py", > line 2191, in __get_selection_model > pxm = servermanager.ProxyManager(session) > RuntimeError: maximum recursion depth exceeded > > How can I address this problem? > > Thanks, > > ?manoch > > > _______________________________________________ > 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: > https://public.kitware.com/mailman/listinfo/paraview > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From manoch at iris.washington.edu Tue Feb 13 12:29:52 2018 From: manoch at iris.washington.edu (Manochehr Bahavar) Date: Tue, 13 Feb 2018 09:29:52 -0800 Subject: [Paraview] Python programmable source In-Reply-To: References: <2B46F6DC-E5D2-49D8-B526-2250F64F50D6@iris.washington.edu> Message-ID: Thank you Andy for the detailed info. I will look into the Python?s trace functionality. ?manoch > On Feb 13, 2018, at 9:24 AM, Andy Bauer wrote: > > The programmable source was designed to work on the server-side data only. By the fact that you're using the built-in server (i.e. the ParaView GUI and pvserver run in the same process space) you have access to client-side information like representation type but that stuff is only available after you've fully executed the programmable source script. > > You may want to look at using the Python trace functionality and then saving that as a macro. That should be a more consistent solution that also works with a remote pvserver. > > On Tue, Feb 13, 2018 at 12:16 PM, Manochehr Bahavar > wrote: > Hello, > > I have created a Python programmable source to populate and display a vtkPolyData. All works well, however, I would like to change display settings via the same Python code. I found out that after I press The Apply button I can modify the script to set the representation type to ?Points? but if I place a GetDisplayProperties statement at the end of the script initially to gain access to these properties, I will get: > > Traceback (most recent call last): > File "", line 20, in > File "", line 82, in RequestData > File "/Applications/ParaView-5.4.1-822-g597adef982.app/Contents/Python/paraview/simple.py", line 454, in GetDisplayProperties > return GetRepresentation(proxy, view) > File "/Applications/ParaView-5.4.1-822-g597adef982.app/Contents/Python/paraview/simple.py", line 437, in GetRepresentation > view = active_objects.view > File "/Applications/ParaView-5.4.1-822-g597adef982.app/Contents/Python/paraview/simple.py", line 2213, in get_view > self.__get_selection_model("ActiveView").GetCurrentProxy()) > File "/Applications/ParaView-5.4.1-822-g597adef982.app/Contents/Python/paraview/simple.py", line 2191, in __get_selection_model > pxm = servermanager.ProxyManager(session) > RuntimeError: maximum recursion depth exceeded > > How can I address this problem? > > Thanks, > > ?manoch > > > _______________________________________________ > 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: > https://public.kitware.com/mailman/listinfo/paraview > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From davogler at ethz.ch Tue Feb 13 14:03:59 2018 From: davogler at ethz.ch (Daniel Vogler) Date: Tue, 13 Feb 2018 14:03:59 -0500 Subject: [Paraview] Problem with paraview and Protocol Buffer version Message-ID: <0763a86f-ef1e-1e8d-079f-dc7286dea8dd@ethz.ch> Dear all, I am having trouble building Paraview 5.2.0 (This version or older is required for a separate plug-in). Other installations of paraview (not compiled from source) work fine. I run Ubuntu 16.04 LTS. I check out the paraview 5.2.0 release and installed Qt5.6.3 (also tried 5.6 and 5.7 because I had trouble with Qt during the paraview build earlier) in a separate directory. I have my (empty) build directory paraview_bin and paraview 5.2.0 source in /home/user/software/paraview_bin and /home/user/software/paraview respectively. - export PATH=/opt/Qt/5.6.3/gcc_64/:$PATH - ccmake -D PARAVIEW_QT_VERSION:STRING=5 /path/to/paraview - BUILD_TESTING --> OFF - generation and make completes The build works fine, but when I try to execute I get a protobuf error user:~/software/paraview_bin$ ./bin/paraview libprotobuf FATAL /home/user/software/paraview/ThirdParty/protobuf/vtkprotobuf/src/google/protobuf/stubs/common.cc:62] This program requires version 2.6.0 of the Protocol Buffer runtime library, but the installed version is 2.3.0. Please update your library. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "/build/mir-O8_xaj/mir-0.26.3+16.04.20170605/obj-x86_64-linux-gnu/src/protobuf/mir_protobuf.pb.cc".) Aborted although my protoc version seems fine user:~/software/paraview_bin$ protoc --version libprotoc 2.6.1 I have tried uninstalling and reinstalling protoc and libprotobuf as well as reinstalling Qt afterwards, but can not figure out this error. Any suggestions? Thanks a bunch, Dan From dennis_conklin at goodyear.com Tue Feb 13 14:21:06 2018 From: dennis_conklin at goodyear.com (Dennis Conklin) Date: Tue, 13 Feb 2018 19:21:06 +0000 Subject: [Paraview] [EXT] Re: Questions on Add Selection/Subtract Selection In-Reply-To: References: Message-ID: Utkarsh, How about a "Freeze Selection" choice like in Find Data that would convert a frustrum selection into an ID-based selection which would enable the use of Add Selection using another frustrum or any of the other Selection tools. Thoughtfully yours, Dennis -----Original Message----- From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] Sent: Tuesday, February 13, 2018 10:57 AM To: Dennis Conklin Cc: Paraview (paraview at paraview.org) Subject: [EXT] Re: [Paraview] Questions on Add Selection/Subtract Selection WARNING - External email; exercise caution. Dennis, > Why are ?Select Cells/Points Through? not using Add Selection ? in > many cases it is necessary to select using different interactive > methods to get the final desired selection. An implementation nuance, and no one asked for it :). The extract filter just support extracting a single frustum. We, in theory can make it support multiple additive frustums, but some additive, some subtractive will make it a trickier implementation. Of course, doable, not since no one asked for it, it never got around to getting implemented. > Should Select Block be divided into ?Select Block Cells? and ?Select > Block Points? Good idea. > so that this selection method could be combined with Select > Cells/Points On/Through with the ?Add Selection? to finetune a selection. > Alternately should ?Select Block? be smarter and only select Block > Cells if the current Selection is Cells, or only select Block Points > if the current Selection is Points (and add them to the existing > selection instead of replacing it? Ah! That's cool and not easily supportable the way things are currently. But Berk and I were chatting and we have an approach to support combining multiple selections add/remove/etc. nicely. Now just convince Alan to make it a priority and I'd love to have it sorted out for the SC release ;). Utkarsh From art.bodrin at gmail.com Tue Feb 13 14:29:22 2018 From: art.bodrin at gmail.com (Artem Bodrin) Date: Tue, 13 Feb 2018 22:29:22 +0300 Subject: [Paraview] Problem with paraview and Protocol Buffer version In-Reply-To: <0763a86f-ef1e-1e8d-079f-dc7286dea8dd@ethz.ch> References: <0763a86f-ef1e-1e8d-079f-dc7286dea8dd@ethz.ch> Message-ID: <3CB58FF8-789E-404A-8AE5-AE484397F506@gmail.com> Hello, Daniel. I have encountered the same trouble as you, Linux Mint (based on ubuntu 16.04). I did not seek for a solution yet (no need for linux version right now), but the answer is in the error output. If you inspect the 3rd party protobuf bundled with ParaView VTK submodule, then you can see that original version used by VTK is 2.3.0 So I think, that during compilation it uses the system headers from ubuntu (which is 2.6.1), but links on internal VTK protobuf library which is 2.3.0. My guessing is - remove dev package of protobuf from system and recompile again, it might help. > 13 ????. 2018 ?., ? 22:03, Daniel Vogler ???????(?): > > Dear all, > > I am having trouble building Paraview 5.2.0 (This version or older is required for a separate plug-in). Other installations of paraview (not compiled from source) work fine. > > I run Ubuntu 16.04 LTS. I check out the paraview 5.2.0 release and installed Qt5.6.3 (also tried 5.6 and 5.7 because I had trouble with Qt during the paraview build earlier) in a separate directory. I have my (empty) build directory paraview_bin and paraview 5.2.0 source in /home/user/software/paraview_bin and /home/user/software/paraview respectively. > > - export PATH=/opt/Qt/5.6.3/gcc_64/:$PATH > > - ccmake -D PARAVIEW_QT_VERSION:STRING=5 /path/to/paraview > > - BUILD_TESTING --> OFF > > - generation and make completes > > The build works fine, but when I try to execute I get a protobuf error > > > user:~/software/paraview_bin$ ./bin/paraview > libprotobuf FATAL /home/user/software/paraview/ThirdParty/protobuf/vtkprotobuf/src/google/protobuf/stubs/common.cc:62] > This program requires version 2.6.0 of the Protocol Buffer runtime library, but the installed version is 2.3.0. > Please update your library. > If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. > (Version verification failed in "/build/mir-O8_xaj/mir-0.26.3+16.04.20170605/obj-x86_64-linux-gnu/src/protobuf/mir_protobuf.pb.cc".) > Aborted > > although my protoc version seems fine > > user:~/software/paraview_bin$ protoc --version > libprotoc 2.6.1 > > I have tried uninstalling and reinstalling protoc and libprotobuf as well as reinstalling Qt afterwards, but can not figure out this error. > > Any suggestions? > > Thanks a bunch, > > Dan > From cory.quammen at kitware.com Tue Feb 13 14:33:09 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 13 Feb 2018 14:33:09 -0500 Subject: [Paraview] Problem with paraview and Protocol Buffer version In-Reply-To: <3CB58FF8-789E-404A-8AE5-AE484397F506@gmail.com> References: <0763a86f-ef1e-1e8d-079f-dc7286dea8dd@ethz.ch> <3CB58FF8-789E-404A-8AE5-AE484397F506@gmail.com> Message-ID: Unfortunately, this is a known issue on Ubuntu 16.04. https://gitlab.kitware.com/paraview/paraview/issues/17751 On Tue, Feb 13, 2018 at 2:29 PM, Artem Bodrin wrote: > Hello, Daniel. > I have encountered the same trouble as you, Linux Mint (based on ubuntu > 16.04). I did not seek for a solution yet (no need for linux version right > now), but the answer is in the error output. If you inspect the 3rd party > protobuf bundled with ParaView VTK submodule, then you can see that > original version used by VTK is 2.3.0 > So I think, that during compilation it uses the system headers from ubuntu > (which is 2.6.1), but links on internal VTK protobuf library which is 2.3.0. > My guessing is - remove dev package of protobuf from system and recompile > again, it might help. > > > > 13 ????. 2018 ?., ? 22:03, Daniel Vogler ???????(?): > > > > Dear all, > > > > I am having trouble building Paraview 5.2.0 (This version or older is > required for a separate plug-in). Other installations of paraview (not > compiled from source) work fine. > > > > I run Ubuntu 16.04 LTS. I check out the paraview 5.2.0 release and > installed Qt5.6.3 (also tried 5.6 and 5.7 because I had trouble with Qt > during the paraview build earlier) in a separate directory. I have my > (empty) build directory paraview_bin and paraview 5.2.0 source in > /home/user/software/paraview_bin and /home/user/software/paraview > respectively. > > > > - export PATH=/opt/Qt/5.6.3/gcc_64/:$PATH > > > > - ccmake -D PARAVIEW_QT_VERSION:STRING=5 /path/to/paraview > > > > - BUILD_TESTING --> OFF > > > > - generation and make completes > > > > The build works fine, but when I try to execute I get a protobuf error > > > > > > user:~/software/paraview_bin$ ./bin/paraview > > libprotobuf FATAL /home/user/software/paraview/ThirdParty/protobuf/ > vtkprotobuf/src/google/protobuf/stubs/common.cc:62] > > This program requires version 2.6.0 of the Protocol Buffer runtime > library, but the installed version is 2.3.0. > > Please update your library. > > If you compiled the program yourself, make sure that your headers are > from the same version of Protocol Buffers as your link-time library. > > (Version verification failed in "/build/mir-O8_xaj/mir-0.26.3+ > 16.04.20170605/obj-x86_64-linux-gnu/src/protobuf/mir_protobuf.pb.cc".) > > Aborted > > > > although my protoc version seems fine > > > > user:~/software/paraview_bin$ protoc --version > > libprotoc 2.6.1 > > > > I have tried uninstalling and reinstalling protoc and libprotobuf as > well as reinstalling Qt afterwards, but can not figure out this error. > > > > Any suggestions? > > > > Thanks a bunch, > > > > Dan > > > > _______________________________________________ > 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: > https://public.kitware.com/mailman/listinfo/paraview > -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From davogler at ethz.ch Tue Feb 13 15:18:55 2018 From: davogler at ethz.ch (Daniel Vogler) Date: Tue, 13 Feb 2018 15:18:55 -0500 Subject: [Paraview] Problem with paraview and Protocol Buffer version In-Reply-To: References: <0763a86f-ef1e-1e8d-079f-dc7286dea8dd@ethz.ch> <3CB58FF8-789E-404A-8AE5-AE484397F506@gmail.com> Message-ID: <37b22eba-c49c-f6a3-c844-3ecef5f5c470@ethz.ch> Hi Cory, dear Artem, Thanks for the mails. Regarding the issue Cory sent. When doing the following: I moved libqgtk2.so (not libqgtk3.so in my case) from /opt/Qt/5.9.0/gcc_64/plugins/platformthemes and commented _all_ lines in /opt/Qt/5.9/gcc_64/lib/cmake/Qt5Gui/Qt5Gui_QGtk3ThemePlugin.cmake I then rebuild paraview (build succeeds) but when I try to execute user:~/software/paraview_bin$ ./bin/paraview libprotobuf FATAL /home/user/software/paraview/ThirdParty/protobuf/vtkprotobuf/src/google/protobuf/stubs/common.cc:62] This program requires version 2.6.0 of the Protocol Buffer runtime library, but the installed version is 2.3.0.? Please update your library.? If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library.? (Version verification failed in "/build/mir-O8_xaj/mir-0.26.3+16.04.20170605/obj-x86_64-linux-gnu/src/protobuf/mir_protobuf.pb.cc".) Aborted I still have no success. I still have other version of Qt installed (also in opt) and did not uninstall "qt5-gtk-platformtheme" as suggested by Timo Oster in the thread you sent. Could any of this be the problem? I am hesitant to uninstall qt5-gtk-platformtheme as I'm not sure if that'll give me another conflict. Did I forget anything? Daniel On 13.02.2018 14:33, Cory Quammen wrote: > Unfortunately, this is a known issue on Ubuntu 16.04. > > https://gitlab.kitware.com/paraview/paraview/issues/17751 > > > On Tue, Feb 13, 2018 at 2:29 PM, Artem Bodrin > wrote: > > Hello, Daniel. > I have encountered the same trouble as you, Linux Mint (based on > ubuntu 16.04). I did not seek for a solution yet (no need for > linux version right now), but the answer is in the error output. > If you inspect? the 3rd party protobuf bundled with ParaView VTK > submodule, then you can see that original version used by VTK is 2.3.0 > So I think, that during compilation it uses the system headers > from ubuntu (which is 2.6.1), but links on internal VTK protobuf > library which is 2.3.0. > My guessing is - remove dev package of protobuf from system and > recompile again, it might help. > > > > 13 ????. 2018 ?., ? 22:03, Daniel Vogler > ???????(?): > > > > Dear all, > > > > I am having trouble building Paraview 5.2.0 (This version or > older is required for a separate plug-in). Other installations of > paraview (not compiled from source) work fine. > > > > I run Ubuntu 16.04 LTS. I check out the paraview 5.2.0 release > and installed Qt5.6.3 (also tried 5.6 and 5.7 because I had > trouble with Qt during the paraview build earlier) in a separate > directory. I have my (empty) build directory paraview_bin and > paraview 5.2.0 source in /home/user/software/paraview_bin and > /home/user/software/paraview respectively. > > > > - export PATH=/opt/Qt/5.6.3/gcc_64/:$PATH > > > > - ccmake -D PARAVIEW_QT_VERSION:STRING=5 /path/to/paraview > > > > - BUILD_TESTING --> OFF > > > > - generation and make completes > > > > The build works fine, but when I try to execute I get a protobuf > error > > > > > > user:~/software/paraview_bin$ ./bin/paraview > > libprotobuf FATAL > /home/user/software/paraview/ThirdParty/protobuf/vtkprotobuf/src/google/protobuf/stubs/common.cc:62] > > This program requires version 2.6.0 of the Protocol Buffer > runtime library, but the installed version is 2.3.0. > > Please update your library. > > If you compiled the program yourself, make sure that your > headers are from the same version of Protocol Buffers as your > link-time library. > > (Version verification failed in > "/build/mir-O8_xaj/mir-0.26.3+16.04.20170605/obj-x86_64-linux-gnu/src/protobuf/mir_protobuf.pb.cc > ".) > > Aborted > > > > although my protoc version seems fine > > > > user:~/software/paraview_bin$ protoc --version > > libprotoc 2.6.1 > > > > I have tried uninstalling and reinstalling protoc and > libprotobuf as well as reinstalling Qt afterwards, but can not > figure out this error. > > > > Any suggestions? > > > > Thanks a bunch, > > > > Dan > > > > _______________________________________________ > 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: > https://public.kitware.com/mailman/listinfo/paraview > > > > > > -- > Cory Quammen > Staff R&D Engineer > Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Tue Feb 13 16:58:46 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Tue, 13 Feb 2018 16:58:46 -0500 Subject: [Paraview] [EXT] Re: Questions on Add Selection/Subtract Selection In-Reply-To: References: Message-ID: That's a temporary workaround. It won't be a good approach for large datasets as frustum selection has the potential of selecting a large number of elements. Since for ID based selections, each ID has to be explicitly listed in the proxy state (so that it gets saved in state files, python scripts etc.), it not intended to contain a large number of values. On Tue, Feb 13, 2018 at 2:21 PM, Dennis Conklin wrote: > Utkarsh, > > How about a "Freeze Selection" choice like in Find Data that would convert a frustrum selection into an ID-based selection which would enable the use of Add Selection using another frustrum or any of the other Selection tools. > > Thoughtfully yours, > Dennis > > -----Original Message----- > From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] > Sent: Tuesday, February 13, 2018 10:57 AM > To: Dennis Conklin > Cc: Paraview (paraview at paraview.org) > Subject: [EXT] Re: [Paraview] Questions on Add Selection/Subtract Selection > > WARNING - External email; exercise caution. > > > > Dennis, > >> Why are ?Select Cells/Points Through? not using Add Selection ? in >> many cases it is necessary to select using different interactive >> methods to get the final desired selection. > > An implementation nuance, and no one asked for it :). The extract filter just support extracting a single frustum. We, in theory can make it support multiple additive frustums, but some additive, some subtractive will make it a trickier implementation. Of course, doable, not since no one asked for it, it never got around to getting implemented. > >> Should Select Block be divided into ?Select Block Cells? and ?Select >> Block Points? > > Good idea. > >> so that this selection method could be combined with Select >> Cells/Points On/Through with the ?Add Selection? to finetune a selection. >> Alternately should ?Select Block? be smarter and only select Block >> Cells if the current Selection is Cells, or only select Block Points >> if the current Selection is Points (and add them to the existing >> selection instead of replacing it? > > Ah! That's cool and not easily supportable the way things are currently. But Berk and I were chatting and we have an approach to support combining multiple selections add/remove/etc. nicely. Now just convince Alan to make it a priority and I'd love to have it sorted out for the SC release ;). > > Utkarsh From heiland at iu.edu Tue Feb 13 20:49:48 2018 From: heiland at iu.edu (Heiland, Randy) Date: Wed, 14 Feb 2018 01:49:48 +0000 Subject: [Paraview] Python shell, os.environ In-Reply-To: <20171221203130.GA11326@megas.kitware.com> References: <7D160F39-F03B-45BD-8109-64808B94F8E1@iu.edu> <20171221143403.GA18094@megas.kitware.com> <0E572B2D-E18D-4B7D-A3D2-49FE5A41A9D6@iu.edu> <20171221203130.GA11326@megas.kitware.com> Message-ID: To follow up on this thread? On OS X, running PV as an app, then opening the Python shell, I get: >>> os.environ {'SHELL': '/bin/bash', 'SSH_AUTH_SOCK': '/private/tmp/com.apple.launchd.yYfqa8v89A/Listeners', 'XPC_FLAGS': '0x0', '__CF_USER_TEXT_ENCODING': '0x1F5:0x0:0x0', 'Apple_PubSub_Socket_Render': '/private/tmp/com.apple.launchd.dl97FcplnG/Render', 'LOGNAME': 'heiland', 'USER': 'heiland', 'XPC_SERVICE_NAME': 'org.paraview.ParaView.37836', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/Users/heiland', 'DISPLAY': '/private/tmp/com.apple.launchd.Xf3Uaw6FhP/org.macosforge.xquartz:0', 'TMPDIR': '/var/folders/l6/s467rzgs75n91gdbkn7vr0f40000gn/T/'} >>> however, running it as: /Applications/ParaView-5.4.1.app/Contents/MacOS$ ./paraview ? the os.environ spews ALL envs in my bash shell. If there?s another option, outside of using env vars, for dynamically getting a user-defined string inside a Programmable Source, I?d welcome it. -Randy > On Dec 21, 2017, at 3:31 PM, Ben Boeckel wrote: > > On Thu, Dec 21, 2017 at 15:14:01 +0000, Heiland, Randy wrote: >> Thanks Ben. You?re right, of course. Moreover, my idea for having >> (non-admin) users install additional Python modules (e.g., scipy) into >> PV?s dir, is a not going to go well. > > Well, if `sys.path` or `PYTHONPATH` can be pointed to it, it *should* > work (though the `numpy` in the package may not be configured properly > for `scipy`). > >> Do we at least agree that if I ask users to start PV from the >> Terminal, PV?s Python will then pick up the user?s env vars? > > It should, but ParaView doesn't do anything to stop it. If it doesn't > work, it's probably some Apple framework thing that needs to be told not > to do silly things. > > --Ben From mathieu.westphal at kitware.com Tue Feb 13 21:59:54 2018 From: mathieu.westphal at kitware.com (Mathieu Westphal) Date: Wed, 14 Feb 2018 03:59:54 +0100 Subject: [Paraview] Problem with paraview and Protocol Buffer version In-Reply-To: <37b22eba-c49c-f6a3-c844-3ecef5f5c470@ethz.ch> References: <0763a86f-ef1e-1e8d-079f-dc7286dea8dd@ethz.ch> <3CB58FF8-789E-404A-8AE5-AE484397F506@gmail.com> <37b22eba-c49c-f6a3-c844-3ecef5f5c470@ethz.ch> Message-ID: Hello Switching to a downloaded version of Qt (with the patch cory mentionned) instead of using your package manager's Qt should do the trick. Best, Mathieu Westphal On Tue, Feb 13, 2018 at 9:18 PM, Daniel Vogler wrote: > Hi Cory, dear Artem, > > Thanks for the mails. Regarding the issue Cory sent. > > > When doing the following: > > I moved libqgtk2.so (not libqgtk3.so in my case) from > /opt/Qt/5.9.0/gcc_64/plugins/platformthemes > > and commented _all_ lines in /opt/Qt/5.9/gcc_64/lib/cmake/Qt5Gui/Qt5Gui_ > QGtk3ThemePlugin.cmake > > I then rebuild paraview (build succeeds) but when I try to execute > > user:~/software/paraview_bin$ ./bin/paraview > libprotobuf FATAL /home/user/software/paraview/ThirdParty/protobuf/ > vtkprotobuf/src/google/protobuf/stubs/common.cc:62] This program requires > version 2.6.0 of the Protocol Buffer runtime library, but the installed > version is 2.3.0. Please update your library. If you compiled the program > yourself, make sure that your headers are from the same version of Protocol > Buffers as your link-time library. (Version verification failed in > "/build/mir-O8_xaj/mir-0.26.3+16.04.20170605/obj-x86_64- > linux-gnu/src/protobuf/mir_protobuf.pb.cc".) > Aborted > > > I still have no success. I still have other version of Qt installed (also > in opt) and did not uninstall "qt5-gtk-platformtheme" as suggested by Timo > Oster in the thread you sent. Could any of this be the problem? I am > hesitant to uninstall qt5-gtk-platformtheme as I'm not sure if that'll give > me another conflict. > > Did I forget anything? > > Daniel > > > > On 13.02.2018 14:33, Cory Quammen wrote: > > Unfortunately, this is a known issue on Ubuntu 16.04. > > https://gitlab.kitware.com/paraview/paraview/issues/17751 > > > On Tue, Feb 13, 2018 at 2:29 PM, Artem Bodrin > wrote: > >> Hello, Daniel. >> I have encountered the same trouble as you, Linux Mint (based on ubuntu >> 16.04). I did not seek for a solution yet (no need for linux version right >> now), but the answer is in the error output. If you inspect the 3rd party >> protobuf bundled with ParaView VTK submodule, then you can see that >> original version used by VTK is 2.3.0 >> So I think, that during compilation it uses the system headers from >> ubuntu (which is 2.6.1), but links on internal VTK protobuf library which >> is 2.3.0. >> My guessing is - remove dev package of protobuf from system and recompile >> again, it might help. >> >> >> > 13 ????. 2018 ?., ? 22:03, Daniel Vogler ???????(?): >> > >> > Dear all, >> > >> > I am having trouble building Paraview 5.2.0 (This version or older is >> required for a separate plug-in). Other installations of paraview (not >> compiled from source) work fine. >> > >> > I run Ubuntu 16.04 LTS. I check out the paraview 5.2.0 release and >> installed Qt5.6.3 (also tried 5.6 and 5.7 because I had trouble with Qt >> during the paraview build earlier) in a separate directory. I have my >> (empty) build directory paraview_bin and paraview 5.2.0 source in >> /home/user/software/paraview_bin and /home/user/software/paraview >> respectively. >> > >> > - export PATH=/opt/Qt/5.6.3/gcc_64/:$PATH >> > >> > - ccmake -D PARAVIEW_QT_VERSION:STRING=5 /path/to/paraview >> > >> > - BUILD_TESTING --> OFF >> > >> > - generation and make completes >> > >> > The build works fine, but when I try to execute I get a protobuf error >> > >> > >> > user:~/software/paraview_bin$ ./bin/paraview >> > libprotobuf FATAL /home/user/software/paraview/T >> hirdParty/protobuf/vtkprotobuf/src/google/protobuf/stubs/common.cc:62] >> > This program requires version 2.6.0 of the Protocol Buffer runtime >> library, but the installed version is 2.3.0. >> > Please update your library. >> > If you compiled the program yourself, make sure that your headers are >> from the same version of Protocol Buffers as your link-time library. >> > (Version verification failed in "/build/mir-O8_xaj/mir-0.26.3+ >> 16.04.20170605/obj-x86_64-linux-gnu/src/protobuf/mir_protobuf.pb.cc".) >> > Aborted >> > >> > although my protoc version seems fine >> > >> > user:~/software/paraview_bin$ protoc --version >> > libprotoc 2.6.1 >> > >> > I have tried uninstalling and reinstalling protoc and libprotobuf as >> well as reinstalling Qt afterwards, but can not figure out this error. >> > >> > Any suggestions? >> > >> > Thanks a bunch, >> > >> > Dan >> > >> >> _______________________________________________ >> 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: >> https://public.kitware.com/mailman/listinfo/paraview >> > > > > -- > Cory Quammen > Staff R&D 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: > https://public.kitware.com/mailman/listinfo/paraview > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From art.bodrin at gmail.com Wed Feb 14 05:45:59 2018 From: art.bodrin at gmail.com (Artem Bodrin) Date: Wed, 14 Feb 2018 13:45:59 +0300 Subject: [Paraview] Problem with paraview and Protocol Buffer version In-Reply-To: References: <0763a86f-ef1e-1e8d-079f-dc7286dea8dd@ethz.ch> <3CB58FF8-789E-404A-8AE5-AE484397F506@gmail.com> <37b22eba-c49c-f6a3-c844-3ecef5f5c470@ethz.ch> Message-ID: Hello everyone, so i did some research and ldd shows that platformthemes/libqgtk3.so is linked to libprotobuf.so itself. Actually, does not matter of which version, not 2.3.0 and this is essential. I used Qt 5.10.0 binary distribution. To make ParaView work just remove that libqgtk3.so and it will run smoothly. No need to patch anything or rebuild. Just make the qt libs do not load that theme library. The "good way" solution is to update VTK protobuf to something fresh. Rebuilding a platform theme part of Qt with VTK protobuf library does not worth time spent on it. IMHO, of course :-) > 14 ????. 2018 ?., ? 5:59, Mathieu Westphal ???????(?): > > Hello > > Switching to a downloaded version of Qt (with the patch cory mentionned) instead of using your package manager's Qt should do the trick. > > Best, > > Mathieu Westphal > From art.bodrin at gmail.com Wed Feb 14 09:39:19 2018 From: art.bodrin at gmail.com (Artem Bodrin) Date: Wed, 14 Feb 2018 17:39:19 +0300 Subject: [Paraview] Problem with paraview and Protocol Buffer version In-Reply-To: References: <0763a86f-ef1e-1e8d-079f-dc7286dea8dd@ethz.ch> <3CB58FF8-789E-404A-8AE5-AE484397F506@gmail.com> <37b22eba-c49c-f6a3-c844-3ecef5f5c470@ethz.ch> Message-ID: <3E3F8C05-0FFC-4A5B-8587-37049CBF3DE5@gmail.com> I have described another possible solution, if you build a ParaView from sources, in comment to issue mentioned above: https://gitlab.kitware.com/paraview/paraview/issues/17751 Copying it here: Another possible solution for those who builds a ParaView from sources: Enable VTK_USE_SYSTEM_PROTOBUF option when configuring with cmake. cmake -DCMAKE_PREFIX_PATH=/home/bodrin/Qt5.10.0/5.10.0/gcc_64_lib/cmake -DVTK_USE_SYSTEM_PROTOBUF=ON ... Not need to remove something or else. Make sure you have protobuf-compiler and libprotobuf-dev packages installed from repository. Perform a clean build or remove generated vtkPVMessage.pb.cc and vtkPVMessage.pb.h -------------- next part -------------- An HTML attachment was scrubbed... URL: From bastien.jacquet at kitware.com Wed Feb 14 13:03:19 2018 From: bastien.jacquet at kitware.com (Bastien Jacquet) Date: Wed, 14 Feb 2018 19:03:19 +0100 Subject: [Paraview] Set total recording time in VeloView In-Reply-To: <2998C114-95C6-4593-8084-47B6E7381989@paraview-expert.com> References: <2998C114-95C6-4593-8084-47B6E7381989@paraview-expert.com> Message-ID: Hello Magician, I think you can use Python, and PythonQt to make a fake "record" button press, after the desired amount of time. Just try this: def myfunc(): vv.app.actions['actionRecord'].toggle() print ("Toggled recording") qq=QtCore.QTimer() qq.setSingleShot(True) qq.connect('timeout()',myfunc) recordingTimeInMilliseconds = 60 * 1000 qq.start(recordingTimeInMilliseconds) Hope this helps, Bastien Jacquet, PhD VeloView Lead Developer - Computer Vision Team Kitware SAS 26 rue Louis Gu?rin - 69100 Villeurbanne - France F: +33 (0)4.37.45.04.15 On Sun, Feb 11, 2018 at 3:55 PM, Magician wrote: > Hi all, > > > I?m using VeloView 3.5.0 (Windows 64bit) and recording VLP-16?s data > packets. > I want to set the total recording time or stopping time, but VeloView have > no option to do it on the GUI. > > Is there a good way? (ex. using Python) > > > Magician > http://www.paraview-expert.com/ > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > https://public.kitware.com/mailman/listinfo/paraview > -------------- next part -------------- An HTML attachment was scrubbed... URL: From en.mhdbabiker at gmail.com Wed Feb 14 13:31:46 2018 From: en.mhdbabiker at gmail.com (Mohammed Babiker) Date: Wed, 14 Feb 2018 19:31:46 +0100 Subject: [Paraview] Help Message-ID: <5a848092.05d31c0a.6b77d.5311@mx.google.com> Good evening I am a new user of paraview . I am running a simulation of particles passing through a horizontal pipe exiting from other side I would like to know howm many numbers of particles exit and plot that number with respect to time . any help will be appreciated. Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dennis_conklin at goodyear.com Wed Feb 14 13:38:21 2018 From: dennis_conklin at goodyear.com (Dennis Conklin) Date: Wed, 14 Feb 2018 18:38:21 +0000 Subject: [Paraview] Good neighbor filter Message-ID: All, I am looking to calculate a mesh quality measure that would be the ratio of the max/min of the element volumes of each element and all it's neighbors (other elements with common nodes). I intend to use this to quantify grid refinement transitions and perhaps establish some design standards for them. I have tried Gradient of Element Volume, but I need to eliminate the distance part of that to get the number that I want. So, if I have a hex element in a regular grid, I would expect to have 26 "neighbor" elements plus the original element. The number I want is (max of 27 element volumes)/(min of 27 element volumes). This quantity will highlight mesh refinement transitions. My question (at last) is: how do I find all the neighbor elements (share at least 1 node) of each element in my model? I'd like to do this in a Programmable Filter. I'm afraid I don't know much about how connectivity is implemented in vtk. Dennis -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy.bauer at kitware.com Wed Feb 14 13:51:13 2018 From: andy.bauer at kitware.com (Andy Bauer) Date: Wed, 14 Feb 2018 13:51:13 -0500 Subject: [Paraview] Good neighbor filter In-Reply-To: References: Message-ID: Hi Dennis, I'm assuming you're dealing with a vtkUnstructuredGrid (for the topologically regular grids you should just use the extent information). You'll want to look at the GetCellNeighbors() method -- https://www.vtk.org/doc/nightly/html/classvtkUnstructuredGrid.html#ac532485599a5d92acf4d9ca1e8818bfc. Here, cellId is the cell you want to get the neighbors from, ptIds is the list of points that need to be shared by both cells and cellIds is the return list. You'll have to iterate over all points of the cell you're interested in (i.e. call GetCellNeighbors() 8 times for a hex). The basic algorithm is: loop over cells: for each cell, loop over all of its points for each point call GeCellNeighbors(cellid, point id list with a single point) loop through cellids to compare cell sizes Please let me know if this isn't clear enough to get you going... Cheers, Andy On Wed, Feb 14, 2018 at 1:38 PM, Dennis Conklin wrote: > All, > > > > I am looking to calculate a mesh quality measure that would be the ratio > of the max/min of the element volumes of each element and all it?s > neighbors (other elements with common nodes). I intend to use this to > quantify grid refinement transitions and perhaps establish some design > standards for them. I have tried Gradient of Element Volume, but I need > to eliminate the distance part of that to get the number that I want. > So, if I have a hex element in a regular grid, I would expect to have 26 > ?neighbor? elements plus the original element. The number I want is > (max of 27 element volumes)/(min of 27 element volumes). This quantity > will highlight mesh refinement transitions. > > > > My question (at last) is: how do I find all the neighbor elements > (share at least 1 node) of each element in my model? I?d like to do this > in a Programmable Filter. I?m afraid I don?t know much about how > connectivity is implemented in vtk. > > > > Dennis > > _______________________________________________ > 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: > https://public.kitware.com/mailman/listinfo/paraview > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kmorel at sandia.gov Wed Feb 14 15:57:19 2018 From: kmorel at sandia.gov (Moreland, Kenneth) Date: Wed, 14 Feb 2018 20:57:19 +0000 Subject: [Paraview] Help Message-ID: Mohammed, The answer to your question depends on a lot of things. Depending on your simulation, it might be easiest if the simulation itself detected when a particle exits the pipe. It is, after all, the thing tracking the particles to begin with. From there it could output its count in a csv file. You could load that up and plot in in ParaView, although a typical spreadsheet program can do that as well. Assuming it is not feasible to have your simulation do the count, getting ParaView to do it depends on a lot of things. First, it depends on whether particles ?die? in your simulation. It is pretty common in simulation code to have particles leave the defined domain (or otherwise become invalid) and then get removed from the list of particles that get written out. If particles never die, then your job in ParaView is easier. You can just count how many particles are past the out end of the pipe and count that. If particles are born or die in your simulation, then the problem becomes much more difficult. -Ken From: ParaView on behalf of Mohammed Babiker Date: Wednesday, February 14, 2018 at 11:31 AM To: "paraview at public.kitware.com" Subject: [EXTERNAL] [Paraview] Help Good evening I am a new user of paraview . I am running a simulation of particles passing through a horizontal pipe exiting from other side I would like to know howm many numbers of particles exit and plot that number with respect to time . any help will be appreciated. Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From smcgjob at gmail.com Thu Feb 15 07:18:54 2018 From: smcgjob at gmail.com (Sean McGovern) Date: Thu, 15 Feb 2018 13:18:54 +0100 Subject: [Paraview] generating a figure from time-dependent data Message-ID: <5bceaa09-ef02-9faa-63c3-ebaa7b0ff2cd@gmail.com> Dear Paraview Community, I have simulation data that is time dependent and distributed over multiple processors. I happily view slices through this data in time while playing the animation. In particular, I can see the displacement of an interface through time. I have done some python scripting, starting from the trace function, but I cannot at the moment do the following: Plot the location of the interface through time. In other words, take the information from the animation and put it in one plot. To be clear: I want to extract a value (a position gotten by slicing) at each time step and compile this into one x vs t plot. I'd be grateful for any guidance on how to achieve this. I'd be very happy if this turns out to be an easy thing to do. Given the general nature of the forum and this message, I am of course happy to provide more details to make my solicitation for information more fruitful. Best, Sean From dennis_conklin at goodyear.com Thu Feb 15 09:17:34 2018 From: dennis_conklin at goodyear.com (Dennis Conklin) Date: Thu, 15 Feb 2018 14:17:34 +0000 Subject: [Paraview] [EXT] Re: Good neighbor filter In-Reply-To: References: Message-ID: Andy, Thanks for that hint ? I think I get the idea. This is a ?as time is available? project, so I?ll start exploring it, but I appreciate being pointed in the right direction. Dennis From: Andy Bauer [mailto:andy.bauer at kitware.com] Sent: Wednesday, February 14, 2018 1:51 PM To: Dennis Conklin Cc: Paraview (paraview at paraview.org) Subject: [EXT] Re: [Paraview] Good neighbor filter WARNING - External email; exercise caution. Hi Dennis, I'm assuming you're dealing with a vtkUnstructuredGrid (for the topologically regular grids you should just use the extent information). You'll want to look at the GetCellNeighbors() method -- https://www.vtk.org/doc/nightly/html/classvtkUnstructuredGrid.html#ac532485599a5d92acf4d9ca1e8818bfc. Here, cellId is the cell you want to get the neighbors from, ptIds is the list of points that need to be shared by both cells and cellIds is the return list. You'll have to iterate over all points of the cell you're interested in (i.e. call GetCellNeighbors() 8 times for a hex). The basic algorithm is: loop over cells: for each cell, loop over all of its points for each point call GeCellNeighbors(cellid, point id list with a single point) loop through cellids to compare cell sizes Please let me know if this isn't clear enough to get you going... Cheers, Andy On Wed, Feb 14, 2018 at 1:38 PM, Dennis Conklin > wrote: All, I am looking to calculate a mesh quality measure that would be the ratio of the max/min of the element volumes of each element and all it?s neighbors (other elements with common nodes). I intend to use this to quantify grid refinement transitions and perhaps establish some design standards for them. I have tried Gradient of Element Volume, but I need to eliminate the distance part of that to get the number that I want. So, if I have a hex element in a regular grid, I would expect to have 26 ?neighbor? elements plus the original element. The number I want is (max of 27 element volumes)/(min of 27 element volumes). This quantity will highlight mesh refinement transitions. My question (at last) is: how do I find all the neighbor elements (share at least 1 node) of each element in my model? I?d like to do this in a Programmable Filter. I?m afraid I don?t know much about how connectivity is implemented in vtk. Dennis _______________________________________________ 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: https://public.kitware.com/mailman/listinfo/paraview -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Thu Feb 15 11:23:54 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Thu, 15 Feb 2018 11:23:54 -0500 Subject: [Paraview] generating a figure from time-dependent data In-Reply-To: <5bceaa09-ef02-9faa-63c3-ebaa7b0ff2cd@gmail.com> References: <5bceaa09-ef02-9faa-63c3-ebaa7b0ff2cd@gmail.com> Message-ID: Have you looked at "Plot Selection Over Time"? It does exactly that. Attached is an image and state file for ParaView 5.4.1 that demos the same. You can use can.ex2 found in ParaView tutorial data to load the state. On Thu, Feb 15, 2018 at 7:18 AM, Sean McGovern wrote: > Dear Paraview Community, > > I have simulation data that is time dependent and distributed over multiple > processors. > > I happily view slices through this data in time while playing the animation. > In particular, I can see the displacement of an interface through time. I > have done some python scripting, starting from the trace function, but I > cannot at the moment do the following: > > Plot the location of the interface through time. In other words, take the > information from the animation and put it in one plot. > > To be clear: I want to extract a value (a position gotten by slicing) at > each time step and compile this into one x vs t plot. > > I'd be grateful for any guidance on how to achieve this. I'd be very happy > if this turns out to be an easy thing to do. Given the general nature of the > forum and this message, I am of course happy to provide more details to make > my solicitation for information more fruitful. > > Best, > > Sean > > _______________________________________________ > 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: > https://public.kitware.com/mailman/listinfo/paraview -------------- next part -------------- A non-text attachment was scrubbed... Name: ParaView 5.4.1 64-bit_002.png Type: image/png Size: 114452 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: plot-selection.pvsm Type: application/octet-stream Size: 298909 bytes Desc: not available URL: From info at paraview-expert.com Thu Feb 15 15:36:46 2018 From: info at paraview-expert.com (Magician) Date: Fri, 16 Feb 2018 05:36:46 +0900 Subject: [Paraview] Set total recording time in VeloView In-Reply-To: References: <2998C114-95C6-4593-8084-47B6E7381989@paraview-expert.com> Message-ID: Hi Bastien, Thanks for your advice. I tried the script and the button is toggled on the GUI, but no data is recorded. Magician > 2018/02/15 3:03?Bastien Jacquet ????: > > Hello Magician, > > I think you can use Python, and PythonQt to make a fake "record" button press, after the desired amount of time. > Just try this: > def myfunc(): > vv.app.actions['actionRecord'].toggle() > print ("Toggled recording") > > qq=QtCore.QTimer() > qq.setSingleShot(True) > qq.connect('timeout()',myfunc) > recordingTimeInMilliseconds = 60 * 1000 > qq.start(recordingTimeInMilliseconds) > > Hope this helps, > > Bastien Jacquet, PhD > VeloView Lead Developer - Computer Vision Team > Kitware SAS > 26 rue Louis Gu?rin - 69100 Villeurbanne - France > F: +33 (0)4.37.45.04.15 > > On Sun, Feb 11, 2018 at 3:55 PM, Magician > wrote: > Hi all, > > > I?m using VeloView 3.5.0 (Windows 64bit) and recording VLP-16?s data packets. > I want to set the total recording time or stopping time, but VeloView have no option to do it on the GUI. > > Is there a good way? (ex. using Python) > > > Magician > http://www.paraview-expert.com/ > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > https://public.kitware.com/mailman/listinfo/paraview > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rccm.kyoshimi at gmail.com Fri Feb 16 01:18:59 2018 From: rccm.kyoshimi at gmail.com (kenichiro yoshimi) Date: Fri, 16 Feb 2018 15:18:59 +0900 Subject: [Paraview] [EXT] Re: Good neighbor filter In-Reply-To: References: Message-ID: Hi, I have experienced a similar situation with a vtkUnstructuredGrid, and written a programmable filter something like: ---- import numpy as np input = self.GetInput() output = self.GetOutput() numCells = input.GetNumberOfCells() volChange = vtk.vtkFloatArray() volChange.SetName("volumeChange") volChange.SetNumberOfComponents(1) volChange.SetNumberOfTuples(numCells) for cellId in range(numCells): cell = input.GetCell(cellId) maxVol = -vtk.VTK_DOUBLE_MAX minVol = vtk.VTK_DOUBLE_MAX nFaces = cell.GetNumberOfFaces() for faceId in range(nFaces): pntIds = cell.GetFace(faceId).GetPointIds() neighbors = vtk.vtkIdList() input.GetCellNeighbors(cellId, pntIds, neighbors) numNei = neighbors.GetNumberOfIds() for num in range(numNei): neiId = neighbors.GetId(num) nei = input.GetCell(neiId) if nei.GetCellType() == vtk.VTK_TETRA: p1 = input.GetPoint(nei.GetPointId(0)) p2 = input.GetPoint(nei.GetPointId(1)) p3 = input.GetPoint(nei.GetPointId(2)) p4 = input.GetPoint(nei.GetPointId(3)) vol = vtk.vtkTetra.ComputeVolume(p1, p2, p3, p4) maxVol = np.maximum(maxVol, vol) minVol = np.minimum(minVol, vol) input.GetCell(cellId) #print(str(cellId) + ':' + str(maxVol/minVol)) volChange.SetValue(cellId, maxVol/minVol) output.GetCellData().AddArray(volChange) ---- Notice this computes the volumes of all cells that neighbor a cell on its faces. Thanks, 2018-02-15 23:17 GMT+09:00 Dennis Conklin : > Andy, > > > > Thanks for that hint ? I think I get the idea. This is a ?as time is > available? project, so I?ll start exploring it, but I appreciate being > pointed in the right direction. > > > > Dennis > > > > *From:* Andy Bauer [mailto:andy.bauer at kitware.com] > *Sent:* Wednesday, February 14, 2018 1:51 PM > *To:* Dennis Conklin > *Cc:* Paraview (paraview at paraview.org) > *Subject:* [EXT] Re: [Paraview] Good neighbor filter > > > > *WARNING - External email; exercise caution.* > > > > Hi Dennis, > > I'm assuming you're dealing with a vtkUnstructuredGrid (for the > topologically regular grids you should just use the extent information). > You'll want to look at the GetCellNeighbors() method -- > https://www.vtk.org/doc/nightly/html/classvtkUnstructuredGrid.html# > ac532485599a5d92acf4d9ca1e8818bfc > . > Here, cellId is the cell you want to get the neighbors from, ptIds is the > list of points that need to be shared by both cells and cellIds is the > return list. You'll have to iterate over all points of the cell you're > interested in (i.e. call GetCellNeighbors() 8 times for a hex). > > The basic algorithm is: > > loop over cells: > > for each cell, loop over all of its points > > for each point call GeCellNeighbors(cellid, point id list with a > single point) > > loop through cellids to compare cell sizes > > > > Please let me know if this isn't clear enough to get you going... > > Cheers, > > Andy > > > > On Wed, Feb 14, 2018 at 1:38 PM, Dennis Conklin < > dennis_conklin at goodyear.com> wrote: > > All, > > > > I am looking to calculate a mesh quality measure that would be the ratio > of the max/min of the element volumes of each element and all it?s > neighbors (other elements with common nodes). I intend to use this to > quantify grid refinement transitions and perhaps establish some design > standards for them. I have tried Gradient of Element Volume, but I need > to eliminate the distance part of that to get the number that I want. > So, if I have a hex element in a regular grid, I would expect to have 26 > ?neighbor? elements plus the original element. The number I want is > (max of 27 element volumes)/(min of 27 element volumes). This quantity > will highlight mesh refinement transitions. > > > > My question (at last) is: how do I find all the neighbor elements > (share at least 1 node) of each element in my model? I?d like to do this > in a Programmable Filter. I?m afraid I don?t know much about how > connectivity is implemented in vtk. > > > > Dennis > > > _______________________________________________ > 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: > https://public.kitware.com/mailman/listinfo/paraview > > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > https://public.kitware.com/mailman/listinfo/paraview > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bastien.jacquet at kitware.com Fri Feb 16 04:48:55 2018 From: bastien.jacquet at kitware.com (Bastien Jacquet) Date: Fri, 16 Feb 2018 10:48:55 +0100 Subject: [Paraview] Set total recording time in VeloView In-Reply-To: References: <2998C114-95C6-4593-8084-47B6E7381989@paraview-expert.com> Message-ID: Sorry, I should have doubled checked You need to use .trigger() instead of .toggle(). This is the code that works: def myfunc(): vv.app.actions['actionRecord'].trigger() print ("Toggled recording") qq=QtCore.QTimer() qq.setSingleShot(True) qq.connect('timeout()',myfunc) recordingTimeInMilliseconds = 60 * 1000 qq.start(recordingTimeInMilliseconds) Best, Bastien Jacquet, PhD Technical Leader - Computer Vision Team Kitware SAS 26 rue Louis Gu?rin - 69100 Villeurbanne - France F: +33 (0)4.37.45.04.15 On Thu, Feb 15, 2018 at 9:36 PM, Magician wrote: > Hi Bastien, > > > Thanks for your advice. > I tried the script and the button is toggled on the GUI, but no data is > recorded. > > > Magician > > > 2018/02/15 3:03?Bastien Jacquet ????: > > Hello Magician, > > I think you can use Python, and PythonQt to make a fake "record" button > press, after the desired amount of time. > Just try this: > def myfunc(): > vv.app.actions['actionRecord'].toggle() > print ("Toggled recording") > > qq=QtCore.QTimer() > qq.setSingleShot(True) > qq.connect('timeout()',myfunc) > recordingTimeInMilliseconds = 60 * 1000 > qq.start(recordingTimeInMilliseconds) > > Hope this helps, > > Bastien Jacquet, PhD > VeloView Lead Developer - Computer Vision Team > Kitware SAS > 26 rue Louis Gu?rin - 69100 Villeurbanne - France > > F: +33 (0)4.37.45.04.15 <+33%204%2037%2045%2004%2015> > > On Sun, Feb 11, 2018 at 3:55 PM, Magician > wrote: > >> Hi all, >> >> >> I?m using VeloView 3.5.0 (Windows 64bit) and recording VLP-16?s data >> packets. >> I want to set the total recording time or stopping time, but VeloView >> have no option to do it on the GUI. >> >> Is there a good way? (ex. using Python) >> >> >> Magician >> http://www.paraview-expert.com/ >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the ParaView Wiki at: >> http://paraview.org/Wiki/ParaView >> >> Search the list archives at: http://markmail.org/search/?q=ParaView >> >> Follow this link to subscribe/unsubscribe: >> https://public.kitware.com/mailman/listinfo/paraview >> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dennis_conklin at goodyear.com Fri Feb 16 08:07:04 2018 From: dennis_conklin at goodyear.com (Dennis Conklin) Date: Fri, 16 Feb 2018 13:07:04 +0000 Subject: [Paraview] [EXT] Re: Good neighbor filter In-Reply-To: References: Message-ID: Kenichiro, Thanks for the idea. This looks very good and I very much appreciate you sharing that with me. Dennis From: kenichiro yoshimi [mailto:rccm.kyoshimi at gmail.com] Sent: Friday, February 16, 2018 1:19 AM To: Dennis Conklin Cc: Andy Bauer ; Paraview (paraview at paraview.org) Subject: Re: [Paraview] [EXT] Re: Good neighbor filter Hi, I have experienced a similar situation with a vtkUnstructuredGrid, and written a programmable filter something like: ---- import numpy as np input = self.GetInput() output = self.GetOutput() numCells = input.GetNumberOfCells() volChange = vtk.vtkFloatArray() volChange.SetName("volumeChange") volChange.SetNumberOfComponents(1) volChange.SetNumberOfTuples(numCells) for cellId in range(numCells): cell = input.GetCell(cellId) maxVol = -vtk.VTK_DOUBLE_MAX minVol = vtk.VTK_DOUBLE_MAX nFaces = cell.GetNumberOfFaces() for faceId in range(nFaces): pntIds = cell.GetFace(faceId).GetPointIds() neighbors = vtk.vtkIdList() input.GetCellNeighbors(cellId, pntIds, neighbors) numNei = neighbors.GetNumberOfIds() for num in range(numNei): neiId = neighbors.GetId(num) nei = input.GetCell(neiId) if nei.GetCellType() == vtk.VTK_TETRA: p1 = input.GetPoint(nei.GetPointId(0)) p2 = input.GetPoint(nei.GetPointId(1)) p3 = input.GetPoint(nei.GetPointId(2)) p4 = input.GetPoint(nei.GetPointId(3)) vol = vtk.vtkTetra.ComputeVolume(p1, p2, p3, p4) maxVol = np.maximum(maxVol, vol) minVol = np.minimum(minVol, vol) input.GetCell(cellId) #print(str(cellId) + ':' + str(maxVol/minVol)) volChange.SetValue(cellId, maxVol/minVol) output.GetCellData().AddArray(volChange) ---- Notice this computes the volumes of all cells that neighbor a cell on its faces. Thanks, 2018-02-15 23:17 GMT+09:00 Dennis Conklin >: Andy, Thanks for that hint ? I think I get the idea. This is a ?as time is available? project, so I?ll start exploring it, but I appreciate being pointed in the right direction. Dennis From: Andy Bauer [mailto:andy.bauer at kitware.com] Sent: Wednesday, February 14, 2018 1:51 PM To: Dennis Conklin > Cc: Paraview (paraview at paraview.org) > Subject: [EXT] Re: [Paraview] Good neighbor filter WARNING - External email; exercise caution. Hi Dennis, I'm assuming you're dealing with a vtkUnstructuredGrid (for the topologically regular grids you should just use the extent information). You'll want to look at the GetCellNeighbors() method -- https://www.vtk.org/doc/nightly/html/classvtkUnstructuredGrid.html#ac532485599a5d92acf4d9ca1e8818bfc. Here, cellId is the cell you want to get the neighbors from, ptIds is the list of points that need to be shared by both cells and cellIds is the return list. You'll have to iterate over all points of the cell you're interested in (i.e. call GetCellNeighbors() 8 times for a hex). The basic algorithm is: loop over cells: for each cell, loop over all of its points for each point call GeCellNeighbors(cellid, point id list with a single point) loop through cellids to compare cell sizes Please let me know if this isn't clear enough to get you going... Cheers, Andy On Wed, Feb 14, 2018 at 1:38 PM, Dennis Conklin > wrote: All, I am looking to calculate a mesh quality measure that would be the ratio of the max/min of the element volumes of each element and all it?s neighbors (other elements with common nodes). I intend to use this to quantify grid refinement transitions and perhaps establish some design standards for them. I have tried Gradient of Element Volume, but I need to eliminate the distance part of that to get the number that I want. So, if I have a hex element in a regular grid, I would expect to have 26 ?neighbor? elements plus the original element. The number I want is (max of 27 element volumes)/(min of 27 element volumes). This quantity will highlight mesh refinement transitions. My question (at last) is: how do I find all the neighbor elements (share at least 1 node) of each element in my model? I?d like to do this in a Programmable Filter. I?m afraid I don?t know much about how connectivity is implemented in vtk. Dennis _______________________________________________ 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: https://public.kitware.com/mailman/listinfo/paraview _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: https://public.kitware.com/mailman/listinfo/paraview -------------- next part -------------- An HTML attachment was scrubbed... URL: From en.mhdbabiker at gmail.com Fri Feb 16 12:45:00 2018 From: en.mhdbabiker at gmail.com (Mohammed Babiker) Date: Fri, 16 Feb 2018 18:45:00 +0100 Subject: [Paraview] Particles counting Help Message-ID: <5a87189d.07101c0a.bdf36.aed7@mx.google.com> Good evening ParaView I am doing simulation Using MFiX software Using ParaView to post-process I used Programmable filter to count No. of particles after clibing the geometry in the middle (approximately) . put while trying to run it I got errors . attached vtp files and stl for the geometry. Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BACKGROUND_IC_0003.vtp Type: application/octet-stream Size: 1102 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BACKGROUND_IC_0004.vtp Type: application/octet-stream Size: 1294 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BACKGROUND_IC_0005.vtp Type: application/octet-stream Size: 1486 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BACKGROUND_IC_0006.vtp Type: application/octet-stream Size: 1614 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BACKGROUND_IC_0007.vtp Type: application/octet-stream Size: 1646 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BACKGROUND_IC_0008.vtp Type: application/octet-stream Size: 1646 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BACKGROUND_IC_0009.vtp Type: application/octet-stream Size: 1646 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BACKGROUND_IC_0010.vtp Type: application/octet-stream Size: 1646 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BACKGROUND_IC_0011.vtp Type: application/octet-stream Size: 1646 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BACKGROUND_IC_0012.vtp Type: application/octet-stream Size: 1646 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BACKGROUND_IC_0013.vtp Type: application/octet-stream Size: 1614 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BACKGROUND_IC_0014.vtp Type: application/octet-stream Size: 1614 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BACKGROUND_IC_0015.vtp Type: application/octet-stream Size: 1614 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BACKGROUND_IC_0016.vtp Type: application/octet-stream Size: 1646 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BACKGROUND_IC_0017.vtp Type: application/octet-stream Size: 1646 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BACKGROUND_IC_0018.vtp Type: application/octet-stream Size: 1646 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BACKGROUND_IC_0019.vtp Type: application/octet-stream Size: 1646 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BACKGROUND_IC_0020.vtp Type: application/octet-stream Size: 1646 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: geometry.stl Type: application/octet-stream Size: 24220 bytes Desc: not available URL: From utkarsh.ayachit at kitware.com Fri Feb 16 12:48:58 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Fri, 16 Feb 2018 12:48:58 -0500 Subject: [Paraview] Particles counting Help In-Reply-To: <5a87189d.07101c0a.bdf36.aed7@mx.google.com> References: <5a87189d.07101c0a.bdf36.aed7@mx.google.com> Message-ID: Hi, Can you share your programmable filter code? I don't see anything wrong with the dataset. Utkarsh On Fri, Feb 16, 2018 at 12:45 PM, Mohammed Babiker wrote: > > > Good evening ParaView > > > > I am doing simulation Using MFiX software > > Using ParaView to post-process I used Programmable filter to count No. of > particles after clibing the geometry in the middle (approximately) . put > while trying to run it I got errors . attached vtp files and stl for the > geometry. > > > > Regards. > > > _______________________________________________ > 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: > https://public.kitware.com/mailman/listinfo/paraview > From mhbaghaei at mail.sjtu.edu.cn Sun Feb 18 13:31:41 2018 From: mhbaghaei at mail.sjtu.edu.cn (Mohammad Hassan Baghaei) Date: Mon, 19 Feb 2018 02:31:41 +0800 (CST) Subject: [Paraview] Dealing with VTU Message-ID: <001301d3a8e6$b6176f90$22464eb0$@mail.sjtu.edu.cn> Hi I am trying to write a routine for the VTU-format. I need to know of how I have to construct such routine. Is there any simple I can refer to for my routine. Thanks Amir -------------- next part -------------- An HTML attachment was scrubbed... URL: From Patrick.Begou at legi.grenoble-inp.fr Sun Feb 18 15:05:52 2018 From: Patrick.Begou at legi.grenoble-inp.fr (=?UTF-8?Q?Patrick_B=c3=a9gou?=) Date: Sun, 18 Feb 2018 21:05:52 +0100 Subject: [Paraview] Dealing with VTU In-Reply-To: <001301d3a8e6$b6176f90$22464eb0$@mail.sjtu.edu.cn> References: <001301d3a8e6$b6176f90$22464eb0$@mail.sjtu.edu.cn> Message-ID: <34f171fd-80eb-92ec-20d0-2dc2459aa309@legi.grenoble-inp.fr> Look at: www.vtk.org/VTK/img/file-formats.pdf It was my starting point for writing vtu files. Patrick Mohammad Hassan Baghaei a ?crit?: > > Hi > > I am trying to write a routine for the VTU-format. I need to know of > how I have to construct such routine. Is there any simple I can refer > to for my routine. Thanks > > Amir > > > > _______________________________________________ > 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: > https://public.kitware.com/mailman/listinfo/paraview -------------- next part -------------- An HTML attachment was scrubbed... URL: From banesulli at gmail.com Sun Feb 18 20:35:27 2018 From: banesulli at gmail.com (Bane Sullivan) Date: Sun, 18 Feb 2018 17:35:27 -0800 Subject: [Paraview] Python Programmable Filter Timesteps Message-ID: Is it possible to add time steps in a Programmable Filter? For example, I have read a single static csv file with the normal delimited text reader and I want to iterate over each row of that file at different time steps. My RequestInformation script: executive = self.GetExecutive() outInfo = executive.GetOutputInformation(0) #- Get number of rows in table and use that for num time steps pdi = self.GetInput() nrows = int(pdi.GetColumn(0).GetNumberOfTuples()) # Calculate list of time steps xtime = range(0,nrows) outInfo.Remove(executive.TIME_STEPS()) for i in range(len(xtime)): outInfo.Append(executive.TIME_STEPS(), xtime[i]) # Remove and set time range info outInfo.Remove(executive.TIME_RANGE()) outInfo.Append(executive.TIME_RANGE(), xtime[0]) outInfo.Append(executive.TIME_RANGE(), xtime[-1]) Then my Request Data script: pdi = self.GetInput() pdo = self.GetOutput() # grab coordinates for each part of boring machine at time idx as row executive = self.GetExecutive() outInfo = executive.GetOutputInformation(0) idx = outInfo.Get(executive.UPDATE_TIME_STEP()) print("Current time step: ?, idx) # NOW I SHOULD BE ABLE TO USE IDX TO ITERATE OVER EACH ROW OF THE INPUT VTKTABLE The time steps printed in Request Data do not reflect the time steps set in Request Information. However if I add this little snippet to the Request Data call it prints out the expected time steps: print(self.GetExecutive().GetOutputInformation(0).Get(vtk.vtkStreamingDemandDrivenPipeline.TIME_STEPS())) Is there something I am missing, or can timesteps only be set this way in a Programmable Source? -------------- next part -------------- An HTML attachment was scrubbed... URL: From banesulli at gmail.com Sun Feb 18 21:29:10 2018 From: banesulli at gmail.com (Bane Sullivan) Date: Sun, 18 Feb 2018 18:29:10 -0800 Subject: [Paraview] Python Programmable Filter Timesteps In-Reply-To: References: Message-ID: I fixed this issue by adding a time step attribute to the XML of this as a plugin following this blog post https://blog.kitware.com/easy-customization-of-the-paraview-python-programmable-filter-property-panel/ ExtraXml = '''\ Available timestep values. ''' On February 18, 2018 at 6:35:27 PM, Bane Sullivan (banesulli at gmail.com) wrote: Is it possible to add time steps in a Programmable Filter? For example, I have read a single static csv file with the normal delimited text reader and I want to iterate over each row of that file at different time steps. My RequestInformation script: executive = self.GetExecutive() outInfo = executive.GetOutputInformation(0) #- Get number of rows in table and use that for num time steps pdi = self.GetInput() nrows = int(pdi.GetColumn(0).GetNumberOfTuples()) # Calculate list of time steps xtime = range(0,nrows) outInfo.Remove(executive.TIME_STEPS()) for i in range(len(xtime)): outInfo.Append(executive.TIME_STEPS(), xtime[i]) # Remove and set time range info outInfo.Remove(executive.TIME_RANGE()) outInfo.Append(executive.TIME_RANGE(), xtime[0]) outInfo.Append(executive.TIME_RANGE(), xtime[-1]) Then my Request Data script: pdi = self.GetInput() pdo = self.GetOutput() # grab coordinates for each part of boring machine at time idx as row executive = self.GetExecutive() outInfo = executive.GetOutputInformation(0) idx = outInfo.Get(executive.UPDATE_TIME_STEP()) print("Current time step: ?, idx) # NOW I SHOULD BE ABLE TO USE IDX TO ITERATE OVER EACH ROW OF THE INPUT VTKTABLE The time steps printed in Request Data do not reflect the time steps set in Request Information. However if I add this little snippet to the Request Data call it prints out the expected time steps: print(self.GetExecutive().GetOutputInformation(0).Get(vtk.vtkStreamingDemandDrivenPipeline.TIME_STEPS())) Is there something I am missing, or can timesteps only be set this way in a Programmable Source? -------------- next part -------------- An HTML attachment was scrubbed... URL: From rustem.khabetdinov at gmail.com Mon Feb 19 05:42:56 2018 From: rustem.khabetdinov at gmail.com (Rustem Khabetdinov) Date: Mon, 19 Feb 2018 13:42:56 +0300 Subject: [Paraview] Embedding paraview in PyQt application Message-ID: Hello, I am trying to embed paraview into my PyQt application but I have some problems with python threading. For example, in my application I use my own interactor style in which when user clicks left mouse button it executes import time;time.sleep(2). But because of that there is a segfault. This is what I tried so far: I tried to build paraview changing these variables: VTK_PYTHON_FULL_THREADSAFE VTK_NO_PYTHON_THREAD But there was no effect. Even when I disabled python threads time.sleep caused segfault. is there anything else I can try to do? Thanks, Rustem -------------- next part -------------- An HTML attachment was scrubbed... URL: From wascott at sandia.gov Mon Feb 19 13:55:00 2018 From: wascott at sandia.gov (Scott, W Alan) Date: Mon, 19 Feb 2018 18:55:00 +0000 Subject: [Paraview] [EXTERNAL] [Paraview-developers] Rotational Extrude In-Reply-To: <2014EAF26EC95F49B1ED2B1985E5F8CC381D1889@CITESMBX5.ad.uillinois.edu> References: <2014EAF26EC95F49B1ED2B1985E5F8CC381D17E7@CITESMBX5.ad.uillinois.edu> <42460B9A-6D67-4476-9015-D89C21F1376B@sandia.gov> <2014EAF26EC95F49B1ED2B1985E5F8CC381D1889@CITESMBX5.ad.uillinois.edu> Message-ID: <8D22523B-94DB-478B-AAD3-C75E9ABBDC38@sandia.gov> Copying to the paraview users list. I don't know that filter well. Try playing with it, and if it doesn't cooperate, let me know. I will then try... Alan ?On 2/19/18, 11:42 AM, "Goli, Elyas" wrote: Hi Scott, Thanks. It worked. Now the filter is active. However, I am not sure what normal and origin coordinate I should put for the Slice filter to end up with a 3D cylinder rotated about y axis. Do you have any clue? I am OK to move it to the e_mail list. Best, Elyas ________________________________________ From: Scott, W Alan [wascott at sandia.gov] Sent: Monday, February 19, 2018 12:25 PM To: Goli, Elyas; paraview-developers at public.kitware.com Subject: Re: [EXTERNAL] [Paraview-developers] Rotational Extrude Just a guess - this filter requires 2d polygonal data. What I just did was Wavelet, then Slice. Maybe your data is actually 3d? Try running a slice filter on it first? Mind moving this to the paraview at paraview.org e-mail list, so everyone can see the answer? Thanks, Alan On 2/19/18, 11:20 AM, "Paraview-developers on behalf of Goli, Elyas" wrote: Hi All, I have an axisymmetric 2D model in Paraview in x-y plane. I am trying to use the Rotational Extrude filter to rotate the model about the y-axis and make it a 3D model. However, the filter is iactive. Does any one have an idea of how to solve the issue? Best, Elyas _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Search the list archives at: http://markmail.org/search/?q=Paraview-developers Follow this link to subscribe/unsubscribe: https://public.kitware.com/mailman/listinfo/paraview-developers From thomas_sgouros at brown.edu Mon Feb 19 14:38:51 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Mon, 19 Feb 2018 14:38:51 -0500 Subject: [Paraview] Using ParaviewWeb examples Message-ID: Hello all: When I see a Paraviewweb example like this (from Composite.html): import CompositeComponent from '..'; import BGColorComponent from '../../BackgroundColor'; Where should I look for BackgroundColor and CompositeComponent? I feel sure I could find them eventually, but is there another search algorithm besides brute force? Thank you, -Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From aron.helser at kitware.com Mon Feb 19 14:48:14 2018 From: aron.helser at kitware.com (Aron Helser) Date: Mon, 19 Feb 2018 14:48:14 -0500 Subject: [Paraview] Using ParaviewWeb examples In-Reply-To: References: Message-ID: Hi Tom, The ParaviewWeb examples always live in a sub-directory of the component they illustrate - so here, this is the Composite example, so '..' just refers to 'Composite'. If you look in the left menu, you can see that 'Composite' is grouped into ' Component/Native'. That's the directory it's in. '../../BackgroundColor' is a sibling directory to 'Composite', so it will also be in ' Component/Native' Generally you can follow the '..' out from the example sub-directory and figure out where you are. Hope that helps, Aron On Mon, Feb 19, 2018 at 2:38 PM, Sgouros, Thomas wrote: > Hello all: > > When I see a Paraviewweb example like this (from Composite.html): > > import CompositeComponent from '..'; > import BGColorComponent from '../../BackgroundColor'; > > Where should I look for BackgroundColor and CompositeComponent? I feel > sure I could find them eventually, but is there another search algorithm > besides brute force? > > Thank you, > > -Tom > > _______________________________________________ > 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: > https://public.kitware.com/mailman/listinfo/paraview > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas_sgouros at brown.edu Mon Feb 19 15:59:44 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Mon, 19 Feb 2018 15:59:44 -0500 Subject: [Paraview] Using ParaviewWeb examples In-Reply-To: References: Message-ID: Thank you. it would be great also to have pointers to normalize.css, and the webpack and package configs for these examples. They are more like puzzles than examples in their current state, with the challenge to find all the missing pieces and guess how to put them together. Am I missing some intro that steps me through those parts? Or is there a way to see the whole example laid out with those other pieces? Maybe an npm install option that will give me these examples on my disk? I see fragments of examples on this page: https://kitware.github.io/paraviewweb/docs/import.html , but apparently it is not enough for me. Thank you, -Tom On Mon, Feb 19, 2018 at 2:48 PM, Aron Helser wrote: > Hi Tom, > The ParaviewWeb examples always live in a sub-directory of the component > they illustrate - so here, this is the Composite example, so '..' just > refers to 'Composite'. > If you look in the left menu, you can see that 'Composite' is grouped into > ' Component/Native'. That's the directory it's in. '../../BackgroundColor' > is a sibling directory to 'Composite', so it will also be in ' > Component/Native' > > Generally you can follow the '..' out from the example sub-directory and > figure out where you are. > > Hope that helps, > Aron > > On Mon, Feb 19, 2018 at 2:38 PM, Sgouros, Thomas > wrote: > >> Hello all: >> >> When I see a Paraviewweb example like this (from Composite.html): >> >> import CompositeComponent from '..'; >> import BGColorComponent from '../../BackgroundColor'; >> >> Where should I look for BackgroundColor and CompositeComponent? I feel >> sure I could find them eventually, but is there another search algorithm >> besides brute force? >> >> Thank you, >> >> -Tom >> >> _______________________________________________ >> 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: >> https://public.kitware.com/mailman/listinfo/paraview >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aron.helser at kitware.com Mon Feb 19 16:08:35 2018 From: aron.helser at kitware.com (Aron Helser) Date: Mon, 19 Feb 2018 16:08:35 -0500 Subject: [Paraview] Using ParaviewWeb examples In-Reply-To: References: Message-ID: I think you're looking for the setup doc: https://kitware.github.io/paraviewweb/docs/setup.html It gives you a sample webpack config. Nearly all the paraviewweb dependencies are contained in kw-websuite, as documented on that page. The examples as they stand use a bit of magic, you are right, so they can be embedded in the documentation pages. AFAIK, we don't have an install option to make a stand-alone example. Regards, Aron On Mon, Feb 19, 2018 at 3:59 PM, Sgouros, Thomas wrote: > Thank you. it would be great also to have pointers to normalize.css, and > the webpack and package configs for these examples. They are more like > puzzles than examples in their current state, with the challenge to find > all the missing pieces and guess how to put them together. Am I missing > some intro that steps me through those parts? Or is there a way to see the > whole example laid out with those other pieces? Maybe an npm install option > that will give me these examples on my disk? > > I see fragments of examples on this page: https://kitware.github. > io/paraviewweb/docs/import.html , but apparently it is not enough for me. > > Thank you, > > -Tom > > On Mon, Feb 19, 2018 at 2:48 PM, Aron Helser > wrote: > >> Hi Tom, >> The ParaviewWeb examples always live in a sub-directory of the component >> they illustrate - so here, this is the Composite example, so '..' just >> refers to 'Composite'. >> If you look in the left menu, you can see that 'Composite' is grouped >> into ' Component/Native'. That's the directory it's in. '../../BackgroundColor' >> is a sibling directory to 'Composite', so it will also be in ' >> Component/Native' >> >> Generally you can follow the '..' out from the example sub-directory and >> figure out where you are. >> >> Hope that helps, >> Aron >> >> On Mon, Feb 19, 2018 at 2:38 PM, Sgouros, Thomas < >> thomas_sgouros at brown.edu> wrote: >> >>> Hello all: >>> >>> When I see a Paraviewweb example like this (from Composite.html): >>> >>> import CompositeComponent from '..'; >>> import BGColorComponent from '../../BackgroundColor'; >>> >>> Where should I look for BackgroundColor and CompositeComponent? I feel >>> sure I could find them eventually, but is there another search algorithm >>> besides brute force? >>> >>> Thank you, >>> >>> -Tom >>> >>> _______________________________________________ >>> 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: >>> https://public.kitware.com/mailman/listinfo/paraview >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shuhao at shuhaowu.com Mon Feb 19 16:12:50 2018 From: shuhao at shuhaowu.com (Shuhao Wu) Date: Mon, 19 Feb 2018 16:12:50 -0500 Subject: [Paraview] Finding all the points associated with one closed contour line Message-ID: Hello All, I'm currently using the Contour filter on a 2D slice. This contour gives me a series of closed loops at arbitrary locations of my plot. Does Paraview/VTK already expose a way to group the points associated with each of these closed loops? If not, I have two possible strategies to detect these points: 1. I think the contour filter outputs the points of each closed loops in sequential order in the point array. I could compare the geometric distance between two sequential points in the array and detect a "large jump" followed by a "large decrease" to detect the transition from one loop to the next. 2. I could employ some sort of cluster finding algorithm, although I'm not sure which one as I do not know how many of these loops are and likely need something that optimizes for boundaries as opposed to centroids. Are these ideas sane if PV doesn't already expose some functionalities that I do not know about? Thanks, Shuhao From thomas_sgouros at brown.edu Mon Feb 19 16:27:19 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Mon, 19 Feb 2018 16:27:19 -0500 Subject: [Paraview] Using ParaviewWeb examples In-Reply-To: References: Message-ID: I tried that page twice and get errors about missing fix-autobahn, and when I removed that from the package.json, webpack complained about missing eslint (I installed eslint, but it doesn't change), and then errors saying "Webpack has been initialised using a configuration object that does not match the API schema" and errors about the output directory needing to be an "**absolute path** (required)". I'm sure there's something simple I'm missing, but not sure what. Thank you, -Tom On Mon, Feb 19, 2018 at 4:08 PM, Aron Helser wrote: > I think you're looking for the setup doc: https://kitware.github. > io/paraviewweb/docs/setup.html > It gives you a sample webpack config. Nearly all the paraviewweb > dependencies are contained in kw-websuite, as documented on that page. > > The examples as they stand use a bit of magic, you are right, so they can > be embedded in the documentation pages. AFAIK, we don't have an install > option to make a stand-alone example. > Regards, > Aron > > On Mon, Feb 19, 2018 at 3:59 PM, Sgouros, Thomas > wrote: > >> Thank you. it would be great also to have pointers to normalize.css, and >> the webpack and package configs for these examples. They are more like >> puzzles than examples in their current state, with the challenge to find >> all the missing pieces and guess how to put them together. Am I missing >> some intro that steps me through those parts? Or is there a way to see the >> whole example laid out with those other pieces? Maybe an npm install option >> that will give me these examples on my disk? >> >> I see fragments of examples on this page: https://kitware.github.i >> o/paraviewweb/docs/import.html , but apparently it is not enough for me. >> >> Thank you, >> >> -Tom >> >> On Mon, Feb 19, 2018 at 2:48 PM, Aron Helser >> wrote: >> >>> Hi Tom, >>> The ParaviewWeb examples always live in a sub-directory of the component >>> they illustrate - so here, this is the Composite example, so '..' just >>> refers to 'Composite'. >>> If you look in the left menu, you can see that 'Composite' is grouped >>> into ' Component/Native'. That's the directory it's in. '../../BackgroundColor' >>> is a sibling directory to 'Composite', so it will also be in ' >>> Component/Native' >>> >>> Generally you can follow the '..' out from the example sub-directory and >>> figure out where you are. >>> >>> Hope that helps, >>> Aron >>> >>> On Mon, Feb 19, 2018 at 2:38 PM, Sgouros, Thomas < >>> thomas_sgouros at brown.edu> wrote: >>> >>>> Hello all: >>>> >>>> When I see a Paraviewweb example like this (from Composite.html): >>>> >>>> import CompositeComponent from '..'; >>>> import BGColorComponent from '../../BackgroundColor'; >>>> >>>> Where should I look for BackgroundColor and CompositeComponent? I feel >>>> sure I could find them eventually, but is there another search algorithm >>>> besides brute force? >>>> >>>> Thank you, >>>> >>>> -Tom >>>> >>>> _______________________________________________ >>>> 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: >>>> https://public.kitware.com/mailman/listinfo/paraview >>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Mon Feb 19 18:16:43 2018 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Mon, 19 Feb 2018 16:16:43 -0700 Subject: [Paraview] Using ParaviewWeb examples In-Reply-To: References: Message-ID: Hi Tom, The documentation was written when we were still using Webpack 1 and unfortunately it is outdated. I'll try to update it so it will be easier to follow for users that don't know any of those web tools. For normalize, you can find some information directly on their web site https://necolas.github.io/normalize.css/ Seb On Mon, Feb 19, 2018 at 2:27 PM, Sgouros, Thomas wrote: > I tried that page twice and get errors about missing fix-autobahn, and > when I removed that from the package.json, webpack complained about missing > eslint (I installed eslint, but it doesn't change), and then errors saying > "Webpack has been initialised using a configuration object that does not > match the API schema" and errors about the output directory needing to be > an "**absolute path** (required)". I'm sure there's something simple I'm > missing, but not sure what. > > Thank you, > > -Tom > > On Mon, Feb 19, 2018 at 4:08 PM, Aron Helser > wrote: > >> I think you're looking for the setup doc: https://kitware.github.io >> /paraviewweb/docs/setup.html >> It gives you a sample webpack config. Nearly all the paraviewweb >> dependencies are contained in kw-websuite, as documented on that page. >> >> The examples as they stand use a bit of magic, you are right, so they can >> be embedded in the documentation pages. AFAIK, we don't have an install >> option to make a stand-alone example. >> Regards, >> Aron >> >> On Mon, Feb 19, 2018 at 3:59 PM, Sgouros, Thomas < >> thomas_sgouros at brown.edu> wrote: >> >>> Thank you. it would be great also to have pointers to normalize.css, and >>> the webpack and package configs for these examples. They are more like >>> puzzles than examples in their current state, with the challenge to find >>> all the missing pieces and guess how to put them together. Am I missing >>> some intro that steps me through those parts? Or is there a way to see the >>> whole example laid out with those other pieces? Maybe an npm install option >>> that will give me these examples on my disk? >>> >>> I see fragments of examples on this page: https://kitware.github.i >>> o/paraviewweb/docs/import.html , but apparently it is not enough for me. >>> >>> Thank you, >>> >>> -Tom >>> >>> On Mon, Feb 19, 2018 at 2:48 PM, Aron Helser >>> wrote: >>> >>>> Hi Tom, >>>> The ParaviewWeb examples always live in a sub-directory of the >>>> component they illustrate - so here, this is the Composite example, so '..' >>>> just refers to 'Composite'. >>>> If you look in the left menu, you can see that 'Composite' is grouped >>>> into ' Component/Native'. That's the directory it's in. '../../BackgroundColor' >>>> is a sibling directory to 'Composite', so it will also be in ' >>>> Component/Native' >>>> >>>> Generally you can follow the '..' out from the example sub-directory >>>> and figure out where you are. >>>> >>>> Hope that helps, >>>> Aron >>>> >>>> On Mon, Feb 19, 2018 at 2:38 PM, Sgouros, Thomas < >>>> thomas_sgouros at brown.edu> wrote: >>>> >>>>> Hello all: >>>>> >>>>> When I see a Paraviewweb example like this (from Composite.html): >>>>> >>>>> import CompositeComponent from '..'; >>>>> import BGColorComponent from '../../BackgroundColor'; >>>>> >>>>> Where should I look for BackgroundColor and CompositeComponent? I feel >>>>> sure I could find them eventually, but is there another search algorithm >>>>> besides brute force? >>>>> >>>>> Thank you, >>>>> >>>>> -Tom >>>>> >>>>> _______________________________________________ >>>>> 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: >>>>> https://public.kitware.com/mailman/listinfo/paraview >>>>> >>>>> >>>> >>> >> > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > https://public.kitware.com/mailman/listinfo/paraview > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas_sgouros at brown.edu Mon Feb 19 18:34:28 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Mon, 19 Feb 2018 18:34:28 -0500 Subject: [Paraview] Using ParaviewWeb examples In-Reply-To: References: Message-ID: Hi Sebastien: I suspected that and also tried downgrading to webpack 1, but then loading paraviewweb won't work because lots of its dependencies require webpack versions up to 2.2.0. (babel-loader, expose-loader, schema-utils, worker-loader, several others) It tells you to load the peer dependencies by hand, but that seems not to work for paraviewweb, though I'm probably misunderstanding something. I will forget the examples and try building up a webpack from scratch, but there are a few things in the webpack config that make me nervous about the prospects: 1. The alias PVWStyle. 2. The "postcss: [require('autoprefixer')... ] 3. 'loader: "expose?MyWebApp"'. All of these seem like maybe they are going to be required for some parts of paraviewweb. The current version of webpack seems to choke on them all, and I won't know what to replace them with. Any advice? Thank you. -Tom On Mon, Feb 19, 2018 at 6:16 PM, Sebastien Jourdain < sebastien.jourdain at kitware.com> wrote: > Hi Tom, > > The documentation was written when we were still using Webpack 1 and > unfortunately it is outdated. > I'll try to update it so it will be easier to follow for users that don't > know any of those web tools. > > For normalize, you can find some information directly on their web site > https://necolas.github.io/normalize.css/ > > Seb > > On Mon, Feb 19, 2018 at 2:27 PM, Sgouros, Thomas > wrote: > >> I tried that page twice and get errors about missing fix-autobahn, and >> when I removed that from the package.json, webpack complained about missing >> eslint (I installed eslint, but it doesn't change), and then errors saying >> "Webpack has been initialised using a configuration object that does not >> match the API schema" and errors about the output directory needing to be >> an "**absolute path** (required)". I'm sure there's something simple I'm >> missing, but not sure what. >> >> Thank you, >> >> -Tom >> >> On Mon, Feb 19, 2018 at 4:08 PM, Aron Helser >> wrote: >> >>> I think you're looking for the setup doc: https://kitware.github.io >>> /paraviewweb/docs/setup.html >>> It gives you a sample webpack config. Nearly all the paraviewweb >>> dependencies are contained in kw-websuite, as documented on that page. >>> >>> The examples as they stand use a bit of magic, you are right, so they >>> can be embedded in the documentation pages. AFAIK, we don't have an install >>> option to make a stand-alone example. >>> Regards, >>> Aron >>> >>> On Mon, Feb 19, 2018 at 3:59 PM, Sgouros, Thomas < >>> thomas_sgouros at brown.edu> wrote: >>> >>>> Thank you. it would be great also to have pointers to normalize.css, >>>> and the webpack and package configs for these examples. They are more like >>>> puzzles than examples in their current state, with the challenge to find >>>> all the missing pieces and guess how to put them together. Am I missing >>>> some intro that steps me through those parts? Or is there a way to see the >>>> whole example laid out with those other pieces? Maybe an npm install option >>>> that will give me these examples on my disk? >>>> >>>> I see fragments of examples on this page: https://kitware.github.i >>>> o/paraviewweb/docs/import.html , but apparently it is not enough for >>>> me. >>>> >>>> Thank you, >>>> >>>> -Tom >>>> >>>> On Mon, Feb 19, 2018 at 2:48 PM, Aron Helser >>>> wrote: >>>> >>>>> Hi Tom, >>>>> The ParaviewWeb examples always live in a sub-directory of the >>>>> component they illustrate - so here, this is the Composite example, so '..' >>>>> just refers to 'Composite'. >>>>> If you look in the left menu, you can see that 'Composite' is grouped >>>>> into ' Component/Native'. That's the directory it's in. '../../BackgroundColor' >>>>> is a sibling directory to 'Composite', so it will also be in ' >>>>> Component/Native' >>>>> >>>>> Generally you can follow the '..' out from the example sub-directory >>>>> and figure out where you are. >>>>> >>>>> Hope that helps, >>>>> Aron >>>>> >>>>> On Mon, Feb 19, 2018 at 2:38 PM, Sgouros, Thomas < >>>>> thomas_sgouros at brown.edu> wrote: >>>>> >>>>>> Hello all: >>>>>> >>>>>> When I see a Paraviewweb example like this (from Composite.html): >>>>>> >>>>>> import CompositeComponent from '..'; >>>>>> import BGColorComponent from '../../BackgroundColor'; >>>>>> >>>>>> Where should I look for BackgroundColor and CompositeComponent? I >>>>>> feel sure I could find them eventually, but is there another search >>>>>> algorithm besides brute force? >>>>>> >>>>>> Thank you, >>>>>> >>>>>> -Tom >>>>>> >>>>>> _______________________________________________ >>>>>> 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: >>>>>> https://public.kitware.com/mailman/listinfo/paraview >>>>>> >>>>>> >>>>> >>>> >>> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the ParaView Wiki at: >> http://paraview.org/Wiki/ParaView >> >> Search the list archives at: http://markmail.org/search/?q=ParaView >> >> Follow this link to subscribe/unsubscribe: >> https://public.kitware.com/mailman/listinfo/paraview >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wascott at sandia.gov Mon Feb 19 19:24:50 2018 From: wascott at sandia.gov (Scott, W Alan) Date: Tue, 20 Feb 2018 00:24:50 +0000 Subject: [Paraview] [EXTERNAL] [Paraview-developers] Rotational Extrude In-Reply-To: <2014EAF26EC95F49B1ED2B1985E5F8CC381D1BEB@CITESMBX5.ad.uillinois.edu> References: <2014EAF26EC95F49B1ED2B1985E5F8CC381D17E7@CITESMBX5.ad.uillinois.edu> <42460B9A-6D67-4476-9015-D89C21F1376B@sandia.gov> <2014EAF26EC95F49B1ED2B1985E5F8CC381D1889@CITESMBX5.ad.uillinois.edu> <8D22523B-94DB-478B-AAD3-C75E9ABBDC38@sandia.gov> <2014EAF26EC95F49B1ED2B1985E5F8CC381D1BEB@CITESMBX5.ad.uillinois.edu> Message-ID: <3E7F9708-D443-4B5D-AC7C-F0BE67FDDC75@sandia.gov> Hi Elyas, OK, I took a deeper look, and consulted with Ken Moreland. We think what you are trying to do can't be done, or if it can, it is very inefficient. There are two filters of interest, the Rotational Extrude filter and the Angular Periodic filter. The Rotational Extrude filter takes a 2d object and rotates it in space, creating a disk or cylinder. It must be polygonal data. You can create polygonal data with the extract surface filter. The Rotational Extrude filter will rotate your 2d object on the z axis. If you want to rotate on a different axis, use the Transform filter to rotate your data to be lined up with the Z axis. But, here is the kicker. The output of the Rotational Extrude filter is a 2d surface, In other words, this filter's output is hollow. It will look good if you don't clip or slice it. You can see that it is hollow with a slice filter. The Angular Periodic filter will also rotate objects (i.e., pie slices) around an axis. However, it won't fill it in if your data was originally 2d. If it is pie slices, you will get a nice cylinder. But, with your data, you will just see a lot of 2d planes, rooted at the center of a cylinder, and fanning out to form this sparse cylinder. I tried the Delauny3d filter, and it hung. Ken's advice if this is necessary is to write a custom filter. Sorry I couldn't help more, Alan ?On 2/19/18, 3:04 PM, "Goli, Elyas" wrote: I could not figure out how to fix it. Suggestions are appreciated and welcome. Best, Elyas ________________________________________ From: Scott, W Alan [wascott at sandia.gov] Sent: Monday, February 19, 2018 12:55 PM To: Goli, Elyas Cc: paraview at paraview.org Subject: Re: [EXTERNAL] [Paraview-developers] Rotational Extrude Copying to the paraview users list. I don't know that filter well. Try playing with it, and if it doesn't cooperate, let me know. I will then try... Alan On 2/19/18, 11:42 AM, "Goli, Elyas" wrote: Hi Scott, Thanks. It worked. Now the filter is active. However, I am not sure what normal and origin coordinate I should put for the Slice filter to end up with a 3D cylinder rotated about y axis. Do you have any clue? I am OK to move it to the e_mail list. Best, Elyas ________________________________________ From: Scott, W Alan [wascott at sandia.gov] Sent: Monday, February 19, 2018 12:25 PM To: Goli, Elyas; paraview-developers at public.kitware.com Subject: Re: [EXTERNAL] [Paraview-developers] Rotational Extrude Just a guess - this filter requires 2d polygonal data. What I just did was Wavelet, then Slice. Maybe your data is actually 3d? Try running a slice filter on it first? Mind moving this to the paraview at paraview.org e-mail list, so everyone can see the answer? Thanks, Alan On 2/19/18, 11:20 AM, "Paraview-developers on behalf of Goli, Elyas" wrote: Hi All, I have an axisymmetric 2D model in Paraview in x-y plane. I am trying to use the Rotational Extrude filter to rotate the model about the y-axis and make it a 3D model. However, the filter is iactive. Does any one have an idea of how to solve the issue? Best, Elyas _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Search the list archives at: http://markmail.org/search/?q=Paraview-developers Follow this link to subscribe/unsubscribe: https://public.kitware.com/mailman/listinfo/paraview-developers From rccm.kyoshimi at gmail.com Mon Feb 19 20:46:34 2018 From: rccm.kyoshimi at gmail.com (kenichiro yoshimi) Date: Tue, 20 Feb 2018 10:46:34 +0900 Subject: [Paraview] Finding all the points associated with one closed contour line In-Reply-To: References: Message-ID: Hi Shuhao, In ParaView, the connectivity filter is available to assign a region id to each of closed loops and generate a RegionId array. And then the threshold filter can be used to separate them. Thanks 2018-02-20 6:12 GMT+09:00 Shuhao Wu : > Hello All, > > I'm currently using the Contour filter on a 2D slice. This contour gives me > a series of closed loops at arbitrary locations of my plot. Does > Paraview/VTK already expose a way to group the points associated with each > of these closed loops? > > If not, I have two possible strategies to detect these points: > > 1. I think the contour filter outputs the points of each closed loops in > sequential order in the point array. I could compare the geometric distance > between two sequential points in the array and detect a "large jump" > followed by a "large decrease" to detect the transition from one loop to the > next. > > 2. I could employ some sort of cluster finding algorithm, although I'm not > sure which one as I do not know how many of these loops are and likely need > something that optimizes for boundaries as opposed to centroids. > > Are these ideas sane if PV doesn't already expose some functionalities that > I do not know about? > > Thanks, > Shuhao > _______________________________________________ > 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: > https://public.kitware.com/mailman/listinfo/paraview From shuhao at shuhaowu.com Mon Feb 19 23:59:38 2018 From: shuhao at shuhaowu.com (Shuhao Wu) Date: Mon, 19 Feb 2018 23:59:38 -0500 Subject: [Paraview] Integrate Variables divide cell data by volume has no effect? Message-ID: <908680c6-da64-da64-b229-c19e93c116e0@shuhaowu.com> Hello all, I've been using the filter IntegrateVariables with the option DivideCellDataByVolume = on on a 2D surface. I've noticed that turning this option on and off has no effect on the PointData of the output. No additional cell data is produced either. I thought the idea of the the integrate variables filter is (for 2D): it sums up the values at each point and multiplied by the area associated with that point (*). If the DivideCellDataByVolume option is on, it will divide the final result by the total area. If this is the case, why does the option do nothing, shouldn't the point data be scaled by a constant factor that's the area? (*) how does it associate the points with their areas? Thanks, Shuhao From andy.bauer at kitware.com Tue Feb 20 02:05:34 2018 From: andy.bauer at kitware.com (Andy Bauer) Date: Tue, 20 Feb 2018 02:05:34 -0500 Subject: [Paraview] Integrate Variables divide cell data by volume has no effect? In-Reply-To: <908680c6-da64-da64-b229-c19e93c116e0@shuhaowu.com> References: <908680c6-da64-da64-b229-c19e93c116e0@shuhaowu.com> Message-ID: The DivideCellDataByVolume only operates on cell data and you're integrating a point data array so it won't work the way you're expecting it to. You can use the point data to cell data filter and then try using the integrate variable filter to see if that gives the result that you want. On Mon, Feb 19, 2018 at 11:59 PM, Shuhao Wu wrote: > Hello all, > > I've been using the filter IntegrateVariables with the option > DivideCellDataByVolume = on on a 2D surface. I've noticed that turning this > option on and off has no effect on the PointData of the output. No > additional cell data is produced either. > > I thought the idea of the the integrate variables filter is (for 2D): it > sums up the values at each point and multiplied by the area associated with > that point (*). If the DivideCellDataByVolume option is on, it will divide > the final result by the total area. If this is the case, why does the > option do nothing, shouldn't the point data be scaled by a constant factor > that's the area? > > (*) how does it associate the points with their areas? > > Thanks, > Shuhao > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensou > rce/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: > https://public.kitware.com/mailman/listinfo/paraview > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shuhao at shuhaowu.com Tue Feb 20 02:07:10 2018 From: shuhao at shuhaowu.com (Shuhao Wu) Date: Tue, 20 Feb 2018 02:07:10 -0500 Subject: [Paraview] Integrate Variables divide cell data by volume has no effect? In-Reply-To: References: <908680c6-da64-da64-b229-c19e93c116e0@shuhaowu.com> Message-ID: I suspected so as well but didn't know how to convert the point data to cell data until now. So does that mean integrate variables with point data will not be integration weighted by the area? Thanks, Shuhao On 2018-02-20 02:05 AM, Andy Bauer wrote: > The DivideCellDataByVolume only operates on cell data and you're > integrating a point data array so it won't work the way you're expecting it > to. You can use the point data to cell data filter and then try using the > integrate variable filter to see if that gives the result that you want. > > On Mon, Feb 19, 2018 at 11:59 PM, Shuhao Wu wrote: > >> Hello all, >> >> I've been using the filter IntegrateVariables with the option >> DivideCellDataByVolume = on on a 2D surface. I've noticed that turning this >> option on and off has no effect on the PointData of the output. No >> additional cell data is produced either. >> >> I thought the idea of the the integrate variables filter is (for 2D): it >> sums up the values at each point and multiplied by the area associated with >> that point (*). If the DivideCellDataByVolume option is on, it will divide >> the final result by the total area. If this is the case, why does the >> option do nothing, shouldn't the point data be scaled by a constant factor >> that's the area? >> >> (*) how does it associate the points with their areas? >> >> Thanks, >> Shuhao >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at http://www.kitware.com/opensou >> rce/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: >> https://public.kitware.com/mailman/listinfo/paraview >> > From sserebrinsky at gmail.com Tue Feb 20 02:28:11 2018 From: sserebrinsky at gmail.com (Santiago Serebrinsky) Date: Tue, 20 Feb 2018 04:28:11 -0300 Subject: [Paraview] Paraview programmatically plot quantities over line, using only data on nodes Message-ID: Hello, I have a dataset on a 2D domain. I mean to get an XY plot of data along a line which contains a number of element edges. I would typically do this with PlotOverLine. Now I want to obtain a similar plot, but with my data points located only at the actual locations of nodes in my mesh. In this way, my XY plot (and its underlying data) would be directly representative of the mesh resolution in my original data. *How can this be done programmatically, 1) from the UI as a macro, 2) from the UI at the python shell, 3) at the CLI (pvpython myscript.py)?* I couldn't even find how to do this via GUI. I started by *Select Points On*, but I couldn't go any further. Moreover, if this is the right way to start, I wouldn't be able to transfer it to python code, since *Start Trace* does not include *Select Points On* in the output trace, so I wouldn't know how to add it to code. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From mouly.23oct91 at gmail.com Tue Feb 20 03:37:24 2018 From: mouly.23oct91 at gmail.com (Moulshree Tripathi) Date: Tue, 20 Feb 2018 09:37:24 +0100 Subject: [Paraview] New variable to a mesh Message-ID: Greetings! I am new to ParaView and have few queries regarding the assigning of a new variable in mesh: 1: I am using calculator filter to add a new array. Is it possible to interpolate the values in this array and also is it possible to generate random numbers? (say if I want values between 0 to 1 in my array of 2000 cells) 2: Is there any other method by which I could assign properties to the mesh? (say I want to assign different values to my cell - say hydraulic conductivities in inhomogeneous porous medium) How can I do this with calculator filter or with any other tool? I am sorry if the questions are naive. Looking forward to your response. Regards Moulshree Tripathi -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Tue Feb 20 09:54:26 2018 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Tue, 20 Feb 2018 07:54:26 -0700 Subject: [Paraview] Using ParaviewWeb examples In-Reply-To: References: Message-ID: Hi Tom, Try to stay with the latest webpack. The setup doc was initially describing the ParaViewWeb config itself. But since we've updated the build process of ParaViewWeb, you could look at the actual configuration of ParaViewWeb itself. That will give you the proper set of files. https://github.com/Kitware/paraviewweb/blob/master/webpack.config.js https://github.com/Kitware/paraviewweb/blob/master/prettier.config.js https://github.com/Kitware/paraviewweb/blob/master/package.json https://github.com/Kitware/paraviewweb/blob/master/.eslintrc.js https://github.com/Kitware/paraviewweb/blob/master/.babelrc Hope that helps until we fix and update the documentation, Seb On Mon, Feb 19, 2018 at 4:34 PM, Sgouros, Thomas wrote: > Hi Sebastien: > > I suspected that and also tried downgrading to webpack 1, but then loading > paraviewweb won't work because lots of its dependencies require webpack > versions up to 2.2.0. (babel-loader, expose-loader, schema-utils, > worker-loader, several others) It tells you to load the peer dependencies > by hand, but that seems not to work for paraviewweb, though I'm probably > misunderstanding something. > > I will forget the examples and try building up a webpack from scratch, but > there are a few things in the webpack config that make me nervous about the > prospects: > > 1. The alias PVWStyle. > > 2. The "postcss: [require('autoprefixer')... ] > > 3. 'loader: "expose?MyWebApp"'. > > All of these seem like maybe they are going to be required for some parts > of paraviewweb. The current version of webpack seems to choke on them all, > and I won't know what to replace them with. Any advice? > > Thank you. > > -Tom > > On Mon, Feb 19, 2018 at 6:16 PM, Sebastien Jourdain < > sebastien.jourdain at kitware.com> wrote: > >> Hi Tom, >> >> The documentation was written when we were still using Webpack 1 and >> unfortunately it is outdated. >> I'll try to update it so it will be easier to follow for users that don't >> know any of those web tools. >> >> For normalize, you can find some information directly on their web site >> https://necolas.github.io/normalize.css/ >> >> Seb >> >> On Mon, Feb 19, 2018 at 2:27 PM, Sgouros, Thomas < >> thomas_sgouros at brown.edu> wrote: >> >>> I tried that page twice and get errors about missing fix-autobahn, and >>> when I removed that from the package.json, webpack complained about missing >>> eslint (I installed eslint, but it doesn't change), and then errors saying >>> "Webpack has been initialised using a configuration object that does not >>> match the API schema" and errors about the output directory needing to be >>> an "**absolute path** (required)". I'm sure there's something simple I'm >>> missing, but not sure what. >>> >>> Thank you, >>> >>> -Tom >>> >>> On Mon, Feb 19, 2018 at 4:08 PM, Aron Helser >>> wrote: >>> >>>> I think you're looking for the setup doc: https://kitware.github.io >>>> /paraviewweb/docs/setup.html >>>> It gives you a sample webpack config. Nearly all the paraviewweb >>>> dependencies are contained in kw-websuite, as documented on that page. >>>> >>>> The examples as they stand use a bit of magic, you are right, so they >>>> can be embedded in the documentation pages. AFAIK, we don't have an install >>>> option to make a stand-alone example. >>>> Regards, >>>> Aron >>>> >>>> On Mon, Feb 19, 2018 at 3:59 PM, Sgouros, Thomas < >>>> thomas_sgouros at brown.edu> wrote: >>>> >>>>> Thank you. it would be great also to have pointers to normalize.css, >>>>> and the webpack and package configs for these examples. They are more like >>>>> puzzles than examples in their current state, with the challenge to find >>>>> all the missing pieces and guess how to put them together. Am I missing >>>>> some intro that steps me through those parts? Or is there a way to see the >>>>> whole example laid out with those other pieces? Maybe an npm install option >>>>> that will give me these examples on my disk? >>>>> >>>>> I see fragments of examples on this page: https://kitware.github.i >>>>> o/paraviewweb/docs/import.html , but apparently it is not enough for >>>>> me. >>>>> >>>>> Thank you, >>>>> >>>>> -Tom >>>>> >>>>> On Mon, Feb 19, 2018 at 2:48 PM, Aron Helser >>>>> wrote: >>>>> >>>>>> Hi Tom, >>>>>> The ParaviewWeb examples always live in a sub-directory of the >>>>>> component they illustrate - so here, this is the Composite example, so '..' >>>>>> just refers to 'Composite'. >>>>>> If you look in the left menu, you can see that 'Composite' is grouped >>>>>> into ' Component/Native'. That's the directory it's in. '../../BackgroundColor' >>>>>> is a sibling directory to 'Composite', so it will also be in ' >>>>>> Component/Native' >>>>>> >>>>>> Generally you can follow the '..' out from the example sub-directory >>>>>> and figure out where you are. >>>>>> >>>>>> Hope that helps, >>>>>> Aron >>>>>> >>>>>> On Mon, Feb 19, 2018 at 2:38 PM, Sgouros, Thomas < >>>>>> thomas_sgouros at brown.edu> wrote: >>>>>> >>>>>>> Hello all: >>>>>>> >>>>>>> When I see a Paraviewweb example like this (from Composite.html): >>>>>>> >>>>>>> import CompositeComponent from '..'; >>>>>>> import BGColorComponent from '../../BackgroundColor'; >>>>>>> >>>>>>> Where should I look for BackgroundColor and CompositeComponent? I >>>>>>> feel sure I could find them eventually, but is there another search >>>>>>> algorithm besides brute force? >>>>>>> >>>>>>> Thank you, >>>>>>> >>>>>>> -Tom >>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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: >>>>>>> https://public.kitware.com/mailman/listinfo/paraview >>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the ParaView Wiki at: >>> http://paraview.org/Wiki/ParaView >>> >>> Search the list archives at: http://markmail.org/search/?q=ParaView >>> >>> Follow this link to subscribe/unsubscribe: >>> https://public.kitware.com/mailman/listinfo/paraview >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas_sgouros at brown.edu Tue Feb 20 10:16:56 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Tue, 20 Feb 2018 10:16:56 -0500 Subject: [Paraview] Using ParaviewWeb examples In-Reply-To: References: Message-ID: Yes, my excursion to webpack 1 was enough of a failure that I'm not tempted. Thank you for that, I'll see if I can get something out of those. -Tom On Tue, Feb 20, 2018 at 9:54 AM, Sebastien Jourdain < sebastien.jourdain at kitware.com> wrote: > Hi Tom, > > Try to stay with the latest webpack. The setup doc was initially > describing the ParaViewWeb config itself. > But since we've updated the build process of ParaViewWeb, you could look > at the actual configuration of ParaViewWeb itself. That will give you the > proper set of files. > > https://github.com/Kitware/paraviewweb/blob/master/webpack.config.js > https://github.com/Kitware/paraviewweb/blob/master/prettier.config.js > https://github.com/Kitware/paraviewweb/blob/master/package.json > https://github.com/Kitware/paraviewweb/blob/master/.eslintrc.js > https://github.com/Kitware/paraviewweb/blob/master/.babelrc > > Hope that helps until we fix and update the documentation, > > Seb > > On Mon, Feb 19, 2018 at 4:34 PM, Sgouros, Thomas > wrote: > >> Hi Sebastien: >> >> I suspected that and also tried downgrading to webpack 1, but then >> loading paraviewweb won't work because lots of its dependencies require >> webpack versions up to 2.2.0. (babel-loader, expose-loader, schema-utils, >> worker-loader, several others) It tells you to load the peer dependencies >> by hand, but that seems not to work for paraviewweb, though I'm probably >> misunderstanding something. >> >> I will forget the examples and try building up a webpack from scratch, >> but there are a few things in the webpack config that make me nervous about >> the prospects: >> >> 1. The alias PVWStyle. >> >> 2. The "postcss: [require('autoprefixer')... ] >> >> 3. 'loader: "expose?MyWebApp"'. >> >> All of these seem like maybe they are going to be required for some parts >> of paraviewweb. The current version of webpack seems to choke on them all, >> and I won't know what to replace them with. Any advice? >> >> Thank you. >> >> -Tom >> >> On Mon, Feb 19, 2018 at 6:16 PM, Sebastien Jourdain < >> sebastien.jourdain at kitware.com> wrote: >> >>> Hi Tom, >>> >>> The documentation was written when we were still using Webpack 1 and >>> unfortunately it is outdated. >>> I'll try to update it so it will be easier to follow for users that >>> don't know any of those web tools. >>> >>> For normalize, you can find some information directly on their web site >>> https://necolas.github.io/normalize.css/ >>> >>> Seb >>> >>> On Mon, Feb 19, 2018 at 2:27 PM, Sgouros, Thomas < >>> thomas_sgouros at brown.edu> wrote: >>> >>>> I tried that page twice and get errors about missing fix-autobahn, and >>>> when I removed that from the package.json, webpack complained about missing >>>> eslint (I installed eslint, but it doesn't change), and then errors saying >>>> "Webpack has been initialised using a configuration object that does not >>>> match the API schema" and errors about the output directory needing to be >>>> an "**absolute path** (required)". I'm sure there's something simple I'm >>>> missing, but not sure what. >>>> >>>> Thank you, >>>> >>>> -Tom >>>> >>>> On Mon, Feb 19, 2018 at 4:08 PM, Aron Helser >>>> wrote: >>>> >>>>> I think you're looking for the setup doc: https://kitware.github.io >>>>> /paraviewweb/docs/setup.html >>>>> It gives you a sample webpack config. Nearly all the paraviewweb >>>>> dependencies are contained in kw-websuite, as documented on that page. >>>>> >>>>> The examples as they stand use a bit of magic, you are right, so they >>>>> can be embedded in the documentation pages. AFAIK, we don't have an install >>>>> option to make a stand-alone example. >>>>> Regards, >>>>> Aron >>>>> >>>>> On Mon, Feb 19, 2018 at 3:59 PM, Sgouros, Thomas < >>>>> thomas_sgouros at brown.edu> wrote: >>>>> >>>>>> Thank you. it would be great also to have pointers to normalize.css, >>>>>> and the webpack and package configs for these examples. They are more like >>>>>> puzzles than examples in their current state, with the challenge to find >>>>>> all the missing pieces and guess how to put them together. Am I missing >>>>>> some intro that steps me through those parts? Or is there a way to see the >>>>>> whole example laid out with those other pieces? Maybe an npm install option >>>>>> that will give me these examples on my disk? >>>>>> >>>>>> I see fragments of examples on this page: https://kitware.github.i >>>>>> o/paraviewweb/docs/import.html , but apparently it is not enough for >>>>>> me. >>>>>> >>>>>> Thank you, >>>>>> >>>>>> -Tom >>>>>> >>>>>> On Mon, Feb 19, 2018 at 2:48 PM, Aron Helser >>>>> > wrote: >>>>>> >>>>>>> Hi Tom, >>>>>>> The ParaviewWeb examples always live in a sub-directory of the >>>>>>> component they illustrate - so here, this is the Composite example, so '..' >>>>>>> just refers to 'Composite'. >>>>>>> If you look in the left menu, you can see that 'Composite' is >>>>>>> grouped into ' Component/Native'. That's the directory it's in. '../../BackgroundColor' >>>>>>> is a sibling directory to 'Composite', so it will also be in ' >>>>>>> Component/Native' >>>>>>> >>>>>>> Generally you can follow the '..' out from the example sub-directory >>>>>>> and figure out where you are. >>>>>>> >>>>>>> Hope that helps, >>>>>>> Aron >>>>>>> >>>>>>> On Mon, Feb 19, 2018 at 2:38 PM, Sgouros, Thomas < >>>>>>> thomas_sgouros at brown.edu> wrote: >>>>>>> >>>>>>>> Hello all: >>>>>>>> >>>>>>>> When I see a Paraviewweb example like this (from Composite.html): >>>>>>>> >>>>>>>> import CompositeComponent from '..'; >>>>>>>> import BGColorComponent from '../../BackgroundColor'; >>>>>>>> >>>>>>>> Where should I look for BackgroundColor and CompositeComponent? I >>>>>>>> feel sure I could find them eventually, but is there another search >>>>>>>> algorithm besides brute force? >>>>>>>> >>>>>>>> Thank you, >>>>>>>> >>>>>>>> -Tom >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> 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: >>>>>>>> https://public.kitware.com/mailman/listinfo/paraview >>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>>> _______________________________________________ >>>> Powered by www.kitware.com >>>> >>>> Visit other Kitware open-source projects at >>>> http://www.kitware.com/opensource/opensource.html >>>> >>>> Please keep messages on-topic and check the ParaView Wiki at: >>>> http://paraview.org/Wiki/ParaView >>>> >>>> Search the list archives at: http://markmail.org/search/?q=ParaView >>>> >>>> Follow this link to subscribe/unsubscribe: >>>> https://public.kitware.com/mailman/listinfo/paraview >>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Tue Feb 20 12:32:15 2018 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Tue, 20 Feb 2018 10:32:15 -0700 Subject: [Paraview] Using ParaviewWeb examples In-Reply-To: References: Message-ID: Hi Tom, I've just updated ParaViewWeb documentation (setup) to reflect the latest tools that we use. Also I've updated the examples to use absolute path so you would not need to figure out those relative path resolution. Travis is currently building the new version along with an updated website which usually take around 25 minutes to complete. Seb On Tue, Feb 20, 2018 at 8:16 AM, Sgouros, Thomas wrote: > Yes, my excursion to webpack 1 was enough of a failure that I'm not > tempted. > > Thank you for that, I'll see if I can get something out of those. > > -Tom > > On Tue, Feb 20, 2018 at 9:54 AM, Sebastien Jourdain < > sebastien.jourdain at kitware.com> wrote: > >> Hi Tom, >> >> Try to stay with the latest webpack. The setup doc was initially >> describing the ParaViewWeb config itself. >> But since we've updated the build process of ParaViewWeb, you could look >> at the actual configuration of ParaViewWeb itself. That will give you the >> proper set of files. >> >> https://github.com/Kitware/paraviewweb/blob/master/webpack.config.js >> https://github.com/Kitware/paraviewweb/blob/master/prettier.config.js >> https://github.com/Kitware/paraviewweb/blob/master/package.json >> https://github.com/Kitware/paraviewweb/blob/master/.eslintrc.js >> https://github.com/Kitware/paraviewweb/blob/master/.babelrc >> >> Hope that helps until we fix and update the documentation, >> >> Seb >> >> On Mon, Feb 19, 2018 at 4:34 PM, Sgouros, Thomas < >> thomas_sgouros at brown.edu> wrote: >> >>> Hi Sebastien: >>> >>> I suspected that and also tried downgrading to webpack 1, but then >>> loading paraviewweb won't work because lots of its dependencies require >>> webpack versions up to 2.2.0. (babel-loader, expose-loader, schema-utils, >>> worker-loader, several others) It tells you to load the peer dependencies >>> by hand, but that seems not to work for paraviewweb, though I'm probably >>> misunderstanding something. >>> >>> I will forget the examples and try building up a webpack from scratch, >>> but there are a few things in the webpack config that make me nervous about >>> the prospects: >>> >>> 1. The alias PVWStyle. >>> >>> 2. The "postcss: [require('autoprefixer')... ] >>> >>> 3. 'loader: "expose?MyWebApp"'. >>> >>> All of these seem like maybe they are going to be required for some >>> parts of paraviewweb. The current version of webpack seems to choke on them >>> all, and I won't know what to replace them with. Any advice? >>> >>> Thank you. >>> >>> -Tom >>> >>> On Mon, Feb 19, 2018 at 6:16 PM, Sebastien Jourdain < >>> sebastien.jourdain at kitware.com> wrote: >>> >>>> Hi Tom, >>>> >>>> The documentation was written when we were still using Webpack 1 and >>>> unfortunately it is outdated. >>>> I'll try to update it so it will be easier to follow for users that >>>> don't know any of those web tools. >>>> >>>> For normalize, you can find some information directly on their web site >>>> https://necolas.github.io/normalize.css/ >>>> >>>> Seb >>>> >>>> On Mon, Feb 19, 2018 at 2:27 PM, Sgouros, Thomas < >>>> thomas_sgouros at brown.edu> wrote: >>>> >>>>> I tried that page twice and get errors about missing fix-autobahn, and >>>>> when I removed that from the package.json, webpack complained about missing >>>>> eslint (I installed eslint, but it doesn't change), and then errors saying >>>>> "Webpack has been initialised using a configuration object that does not >>>>> match the API schema" and errors about the output directory needing to be >>>>> an "**absolute path** (required)". I'm sure there's something simple I'm >>>>> missing, but not sure what. >>>>> >>>>> Thank you, >>>>> >>>>> -Tom >>>>> >>>>> On Mon, Feb 19, 2018 at 4:08 PM, Aron Helser >>>>> wrote: >>>>> >>>>>> I think you're looking for the setup doc: https://kitware.github.io >>>>>> /paraviewweb/docs/setup.html >>>>>> It gives you a sample webpack config. Nearly all the paraviewweb >>>>>> dependencies are contained in kw-websuite, as documented on that page. >>>>>> >>>>>> The examples as they stand use a bit of magic, you are right, so they >>>>>> can be embedded in the documentation pages. AFAIK, we don't have an install >>>>>> option to make a stand-alone example. >>>>>> Regards, >>>>>> Aron >>>>>> >>>>>> On Mon, Feb 19, 2018 at 3:59 PM, Sgouros, Thomas < >>>>>> thomas_sgouros at brown.edu> wrote: >>>>>> >>>>>>> Thank you. it would be great also to have pointers to normalize.css, >>>>>>> and the webpack and package configs for these examples. They are more like >>>>>>> puzzles than examples in their current state, with the challenge to find >>>>>>> all the missing pieces and guess how to put them together. Am I missing >>>>>>> some intro that steps me through those parts? Or is there a way to see the >>>>>>> whole example laid out with those other pieces? Maybe an npm install option >>>>>>> that will give me these examples on my disk? >>>>>>> >>>>>>> I see fragments of examples on this page: https://kitware.github.i >>>>>>> o/paraviewweb/docs/import.html , but apparently it is not enough >>>>>>> for me. >>>>>>> >>>>>>> Thank you, >>>>>>> >>>>>>> -Tom >>>>>>> >>>>>>> On Mon, Feb 19, 2018 at 2:48 PM, Aron Helser < >>>>>>> aron.helser at kitware.com> wrote: >>>>>>> >>>>>>>> Hi Tom, >>>>>>>> The ParaviewWeb examples always live in a sub-directory of the >>>>>>>> component they illustrate - so here, this is the Composite example, so '..' >>>>>>>> just refers to 'Composite'. >>>>>>>> If you look in the left menu, you can see that 'Composite' is >>>>>>>> grouped into ' Component/Native'. That's the directory it's in. '../../BackgroundColor' >>>>>>>> is a sibling directory to 'Composite', so it will also be in ' >>>>>>>> Component/Native' >>>>>>>> >>>>>>>> Generally you can follow the '..' out from the example >>>>>>>> sub-directory and figure out where you are. >>>>>>>> >>>>>>>> Hope that helps, >>>>>>>> Aron >>>>>>>> >>>>>>>> On Mon, Feb 19, 2018 at 2:38 PM, Sgouros, Thomas < >>>>>>>> thomas_sgouros at brown.edu> wrote: >>>>>>>> >>>>>>>>> Hello all: >>>>>>>>> >>>>>>>>> When I see a Paraviewweb example like this (from Composite.html): >>>>>>>>> >>>>>>>>> import CompositeComponent from '..'; >>>>>>>>> import BGColorComponent from '../../BackgroundColor'; >>>>>>>>> >>>>>>>>> Where should I look for BackgroundColor and CompositeComponent? I >>>>>>>>> feel sure I could find them eventually, but is there another search >>>>>>>>> algorithm besides brute force? >>>>>>>>> >>>>>>>>> Thank you, >>>>>>>>> >>>>>>>>> -Tom >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> 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: >>>>>>>>> https://public.kitware.com/mailman/listinfo/paraview >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> Powered by www.kitware.com >>>>> >>>>> Visit other Kitware open-source projects at >>>>> http://www.kitware.com/opensource/opensource.html >>>>> >>>>> Please keep messages on-topic and check the ParaView Wiki at: >>>>> http://paraview.org/Wiki/ParaView >>>>> >>>>> Search the list archives at: http://markmail.org/search/?q=ParaView >>>>> >>>>> Follow this link to subscribe/unsubscribe: >>>>> https://public.kitware.com/mailman/listinfo/paraview >>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas_sgouros at brown.edu Tue Feb 20 12:44:48 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Tue, 20 Feb 2018 12:44:48 -0500 Subject: [Paraview] Using ParaviewWeb examples In-Reply-To: References: Message-ID: Cool, thank you. I found some additional dependencies (hammerjs and monologue.js) and added this loader to the webpack config for the font-awesome thing: { test: /\.(eot|svg|ttf|woff|woff2)$/, loader: 'file-loader?name=public/fonts/[name].[ext]' } Not sure if that's optimal, but it seems to work. My package dependencies look like this now: "dependencies": { "font-awesome": "^4.7.0", "kw-web-suite": "^5.0.0", "monologue.js": "^0.3.5", "normalize.css": "^8.0.0", "paraviewweb": "^3.0.9", "react": "^15.5.4", "react-dom": "^15.5.4", "wslink": "^0.1.5", "hammerjs": "^2.0.8" }, Happy to hear if I've gotten something wrong. Looking forward to the new site. Thank you, -Tom On Tue, Feb 20, 2018 at 12:32 PM, Sebastien Jourdain < sebastien.jourdain at kitware.com> wrote: > Hi Tom, > > I've just updated ParaViewWeb documentation (setup) to reflect the latest > tools that we use. > Also I've updated the examples to use absolute path so you would not need > to figure out those relative path resolution. > > Travis is currently building the new version along with an updated website > which usually take around 25 minutes to complete. > > Seb > > On Tue, Feb 20, 2018 at 8:16 AM, Sgouros, Thomas > wrote: > >> Yes, my excursion to webpack 1 was enough of a failure that I'm not >> tempted. >> >> Thank you for that, I'll see if I can get something out of those. >> >> -Tom >> >> On Tue, Feb 20, 2018 at 9:54 AM, Sebastien Jourdain < >> sebastien.jourdain at kitware.com> wrote: >> >>> Hi Tom, >>> >>> Try to stay with the latest webpack. The setup doc was initially >>> describing the ParaViewWeb config itself. >>> But since we've updated the build process of ParaViewWeb, you could look >>> at the actual configuration of ParaViewWeb itself. That will give you the >>> proper set of files. >>> >>> https://github.com/Kitware/paraviewweb/blob/master/webpack.config.js >>> https://github.com/Kitware/paraviewweb/blob/master/prettier.config.js >>> https://github.com/Kitware/paraviewweb/blob/master/package.json >>> https://github.com/Kitware/paraviewweb/blob/master/.eslintrc.js >>> https://github.com/Kitware/paraviewweb/blob/master/.babelrc >>> >>> Hope that helps until we fix and update the documentation, >>> >>> Seb >>> >>> On Mon, Feb 19, 2018 at 4:34 PM, Sgouros, Thomas < >>> thomas_sgouros at brown.edu> wrote: >>> >>>> Hi Sebastien: >>>> >>>> I suspected that and also tried downgrading to webpack 1, but then >>>> loading paraviewweb won't work because lots of its dependencies require >>>> webpack versions up to 2.2.0. (babel-loader, expose-loader, schema-utils, >>>> worker-loader, several others) It tells you to load the peer dependencies >>>> by hand, but that seems not to work for paraviewweb, though I'm probably >>>> misunderstanding something. >>>> >>>> I will forget the examples and try building up a webpack from scratch, >>>> but there are a few things in the webpack config that make me nervous about >>>> the prospects: >>>> >>>> 1. The alias PVWStyle. >>>> >>>> 2. The "postcss: [require('autoprefixer')... ] >>>> >>>> 3. 'loader: "expose?MyWebApp"'. >>>> >>>> All of these seem like maybe they are going to be required for some >>>> parts of paraviewweb. The current version of webpack seems to choke on them >>>> all, and I won't know what to replace them with. Any advice? >>>> >>>> Thank you. >>>> >>>> -Tom >>>> >>>> On Mon, Feb 19, 2018 at 6:16 PM, Sebastien Jourdain < >>>> sebastien.jourdain at kitware.com> wrote: >>>> >>>>> Hi Tom, >>>>> >>>>> The documentation was written when we were still using Webpack 1 and >>>>> unfortunately it is outdated. >>>>> I'll try to update it so it will be easier to follow for users that >>>>> don't know any of those web tools. >>>>> >>>>> For normalize, you can find some information directly on their web >>>>> site https://necolas.github.io/normalize.css/ >>>>> >>>>> Seb >>>>> >>>>> On Mon, Feb 19, 2018 at 2:27 PM, Sgouros, Thomas < >>>>> thomas_sgouros at brown.edu> wrote: >>>>> >>>>>> I tried that page twice and get errors about missing fix-autobahn, >>>>>> and when I removed that from the package.json, webpack complained about >>>>>> missing eslint (I installed eslint, but it doesn't change), and then errors >>>>>> saying "Webpack has been initialised using a configuration object that does >>>>>> not match the API schema" and errors about the output directory needing to >>>>>> be an "**absolute path** (required)". I'm sure there's something simple I'm >>>>>> missing, but not sure what. >>>>>> >>>>>> Thank you, >>>>>> >>>>>> -Tom >>>>>> >>>>>> On Mon, Feb 19, 2018 at 4:08 PM, Aron Helser >>>>> > wrote: >>>>>> >>>>>>> I think you're looking for the setup doc: https://kitware.github.io >>>>>>> /paraviewweb/docs/setup.html >>>>>>> It gives you a sample webpack config. Nearly all the paraviewweb >>>>>>> dependencies are contained in kw-websuite, as documented on that page. >>>>>>> >>>>>>> The examples as they stand use a bit of magic, you are right, so >>>>>>> they can be embedded in the documentation pages. AFAIK, we don't have an >>>>>>> install option to make a stand-alone example. >>>>>>> Regards, >>>>>>> Aron >>>>>>> >>>>>>> On Mon, Feb 19, 2018 at 3:59 PM, Sgouros, Thomas < >>>>>>> thomas_sgouros at brown.edu> wrote: >>>>>>> >>>>>>>> Thank you. it would be great also to have pointers to >>>>>>>> normalize.css, and the webpack and package configs for these examples. They >>>>>>>> are more like puzzles than examples in their current state, with the >>>>>>>> challenge to find all the missing pieces and guess how to put them >>>>>>>> together. Am I missing some intro that steps me through those parts? Or is >>>>>>>> there a way to see the whole example laid out with those other pieces? >>>>>>>> Maybe an npm install option that will give me these examples on my disk? >>>>>>>> >>>>>>>> I see fragments of examples on this page: https://kitware.github.i >>>>>>>> o/paraviewweb/docs/import.html , but apparently it is not enough >>>>>>>> for me. >>>>>>>> >>>>>>>> Thank you, >>>>>>>> >>>>>>>> -Tom >>>>>>>> >>>>>>>> On Mon, Feb 19, 2018 at 2:48 PM, Aron Helser < >>>>>>>> aron.helser at kitware.com> wrote: >>>>>>>> >>>>>>>>> Hi Tom, >>>>>>>>> The ParaviewWeb examples always live in a sub-directory of the >>>>>>>>> component they illustrate - so here, this is the Composite example, so '..' >>>>>>>>> just refers to 'Composite'. >>>>>>>>> If you look in the left menu, you can see that 'Composite' is >>>>>>>>> grouped into ' Component/Native'. That's the directory it's in. '../../BackgroundColor' >>>>>>>>> is a sibling directory to 'Composite', so it will also be in ' >>>>>>>>> Component/Native' >>>>>>>>> >>>>>>>>> Generally you can follow the '..' out from the example >>>>>>>>> sub-directory and figure out where you are. >>>>>>>>> >>>>>>>>> Hope that helps, >>>>>>>>> Aron >>>>>>>>> >>>>>>>>> On Mon, Feb 19, 2018 at 2:38 PM, Sgouros, Thomas < >>>>>>>>> thomas_sgouros at brown.edu> wrote: >>>>>>>>> >>>>>>>>>> Hello all: >>>>>>>>>> >>>>>>>>>> When I see a Paraviewweb example like this (from Composite.html): >>>>>>>>>> >>>>>>>>>> import CompositeComponent from '..'; >>>>>>>>>> import BGColorComponent from '../../BackgroundColor'; >>>>>>>>>> >>>>>>>>>> Where should I look for BackgroundColor and CompositeComponent? I >>>>>>>>>> feel sure I could find them eventually, but is there another search >>>>>>>>>> algorithm besides brute force? >>>>>>>>>> >>>>>>>>>> Thank you, >>>>>>>>>> >>>>>>>>>> -Tom >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> 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: >>>>>>>>>> https://public.kitware.com/mailman/listinfo/paraview >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Powered by www.kitware.com >>>>>> >>>>>> Visit other Kitware open-source projects at >>>>>> http://www.kitware.com/opensource/opensource.html >>>>>> >>>>>> Please keep messages on-topic and check the ParaView Wiki at: >>>>>> http://paraview.org/Wiki/ParaView >>>>>> >>>>>> Search the list archives at: http://markmail.org/search/?q=ParaView >>>>>> >>>>>> Follow this link to subscribe/unsubscribe: >>>>>> https://public.kitware.com/mailman/listinfo/paraview >>>>>> >>>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Tue Feb 20 13:00:43 2018 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Tue, 20 Feb 2018 11:00:43 -0700 Subject: [Paraview] Using ParaviewWeb examples In-Reply-To: References: Message-ID: Hi Tom, So everything is up, so you can checkout the website. Regarding your loader, I think it is good. You can look the ones we use here: https://github.com/Kitware/paraviewweb/tree/master/config And for the dependency, we let the user to add every dependency required instead of forcing a specific version in our pvw dependency list. That way they can update or pick version at their own discretion. Especially if a dependency is missing the error message is pretty explicit regarding which one needs to be added. Seb On Tue, Feb 20, 2018 at 10:44 AM, Sgouros, Thomas wrote: > Cool, thank you. I found some additional dependencies (hammerjs and > monologue.js) and added this loader to the webpack config for the > font-awesome thing: > > { > test: /\.(eot|svg|ttf|woff|woff2)$/, > loader: 'file-loader?name=public/fonts/[name].[ext]' > } > > Not sure if that's optimal, but it seems to work. My package dependencies > look like this now: > > "dependencies": { > "font-awesome": "^4.7.0", > "kw-web-suite": "^5.0.0", > "monologue.js": "^0.3.5", > "normalize.css": "^8.0.0", > "paraviewweb": "^3.0.9", > "react": "^15.5.4", > "react-dom": "^15.5.4", > "wslink": "^0.1.5", > "hammerjs": "^2.0.8" > }, > > Happy to hear if I've gotten something wrong. Looking forward to the new > site. > > Thank you, > > -Tom > > On Tue, Feb 20, 2018 at 12:32 PM, Sebastien Jourdain < > sebastien.jourdain at kitware.com> wrote: > >> Hi Tom, >> >> I've just updated ParaViewWeb documentation (setup) to reflect the latest >> tools that we use. >> Also I've updated the examples to use absolute path so you would not need >> to figure out those relative path resolution. >> >> Travis is currently building the new version along with an updated >> website which usually take around 25 minutes to complete. >> >> Seb >> >> On Tue, Feb 20, 2018 at 8:16 AM, Sgouros, Thomas < >> thomas_sgouros at brown.edu> wrote: >> >>> Yes, my excursion to webpack 1 was enough of a failure that I'm not >>> tempted. >>> >>> Thank you for that, I'll see if I can get something out of those. >>> >>> -Tom >>> >>> On Tue, Feb 20, 2018 at 9:54 AM, Sebastien Jourdain < >>> sebastien.jourdain at kitware.com> wrote: >>> >>>> Hi Tom, >>>> >>>> Try to stay with the latest webpack. The setup doc was initially >>>> describing the ParaViewWeb config itself. >>>> But since we've updated the build process of ParaViewWeb, you could >>>> look at the actual configuration of ParaViewWeb itself. That will give you >>>> the proper set of files. >>>> >>>> https://github.com/Kitware/paraviewweb/blob/master/webpack.config.js >>>> https://github.com/Kitware/paraviewweb/blob/master/prettier.config.js >>>> https://github.com/Kitware/paraviewweb/blob/master/package.json >>>> https://github.com/Kitware/paraviewweb/blob/master/.eslintrc.js >>>> https://github.com/Kitware/paraviewweb/blob/master/.babelrc >>>> >>>> Hope that helps until we fix and update the documentation, >>>> >>>> Seb >>>> >>>> On Mon, Feb 19, 2018 at 4:34 PM, Sgouros, Thomas < >>>> thomas_sgouros at brown.edu> wrote: >>>> >>>>> Hi Sebastien: >>>>> >>>>> I suspected that and also tried downgrading to webpack 1, but then >>>>> loading paraviewweb won't work because lots of its dependencies require >>>>> webpack versions up to 2.2.0. (babel-loader, expose-loader, schema-utils, >>>>> worker-loader, several others) It tells you to load the peer dependencies >>>>> by hand, but that seems not to work for paraviewweb, though I'm probably >>>>> misunderstanding something. >>>>> >>>>> I will forget the examples and try building up a webpack from scratch, >>>>> but there are a few things in the webpack config that make me nervous about >>>>> the prospects: >>>>> >>>>> 1. The alias PVWStyle. >>>>> >>>>> 2. The "postcss: [require('autoprefixer')... ] >>>>> >>>>> 3. 'loader: "expose?MyWebApp"'. >>>>> >>>>> All of these seem like maybe they are going to be required for some >>>>> parts of paraviewweb. The current version of webpack seems to choke on them >>>>> all, and I won't know what to replace them with. Any advice? >>>>> >>>>> Thank you. >>>>> >>>>> -Tom >>>>> >>>>> On Mon, Feb 19, 2018 at 6:16 PM, Sebastien Jourdain < >>>>> sebastien.jourdain at kitware.com> wrote: >>>>> >>>>>> Hi Tom, >>>>>> >>>>>> The documentation was written when we were still using Webpack 1 and >>>>>> unfortunately it is outdated. >>>>>> I'll try to update it so it will be easier to follow for users that >>>>>> don't know any of those web tools. >>>>>> >>>>>> For normalize, you can find some information directly on their web >>>>>> site https://necolas.github.io/normalize.css/ >>>>>> >>>>>> Seb >>>>>> >>>>>> On Mon, Feb 19, 2018 at 2:27 PM, Sgouros, Thomas < >>>>>> thomas_sgouros at brown.edu> wrote: >>>>>> >>>>>>> I tried that page twice and get errors about missing fix-autobahn, >>>>>>> and when I removed that from the package.json, webpack complained about >>>>>>> missing eslint (I installed eslint, but it doesn't change), and then errors >>>>>>> saying "Webpack has been initialised using a configuration object that does >>>>>>> not match the API schema" and errors about the output directory needing to >>>>>>> be an "**absolute path** (required)". I'm sure there's something simple I'm >>>>>>> missing, but not sure what. >>>>>>> >>>>>>> Thank you, >>>>>>> >>>>>>> -Tom >>>>>>> >>>>>>> On Mon, Feb 19, 2018 at 4:08 PM, Aron Helser < >>>>>>> aron.helser at kitware.com> wrote: >>>>>>> >>>>>>>> I think you're looking for the setup doc: https://kitware.github.io >>>>>>>> /paraviewweb/docs/setup.html >>>>>>>> It gives you a sample webpack config. Nearly all the paraviewweb >>>>>>>> dependencies are contained in kw-websuite, as documented on that page. >>>>>>>> >>>>>>>> The examples as they stand use a bit of magic, you are right, so >>>>>>>> they can be embedded in the documentation pages. AFAIK, we don't have an >>>>>>>> install option to make a stand-alone example. >>>>>>>> Regards, >>>>>>>> Aron >>>>>>>> >>>>>>>> On Mon, Feb 19, 2018 at 3:59 PM, Sgouros, Thomas < >>>>>>>> thomas_sgouros at brown.edu> wrote: >>>>>>>> >>>>>>>>> Thank you. it would be great also to have pointers to >>>>>>>>> normalize.css, and the webpack and package configs for these examples. They >>>>>>>>> are more like puzzles than examples in their current state, with the >>>>>>>>> challenge to find all the missing pieces and guess how to put them >>>>>>>>> together. Am I missing some intro that steps me through those parts? Or is >>>>>>>>> there a way to see the whole example laid out with those other pieces? >>>>>>>>> Maybe an npm install option that will give me these examples on my disk? >>>>>>>>> >>>>>>>>> I see fragments of examples on this page: https://kitware.github.i >>>>>>>>> o/paraviewweb/docs/import.html , but apparently it is not enough >>>>>>>>> for me. >>>>>>>>> >>>>>>>>> Thank you, >>>>>>>>> >>>>>>>>> -Tom >>>>>>>>> >>>>>>>>> On Mon, Feb 19, 2018 at 2:48 PM, Aron Helser < >>>>>>>>> aron.helser at kitware.com> wrote: >>>>>>>>> >>>>>>>>>> Hi Tom, >>>>>>>>>> The ParaviewWeb examples always live in a sub-directory of the >>>>>>>>>> component they illustrate - so here, this is the Composite example, so '..' >>>>>>>>>> just refers to 'Composite'. >>>>>>>>>> If you look in the left menu, you can see that 'Composite' is >>>>>>>>>> grouped into ' Component/Native'. That's the directory it's in. '../../BackgroundColor' >>>>>>>>>> is a sibling directory to 'Composite', so it will also be in ' >>>>>>>>>> Component/Native' >>>>>>>>>> >>>>>>>>>> Generally you can follow the '..' out from the example >>>>>>>>>> sub-directory and figure out where you are. >>>>>>>>>> >>>>>>>>>> Hope that helps, >>>>>>>>>> Aron >>>>>>>>>> >>>>>>>>>> On Mon, Feb 19, 2018 at 2:38 PM, Sgouros, Thomas < >>>>>>>>>> thomas_sgouros at brown.edu> wrote: >>>>>>>>>> >>>>>>>>>>> Hello all: >>>>>>>>>>> >>>>>>>>>>> When I see a Paraviewweb example like this (from Composite.html): >>>>>>>>>>> >>>>>>>>>>> import CompositeComponent from '..'; >>>>>>>>>>> import BGColorComponent from '../../BackgroundColor'; >>>>>>>>>>> >>>>>>>>>>> Where should I look for BackgroundColor and CompositeComponent? >>>>>>>>>>> I feel sure I could find them eventually, but is there another search >>>>>>>>>>> algorithm besides brute force? >>>>>>>>>>> >>>>>>>>>>> Thank you, >>>>>>>>>>> >>>>>>>>>>> -Tom >>>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> 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: >>>>>>>>>>> https://public.kitware.com/mailman/listinfo/paraview >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Powered by www.kitware.com >>>>>>> >>>>>>> Visit other Kitware open-source projects at >>>>>>> http://www.kitware.com/opensource/opensource.html >>>>>>> >>>>>>> Please keep messages on-topic and check the ParaView Wiki at: >>>>>>> http://paraview.org/Wiki/ParaView >>>>>>> >>>>>>> Search the list archives at: http://markmail.org/search/?q=ParaView >>>>>>> >>>>>>> Follow this link to subscribe/unsubscribe: >>>>>>> https://public.kitware.com/mailman/listinfo/paraview >>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Tue Feb 20 15:51:30 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Tue, 20 Feb 2018 15:51:30 -0500 Subject: [Paraview] Paraview programmatically plot quantities over line, using only data on nodes In-Reply-To: References: Message-ID: I'd suggest trying the nightly binaries (or wait for 5.5 release candidates which should come out in the next week or so). A new **Plot Data Over Time** filer will let you do this without have to worry about selecting cells/points etc. Utkarsh On Tue, Feb 20, 2018 at 2:28 AM, Santiago Serebrinsky wrote: > Hello, > > I have a dataset on a 2D domain. I mean to get an XY plot of data along a > line which contains a number of element edges. I would typically do this > with PlotOverLine. > > Now I want to obtain a similar plot, but with my data points located only at > the actual locations of nodes in my mesh. In this way, my XY plot (and its > underlying data) would be directly representative of the mesh resolution in > my original data. > > How can this be done programmatically, 1) from the UI as a macro, 2) from > the UI at the python shell, 3) at the CLI (pvpython myscript.py)? > > I couldn't even find how to do this via GUI. I started by Select Points On, > but I couldn't go any further. Moreover, if this is the right way to start, > I wouldn't be able to transfer it to python code, since Start Trace does not > include Select Points On in the output trace, so I wouldn't know how to add > it to code. > > 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 > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > https://public.kitware.com/mailman/listinfo/paraview > From sserebrinsky at gmail.com Tue Feb 20 18:33:04 2018 From: sserebrinsky at gmail.com (Santiago Serebrinsky) Date: Tue, 20 Feb 2018 20:33:04 -0300 Subject: [Paraview] Paraview programmatically plot quantities over line, using only data on nodes In-Reply-To: References: Message-ID: What is the difference between this new **Plot Data Over Time** and existing **Plot ____ Over Time**? I wonder how this accommodates what I mean to achieve, which is more like Plot Data Over Path (or Node Set). PS: My objective resembles the procedure in Abaqus whereby one defines a Path based on an arbitrary sequence of points (which can be nodes, e.g.) and then plots a given quantity along that path. On Tue, Feb 20, 2018 at 5:51 PM, Utkarsh Ayachit < utkarsh.ayachit at kitware.com> wrote: > I'd suggest trying the nightly binaries (or wait for 5.5 release > candidates which should come out in the next week or so). A new **Plot > Data Over Time** filer will let you do this without have to worry > about selecting cells/points etc. > > Utkarsh > > On Tue, Feb 20, 2018 at 2:28 AM, Santiago Serebrinsky > wrote: > > Hello, > > > > I have a dataset on a 2D domain. I mean to get an XY plot of data along a > > line which contains a number of element edges. I would typically do this > > with PlotOverLine. > > > > Now I want to obtain a similar plot, but with my data points located > only at > > the actual locations of nodes in my mesh. In this way, my XY plot (and > its > > underlying data) would be directly representative of the mesh resolution > in > > my original data. > > > > How can this be done programmatically, 1) from the UI as a macro, 2) from > > the UI at the python shell, 3) at the CLI (pvpython myscript.py)? > > > > I couldn't even find how to do this via GUI. I started by Select Points > On, > > but I couldn't go any further. Moreover, if this is the right way to > start, > > I wouldn't be able to transfer it to python code, since Start Trace does > not > > include Select Points On in the output trace, so I wouldn't know how to > add > > it to code. > > > > 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 > > > > Search the list archives at: http://markmail.org/search/?q=ParaView > > > > Follow this link to subscribe/unsubscribe: > > https://public.kitware.com/mailman/listinfo/paraview > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sserebrinsky at gmail.com Tue Feb 20 18:37:18 2018 From: sserebrinsky at gmail.com (Santiago Serebrinsky) Date: Tue, 20 Feb 2018 20:37:18 -0300 Subject: [Paraview] Create filter with jump in fields Message-ID: I have a dataset with discontinuous displacements across a few surfaces (so far I am working in 2D, so these would be lines, 1D). It is input as a PVDReader (just in case it makes any difference here, which I doubt). *Is there any way to programmatically create a new Source with the displacement jumps along those lines? Note that this new field would probably have to be defined on a domain with a lower dimension, see above.* So far, I created filters PlotOverLine, on lines slightly below and slightly above the prescribed line. But I do not know how to subtract the two and place them in a single field over the line. *Mathematical description of an example*: Discontinuous field: u(x,y) Domain of discontinuity: x axis, y=0 Value of the field on one side of the domain of discontinuity: u(x+,0) Value of the field on the other side of the domain of discontinuity: u(x-,0) Jump in the field: d(x) = u(x+,0) - u(x-,0) The field u is defined on a 2D domain. The field d is defined on a 1D domain (x axis). -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Tue Feb 20 19:18:14 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Tue, 20 Feb 2018 19:18:14 -0500 Subject: [Paraview] Paraview programmatically plot quantities over line, using only data on nodes In-Reply-To: References: Message-ID: Oops, I misunderstood. What you want, if I am not mistaken, is already supported. Have you tried the "Plot Data" filter? It allows you to plot cell data or point data directly. If you want a subset of points from your original mesh, they try subsetting before applying the Plot Data filter using something like clip or threshold. Utkarsh On Tue, Feb 20, 2018 at 6:33 PM, Santiago Serebrinsky wrote: > What is the difference between this new **Plot Data Over Time** and existing > **Plot ____ Over Time**? > > I wonder how this accommodates what I mean to achieve, which is more like > Plot Data Over Path (or Node Set). > > PS: My objective resembles the procedure in Abaqus whereby one defines a > Path based on an arbitrary sequence of points (which can be nodes, e.g.) and > then plots a given quantity along that path. > > > On Tue, Feb 20, 2018 at 5:51 PM, Utkarsh Ayachit > wrote: >> >> I'd suggest trying the nightly binaries (or wait for 5.5 release >> candidates which should come out in the next week or so). A new **Plot >> Data Over Time** filer will let you do this without have to worry >> about selecting cells/points etc. >> >> Utkarsh >> >> On Tue, Feb 20, 2018 at 2:28 AM, Santiago Serebrinsky >> wrote: >> > Hello, >> > >> > I have a dataset on a 2D domain. I mean to get an XY plot of data along >> > a >> > line which contains a number of element edges. I would typically do this >> > with PlotOverLine. >> > >> > Now I want to obtain a similar plot, but with my data points located >> > only at >> > the actual locations of nodes in my mesh. In this way, my XY plot (and >> > its >> > underlying data) would be directly representative of the mesh resolution >> > in >> > my original data. >> > >> > How can this be done programmatically, 1) from the UI as a macro, 2) >> > from >> > the UI at the python shell, 3) at the CLI (pvpython myscript.py)? >> > >> > I couldn't even find how to do this via GUI. I started by Select Points >> > On, >> > but I couldn't go any further. Moreover, if this is the right way to >> > start, >> > I wouldn't be able to transfer it to python code, since Start Trace does >> > not >> > include Select Points On in the output trace, so I wouldn't know how to >> > add >> > it to code. >> > >> > 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 >> > >> > Search the list archives at: http://markmail.org/search/?q=ParaView >> > >> > Follow this link to subscribe/unsubscribe: >> > https://public.kitware.com/mailman/listinfo/paraview >> > > > From rccm.kyoshimi at gmail.com Tue Feb 20 19:42:53 2018 From: rccm.kyoshimi at gmail.com (kenichiro yoshimi) Date: Wed, 21 Feb 2018 09:42:53 +0900 Subject: [Paraview] New variable to a mesh In-Reply-To: References: Message-ID: Hi Moulshree, The Programmable filter's script would be more flexible to add an array rather than doing it in the calculator filter since it allows us to use various NumPy modules. Here is a simple example that generates a random numpy array and adds it to the mesh as a vtk array. ---- import numpy as np input = self.GetInput() numCells = input.GetNumberOfCells() np_rand = np.random.rand(numCells) output.CellData.append(np_rand, "random") ---- Some information can be found here: https://www.paraview.org/Wiki/Python_Programmable_Filter Thanks 2018-02-20 17:37 GMT+09:00 Moulshree Tripathi : > Greetings! > > I am new to ParaView and have few queries regarding the assigning of a new > variable in mesh: > > 1: I am using calculator filter to add a new array. Is it possible to > interpolate the values in this array and also is it possible to generate > random numbers? (say if I want values between 0 to 1 in my array of 2000 > cells) > > 2: Is there any other method by which I could assign properties to the mesh? > (say I want to assign different values to my cell - say hydraulic > conductivities in inhomogeneous porous medium) How can I do this with > calculator filter or with any other tool? > > I am sorry if the questions are naive. > Looking forward to your response. > > Regards > > Moulshree Tripathi > > _______________________________________________ > 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: > https://public.kitware.com/mailman/listinfo/paraview > From rccm.kyoshimi at gmail.com Wed Feb 21 08:04:30 2018 From: rccm.kyoshimi at gmail.com (kenichiro yoshimi) Date: Wed, 21 Feb 2018 22:04:30 +0900 Subject: [Paraview] New variable to a mesh In-Reply-To: References: Message-ID: Hello Moulshree, Using the function numpy.random.uniform(), you can define the range of random numbers by the half-open interval [low, high): np_rand = np.random.uniform(0,100,numCells) The details are as follows. https://docs.scipy.org/doc/numpy/reference/generated/numpy.random.uniform.html And of course the conditional statements are available in Programmable filter's script as is the case in normal python script. Best 2018-02-21 18:06 GMT+09:00 Moulshree Tripathi : > Hello > > Thank you very much for the response. It worked. Also, is it possible to > give a range between which we want random numbers and could we use > conditional statements? > > Best Regards > > Moulshree Tripathi > > On Wed, Feb 21, 2018 at 1:42 AM, kenichiro yoshimi > wrote: >> >> Hi Moulshree, >> >> The Programmable filter's script would be more flexible to add an >> array rather than doing it in the calculator filter since it allows us >> to use various NumPy modules. >> >> Here is a simple example that generates a random numpy array and adds >> it to the mesh as a vtk array. >> ---- >> import numpy as np >> >> input = self.GetInput() >> numCells = input.GetNumberOfCells() >> np_rand = np.random.rand(numCells) >> output.CellData.append(np_rand, "random") >> ---- >> >> Some information can be found here: >> https://www.paraview.org/Wiki/Python_Programmable_Filter >> >> Thanks >> >> 2018-02-20 17:37 GMT+09:00 Moulshree Tripathi : >> > Greetings! >> > >> > I am new to ParaView and have few queries regarding the assigning of a >> > new >> > variable in mesh: >> > >> > 1: I am using calculator filter to add a new array. Is it possible to >> > interpolate the values in this array and also is it possible to generate >> > random numbers? (say if I want values between 0 to 1 in my array of 2000 >> > cells) >> > >> > 2: Is there any other method by which I could assign properties to the >> > mesh? >> > (say I want to assign different values to my cell - say hydraulic >> > conductivities in inhomogeneous porous medium) How can I do this with >> > calculator filter or with any other tool? >> > >> > I am sorry if the questions are naive. >> > Looking forward to your response. >> > >> > Regards >> > >> > Moulshree Tripathi >> > >> > _______________________________________________ >> > 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: >> > https://public.kitware.com/mailman/listinfo/paraview >> > > > From thomas.oliveira at gmail.com Wed Feb 21 08:56:00 2018 From: thomas.oliveira at gmail.com (Thomas Oliveira) Date: Wed, 21 Feb 2018 13:56:00 +0000 Subject: [Paraview] How to get filled slices of tubes and disks around streamlines Message-ID: Hi, I am tracing streamlines using "Stream Tracer with Custom Source" and creating tubes along them using "Tubes". Since "Tubes" creates surfaces, if I use "Slice" on the tubes I don't get elliptical disks but ellipses. I would like to: 1) Visualize elliptical disks when using "Slice" on "Tubes". I would be even better if, instead of getting the elliptical disks, which are bounded by the cross section of the tubes, I could get circular disks in the same position, i.e., if I could 2) represent circular disks on a plane that crosses the streamlines centred on the intersections between the plane and the streamlines Would you see a way of doing that or getting the same visual result? Thank you, Thomas Oliveira -------------- next part -------------- An HTML attachment was scrubbed... URL: From kmorel at sandia.gov Wed Feb 21 10:37:27 2018 From: kmorel at sandia.gov (Moreland, Kenneth) Date: Wed, 21 Feb 2018 15:37:27 +0000 Subject: [Paraview] How to get filled slices of tubes and disks around streamlines Message-ID: <3625144ef16d4888a75f1334a528559b@ES08AMSNLNT.srn.sandia.gov> Thomas, I think a better approach to what you are doing is to use the Glyph filter on your streamlines instead of the Tubes filter. After you create your streamlines, perform the following steps. 1. With the stream tracer selected in the pipeline browser, add the glyph filter (it?s icon looks like a Christmas ornament). 2. Turn on the advanced properties in the properties panel. 3. In the Glyph Type combo box, select ?2D Glyph?. 4. Assuming you have the advanced properties on, you should see a second Glyph Type combo box appear under the first one. Select ?Circle? in this second box. 5. Click on Filled checkbox. 6. Under Active Attributes, make sure the Vectors property is set to the vector field you used to create the streamlines. 7. Scroll down to where it says Glyph Transform. Set the Rotate property to 0, 90, 0. (That is, change the middle number from 0 to 90.) 8. Click Apply. You should now see filled circles perpendicular to the streamlines. You might need to change the Glyph filter?s Masking mode to either ?All Points? or ?Every Nth Point? to get the samples of circles how you want them. -Ken From: ParaView [mailto:paraview-bounces at public.kitware.com] On Behalf Of Thomas Oliveira Sent: Wednesday, February 21, 2018 6:56 AM To: ParaView Subject: [EXTERNAL] [Paraview] How to get filled slices of tubes and disks around streamlines Hi, I am tracing streamlines using "Stream Tracer with Custom Source" and creating tubes along them using "Tubes". Since "Tubes" creates surfaces, if I use "Slice" on the tubes I don't get elliptical disks but ellipses. I would like to: 1) Visualize elliptical disks when using "Slice" on "Tubes". I would be even better if, instead of getting the elliptical disks, which are bounded by the cross section of the tubes, I could get circular disks in the same position, i.e., if I could 2) represent circular disks on a plane that crosses the streamlines centred on the intersections between the plane and the streamlines Would you see a way of doing that or getting the same visual result? Thank you, Thomas Oliveira -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas_sgouros at brown.edu Wed Feb 21 18:43:36 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Wed, 21 Feb 2018 18:43:36 -0500 Subject: [Paraview] connecting buttons and python Message-ID: Hello all: Got some nice looking buttons and widgets, but I can't seem to find examples of how to deliver the button press or other widget output to my pvpython server. I imagine the steps are: 1. Create a protocol on the python side. Can I use wslink.register, or is there paraviewweb functionality I should be using? 2. Create a matching protocol on the js side, with ParaviewWebClient.createClient(), but I'm not seeing how to link the protocol to a function that can be linked to a button press. Also, this page, found via a google search, seems potentially useful, but gives me a 404. https://kitware.github.io/paraviewweb/api/ParaViewWebClient.html Many thanks, -Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From scott.wittenburg at kitware.com Wed Feb 21 18:55:19 2018 From: scott.wittenburg at kitware.com (Scott Wittenburg) Date: Wed, 21 Feb 2018 16:55:19 -0700 Subject: [Paraview] connecting buttons and python In-Reply-To: References: Message-ID: Yes that link is old and broken, but if you navigate through the api docs links, that is working. Here's the direct link to the page you couldn't find though: https://kitware.github.io/paraviewweb/api/IO_WebSocket_ParaViewWebClient.html On Wed, Feb 21, 2018 at 4:43 PM, Sgouros, Thomas wrote: > Hello all: > > Got some nice looking buttons and widgets, but I can't seem to find > examples of how to deliver the button press or other widget output to my > pvpython server. I imagine the steps are: > > 1. Create a protocol on the python side. Can I use wslink.register, or is > there paraviewweb functionality I should be using? > > 2. Create a matching protocol on the js side, with ParaviewWebClient.createClient(), > but I'm not seeing how to link the protocol to a function that can be > linked to a button press. > > Also, this page, found via a google search, seems potentially useful, but > gives me a 404. > > https://kitware.github.io/paraviewweb/api/ParaViewWebClient.html > > Many thanks, > > -Tom > > _______________________________________________ > 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: > https://public.kitware.com/mailman/listinfo/paraview > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas_sgouros at brown.edu Wed Feb 21 19:44:21 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Wed, 21 Feb 2018 19:44:21 -0500 Subject: [Paraview] connecting buttons and python In-Reply-To: References: Message-ID: Thank you that's very helpful. Where will I find how to define the protocols on the python side? I've only found a wslink example that looks like this: from wslink import register as exportRPC from wslink.websocket import LinkProtocol class myProtocol(LinkProtocol): def __init__(self): super(myProtocol, self).__init__() @exportRPC("myprotocol.testButton") def testButton(self, nothing): print("******* HELP ********") Pvpython isn't happy with this, but I'm not sure where to look for the right way to do it. Thank you, -Tom On Wed, Feb 21, 2018 at 6:55 PM, Scott Wittenburg < scott.wittenburg at kitware.com> wrote: > Yes that link is old and broken, but if you navigate through the api docs > links, that is working. Here's the direct link to the page you couldn't > find though: > > https://kitware.github.io/paraviewweb/api/IO_WebSocket_ > ParaViewWebClient.html > > > > On Wed, Feb 21, 2018 at 4:43 PM, Sgouros, Thomas > wrote: > >> Hello all: >> >> Got some nice looking buttons and widgets, but I can't seem to find >> examples of how to deliver the button press or other widget output to my >> pvpython server. I imagine the steps are: >> >> 1. Create a protocol on the python side. Can I use wslink.register, or is >> there paraviewweb functionality I should be using? >> >> 2. Create a matching protocol on the js side, with >> ParaviewWebClient.createClient(), but I'm not seeing how to link the >> protocol to a function that can be linked to a button press. >> >> Also, this page, found via a google search, seems potentially useful, but >> gives me a 404. >> >> https://kitware.github.io/paraviewweb/api/ParaViewWebClient.html >> >> Many thanks, >> >> -Tom >> >> _______________________________________________ >> 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: >> https://public.kitware.com/mailman/listinfo/paraview >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From scott.wittenburg at kitware.com Wed Feb 21 19:56:31 2018 From: scott.wittenburg at kitware.com (Scott Wittenburg) Date: Wed, 21 Feb 2018 17:56:31 -0700 Subject: [Paraview] connecting buttons and python In-Reply-To: References: Message-ID: That actually looks ok to me. Why isn't pvpython happy with it? What version of ParaView are you running? If it's a recent ParaView and the problem is you can't import wslink, then setting up a virtualenv with the missing modules (wslink and its dependencies) might be what you need. See this blog post for more information on how to use pvpython but also bring in the modules in your virtualenv: https://blog.kitware.com/using-pvpython-and-virtualenv/ If the problem is something else, we might need more details. Hope this helps. Cheers, Scott On Wed, Feb 21, 2018 at 5:44 PM, Sgouros, Thomas wrote: > Thank you that's very helpful. Where will I find how to define the > protocols on the python side? I've only found a wslink example that looks > like this: > > from wslink import register as exportRPC > from wslink.websocket import LinkProtocol > > class myProtocol(LinkProtocol): > def __init__(self): > super(myProtocol, self).__init__() > > @exportRPC("myprotocol.testButton") > def testButton(self, nothing): > print("******* HELP ********") > > Pvpython isn't happy with this, but I'm not sure where to look for the > right way to do it. > > Thank you, > > -Tom > > On Wed, Feb 21, 2018 at 6:55 PM, Scott Wittenburg < > scott.wittenburg at kitware.com> wrote: > >> Yes that link is old and broken, but if you navigate through the api docs >> links, that is working. Here's the direct link to the page you couldn't >> find though: >> >> https://kitware.github.io/paraviewweb/api/IO_WebSocket_ParaV >> iewWebClient.html >> >> >> >> On Wed, Feb 21, 2018 at 4:43 PM, Sgouros, Thomas < >> thomas_sgouros at brown.edu> wrote: >> >>> Hello all: >>> >>> Got some nice looking buttons and widgets, but I can't seem to find >>> examples of how to deliver the button press or other widget output to my >>> pvpython server. I imagine the steps are: >>> >>> 1. Create a protocol on the python side. Can I use wslink.register, or >>> is there paraviewweb functionality I should be using? >>> >>> 2. Create a matching protocol on the js side, with >>> ParaviewWebClient.createClient(), but I'm not seeing how to link the >>> protocol to a function that can be linked to a button press. >>> >>> Also, this page, found via a google search, seems potentially useful, >>> but gives me a 404. >>> >>> https://kitware.github.io/paraviewweb/api/ParaViewWebClient.html >>> >>> Many thanks, >>> >>> -Tom >>> >>> _______________________________________________ >>> 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: >>> https://public.kitware.com/mailman/listinfo/paraview >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sserebrinsky at gmail.com Thu Feb 22 01:32:33 2018 From: sserebrinsky at gmail.com (Santiago Serebrinsky) Date: Thu, 22 Feb 2018 03:32:33 -0300 Subject: [Paraview] Create filter with jump in fields In-Reply-To: References: Message-ID: I put together a Programmable Filter. I do not know if this is the most efficient way to do it, but it works. programmableFilter1 = ProgrammableFilter(Input=[plotOverLineBot,plotOverLineTop]) programmableFilter1.Script = """ import vtk.util.numpy_support as ns import numpy as np input_bot = self.GetInputDataObject(0, 0); input_top = self.GetInputDataObject(0, 1); output = self.GetPolyDataOutput() #output.ShallowCopy(input_bot) npts_bot = input_bot.GetNumberOfPoints() npts_top = input_top.GetNumberOfPoints() if ( npts_bot == npts_top ) : print( "Number of points: " + str(npts_bot) ) u_bot = input_bot.GetPointData().GetArray("displacement") u_top = input_top.GetPointData().GetArray("displacement") u_bot_np = ns.vtk_to_numpy(u_bot) u_top_np = ns.vtk_to_numpy(u_top) u_jump_np = np.subtract(u_top_np, u_bot_np) u_jump = ns.numpy_to_vtk(u_jump_np) u_jump.SetName("displacement jump"); output.GetPointData().AddArray(u_jump) else : pass """ programmableFilter1.RequestInformationScript = '' programmableFilter1.RequestUpdateExtentScript = '' programmableFilter1.PythonPath = '' RenameSource("Programmable Filter - Jumps", programmableFilter1) On Tue, Feb 20, 2018 at 8:37 PM, Santiago Serebrinsky < sserebrinsky at gmail.com> wrote: > I have a dataset with discontinuous displacements across a few surfaces > (so far I am working in 2D, so these would be lines, 1D). It is input as a > PVDReader (just in case it makes any difference here, which I doubt). > > *Is there any way to programmatically create a new Source with the > displacement jumps along those lines? Note that this new field would > probably have to be defined on a domain with a lower dimension, see above.* > > So far, I created filters PlotOverLine, on lines slightly below and > slightly above the prescribed line. But I do not know how to subtract the > two and place them in a single field over the line. > > *Mathematical description of an example*: > > Discontinuous field: u(x,y) > > Domain of discontinuity: x axis, y=0 > > Value of the field on one side of the domain of discontinuity: u(x+,0) > > Value of the field on the other side of the domain of discontinuity: > u(x-,0) > > Jump in the field: d(x) = u(x+,0) - u(x-,0) > > The field u is defined on a 2D domain. The field d is defined on a 1D > domain (x axis). > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas_sgouros at brown.edu Thu Feb 22 06:25:38 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Thu, 22 Feb 2018 06:25:38 -0500 Subject: [Paraview] connecting buttons and python In-Reply-To: References: Message-ID: Turns out you can't use capital letters for the protocol options (what should I call them?), according to the discussion at this link. Some people here might find it familiar: https://groups.google.com/forum/#!topic/autobahnws/mkjF21Fb8ow -Tom On Wed, Feb 21, 2018 at 7:56 PM, Scott Wittenburg < scott.wittenburg at kitware.com> wrote: > That actually looks ok to me. Why isn't pvpython happy with it? What > version of ParaView are you running? If it's a recent ParaView and the > problem is you can't import wslink, then setting up a virtualenv with the > missing modules (wslink and its dependencies) might be what you need. See > this blog post for more information on how to use pvpython but also bring > in the modules in your virtualenv: > > https://blog.kitware.com/using-pvpython-and-virtualenv/ > > If the problem is something else, we might need more details. > > Hope this helps. > > Cheers, > Scott > > > > On Wed, Feb 21, 2018 at 5:44 PM, Sgouros, Thomas > wrote: > >> Thank you that's very helpful. Where will I find how to define the >> protocols on the python side? I've only found a wslink example that looks >> like this: >> >> from wslink import register as exportRPC >> from wslink.websocket import LinkProtocol >> >> class myProtocol(LinkProtocol): >> def __init__(self): >> super(myProtocol, self).__init__() >> >> @exportRPC("myprotocol.testButton") >> def testButton(self, nothing): >> print("******* HELP ********") >> >> Pvpython isn't happy with this, but I'm not sure where to look for the >> right way to do it. >> >> Thank you, >> >> -Tom >> >> On Wed, Feb 21, 2018 at 6:55 PM, Scott Wittenburg < >> scott.wittenburg at kitware.com> wrote: >> >>> Yes that link is old and broken, but if you navigate through the api >>> docs links, that is working. Here's the direct link to the page you >>> couldn't find though: >>> >>> https://kitware.github.io/paraviewweb/api/IO_WebSocket_ParaV >>> iewWebClient.html >>> >>> >>> >>> On Wed, Feb 21, 2018 at 4:43 PM, Sgouros, Thomas < >>> thomas_sgouros at brown.edu> wrote: >>> >>>> Hello all: >>>> >>>> Got some nice looking buttons and widgets, but I can't seem to find >>>> examples of how to deliver the button press or other widget output to my >>>> pvpython server. I imagine the steps are: >>>> >>>> 1. Create a protocol on the python side. Can I use wslink.register, or >>>> is there paraviewweb functionality I should be using? >>>> >>>> 2. Create a matching protocol on the js side, with >>>> ParaviewWebClient.createClient(), but I'm not seeing how to link the >>>> protocol to a function that can be linked to a button press. >>>> >>>> Also, this page, found via a google search, seems potentially useful, >>>> but gives me a 404. >>>> >>>> https://kitware.github.io/paraviewweb/api/ParaViewWebClient.html >>>> >>>> Many thanks, >>>> >>>> -Tom >>>> >>>> _______________________________________________ >>>> 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: >>>> https://public.kitware.com/mailman/listinfo/paraview >>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas_sgouros at brown.edu Thu Feb 22 06:32:36 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Thu, 22 Feb 2018 06:32:36 -0500 Subject: [Paraview] connecting buttons and python In-Reply-To: References: Message-ID: There appears to be one more missing piece, though, because my attempt provokes an assertion error that appears to be claiming that my protocol, derived from a LinkProtocol, is not actually a LinkProtocol: File "pvsvn.py", line 41, in initialize self.registerVtkWebProtocol(self.testbutton()) File "/Applications/ParaView-5.4.1-1232-g1496380e37.app/Contents/Python/vtkmodules/web/wslink.py", line 63, in registerVtkWebProtocol self.registerLinkProtocol(protocol) File "/Applications/ParaView-5.4.1-1232-g1496380e37.app/Contents/Python/wslink/websocket.py", line 89, in registerLinkProtocol assert( isinstance(protocol, LinkProtocol)) AssertionError At least I think that's what it's saying. Thank you, -Tom On Thu, Feb 22, 2018 at 6:25 AM, Sgouros, Thomas wrote: > Turns out you can't use capital letters for the protocol options (what > should I call them?), according to the discussion at this link. Some people > here might find it familiar: https://groups.google.com/forum/#!topic/ > autobahnws/mkjF21Fb8ow > > -Tom > > > > On Wed, Feb 21, 2018 at 7:56 PM, Scott Wittenburg < > scott.wittenburg at kitware.com> wrote: > >> That actually looks ok to me. Why isn't pvpython happy with it? What >> version of ParaView are you running? If it's a recent ParaView and the >> problem is you can't import wslink, then setting up a virtualenv with the >> missing modules (wslink and its dependencies) might be what you need. See >> this blog post for more information on how to use pvpython but also bring >> in the modules in your virtualenv: >> >> https://blog.kitware.com/using-pvpython-and-virtualenv/ >> >> If the problem is something else, we might need more details. >> >> Hope this helps. >> >> Cheers, >> Scott >> >> >> >> On Wed, Feb 21, 2018 at 5:44 PM, Sgouros, Thomas < >> thomas_sgouros at brown.edu> wrote: >> >>> Thank you that's very helpful. Where will I find how to define the >>> protocols on the python side? I've only found a wslink example that looks >>> like this: >>> >>> from wslink import register as exportRPC >>> from wslink.websocket import LinkProtocol >>> >>> class myProtocol(LinkProtocol): >>> def __init__(self): >>> super(myProtocol, self).__init__() >>> >>> @exportRPC("myprotocol.testButton") >>> def testButton(self, nothing): >>> print("******* HELP ********") >>> >>> Pvpython isn't happy with this, but I'm not sure where to look for the >>> right way to do it. >>> >>> Thank you, >>> >>> -Tom >>> >>> On Wed, Feb 21, 2018 at 6:55 PM, Scott Wittenburg < >>> scott.wittenburg at kitware.com> wrote: >>> >>>> Yes that link is old and broken, but if you navigate through the api >>>> docs links, that is working. Here's the direct link to the page you >>>> couldn't find though: >>>> >>>> https://kitware.github.io/paraviewweb/api/IO_WebSocket_ParaV >>>> iewWebClient.html >>>> >>>> >>>> >>>> On Wed, Feb 21, 2018 at 4:43 PM, Sgouros, Thomas < >>>> thomas_sgouros at brown.edu> wrote: >>>> >>>>> Hello all: >>>>> >>>>> Got some nice looking buttons and widgets, but I can't seem to find >>>>> examples of how to deliver the button press or other widget output to my >>>>> pvpython server. I imagine the steps are: >>>>> >>>>> 1. Create a protocol on the python side. Can I use wslink.register, or >>>>> is there paraviewweb functionality I should be using? >>>>> >>>>> 2. Create a matching protocol on the js side, with >>>>> ParaviewWebClient.createClient(), but I'm not seeing how to link the >>>>> protocol to a function that can be linked to a button press. >>>>> >>>>> Also, this page, found via a google search, seems potentially useful, >>>>> but gives me a 404. >>>>> >>>>> https://kitware.github.io/paraviewweb/api/ParaViewWebClient.html >>>>> >>>>> Many thanks, >>>>> >>>>> -Tom >>>>> >>>>> _______________________________________________ >>>>> 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: >>>>> https://public.kitware.com/mailman/listinfo/paraview >>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas_sgouros at brown.edu Thu Feb 22 08:59:31 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Thu, 22 Feb 2018 08:59:31 -0500 Subject: [Paraview] how to make a new protocol Message-ID: Hello all: Can someone describe the steps necessary to create and use a web socket connection between a Paraviewweb client and a pvpython server? I am not having much luck finding the documentation for registerVtkWebProtocol() which appears to be an important part of the process. Google only helps me find pvw-visualizer.py, which I'm sure is useful code, but I'm having a hard time making much sense of it as an example. I would appreciate even just being pointed to the vtk python code, but I'll take any pointers you can offer. Thank you, -Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mariana.Danielova at eli-beams.eu Thu Feb 22 09:47:45 2018 From: Mariana.Danielova at eli-beams.eu (=?iso-8859-1?Q?Danielov=E1_Mariana?=) Date: Thu, 22 Feb 2018 14:47:45 +0000 Subject: [Paraview] Exporting time series data into single file Message-ID: <9018292187681C4F9B1F3FCE979149F7788F469F@braun.eli-beams.eu> Dear all, I have time series data in multiple vtu files. When I export data as (save data) csv file I get one csv file per time frame. Is it possible to export this data in single csv file which would contain one column with time information? Thank you Best regards Mariana Danielova -------------- next part -------------- An HTML attachment was scrubbed... URL: From Hassanelsahely at hotmail.com Thu Feb 22 10:50:30 2018 From: Hassanelsahely at hotmail.com (Hassan Elsahely) Date: Thu, 22 Feb 2018 15:50:30 +0000 Subject: [Paraview] Hello Message-ID: Hello, I am using paraview as a post processing in windows not for a long time and I am working on laminar flat plate tutorial based on SU2. I would like to plot Blasius solution, similarity variable in function of velocity u/Ue. Any help. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From kmorel at sandia.gov Thu Feb 22 11:15:30 2018 From: kmorel at sandia.gov (Moreland, Kenneth) Date: Thu, 22 Feb 2018 16:15:30 +0000 Subject: [Paraview] Hello Message-ID: <72BD1CDD-D201-4DB5-A18E-1D4427AF7226@sandia.gov> Hassan, If you are interested in learning how to use ParaView for post processing, I recommend starting with the ParaView Tutorial (https://www.paraview.org/Wiki/The_ParaView_Tutorial). The tutorial does not talk about SU2 specifically, but it teaches basic techniques for visualization, including from CFD simulations. SU2 can write out .vtk files, which ParaView can read. After learning the basics and you have more specific questions, we can help you with that. -Ken From: ParaView on behalf of Hassan Elsahely Date: Thursday, February 22, 2018 at 8:50 AM To: "paraview at public.kitware.com" Subject: [EXTERNAL] [Paraview] Hello Hello, I am using paraview as a post processing in windows not for a long time and I am working on laminar flat plate tutorial based on SU2. I would like to plot Blasius solution, similarity variable in function of velocity u/Ue. Any help. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Thu Feb 22 11:18:03 2018 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Thu, 22 Feb 2018 09:18:03 -0700 Subject: [Paraview] connecting buttons and python In-Reply-To: References: Message-ID: An example is available here https://github.com/Kitware/light-viz/blob/master/server/light_viz_protocols.py On Thu, Feb 22, 2018 at 4:32 AM, Sgouros, Thomas wrote: > There appears to be one more missing piece, though, because my attempt > provokes an assertion error that appears to be claiming that my protocol, > derived from a LinkProtocol, is not actually a LinkProtocol: > > File "pvsvn.py", line 41, in initialize > > self.registerVtkWebProtocol(self.testbutton()) > > File "/Applications/ParaView-5.4.1-1232-g1496380e37.app/Contents/ > Python/vtkmodules/web/wslink.py", line 63, in registerVtkWebProtocol > > self.registerLinkProtocol(protocol) > > File "/Applications/ParaView-5.4.1-1232-g1496380e37.app/Contents/Python/wslink/websocket.py", > line 89, in registerLinkProtocol > > assert( isinstance(protocol, LinkProtocol)) > > AssertionError > > At least I think that's what it's saying. > > Thank you, > > -Tom > > On Thu, Feb 22, 2018 at 6:25 AM, Sgouros, Thomas > wrote: > >> Turns out you can't use capital letters for the protocol options (what >> should I call them?), according to the discussion at this link. Some people >> here might find it familiar: https://groups.googl >> e.com/forum/#!topic/autobahnws/mkjF21Fb8ow >> >> -Tom >> >> >> >> On Wed, Feb 21, 2018 at 7:56 PM, Scott Wittenburg < >> scott.wittenburg at kitware.com> wrote: >> >>> That actually looks ok to me. Why isn't pvpython happy with it? What >>> version of ParaView are you running? If it's a recent ParaView and the >>> problem is you can't import wslink, then setting up a virtualenv with the >>> missing modules (wslink and its dependencies) might be what you need. See >>> this blog post for more information on how to use pvpython but also bring >>> in the modules in your virtualenv: >>> >>> https://blog.kitware.com/using-pvpython-and-virtualenv/ >>> >>> If the problem is something else, we might need more details. >>> >>> Hope this helps. >>> >>> Cheers, >>> Scott >>> >>> >>> >>> On Wed, Feb 21, 2018 at 5:44 PM, Sgouros, Thomas < >>> thomas_sgouros at brown.edu> wrote: >>> >>>> Thank you that's very helpful. Where will I find how to define the >>>> protocols on the python side? I've only found a wslink example that looks >>>> like this: >>>> >>>> from wslink import register as exportRPC >>>> from wslink.websocket import LinkProtocol >>>> >>>> class myProtocol(LinkProtocol): >>>> def __init__(self): >>>> super(myProtocol, self).__init__() >>>> >>>> @exportRPC("myprotocol.testButton") >>>> def testButton(self, nothing): >>>> print("******* HELP ********") >>>> >>>> Pvpython isn't happy with this, but I'm not sure where to look for the >>>> right way to do it. >>>> >>>> Thank you, >>>> >>>> -Tom >>>> >>>> On Wed, Feb 21, 2018 at 6:55 PM, Scott Wittenburg < >>>> scott.wittenburg at kitware.com> wrote: >>>> >>>>> Yes that link is old and broken, but if you navigate through the api >>>>> docs links, that is working. Here's the direct link to the page you >>>>> couldn't find though: >>>>> >>>>> https://kitware.github.io/paraviewweb/api/IO_WebSocket_ParaV >>>>> iewWebClient.html >>>>> >>>>> >>>>> >>>>> On Wed, Feb 21, 2018 at 4:43 PM, Sgouros, Thomas < >>>>> thomas_sgouros at brown.edu> wrote: >>>>> >>>>>> Hello all: >>>>>> >>>>>> Got some nice looking buttons and widgets, but I can't seem to find >>>>>> examples of how to deliver the button press or other widget output to my >>>>>> pvpython server. I imagine the steps are: >>>>>> >>>>>> 1. Create a protocol on the python side. Can I use wslink.register, >>>>>> or is there paraviewweb functionality I should be using? >>>>>> >>>>>> 2. Create a matching protocol on the js side, with >>>>>> ParaviewWebClient.createClient(), but I'm not seeing how to link the >>>>>> protocol to a function that can be linked to a button press. >>>>>> >>>>>> Also, this page, found via a google search, seems potentially useful, >>>>>> but gives me a 404. >>>>>> >>>>>> https://kitware.github.io/paraviewweb/api/ParaViewWebClient.html >>>>>> >>>>>> Many thanks, >>>>>> >>>>>> -Tom >>>>>> >>>>>> _______________________________________________ >>>>>> 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: >>>>>> https://public.kitware.com/mailman/listinfo/paraview >>>>>> >>>>>> >>>>> >>>> >>> >> > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > https://public.kitware.com/mailman/listinfo/paraview > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Thu Feb 22 11:24:02 2018 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Thu, 22 Feb 2018 09:24:02 -0700 Subject: [Paraview] how to make a new protocol In-Reply-To: References: Message-ID: LightViz will be a good example as it defines a custom set of protocols instead of using only the default ones like in Visualizer. https://github.com/Kitware/light-viz/tree/master/server On Thu, Feb 22, 2018 at 6:59 AM, Sgouros, Thomas wrote: > Hello all: > > Can someone describe the steps necessary to create and use a web socket > connection between a Paraviewweb client and a pvpython server? I am not > having much luck finding the documentation for registerVtkWebProtocol() > which appears to be an important part of the process. Google only helps me > find pvw-visualizer.py, which I'm sure is useful code, but I'm having a > hard time making much sense of it as an example. > > I would appreciate even just being pointed to the vtk python code, but > I'll take any pointers you can offer. > > Thank you, > > -Tom > > _______________________________________________ > 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: > https://public.kitware.com/mailman/listinfo/paraview > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas_sgouros at brown.edu Thu Feb 22 11:49:40 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Thu, 22 Feb 2018 11:49:40 -0500 Subject: [Paraview] how to make a new protocol In-Reply-To: References: Message-ID: Thank you, I will look at it. -Tom On Thu, Feb 22, 2018 at 11:24 AM, Sebastien Jourdain < sebastien.jourdain at kitware.com> wrote: > LightViz will be a good example as it defines a custom set of protocols > instead of using only the default ones like in Visualizer. > > https://github.com/Kitware/light-viz/tree/master/server > > On Thu, Feb 22, 2018 at 6:59 AM, Sgouros, Thomas > wrote: > >> Hello all: >> >> Can someone describe the steps necessary to create and use a web socket >> connection between a Paraviewweb client and a pvpython server? I am not >> having much luck finding the documentation for registerVtkWebProtocol() >> which appears to be an important part of the process. Google only helps me >> find pvw-visualizer.py, which I'm sure is useful code, but I'm having a >> hard time making much sense of it as an example. >> >> I would appreciate even just being pointed to the vtk python code, but >> I'll take any pointers you can offer. >> >> Thank you, >> >> -Tom >> >> _______________________________________________ >> 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: >> https://public.kitware.com/mailman/listinfo/paraview >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wascott at sandia.gov Thu Feb 22 13:27:28 2018 From: wascott at sandia.gov (Scott, W Alan) Date: Thu, 22 Feb 2018 18:27:28 +0000 Subject: [Paraview] [EXTERNAL] Re: Hello In-Reply-To: <72BD1CDD-D201-4DB5-A18E-1D4427AF7226@sandia.gov> References: <72BD1CDD-D201-4DB5-A18E-1D4427AF7226@sandia.gov> Message-ID: Existing tutorials for ParaView are listed on the ParaView web site here: https://www.paraview.org/tutorials/ Does anyone in the community know of other ParaView tutorials that are up to date and publicly available? Thanks, Alan From: ParaView [mailto:paraview-bounces at public.kitware.com] On Behalf Of Moreland, Kenneth Sent: Thursday, February 22, 2018 9:16 AM To: Hassan Elsahely ; paraview at public.kitware.com Subject: [EXTERNAL] Re: [Paraview] Hello Hassan, If you are interested in learning how to use ParaView for post processing, I recommend starting with the ParaView Tutorial (https://www.paraview.org/Wiki/The_ParaView_Tutorial). The tutorial does not talk about SU2 specifically, but it teaches basic techniques for visualization, including from CFD simulations. SU2 can write out .vtk files, which ParaView can read. After learning the basics and you have more specific questions, we can help you with that. -Ken From: ParaView > on behalf of Hassan Elsahely > Date: Thursday, February 22, 2018 at 8:50 AM To: "paraview at public.kitware.com" > Subject: [EXTERNAL] [Paraview] Hello Hello, I am using paraview as a post processing in windows not for a long time and I am working on laminar flat plate tutorial based on SU2. I would like to plot Blasius solution, similarity variable in function of velocity u/Ue. Any help. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.oliveira at gmail.com Thu Feb 22 13:53:28 2018 From: thomas.oliveira at gmail.com (Thomas Oliveira) Date: Thu, 22 Feb 2018 18:53:28 +0000 Subject: [Paraview] How to represent many glyphs colored by SeedIds per streamline? Message-ID: Hi, I am visualizing disks perpendicular to streamlines by performing the following steps, which works. 1) Create a Plane 2) Create a Stream Tracer with Custom Source using the plane 3) With the stream tracer selected in the pipeline browser, add the glyph filter 4) In the Glyph Type combo box, select ?2D Glyph?. 5) Select ?Circle? in the second Glyph Type combo box 6) Click on Filled checkbox. 5) Under Active Attributes, make sure the Vectors property is set to the vector field I used to create the streamlines. 6) Set the Glyph Transform Rotate property to 0, 90, 0. On each streamline, many disks are rendered. However, if, in Glyph Properties > Active Attributes > Scalars, I select SeedIds, I see just one disk per streamline. Would it be possible to have many disks per streamline colored by SeedIds? My final goal is to illustrate at the outlet face of my model the starting position the streamlines that cross it. To do I am trying to render disks colored by SeedIds near the inlet and outlet faces, so that pair of disks of a same color represents two points connected by a streamline. Any other idea that provides a similar visual result is also welcome. Best regards, Thomas Oliveira -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan.lipsa at kitware.com Thu Feb 22 14:19:58 2018 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Thu, 22 Feb 2018 14:19:58 -0500 Subject: [Paraview] How to represent many glyphs colored by SeedIds per streamline? In-Reply-To: References: Message-ID: Thomas, Take a look at the ParaView pipeline in https://blog.kitware.com/evenly-spaced-streamlines-2d/ There, I place arrows along a streamline. Dan On Thu, Feb 22, 2018 at 1:53 PM, Thomas Oliveira wrote: > Hi, > > I am visualizing disks perpendicular to streamlines by performing the > following steps, which works. > 1) Create a Plane > 2) Create a Stream Tracer with Custom Source using the plane > 3) With the stream tracer selected in the pipeline browser, add the > glyph filter > 4) In the Glyph Type combo box, select ?2D Glyph?. > 5) Select ?Circle? in the second Glyph Type combo box > 6) Click on Filled checkbox. > 5) Under Active Attributes, make sure the Vectors property is set to > the vector field I used to create the streamlines. > 6) Set the Glyph Transform Rotate property to 0, 90, 0. > > On each streamline, many disks are rendered. > > However, if, in Glyph Properties > Active Attributes > Scalars, I select > SeedIds, I see just one disk per streamline. Would it be possible to have > many disks per streamline colored by SeedIds? > > My final goal is to illustrate at the outlet face of my model the starting > position the streamlines that cross it. To do I am trying to render disks > colored by SeedIds near the inlet and outlet faces, so that pair of disks > of a same color represents two points connected by a streamline. Any other > idea that provides a similar visual result is also welcome. > > > Best regards, > Thomas Oliveira > > _______________________________________________ > 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: > https://public.kitware.com/mailman/listinfo/paraview > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yvan.fournier at free.fr Thu Feb 22 16:53:46 2018 From: yvan.fournier at free.fr (Yvan Fournier) Date: Thu, 22 Feb 2018 22:53:46 +0100 Subject: [Paraview] Memory leaks in Catalyst ? References: <991103582.7080573.1519334890313.JavaMail.root@zimbra10-e2> Message-ID: <1519336426.19876.0.camel@free.fr> Hello, Running under Valgrind (memcheck, with --enable-leak-check=full), I have some warnings about ParaView/Catalyst possibly leaking memory. Catalyst is called from Code_Saturne, whose adapter code (using ParaView Python adapters from C++) is here https://www.code-saturne.org/viewvc/saturne/trunk/src /fvm/fvm_to_catalyst.cxx?revision=11048&view=markup, using the attached results.py script. I fixed a leak in my own code following the Valgrind warnings, but some remining warnings seem related to calls I have no direct control over, so I attach a log (on one MPI rank) of Valgrind warnings (edited to remove OpenMPI initialization related warnings). The first part contains memcheck warnings, the part after "HEAP SUMMARY" the memory leak info. I'm not sure if the leaks are "one time only" (not too much of an issue), or can occur at every output timestep (30 in this example, for a small case with about 8000 mesh elements per MPI rank), so any opinion / checking on that would be welcome. Best regards, Yvan Fournier -------------- next part -------------- A non-text attachment was scrubbed... Name: vg_r0.log Type: text/x-log Size: 156021 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: results.py Type: text/x-python Size: 9530 bytes Desc: not available URL: From en.mhdbabiker at gmail.com Thu Feb 22 17:17:01 2018 From: en.mhdbabiker at gmail.com (Mohammed Babiker) Date: Thu, 22 Feb 2018 23:17:01 +0100 Subject: [Paraview] Teaser (Programmable filter) Not working Message-ID: <5a8f415f.f180df0a.64f01.728e@mx.google.com> Good evening Paraview-Help I tried to run the script in Paraview guide chapter fourteen (Teaser) page 175 I used first source sphere then the filter elevation and then programmable filter and then I paste the script bellow in script part: from vtk. numpy_interface import dataset_adapter as dsa from vtk. numpy_interface import algorithms as algs data = inputs [0] print data.PointData.keys () print data.PointData[?Elevation ?] and the rest left default as it was .after hitting run it suppose to get a table as was said in the guide but I got the below error : File "", line 6 print data.PointData[?Elevation ?] ^ SyntaxError: invalid syntax Traceback (most recent call last): File "", line 22, in NameError: name 'RequestData' is not defined Then I tried to change the output type to different types (vtktable,vtkpolydata,?etc) and I got different errors. Below attached images contain info. About the version of ParaView and the pipeline scheme (format png). Any help or advice will be greatly appreciated . Kind Regards. Mohammed B. A. Hassan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: version.png Type: image/png Size: 129457 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pipline.png Type: image/png Size: 6290 bytes Desc: not available URL: From cory.quammen at kitware.com Thu Feb 22 17:30:51 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Thu, 22 Feb 2018 17:30:51 -0500 Subject: [Paraview] Teaser (Programmable filter) Not working In-Reply-To: <5a8f415f.f180df0a.64f01.728e@mx.google.com> References: <5a8f415f.f180df0a.64f01.728e@mx.google.com> Message-ID: Mohammed, There is a bug in this filter that requires you to set the output data type to the desired type to vtkTable before the first time you click Apply. Changing it after clicking Apply currently doesn't work. See if that works around the problem. Thanks, Cory On Thu, Feb 22, 2018 at 5:17 PM, Mohammed Babiker wrote: > Good evening Paraview-Help > > I tried to run the script in Paraview guide chapter fourteen (Teaser) page > 175 I used first source sphere then the filter elevation and then > programmable filter and then I paste the script bellow in script part: > > *from* *vtk.* *numpy_interface* *import* dataset_adapter *as* dsa > > *from* *vtk.* *numpy_interface* *import* algorithms *as* algs > > data = inputs [0] > > *print* data.PointData.keys () > > *print* data.PointData[?Elevation ?] > > and the rest left default as it was .after hitting run it suppose to get a > table as was said in the guide but I got the below error : > > File "", line 6 > > print data.PointData[?Elevation ?] > > ^ > > SyntaxError: invalid syntax > > Traceback (most recent call last): > > File "", line 22, in > > NameError: name 'RequestData' is not defined > > Then I tried to change the output type to different types > (vtktable,vtkpolydata,?etc) and I got different errors. > > Below attached images contain info. About the version of ParaView and the > pipeline scheme (format png). > > Any help or advice will be greatly appreciated . > > > > Kind Regards. > > > > Mohammed B. A. Hassan > > _______________________________________________ > 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: > https://public.kitware.com/mailman/listinfo/paraview > > -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy.bauer at kitware.com Thu Feb 22 17:33:44 2018 From: andy.bauer at kitware.com (Andy Bauer) Date: Thu, 22 Feb 2018 17:33:44 -0500 Subject: [Paraview] Memory leaks in Catalyst ? In-Reply-To: <1519336426.19876.0.camel@free.fr> References: <991103582.7080573.1519334890313.JavaMail.root@zimbra10-e2> <1519336426.19876.0.camel@free.fr> Message-ID: Hi Yvan, The vtkPKdTree ones look like they could be after looking at the code, especially vtkPKdTree::InitializeRegionAssignmentLists(). It seems like a good idea to replace the int **ProcessAssignmentMap with maybe a std::vector. Probably a good idea for the other member variables here as well. I'll spend some time refactoring vtkPKdTree to make sure that the memory management is leak free. I don't see anything that suspicious with respect to ParaView in the other leak reports, though that doesn't necessarily mean that they aren't leaks. Cheers, Andy On Thu, Feb 22, 2018 at 4:53 PM, Yvan Fournier wrote: > Hello, > > Running under Valgrind (memcheck, with --enable-leak-check=full), I have > some > warnings about ParaView/Catalyst possibly leaking memory. > > Catalyst is called from Code_Saturne, whose adapter code (using ParaView > Python > adapters from C++) is here https://www.code-saturne.org/ > viewvc/saturne/trunk/src > /fvm/fvm_to_catalyst.cxx?revision=11048&view=markup, using the attached > results.py script. > > I fixed a leak in my own code following the Valgrind warnings, but some > remining > warnings seem related to calls I have no direct control over, so I attach > a log > (on one MPI rank) of Valgrind warnings (edited to remove OpenMPI > initialization > related warnings). The first part contains memcheck warnings, the part > after > "HEAP SUMMARY" the memory leak info. > > I'm not sure if the leaks are "one time only" (not too much of an issue), > or can > occur at every output timestep (30 in this example, for a small case with > about > 8000 mesh elements per MPI rank), so any opinion / checking on that would > be > welcome. > > Best regards, > > Yvan Fournier > _______________________________________________ > 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: > https://public.kitware.com/mailman/listinfo/paraview > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From en.mhdbabiker at gmail.com Thu Feb 22 17:36:46 2018 From: en.mhdbabiker at gmail.com (Mohammed Babiker) Date: Thu, 22 Feb 2018 23:36:46 +0100 Subject: [Paraview] Teaser (Programmable filter) Not working In-Reply-To: References: <5a8f415f.f180df0a.64f01.728e@mx.google.com> Message-ID: <5a8f45ff.7a86df0a.41e5b.a075@mx.google.com> Dear Cory, Thanks for your quick respond, I did what you said but a gain I got error massage as shown below ERROR: In C:\bbd\7cc78367\source-paraview\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx, line 809 vtkPVDataRepresentationPipeline (0000024B59BAEEC0): Input for connection index 0 on input port index 0 for algorithm vtkGeometryRepresentationWithFaces(0000024B5AC08230) is of type vtkTable, but a vtkDataSet is required. ERROR: In C:\bbd\7cc78367\source-paraview\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx, line 809 vtkPVDataRepresentationPipeline (0000024B59BB4AA0): Input for connection index 0 on input port index 0 for algorithm vtkGeometryRepresentation(0000024B534FA090) is of type vtkTable, but a vtkDataSet is required. ERROR: In C:\bbd\7cc78367\source-paraview\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx, line 809 vtkPVDataRepresentationPipeline (0000024B51452420): Input for connection index 0 on input port index 0 for algorithm vtkPVGridAxes3DRepresentation(0000024B593C64B0) is of type vtkTable, but a vtkCompositeDataSet is required. Regards. From: Cory Quammen Sent: Thursday, February 22, 2018 11:30 PM To: Mohammed Babiker Cc: paraview at public.kitware.com Subject: Re: [Paraview] Teaser (Programmable filter) Not working Mohammed, There is a bug in this filter that requires you to set the output data type to the desired type to vtkTable before the first time you click Apply. Changing it after clicking Apply currently doesn't work. See if that works around the problem. Thanks, Cory On Thu, Feb 22, 2018 at 5:17 PM, Mohammed Babiker wrote: Good evening Paraview-Help I tried to run the script in Paraview guide chapter fourteen (Teaser) page 175 I used first source sphere then the filter elevation and then programmable filter and then I paste the script bellow in script part: from vtk. numpy_interface import dataset_adapter as dsa from vtk. numpy_interface import algorithms as algs data = inputs [0] print data.PointData.keys () print data.PointData[?Elevation ?] and the rest left default as it was .after hitting run it suppose to get a table as was said in the guide but I got the below error : File "", line 6 print data.PointData[?Elevation ?] ^ SyntaxError: invalid syntax Traceback (most recent call last): File "", line 22, in NameError: name 'RequestData' is not defined Then I tried to change the output type to different types (vtktable,vtkpolydata,?etc) and I got different errors. Below attached images contain info. About the version of ParaView and the pipeline scheme (format png). Any help or advice? will be greatly appreciated . ? Kind Regards. ? Mohammed B. A. Hassan _______________________________________________ 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: https://public.kitware.com/mailman/listinfo/paraview -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From yvan.fournier at free.fr Thu Feb 22 20:26:28 2018 From: yvan.fournier at free.fr (Yvan Fournier) Date: Fri, 23 Feb 2018 02:26:28 +0100 Subject: [Paraview] Memory leaks in Catalyst ? In-Reply-To: References: <991103582.7080573.1519334890313.JavaMail.root@zimbra10-e2> <1519336426.19876.0.camel@free.fr> Message-ID: <1519349188.27041.10.camel@free.fr> Hi Andy, Thanks for checking. Fixing my own bug (by adding vtkSmartPointer where needed in ly adaptor) fixed what seemed the larges issue on a small test case. A colleague is testing this on a larger case (for a real application) and should provide me some feedback on a larger, long-running case. He also observed some artifacts using transparency on a boundary/surface mesh (not fixed by using -DDEFAULT_SOFTWARE_DEPTH_BITS=31 in Mesa's CFLAGS and CPPFLAGS, but remind me of issues I had observed on ParaView 5.0 and which had been fixed in 5.0.1) using llvmpipe. OpenSWR seemed to lead to crashes. I'll start by testing this on one of my simpler (non-confidential) benchmark cases. So I'll probably be running a series of additional tests (to update a series from 2 years ago) and keep you informed if I encounter any issues (and possibly send a few non-confidential screenshots if everything is working well). Cheers, Yvan On Thu, 2018-02-22 at 17:33 -0500, Andy Bauer wrote: > Hi Yvan, > > The vtkPKdTree ones look like they could be after looking at the code, > especially vtkPKdTree::InitializeRegionAssignmentLists(). It seems like a good > idea to replace the int **ProcessAssignmentMap with maybe a std::vector. > Probably a good idea for the other member variables here as well. I'll spend > some time refactoring vtkPKdTree to make sure that the memory management is > leak free. > > I don't see anything that suspicious with respect to ParaView in the other > leak reports, though that doesn't necessarily mean that they aren't leaks. > > Cheers, > Andy > > On Thu, Feb 22, 2018 at 4:53 PM, Yvan Fournier wrote: > > Hello, > > > > > > > > Running under Valgrind (memcheck, with --enable-leak-check=full), I have > > some > > > > warnings about ParaView/Catalyst possibly leaking memory. > > > > > > > > Catalyst is called from Code_Saturne, whose adapter code (using ParaView > > Python > > > > adapters from C++) is here https://www.code-saturne.org/viewvc/saturne/trunk > > /src > > > > /fvm/fvm_to_catalyst.cxx?revision=11048&view=markup, using the attached > > > > results.py script. > > > > > > > > I fixed a leak in my own code following the Valgrind warnings, but some > > remining > > > > warnings seem related to calls I have no direct control over, so I attach a > > log > > > > (on one MPI rank) of Valgrind warnings (edited to remove OpenMPI > > initialization > > > > related warnings). The first part contains memcheck warnings, the part after > > > > "HEAP SUMMARY" the memory leak info. > > > > > > > > I'm not sure if the leaks are "one time only" (not too much of an issue), or > > can > > > > occur at every output timestep (30 in this example, for a small case with > > about > > > > 8000 mesh elements per MPI rank), so any opinion / checking on that would be > > > > welcome. > > > > > > > > Best regards, > > > > > > > > Yvan Fournier > > _______________________________________________ > > > > Powered by www.kitware.com > > > > > > > > Visit other Kitware open-source projects at http://www.kitware.com/opensourc > > e/opensource.html > > > > > > > > Please keep messages on-topic and check the ParaView Wiki at: http://paravie > > w.org/Wiki/ParaView > > > > > > > > Search the list archives at: http://markmail.org/search/?q=ParaView > > > > > > > > Follow this link to subscribe/unsubscribe: > > > > https://public.kitware.com/mailman/listinfo/paraview > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan.lipsa at kitware.com Fri Feb 23 13:31:12 2018 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Fri, 23 Feb 2018 13:31:12 -0500 Subject: [Paraview] How to represent many glyphs colored by SeedIds per streamline? In-Reply-To: References: Message-ID: Active Attributes > Scalars affects the scaling of the glyph not the color. Look into Display > Coloring to change the color for your glyphs. Hope this helps, Dan On Fri, Feb 23, 2018 at 10:40 AM, Thomas Oliveira wrote: > Dear Dan, > > The issue is when I select SeedIds in Glyph Properties > Active Attributes > > Scalars. For any other scalar, it works well. > > Best regards, > Thomas Oliveira > > On Thu, Feb 22, 2018 at 7:19 PM, Dan Lipsa wrote: > >> Thomas, >> Take a look at the ParaView pipeline in >> >> https://blog.kitware.com/evenly-spaced-streamlines-2d/ >> >> There, I place arrows along a streamline. >> >> Dan >> >> >> On Thu, Feb 22, 2018 at 1:53 PM, Thomas Oliveira < >> thomas.oliveira at gmail.com> wrote: >> >>> Hi, >>> >>> I am visualizing disks perpendicular to streamlines by performing the >>> following steps, which works. >>> 1) Create a Plane >>> 2) Create a Stream Tracer with Custom Source using the plane >>> 3) With the stream tracer selected in the pipeline browser, add the >>> glyph filter >>> 4) In the Glyph Type combo box, select ?2D Glyph?. >>> 5) Select ?Circle? in the second Glyph Type combo box >>> 6) Click on Filled checkbox. >>> 5) Under Active Attributes, make sure the Vectors property is set to >>> the vector field I used to create the streamlines. >>> 6) Set the Glyph Transform Rotate property to 0, 90, 0. >>> >>> On each streamline, many disks are rendered. >>> >>> However, if, in Glyph Properties > Active Attributes > Scalars, I select >>> SeedIds, I see just one disk per streamline. Would it be possible to have >>> many disks per streamline colored by SeedIds? >>> >>> My final goal is to illustrate at the outlet face of my model the >>> starting position the streamlines that cross it. To do I am trying to >>> render disks colored by SeedIds near the inlet and outlet faces, so that >>> pair of disks of a same color represents two points connected by a >>> streamline. Any other idea that provides a similar visual result is also >>> welcome. >>> >>> >>> Best regards, >>> Thomas Oliveira >>> >>> _______________________________________________ >>> 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: >>> https://public.kitware.com/mailman/listinfo/paraview >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy.bauer at kitware.com Sat Feb 24 12:07:17 2018 From: andy.bauer at kitware.com (Andy Bauer) Date: Sat, 24 Feb 2018 12:07:17 -0500 Subject: [Paraview] Memory leaks in Catalyst ? In-Reply-To: <1519349188.27041.10.camel@free.fr> References: <991103582.7080573.1519334890313.JavaMail.root@zimbra10-e2> <1519336426.19876.0.camel@free.fr> <1519349188.27041.10.camel@free.fr> Message-ID: Hi Yvan, I have a merge request into VTK at https://gitlab.kitware.com/vtk/vtk/merge_requests/3971 that hopefully improves the memory use. I still have 2 tests that are failing and also want to test with the ParaView tests so there's a bit more work to do. For the most part it seems ok though so if you want to try taking those change and test it on your end I wouldn't mind some extra testing on it, especially since we're getting so close to the ParaView 5.5 release. Best, Andy On Thu, Feb 22, 2018 at 8:26 PM, Yvan Fournier wrote: > Hi Andy, > > Thanks for checking. Fixing my own bug (by adding vtkSmartPointer where > needed in ly adaptor) fixed what seemed the larges issue on a small test > case. A colleague is testing this on a larger case (for a real application) > and should provide me some feedback on a larger, long-running case. > > He also observed some artifacts using transparency on a boundary/surface > mesh (not fixed by using -DDEFAULT_SOFTWARE_DEPTH_BITS=31 in Mesa's > CFLAGS and CPPFLAGS, but remind me of issues I had observed on ParaView 5.0 > and which had been fixed in 5.0.1) using llvmpipe. OpenSWR seemed to lead > to crashes. I'll start by testing this on one of my simpler > (non-confidential) benchmark cases. > > So I'll probably be running a series of additional tests (to update a > series from 2 years ago) and keep you informed if I encounter any issues > (and possibly send a few non-confidential screenshots if everything is > working well). > > Cheers, > > Yvan > > On Thu, 2018-02-22 at 17:33 -0500, Andy Bauer wrote: > > Hi Yvan, > > The vtkPKdTree ones look like they could be after looking at the code, > especially vtkPKdTree::InitializeRegionAssignmentLists(). It seems like a > good idea to replace the int **ProcessAssignmentMap with maybe a > std::vector. Probably a good idea for the other member variables here as > well. I'll spend some time refactoring vtkPKdTree to make sure that the > memory management is leak free. > > I don't see anything that suspicious with respect to ParaView in the other > leak reports, though that doesn't necessarily mean that they aren't leaks. > > Cheers, > Andy > > On Thu, Feb 22, 2018 at 4:53 PM, Yvan Fournier > wrote: > > Hello, > > Running under Valgrind (memcheck, with --enable-leak-check=full), I have > some > warnings about ParaView/Catalyst possibly leaking memory. > > Catalyst is called from Code_Saturne, whose adapter code (using ParaView > Python > adapters from C++) is here https://www.code-saturne.org/v > iewvc/saturne/trunk/src > /fvm/fvm_to_catalyst.cxx?revision=11048&view=markup > , > using the attached > results.py script. > > I fixed a leak in my own code following the Valgrind warnings, but some > remining > warnings seem related to calls I have no direct control over, so I attach > a log > (on one MPI rank) of Valgrind warnings (edited to remove OpenMPI > initialization > related warnings). The first part contains memcheck warnings, the part > after > "HEAP SUMMARY" the memory leak info. > > I'm not sure if the leaks are "one time only" (not too much of an issue), > or can > occur at every output timestep (30 in this example, for a small case with > about > 8000 mesh elements per MPI rank), so any opinion / checking on that would > be > welcome. > > Best regards, > > Yvan Fournier > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensou > rce/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: > https://public.kitware.com/mailman/listinfo/paraview > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Amine.Aboufirass at deltares.nl Mon Feb 26 05:29:19 2018 From: Amine.Aboufirass at deltares.nl (Amine Aboufirass) Date: Mon, 26 Feb 2018 10:29:19 +0000 Subject: [Paraview] extract specific time steps from unstructured grid timeseries using paraview Message-ID: Hello, I have scalar data in a time series of unstructured grid datasets. I'd like to extract this data for specific timesteps. I tried the following but only seem to get the information for the very first time step: AllFiles = ['File001.vtk', 'File002.vtk', 'File003.vtk', 'File004.vtk'] Reader = LegacyVTKReader(FileNames = AllFiles) Reader = ExtractTimeSteps(Reader,1) Output = servermanager.Fetch(Reader) Results = vtk_to_numpy(Output.GetPointData().GetScalars('inc remental_deviatoric_strain_solid')) I also tried: Reader = ExtractTimeSteps(Reader,1) But it throws an error: Reader = ExtractTimeSteps(Reader,1) File "C:\Program Files\ParaView 5.2.0-Qt4-OpenGL2-Windows-64bit\bin\Lib\site-packages\paraview\simple.py", line 1674, in CreateObject raise RuntimeError ("Expecting a proxy as input.") RuntimeError: Expecting a proxy as input. How can I pick the time step for which I want the data? Also is it possible to specify a range of time steps? Amine Aboufirass DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Mon Feb 26 10:46:49 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Mon, 26 Feb 2018 10:46:49 -0500 Subject: [Paraview] extract specific time steps from unstructured grid timeseries using paraview In-Reply-To: References: Message-ID: I'd suggest using the trace functionality to figure out how to set parameters on filter of interest. In this case, to exact timestep 1 using ExtractTimeSteps filter, the correct approach is as follows: extractTimeSteps1 = ExtractTimeSteps(Input=Reader) extractTimeSteps1.TimeStepIndices = [1] OR extractTimeSteps1 = ExtractTimeSteps(Input=Reader, TimeStepIndices = [1]) Utkarsh On Mon, Feb 26, 2018 at 5:29 AM, Amine Aboufirass wrote: > Hello, > > > > I have scalar data in a time series of unstructured grid datasets. I'd like > to extract this data for specific timesteps. I tried the following but only > seem to get the information for the very first time step: > > > AllFiles = ['File001.vtk', 'File002.vtk', 'File003.vtk', 'File004.vtk'] > Reader = LegacyVTKReader(FileNames = AllFiles) > Reader = ExtractTimeSteps(Reader,1) > > Output = servermanager.Fetch(Reader) > Results = vtk_to_numpy(Output.GetPointData().GetScalars('inc > remental_deviatoric_strain_solid')) > > I also tried: > > Reader = ExtractTimeSteps(Reader,1) > > But it throws an error: > > Reader = ExtractTimeSteps(Reader,1) > File "C:\Program Files\ParaView > 5.2.0-Qt4-OpenGL2-Windows-64bit\bin\Lib\site-packages\paraview\simple.py", > line 1674, in CreateObject > raise RuntimeError ("Expecting a proxy as input.") > RuntimeError: Expecting a proxy as input. > > How can I pick the time step for which I want the data? Also is it possible > to specify a range of time steps? > > > > Amine Aboufirass > > > > DISCLAIMER: This message is intended exclusively for the addressee(s) and > may contain confidential and privileged information. If you are not the > intended recipient please notify the sender immediately and destroy this > message. Unauthorized use, disclosure or copying of this message is strictly > prohibited. The foundation 'Stichting Deltares', which has its seat at > Delft, The Netherlands, Commercial Registration Number 41146461, is not > liable in any way whatsoever for consequences and/or damages resulting from > the improper, incomplete and untimely dispatch, receipt and/or content of > this e-mail. > > _______________________________________________ > 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: > https://public.kitware.com/mailman/listinfo/paraview > From asduifhssauidf at gmail.com Mon Feb 26 10:54:29 2018 From: asduifhssauidf at gmail.com (iusadhfoias sidufasipudf) Date: Mon, 26 Feb 2018 16:54:29 +0100 Subject: [Paraview] information_only property doesn't update, please help Message-ID: Hello VTK developers, several questions about the correct usage of information_only properties have been asked over the years, but I didn't find a working solution. The attached example is a complete, tiny, source plugin ("MyInfoSource") for paraview 5.4.1. It generates an empty PolyData output. I am only interested in modifying and showing the source's properties. MyInfoSource has 3 properties (cf. InfoSource.xml): 1) InputPoint allows to input three coordinates. 2) CalculatedPoint has 'information_only="1"' and will be calculated whenever InputPoint is set. 3) ShowCalculatedPoint has 'information_property="CalculatedPoint"' and is meant to output that calculated value. I am using a modified vtkInfoSource::SetInputPoint, which sets the CalculatedPoint coordinates to twice the InputPoint coordinates whenever InputPoint changes (cf. vtkInfoSource.cxx). I was expecting the "ShowCalculatedPoint" property to update in the properties view, whenever I apply changes to InputPoint, but it doesn't change. Only when I click "Restore application default setting values" for MyInformationSource, then ShowCalculatedPoint shows twice the last value of InputPoint. Can you reproduce this behaviour? What needs to be changed, so that ShowCalculatedPoint always shows twice the InputPoint coordinates after changes are applied? Many thanks, Jussuf -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: InfoSource.zip Type: application/zip Size: 1970 bytes Desc: not available URL: From mvanmoer at illinois.edu Mon Feb 26 13:13:01 2018 From: mvanmoer at illinois.edu (Van Moer, Mark W) Date: Mon, 26 Feb 2018 18:13:01 +0000 Subject: [Paraview] Save Animation option in ParaView 5.4.0 vs 5.3.0 In-Reply-To: References: <7F781841FF1E044388AFA42B70703A7AEA384D41@CHIMBX6.ad.uillinois.edu> Message-ID: <7F781841FF1E044388AFA42B70703A7AEA398BA2@CHIMBX6.ad.uillinois.edu> Hi Utkarsh, I missed this and just saw your GitLab comment. To answer your first question, I was on Linux, saving as PNG. But, you're correct, my issue was that ffmpeg accepts two -r flags, one for the input and one for the output and what I needed to do was set -r 1 and -r 30, respectively. Thanks, Mark -----Original Message----- From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] Sent: Friday, February 09, 2018 8:14 PM To: Van Moer, Mark W Cc: ParaView Subject: Re: [Paraview] Save Animation option in ParaView 5.4.0 vs 5.3.0 Mark, As I was re-reading your email while working on issue #1792 [1] which affects the save animation dialog, I have a few questions: Are you saving the movie as AVI (and on what platform). If so doesn't changing "Frame Rate" have the same effect for avi? If you set your frame rate to 1 frame/second, doesn't that yeild exactly what you're looking for -- each frame stays on for 1s with discrete jumps and no interpolation? Atleast on linux/mac where the FFMPEG writer is used, I can see that the frame rate of 1 fps works as expected. What am I missing? Thanks, Utkarsh [1] https://gitlab.kitware.com/paraview/paraview/issues/17952 On Fri, Jan 26, 2018 at 10:33 AM, Van Moer, Mark W wrote: > I forgot to mention that I can write out the number of frames I want > if I use Sequence instead of Snap to TimeSteps, however, then an > Annotate Time source will show an interpolated time based on the > sequence rather than the actual timesteps. If there?s a work around > for that behavior I could do that instead. > > > > From: Van Moer, Mark W > Sent: Friday, January 26, 2018 9:18 AM > To: ParaView > Subject: Save Animation option in ParaView 5.4.0 vs 5.3.0 > > > > Hello, > > > > In ParaView 5.3.0 and earlier, when Animation mode was Snap to > TimeSteps, in the Save Animation dialog box there was an option for > No. of Frames / timestep. This doesn?t show up in the 5.4.0 dialog > box. Was this just moved or was it removed completely? > > > > My use case for this is a data set with 25 timesteps, each of which is > on the order of either 5 minutes or 30 minutes apart in real world > time. I?d render 30 frames / timestep to get a 25 second movie to show > each discrete timestep for one second. The video should show those > discrete jumps in time and not use interpolation. > > > > I can do the frame replication in BASH but it was handy to have that option. > > > > Thanks, > > Mark > > > _______________________________________________ > 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: > https://paraview.org/mailman/listinfo/paraview > From utkarsh.ayachit at kitware.com Mon Feb 26 13:20:36 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Mon, 26 Feb 2018 13:20:36 -0500 Subject: [Paraview] Save Animation option in ParaView 5.4.0 vs 5.3.0 In-Reply-To: <7F781841FF1E044388AFA42B70703A7AEA398BA2@CHIMBX6.ad.uillinois.edu> References: <7F781841FF1E044388AFA42B70703A7AEA384D41@CHIMBX6.ad.uillinois.edu> <7F781841FF1E044388AFA42B70703A7AEA398BA2@CHIMBX6.ad.uillinois.edu> Message-ID: Great! Thanks for confirming. Utkarsh On Mon, Feb 26, 2018 at 1:13 PM, Van Moer, Mark W wrote: > Hi Utkarsh, > > I missed this and just saw your GitLab comment. To answer your first question, I was on Linux, saving as PNG. But, you're correct, my issue was that ffmpeg accepts two -r flags, one for the input and one for the output and what I needed to do was set -r 1 and -r 30, respectively. > > Thanks, > Mark > > > > -----Original Message----- > From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] > Sent: Friday, February 09, 2018 8:14 PM > To: Van Moer, Mark W > Cc: ParaView > Subject: Re: [Paraview] Save Animation option in ParaView 5.4.0 vs 5.3.0 > > Mark, > > As I was re-reading your email while working on issue #1792 [1] which affects the save animation dialog, I have a few questions: Are you saving the movie as AVI (and on what platform). If so doesn't changing "Frame Rate" have the same effect for avi? If you set your frame rate to 1 frame/second, doesn't that yeild exactly what you're looking for > -- each frame stays on for 1s with discrete jumps and no interpolation? Atleast on linux/mac where the FFMPEG writer is used, I can see that the frame rate of 1 fps works as expected. What am I missing? > > Thanks, > Utkarsh > > > [1] https://gitlab.kitware.com/paraview/paraview/issues/17952 > > On Fri, Jan 26, 2018 at 10:33 AM, Van Moer, Mark W wrote: >> I forgot to mention that I can write out the number of frames I want >> if I use Sequence instead of Snap to TimeSteps, however, then an >> Annotate Time source will show an interpolated time based on the >> sequence rather than the actual timesteps. If there?s a work around >> for that behavior I could do that instead. >> >> >> >> From: Van Moer, Mark W >> Sent: Friday, January 26, 2018 9:18 AM >> To: ParaView >> Subject: Save Animation option in ParaView 5.4.0 vs 5.3.0 >> >> >> >> Hello, >> >> >> >> In ParaView 5.3.0 and earlier, when Animation mode was Snap to >> TimeSteps, in the Save Animation dialog box there was an option for >> No. of Frames / timestep. This doesn?t show up in the 5.4.0 dialog >> box. Was this just moved or was it removed completely? >> >> >> >> My use case for this is a data set with 25 timesteps, each of which is >> on the order of either 5 minutes or 30 minutes apart in real world >> time. I?d render 30 frames / timestep to get a 25 second movie to show >> each discrete timestep for one second. The video should show those >> discrete jumps in time and not use interpolation. >> >> >> >> I can do the frame replication in BASH but it was handy to have that option. >> >> >> >> Thanks, >> >> Mark >> >> >> _______________________________________________ >> 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: >> https://paraview.org/mailman/listinfo/paraview >> From yvan.fournier at free.fr Mon Feb 26 13:47:13 2018 From: yvan.fournier at free.fr (yvan.fournier at free.fr) Date: Mon, 26 Feb 2018 19:47:13 +0100 (CET) Subject: [Paraview] Memory leaks in Catalyst ? In-Reply-To: Message-ID: <906053129.13151467.1519670833367.JavaMail.root@zimbra10-e2> Hello Andy, Here is a log (edited to remove unrelated OpenMPI Valgrind warnings) using the patch from your merge request. It seems the first 2 warnings (related to the kd-tree) have disappeared. The rest is unchanged. I also just ran a test regarding transparency issues a colleague reported. I did not reproduce issues running on 224 MPI ranks with a relatively simple test case (a tube bundle with only 4 tubes), which is the same test case I have been using for some time. So there seem to be issues in more complex geometries, but no apparent regression relative to PV 5.0.1). I'll need to find a more complex yet non-confidential test case for that issue, so I'll keep you updated when I can... The same user ran 3 days over the week-end (several hundred time steps) on that complex mesh, using point sprites, with no crash, so the memory leaks don't seem as bad as they used to be (the biggest leak was on my side, where the mesh was missing smart pointers...). I haven't seen his images yet (reportedly mostly working well but with some transparency parallel compositing issues, whether using a transparent boundary or point sprites). Best regards, Yvan ----- Mail original ----- De: "Andy Bauer" ?: "Yvan Fournier" Cc: "Paraview (paraview at paraview.org)" Envoy?: Samedi 24 F?vrier 2018 18:07:17 Objet: Re: [Paraview] Memory leaks in Catalyst ? Hi Yvan, I have a merge request into VTK at https://gitlab.kitware.com/vtk/vtk/merge_requests/3971 that hopefully improves the memory use. I still have 2 tests that are failing and also want to test with the ParaView tests so there's a bit more work to do. For the most part it seems ok though so if you want to try taking those change and test it on your end I wouldn't mind some extra testing on it, especially since we're getting so close to the ParaView 5.5 release. Best, Andy On Thu, Feb 22, 2018 at 8:26 PM, Yvan Fournier < yvan.fournier at free.fr > wrote: Hi Andy, Thanks for checking. Fixing my own bug (by adding vtkSmartPointer where needed in ly adaptor) fixed what seemed the larges issue on a small test case. A colleague is testing this on a larger case (for a real application) and should provide me some feedback on a larger, long-running case. He also observed some artifacts using transparency on a boundary/surface mesh (not fixed by using -DDEFAULT_SOFTWARE_DEPTH_BITS=31 in Mesa's CFLAGS and CPPFLAGS, but remind me of issues I had observed on ParaView 5.0 and which had been fixed in 5.0.1) using llvmpipe. OpenSWR seemed to lead to crashes. I'll start by testing this on one of my simpler (non-confidential) benchmark cases. So I'll probably be running a series of additional tests (to update a series from 2 years ago) and keep you informed if I encounter any issues (and possibly send a few non-confidential screenshots if everything is working well). Cheers, Yvan On Thu, 2018-02-22 at 17:33 -0500, Andy Bauer wrote: Hi Yvan, The vtkPKdTree ones look like they could be after looking at the code, especially vtkPKdTree::InitializeRegionAssignmentLists(). It seems like a good idea to replace the int **ProcessAssignmentMap with maybe a std::vector. Probably a good idea for the other member variables here as well. I'll spend some time refactoring vtkPKdTree to make sure that the memory management is leak free. I don't see anything that suspicious with respect to ParaView in the other leak reports, though that doesn't necessarily mean that they aren't leaks. Cheers, Andy On Thu, Feb 22, 2018 at 4:53 PM, Yvan Fournier < yvan.fournier at free.fr > wrote: Hello, Running under Valgrind (memcheck, with --enable-leak-check=full), I have some warnings about ParaView/Catalyst possibly leaking memory. Catalyst is called from Code_Saturne, whose adapter code (using ParaView Python adapters from C++) is here https://www.code-saturne.org/viewvc/saturne/trunk/src /fvm/fvm_to_catalyst.cxx?revision=11048&view=markup , using the attached results.py script. I fixed a leak in my own code following the Valgrind warnings, but some remining warnings seem related to calls I have no direct control over, so I attach a log (on one MPI rank) of Valgrind warnings (edited to remove OpenMPI initialization related warnings). The first part contains memcheck warnings, the part after "HEAP SUMMARY" the memory leak info. I'm not sure if the leaks are "one time only" (not too much of an issue), or can occur at every output timestep (30 in this example, for a small case with about 8000 mesh elements per MPI rank), so any opinion / checking on that would be welcome. Best regards, Yvan Fournier _______________________________________________ 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: https://public.kitware.com/mailman/listinfo/paraview -------------- next part -------------- A non-text attachment was scrubbed... Name: vg_r1.log Type: text/x-log Size: 151499 bytes Desc: not available URL: From andy.bauer at kitware.com Mon Feb 26 13:52:46 2018 From: andy.bauer at kitware.com (Andy Bauer) Date: Mon, 26 Feb 2018 13:52:46 -0500 Subject: [Paraview] Memory leaks in Catalyst ? In-Reply-To: <906053129.13151467.1519670833367.JavaMail.root@zimbra10-e2> References: <906053129.13151467.1519670833367.JavaMail.root@zimbra10-e2> Message-ID: Thanks for testing and reporting back! I'll see if I can motivate someone else to look at the other memory leaks since I'm not as familiar with that code. FYI: the vtkPKdTree changes are now in VTK master and will likely make it into PV 5.5. Best, Andy On Mon, Feb 26, 2018 at 1:47 PM, wrote: > Hello Andy, > > Here is a log (edited to remove unrelated OpenMPI Valgrind warnings) using > the patch from your merge request. > > It seems the first 2 warnings (related to the kd-tree) have disappeared. > The rest is unchanged. > > I also just ran a test regarding transparency issues a colleague reported. > I did not reproduce issues running on 224 MPI ranks with a relatively > simple test case (a tube bundle with only 4 tubes), which is the same test > case I have been using for some time. So there seem to be issues in more > complex geometries, but no apparent regression relative to PV 5.0.1). I'll > need to find a more complex yet non-confidential test case for that issue, > so I'll keep you updated when I can... > > The same user ran 3 days over the week-end (several hundred time steps) on > that complex mesh, using point sprites, with no crash, so the memory leaks > don't seem as bad as they used to be (the biggest leak was on my side, > where the mesh was missing smart pointers...). I haven't seen his images > yet (reportedly mostly working well but with some transparency parallel > compositing issues, whether using a transparent boundary or point sprites). > > Best regards, > > Yvan > > > ----- Mail original ----- > De: "Andy Bauer" > ?: "Yvan Fournier" > Cc: "Paraview (paraview at paraview.org)" > Envoy?: Samedi 24 F?vrier 2018 18:07:17 > Objet: Re: [Paraview] Memory leaks in Catalyst ? > > > > > > Hi Yvan, > > I have a merge request into VTK at https://gitlab.kitware.com/ > vtk/vtk/merge_requests/3971 that hopefully improves the memory use. I > still have 2 tests that are failing and also want to test with the ParaView > tests so there's a bit more work to do. For the most part it seems ok > though so if you want to try taking those change and test it on your end I > wouldn't mind some extra testing on it, especially since we're getting so > close to the ParaView 5.5 release. > > Best, > Andy > > > > On Thu, Feb 22, 2018 at 8:26 PM, Yvan Fournier < yvan.fournier at free.fr > > wrote: > > > > > Hi Andy, > > > Thanks for checking. Fixing my own bug (by adding vtkSmartPointer where > needed in ly adaptor) fixed what seemed the larges issue on a small test > case. A colleague is testing this on a larger case (for a real application) > and should provide me some feedback on a larger, long-running case. > > > He also observed some artifacts using transparency on a boundary/surface > mesh (not fixed by using -DDEFAULT_SOFTWARE_DEPTH_BITS=31 in Mesa's > CFLAGS and CPPFLAGS, but remind me of issues I had observed on ParaView 5.0 > and which had been fixed in 5.0.1) using llvmpipe. OpenSWR seemed to lead > to crashes. I'll start by testing this on one of my simpler > (non-confidential) benchmark cases. > > > So I'll probably be running a series of additional tests (to update a > series from 2 years ago) and keep you informed if I encounter any issues > (and possibly send a few non-confidential screenshots if everything is > working well). > > > Cheers, > > > Yvan > > > > > On Thu, 2018-02-22 at 17:33 -0500, Andy Bauer wrote: > > > > > > > Hi Yvan, > > The vtkPKdTree ones look like they could be after looking at the code, > especially vtkPKdTree::InitializeRegionAssignmentLists(). It seems like a > good idea to replace the int **ProcessAssignmentMap with maybe a > std::vector. Probably a good idea for the other member variables here as > well. I'll spend some time refactoring vtkPKdTree to make sure that the > memory management is leak free. > > I don't see anything that suspicious with respect to ParaView in the other > leak reports, though that doesn't necessarily mean that they aren't leaks. > > Cheers, > Andy > > > > On Thu, Feb 22, 2018 at 4:53 PM, Yvan Fournier < yvan.fournier at free.fr > > wrote: > > > Hello, > > Running under Valgrind (memcheck, with --enable-leak-check=full), I have > some > warnings about ParaView/Catalyst possibly leaking memory. > > Catalyst is called from Code_Saturne, whose adapter code (using ParaView > Python > adapters from C++) is here https://www.code-saturne.org/ > viewvc/saturne/trunk/src > /fvm/fvm_to_catalyst.cxx?revision=11048&view=markup , using the attached > results.py script. > > I fixed a leak in my own code following the Valgrind warnings, but some > remining > warnings seem related to calls I have no direct control over, so I attach > a log > (on one MPI rank) of Valgrind warnings (edited to remove OpenMPI > initialization > related warnings). The first part contains memcheck warnings, the part > after > "HEAP SUMMARY" the memory leak info. > > I'm not sure if the leaks are "one time only" (not too much of an issue), > or can > occur at every output timestep (30 in this example, for a small case with > about > 8000 mesh elements per MPI rank), so any opinion / checking on that would > be > welcome. > > Best regards, > > Yvan Fournier > _______________________________________________ > 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: > https://public.kitware.com/mailman/listinfo/paraview > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan.lipsa at kitware.com Mon Feb 26 15:35:23 2018 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Mon, 26 Feb 2018 15:35:23 -0500 Subject: [Paraview] How to represent many glyphs colored by SeedIds per streamline? In-Reply-To: References: Message-ID: Great. I am glad I could help. Best, Dan On Mon, Feb 26, 2018 at 2:37 PM, Thomas Oliveira wrote: > Dear Dan, > > That is perfect. Thank you very much! > > Best regards, > Thomas Oliveira > > > > On Mon, Feb 26, 2018 at 7:09 PM, Dan Lipsa wrote: > >> Thomas, >> I used the CellDataToPointData filter to convert SeedIds to point data. >> This allows you to color the disks by SeedId. >> >> Does this solve your issue? >> Dan >> >> >> >> On Mon, Feb 26, 2018 at 1:03 PM, Thomas Oliveira < >> thomas.oliveira at gmail.com> wrote: >> >>> Dear Dan, >>> >>> Thank you for your time. >>> >>> Please find attached the ParaView state file and four PNGs showing that >>> the glyphs are not rendered along the whole streamline if they are colours >>> by SeedIds. >>> >>> Also, please download a tar.gz file with the data from >>> https://icseclzt.cc.ic.ac.uk/pickup.php?claimID=yCNGSGa >>> KeJ2pUJ54&claimPasscode=GFefaY4t8kVZ3rPQ . It is a OpenFOAM data. >>> >>> Best regards, >>> Thomas Oliveira >>> >>> >>> >>> On Mon, Feb 26, 2018 at 2:13 PM, Dan Lipsa >>> wrote: >>> >>>> Thomas, >>>> If you send me the data and the ParaView state file I can take a look. >>>> >>>> Dan >>>> >>>> >>>> On Fri, Feb 23, 2018 at 6:06 PM, Thomas Oliveira < >>>> thomas.oliveira at gmail.com> wrote: >>>> >>>>> Dear Dan, >>>>> >>>>> The issue is that, when I select SeedIds, just one glyph per >>>>> streamline is shown, whereas when I select any other scalar, many glyphs >>>>> per streamline are shown. It is this latter behaviour that I would like to >>>>> see for SeedIds as well. >>>>> >>>>> Best regards, >>>>> Thomas Oliveira >>>>> >>>>> On Fri, Feb 23, 2018 at 6:31 PM, Dan Lipsa >>>>> wrote: >>>>> >>>>>> Active Attributes > Scalars affects the scaling of the glyph not the >>>>>> color. >>>>>> >>>>>> Look into Display > Coloring to change the color for your glyphs. >>>>>> >>>>>> Hope this helps, >>>>>> Dan >>>>>> >>>>>> >>>>>> On Fri, Feb 23, 2018 at 10:40 AM, Thomas Oliveira < >>>>>> thomas.oliveira at gmail.com> wrote: >>>>>> >>>>>>> Dear Dan, >>>>>>> >>>>>>> The issue is when I select SeedIds in Glyph Properties > Active >>>>>>> Attributes > Scalars. For any other scalar, it works well. >>>>>>> >>>>>>> Best regards, >>>>>>> Thomas Oliveira >>>>>>> >>>>>>> On Thu, Feb 22, 2018 at 7:19 PM, Dan Lipsa >>>>>>> wrote: >>>>>>> >>>>>>>> Thomas, >>>>>>>> Take a look at the ParaView pipeline in >>>>>>>> >>>>>>>> https://blog.kitware.com/evenly-spaced-streamlines-2d/ >>>>>>>> >>>>>>>> There, I place arrows along a streamline. >>>>>>>> >>>>>>>> Dan >>>>>>>> >>>>>>>> >>>>>>>> On Thu, Feb 22, 2018 at 1:53 PM, Thomas Oliveira < >>>>>>>> thomas.oliveira at gmail.com> wrote: >>>>>>>> >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> I am visualizing disks perpendicular to streamlines by performing >>>>>>>>> the following steps, which works. >>>>>>>>> 1) Create a Plane >>>>>>>>> 2) Create a Stream Tracer with Custom Source using the plane >>>>>>>>> 3) With the stream tracer selected in the pipeline browser, >>>>>>>>> add the glyph filter >>>>>>>>> 4) In the Glyph Type combo box, select ?2D Glyph?. >>>>>>>>> 5) Select ?Circle? in the second Glyph Type combo box >>>>>>>>> 6) Click on Filled checkbox. >>>>>>>>> 5) Under Active Attributes, make sure the Vectors property is >>>>>>>>> set to the vector field I used to create the streamlines. >>>>>>>>> 6) Set the Glyph Transform Rotate property to 0, 90, 0. >>>>>>>>> >>>>>>>>> On each streamline, many disks are rendered. >>>>>>>>> >>>>>>>>> However, if, in Glyph Properties > Active Attributes > Scalars, I >>>>>>>>> select SeedIds, I see just one disk per streamline. Would it be possible to >>>>>>>>> have many disks per streamline colored by SeedIds? >>>>>>>>> >>>>>>>>> My final goal is to illustrate at the outlet face of my model the >>>>>>>>> starting position the streamlines that cross it. To do I am trying to >>>>>>>>> render disks colored by SeedIds near the inlet and outlet faces, so that >>>>>>>>> pair of disks of a same color represents two points connected by a >>>>>>>>> streamline. Any other idea that provides a similar visual result is also >>>>>>>>> welcome. >>>>>>>>> >>>>>>>>> >>>>>>>>> Best regards, >>>>>>>>> Thomas Oliveira >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> 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: >>>>>>>>> https://public.kitware.com/mailman/listinfo/paraview >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From en.mhdbabiker at gmail.com Tue Feb 27 07:20:37 2018 From: en.mhdbabiker at gmail.com (Mohammed Babiker) Date: Tue, 27 Feb 2018 13:20:37 +0100 Subject: [Paraview] Extract cell by region Info. Message-ID: <5a954d15.541b1c0a.bec99.6b3a@mx.google.com> Good Afternoon In the filter of ?Extract cells by region ? when the intersection adjusted to ?box ? , Is it possible to get the dimensions of the box (for example in cm or m )??? If not is one of these below item possible , and how?? how can I get the size of the whole system? How can I get the information of the box Parameter,(Ex. Position , scale or rotation)?? Help really appreciated Kind Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From info at paraview-expert.com Tue Feb 27 09:23:40 2018 From: info at paraview-expert.com (Magician) Date: Tue, 27 Feb 2018 23:23:40 +0900 Subject: [Paraview] Set total recording time in VeloView In-Reply-To: References: <2998C114-95C6-4593-8084-47B6E7381989@paraview-expert.com> Message-ID: Hi Bastien, I tried your script, but the recordingTimeInMilliseconds takes waiting time ?before' data logging. I want to set data logging time (begin to end). Magician > 2018/02/16 18:48?Bastien Jacquet wrote: > > Sorry, I should have doubled checked > You need to use .trigger() instead of .toggle(). > This is the code that works: > > def myfunc(): > vv.app.actions['actionRecord'].trigger() > print ("Toggled recording") > > qq=QtCore.QTimer() > qq.setSingleShot(True) > qq.connect('timeout()',myfunc) > recordingTimeInMilliseconds = 60 * 1000 > qq.start(recordingTimeInMilliseconds) > > Best, > > Bastien Jacquet, PhD > Technical Leader - Computer Vision Team > Kitware SAS > 26 rue Louis Gu?rin - 69100 Villeurbanne - France > F: +33 (0)4.37.45.04.15 > > On Thu, Feb 15, 2018 at 9:36 PM, Magician > wrote: > Hi Bastien, > > > Thanks for your advice. > I tried the script and the button is toggled on the GUI, but no data is recorded. > > > Magician > > >> 2018/02/15 3:03?Bastien Jacquet > wrote: >> >> Hello Magician, >> >> I think you can use Python, and PythonQt to make a fake "record" button press, after the desired amount of time. >> Just try this: >> def myfunc(): >> vv.app.actions['actionRecord'].toggle() >> print ("Toggled recording") >> >> qq=QtCore.QTimer() >> qq.setSingleShot(True) >> qq.connect('timeout()',myfunc) >> recordingTimeInMilliseconds = 60 * 1000 >> qq.start(recordingTimeInMilliseconds) >> >> Hope this helps, >> >> Bastien Jacquet, PhD >> VeloView Lead Developer - Computer Vision Team >> Kitware SAS >> 26 rue Louis Gu?rin - 69100 Villeurbanne - France >> F: +33 (0)4.37.45.04.15 >> On Sun, Feb 11, 2018 at 3:55 PM, Magician > wrote: >> Hi all, >> >> >> I?m using VeloView 3.5.0 (Windows 64bit) and recording VLP-16?s data packets. >> I want to set the total recording time or stopping time, but VeloView have no option to do it on the GUI. >> >> Is there a good way? (ex. using Python) >> >> >> Magician >> http://www.paraview-expert.com/ >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView >> >> Search the list archives at: http://markmail.org/search/?q=ParaView >> >> Follow this link to subscribe/unsubscribe: >> https://public.kitware.com/mailman/listinfo/paraview >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From simon.michalke at fau.de Tue Feb 27 09:47:00 2018 From: simon.michalke at fau.de (Michalke, Simon) Date: Tue, 27 Feb 2018 15:47:00 +0100 Subject: [Paraview] Detect Catalyst extraction from within a coprocessor Message-ID: <61766c48079ffcd05dacf01f9d006a20@fau.de> Hi, is there any way that the coprocessor can detect if the catalyst user clicks on the extract icon? Something like a function that sleeps until a new coprocess steps needs to be done. Or do I have to continuously poll the catalyst client if it needs a new batch of data transmitted? Simon From andy.bauer at kitware.com Tue Feb 27 11:21:13 2018 From: andy.bauer at kitware.com (Andy Bauer) Date: Tue, 27 Feb 2018 11:21:13 -0500 Subject: [Paraview] Detect Catalyst extraction from within a coprocessor In-Reply-To: <61766c48079ffcd05dacf01f9d006a20@fau.de> References: <61766c48079ffcd05dacf01f9d006a20@fau.de> Message-ID: Hi Simon, Currently there's nothing that allows the coprocessor to get information that the user has clicked on the extract icon during a Catalyst Live connection. You may be able to hack in a solution though by looking at either vtkLiveInSituLink ( https://www.paraview.org/ParaView/Doc/Nightly/www/cxx-doc/classvtkLiveInsituLink.html) or coprocessing.py. By the way, I'm curious about the use case for this -- what functionality are you hoping to do with this information? FYI: we're hoping to add significant functionality in the near future for Catalyst Live so something like that may be supported in the near future. Best, Andy On Tue, Feb 27, 2018 at 9:47 AM, Michalke, Simon wrote: > Hi, > > is there any way that the coprocessor can detect if the catalyst user > clicks on the extract icon? Something like a function that sleeps until a > new coprocess steps needs to be done. > Or do I have to continuously poll the catalyst client if it needs a new > batch of data transmitted? > > Simon > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensou > rce/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: > https://public.kitware.com/mailman/listinfo/paraview > -------------- next part -------------- An HTML attachment was scrubbed... URL: From simon.michalke at fau.de Tue Feb 27 11:39:16 2018 From: simon.michalke at fau.de (Michalke, Simon) Date: Tue, 27 Feb 2018 17:39:16 +0100 Subject: [Paraview] Detect Catalyst extraction from within a coprocessor In-Reply-To: References: <61766c48079ffcd05dacf01f9d006a20@fau.de> Message-ID: <1544e50eaced634922c128c7c0b226ca@fau.de> Hi Andy, our optimization software is able to stream live results via http when configured. This stream is pointed at a continuous running webservice that saves the current progress. A user can for example view the current scalar variables over the steps to make sure the problem converges: http://eamc075.eam.uni-erlangen.de Simple 2D data should also be viewable at some point. Now comes catalyst: The webservice should also be able to redirect the data to a catalyst instance. A user can enter the ip and port online and will receive the data from the webservice onto his local machine. The data is in general not bulky so I can send all data to the client and do the processing on the machine running paraview/catalyst. This means that the client catalyst will never directly connect to the simulation or vice versa in our use case. Regards, Simon (forgot the cc to list) Am 2018-02-27 17:21, schrieb Andy Bauer: > Hi Simon, > > Currently there's nothing that allows the coprocessor to get > information > that the user has clicked on the extract icon during a Catalyst Live > connection. You may be able to hack in a solution though by looking at > either vtkLiveInSituLink ( > https://www.paraview.org/ParaView/Doc/Nightly/www/cxx-doc/classvtkLiveInsituLink.html) > or coprocessing.py. > > By the way, I'm curious about the use case for this -- what > functionality > are you hoping to do with this information? FYI: we're hoping to add > significant functionality in the near future for Catalyst Live so > something > like that may be supported in the near future. > > Best, > Andy > > On Tue, Feb 27, 2018 at 9:47 AM, Michalke, Simon > > wrote: > >> Hi, >> >> is there any way that the coprocessor can detect if the catalyst user >> clicks on the extract icon? Something like a function that sleeps >> until a >> new coprocess steps needs to be done. >> Or do I have to continuously poll the catalyst client if it needs a >> new >> batch of data transmitted? >> >> Simon >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensou >> rce/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: >> https://public.kitware.com/mailman/listinfo/paraview >> From dave.demarle at kitware.com Tue Feb 27 14:42:31 2018 From: dave.demarle at kitware.com (David E DeMarle) Date: Tue, 27 Feb 2018 14:42:31 -0500 Subject: [Paraview] reminder: free VTK, ParaView and CMake training at Kitware New York in two weeks. Message-ID: Read all about it in this blog post: https://blog.kitware.com/events/march2018-free-vtk-paraview-and-cmake-training-courses-kitware There are a few seats available in case you can make it up to visit us. https://goo.gl/forms/M3WmJcV9W6qKTK8x2 Thanks and hope to see you here. David E DeMarle Kitware, Inc. Principal Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonathan.borduas at caboma.com Tue Feb 27 15:39:49 2018 From: jonathan.borduas at caboma.com (Jonathan Borduas) Date: Tue, 27 Feb 2018 20:39:49 +0000 Subject: [Paraview] Paraview starts to lag extremely after adding too much complexity in the pipeline Message-ID: Hi all, We use a fairly complex pipeline with more than 300 filters. When divided across 20 .pvsm , everything is fast. We started to merge those .pvsm into a single one. For the first 17 .pvsm everything was still fast. No .pvsm load time and no lag. Once we started integrating the 18th .pvsm the performance started to degrade. We used VTune to diagnose paraview: Seems that the performance drop is purely related to vtkInformation::GetAsObjectBase and vtkDemandDrivenPipeline::ComputePipelineMTime which is call recursively 37 times in a single call stack sample ! It makes no difference if we integrate the 20 small .pvsm into a single large .pvsm or if we integrate thoses .pvsm as custom filters (.cpd) in the main .pvsm. This is true when we are loading the .pvsm, but this is also true when we are modifying values in the statefile. We are using: Win10 Paraview 5.3 derivative. Memory consumption is 1Go on a 16 Go machine. Any idea on how to improve the performance ? We though about dividing the pipeline into a multitude of pvserver... Jonathan Borduas -------------- next part -------------- An HTML attachment was scrubbed... URL: From bastien.jacquet at kitware.com Wed Feb 28 06:01:55 2018 From: bastien.jacquet at kitware.com (Bastien Jacquet) Date: Wed, 28 Feb 2018 12:01:55 +0100 Subject: [Paraview] Set total recording time in VeloView In-Reply-To: References: <2998C114-95C6-4593-8084-47B6E7381989@paraview-expert.com> Message-ID: Hello, The script toggles the recording state after the desired waiting time. Hence: If you launch it from non-recording state, it will start recording after recordingTimeInMilliseconds. If you launch it from recording state, it will stop recording after recordingTimeInMilliseconds. Best, Bastien Jacquet, PhD Technical Leader - Computer Vision Team Kitware SAS 26 rue Louis Gu?rin - 69100 Villeurbanne - France F: +33 (0)4.37.45.04.15 On Tue, Feb 27, 2018 at 3:23 PM, Magician wrote: > Hi Bastien, > > > I tried your script, but the recordingTimeInMilliseconds takes > waiting time ?before' data logging. > I want to set data logging time (begin to end). > > > Magician > > > 2018/02/16 18:48?Bastien Jacquet wrote: > > Sorry, I should have doubled checked > You need to use .trigger() instead of .toggle(). > This is the code that works: > > def myfunc(): > vv.app.actions['actionRecord'].trigger() > print ("Toggled recording") > > qq=QtCore.QTimer() > qq.setSingleShot(True) > qq.connect('timeout()',myfunc) > recordingTimeInMilliseconds = 60 * 1000 > qq.start(recordingTimeInMilliseconds) > > Best, > > Bastien Jacquet, PhD > Technical Leader - Computer Vision Team > Kitware SAS > 26 rue Louis Gu?rin - 69100 Villeurbanne - France > > F: +33 (0)4.37.45.04.15 <+33%204%2037%2045%2004%2015> > > On Thu, Feb 15, 2018 at 9:36 PM, Magician > wrote: > >> Hi Bastien, >> >> >> Thanks for your advice. >> I tried the script and the button is toggled on the GUI, but no data is >> recorded. >> >> >> Magician >> >> >> 2018/02/15 3:03?Bastien Jacquet wrote: >> >> Hello Magician, >> >> I think you can use Python, and PythonQt to make a fake "record" button >> press, after the desired amount of time. >> Just try this: >> def myfunc(): >> vv.app.actions['actionRecord'].toggle() >> print ("Toggled recording") >> >> qq=QtCore.QTimer() >> qq.setSingleShot(True) >> qq.connect('timeout()',myfunc) >> recordingTimeInMilliseconds = 60 * 1000 >> qq.start(recordingTimeInMilliseconds) >> >> Hope this helps, >> >> Bastien Jacquet, PhD >> VeloView Lead Developer - Computer Vision Team >> Kitware SAS >> 26 rue Louis Gu?rin - 69100 Villeurbanne - France >> >> F: +33 (0)4.37.45.04.15 <+33%204%2037%2045%2004%2015> >> >> On Sun, Feb 11, 2018 at 3:55 PM, Magician >> wrote: >> >>> Hi all, >>> >>> >>> I?m using VeloView 3.5.0 (Windows 64bit) and recording VLP-16?s data >>> packets. >>> I want to set the total recording time or stopping time, but VeloView >>> have no option to do it on the GUI. >>> >>> Is there a good way? (ex. using Python) >>> >>> >>> Magician >>> http://www.paraview-expert.com/ >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the ParaView Wiki at: >>> http://paraview.org/Wiki/ParaView >>> >>> Search the list archives at: http://markmail.org/search/?q=ParaView >>> >>> Follow this link to subscribe/unsubscribe: >>> https://public.kitware.com/mailman/listinfo/paraview >>> >> >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From simon.michalke at fau.de Wed Feb 28 07:21:17 2018 From: simon.michalke at fau.de (Michalke, Simon) Date: Wed, 28 Feb 2018 13:21:17 +0100 Subject: [Paraview] Paraview 5.5 RC build fails due to wrong python paths. Message-ID: <9426e83d265f8fe564203e21a5f4b4d8@fau.de> Hi, I am trying to build the latest paraview using paraview-superbuild (I set the branch config to "release"). I need catalyst python wrappings and I am using system python (3.4). I get the following error: CMake Error at VTK/Wrapping/Python/cmake_install.cmake:5822 (file): file INSTALL cannot find "[...]/superbuild/paraview/build/lib/python3.4/site-packages/vtk.pyc". Call Stack (most recent call first): VTK/cmake_install.cmake:260 (include) cmake_install.cmake:118 (include) the .pyc and .pyo file are located here: [...]/superbuild/paraview/build/lib/python3.4/site-packages/__pycache__/vtk.cpython-34.pyc [...]/superbuild/paraview/build/lib/python3.4/site-packages/__pycache__/vtk.cpython-34.pyo I tried editing the .cmake files to fix this, which didn't work. I guess they are being re-generated each time I run "make" :( Regards, Simon From utkarsh.ayachit at kitware.com Wed Feb 28 07:23:06 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Wed, 28 Feb 2018 07:23:06 -0500 Subject: [Paraview] Paraview 5.5 RC build fails due to wrong python paths. In-Reply-To: <9426e83d265f8fe564203e21a5f4b4d8@fau.de> References: <9426e83d265f8fe564203e21a5f4b4d8@fau.de> Message-ID: Looking into it. Thanks for reporting. What OS, flavor of Linux are you using? Thanks. Utkarsh On Wed, Feb 28, 2018 at 7:21 AM, Michalke, Simon wrote: > Hi, > > I am trying to build the latest paraview using paraview-superbuild (I set > the branch config to "release"). I need catalyst python wrappings and I am > using system python (3.4). I get the following error: > > CMake Error at VTK/Wrapping/Python/cmake_install.cmake:5822 (file): > file INSTALL cannot find > "[...]/superbuild/paraview/build/lib/python3.4/site-packages/vtk.pyc". > Call Stack (most recent call first): > VTK/cmake_install.cmake:260 (include) > cmake_install.cmake:118 (include) > > the .pyc and .pyo file are located here: > [...]/superbuild/paraview/build/lib/python3.4/site-packages/__pycache__/vtk.cpython-34.pyc > [...]/superbuild/paraview/build/lib/python3.4/site-packages/__pycache__/vtk.cpython-34.pyo > > I tried editing the .cmake files to fix this, which didn't work. I guess > they are being re-generated each time I run "make" :( > > Regards, > Simon > _______________________________________________ > 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: > https://public.kitware.com/mailman/listinfo/paraview From utkarsh.ayachit at kitware.com Wed Feb 28 07:39:31 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Wed, 28 Feb 2018 07:39:31 -0500 Subject: [Paraview] Paraview 5.5 RC build fails due to wrong python paths. In-Reply-To: References: <9426e83d265f8fe564203e21a5f4b4d8@fau.de> Message-ID: I've reported an issue here: https://gitlab.kitware.com/paraview/paraview/issues/18011 I'll track it down soon. On Wed, Feb 28, 2018 at 7:23 AM, Utkarsh Ayachit wrote: > Looking into it. Thanks for reporting. What OS, flavor of Linux are > you using? Thanks. > > Utkarsh > > On Wed, Feb 28, 2018 at 7:21 AM, Michalke, Simon wrote: >> Hi, >> >> I am trying to build the latest paraview using paraview-superbuild (I set >> the branch config to "release"). I need catalyst python wrappings and I am >> using system python (3.4). I get the following error: >> >> CMake Error at VTK/Wrapping/Python/cmake_install.cmake:5822 (file): >> file INSTALL cannot find >> "[...]/superbuild/paraview/build/lib/python3.4/site-packages/vtk.pyc". >> Call Stack (most recent call first): >> VTK/cmake_install.cmake:260 (include) >> cmake_install.cmake:118 (include) >> >> the .pyc and .pyo file are located here: >> [...]/superbuild/paraview/build/lib/python3.4/site-packages/__pycache__/vtk.cpython-34.pyc >> [...]/superbuild/paraview/build/lib/python3.4/site-packages/__pycache__/vtk.cpython-34.pyo >> >> I tried editing the .cmake files to fix this, which didn't work. I guess >> they are being re-generated each time I run "make" :( >> >> Regards, >> Simon >> _______________________________________________ >> 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: >> https://public.kitware.com/mailman/listinfo/paraview From utkarsh.ayachit at kitware.com Wed Feb 28 10:01:39 2018 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Wed, 28 Feb 2018 10:01:39 -0500 Subject: [Paraview] Paraview starts to lag extremely after adding too much complexity in the pipeline In-Reply-To: References: Message-ID: Jonathan, Do you think this is related to the same issue or something else? https://gitlab.kitware.com/paraview/paraview/issues/17957 Is there a sample state file that you can share? Utkarsh On Tue, Feb 27, 2018 at 3:39 PM, Jonathan Borduas wrote: > Hi all, > > We use a fairly complex pipeline with more than 300 filters. > > When divided across 20 .pvsm , everything is fast. We started to merge those > .pvsm into a single one. > > For the first 17 .pvsm everything was still fast. No .pvsm load time and no > lag. > > Once we started integrating the 18th .pvsm the performance started to > degrade. We used VTune to diagnose paraview: > Seems that the performance drop is purely related to > vtkInformation::GetAsObjectBase and > vtkDemandDrivenPipeline::ComputePipelineMTime which is call recursively 37 > times in a single call stack sample ! > > > > It makes no difference if we integrate the 20 small .pvsm into a single > large .pvsm or if we integrate thoses .pvsm as custom filters (.cpd) in the > main .pvsm. > > > > This is true when we are loading the .pvsm, but this is also true when we > are modifying values in the statefile. > > We are using: > Win10 > Paraview 5.3 derivative. > > Memory consumption is 1Go on a 16 Go machine. > > > > Any idea on how to improve the performance ? We though about dividing the > pipeline into a multitude of pvserver? > > > > Jonathan Borduas > > > _______________________________________________ > 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: > https://public.kitware.com/mailman/listinfo/paraview > From jonathan.borduas at caboma.com Wed Feb 28 11:57:18 2018 From: jonathan.borduas at caboma.com (Jonathan Borduas) Date: Wed, 28 Feb 2018 16:57:18 +0000 Subject: [Paraview] Paraview starts to lag extremely after adding too much complexity in the pipeline In-Reply-To: References: Message-ID: Hi Utkarsh, At first I though so, then we converted all our small statefiles to .cpd and used those custom filters into a "master" statefile. The result was much less "GeometryRepresentation". It did reduce the loading time by minutes but the bulk of the loading time was still there. At that moment we decided to profile the load state mechanism with Vtune and the vtkDemandDrivenPipeline::ComputePipelineMTime was definitely the culprit (99.6% of cputime). This scenario might be related to : https://public.kitware.com/pipermail/vtkusers/2013-November/082003.html After searching more, I think we simply reached the VTK limit in terms of Demand-Driven Pipeline. I understand that a Demand-Driven pipeline is perfect with low pipeline complexity, expansive computation where we want to maximize interactivity. But for complex pipeline with fast algorithms an Event-Driven pipeline might be better. However in our case, we have a complex pipeline, that we want to be as interactive as possible while having expansive computation. So we need an hybrid of the two type of pipelines. I know we could convert all our smaller pipelines to filters, and reduce the overall pipeline complexity. However, at the speed we are making changes and prototyping, using the interface of ParaView to create our pipeline is our goal. I have two solutions: 1 - A way to keep the flexibility and prototyping capability while having complex subset of filters could be to use programmable filters. However the inexistent error passing of a programmable filter makes it impossible to use in a production context. This issue would help in solving our problem: https://gitlab.kitware.com/paraview/paraview/issues/17591 2 - A good way might be to keep the main statefile as a Demand-Driven Pipeline, while having smaller subset execute as Event-Driven Pipeline. The way to define those subset could be by using .cpd file. For #2, I have an implementation in mind, which might be difficult to implement (and a bit crazy too) : create a pvserver for each custom filter that is instantiate in the pipeline. This way, I keep the interactivity of all 3dwidget in the .cpd while keeping all filters contains in the .cpd outside of the main pipeline. The main pipeline stays a fast and interactive Demand-Driven pipeline while .cpd behave like small Event-Driven pipeline. This mechanics would be handle by the custom filter itself and would act as a wrapper to a external pvserver. For passing the information between the main pipeline and slaves pvserver, I though about Catalyst. Of course, any simpler way to tell Paraview to handle a custom filter as an event-driven pipeline is welcome. Best regards, Jonathan Borduas -----Original Message----- From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] Sent: February 28, 2018 10:02 AM To: Jonathan Borduas Cc: paraview at paraview.org Subject: Re: [Paraview] Paraview starts to lag extremely after adding too much complexity in the pipeline Jonathan, Do you think this is related to the same issue or something else? https://gitlab.kitware.com/paraview/paraview/issues/17957 Is there a sample state file that you can share? Utkarsh On Tue, Feb 27, 2018 at 3:39 PM, Jonathan Borduas wrote: > Hi all, > > We use a fairly complex pipeline with more than 300 filters. > > When divided across 20 .pvsm , everything is fast. We started to merge > those .pvsm into a single one. > > For the first 17 .pvsm everything was still fast. No .pvsm load time > and no lag. > > Once we started integrating the 18th .pvsm the performance started to > degrade. We used VTune to diagnose paraview: > Seems that the performance drop is purely related to > vtkInformation::GetAsObjectBase and > vtkDemandDrivenPipeline::ComputePipelineMTime which is call > recursively 37 times in a single call stack sample ! > > > > It makes no difference if we integrate the 20 small .pvsm into a > single large .pvsm or if we integrate thoses .pvsm as custom filters > (.cpd) in the main .pvsm. > > > > This is true when we are loading the .pvsm, but this is also true when > we are modifying values in the statefile. > > We are using: > Win10 > Paraview 5.3 derivative. > > Memory consumption is 1Go on a 16 Go machine. > > > > Any idea on how to improve the performance ? We though about dividing > the pipeline into a multitude of pvserver? > > > > Jonathan Borduas > > > _______________________________________________ > 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: > https://public.kitware.com/mailman/listinfo/paraview > From thierry.porcher at voxaya.com Wed Feb 28 17:00:44 2018 From: thierry.porcher at voxaya.com (Thierry Porcher) Date: Wed, 28 Feb 2018 23:00:44 +0100 Subject: [Paraview] Grid Axes question Message-ID: <68DBE245-75BC-4667-80EF-5B59747FCFD2@voxaya.com> Hi all, I?m using Paraview 5.4.1 on MacOS andI would like to display the physical dimensions of an image using the grid axes. Using a 3D (3x3x3) image (.mhd) with a voxel size of 1mm^3, all the grid axes are going from 0 up to 2 ... Any option to make them go up to 3 ? Tnx. -Thierry From cory.quammen at kitware.com Wed Feb 28 23:10:06 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 28 Feb 2018 23:10:06 -0500 Subject: [Paraview] Teaser (Programmable filter) Not working In-Reply-To: <5a8f45ff.7a86df0a.41e5b.a075@mx.google.com> References: <5a8f415f.f180df0a.64f01.728e@mx.google.com> <5a8f45ff.7a86df0a.41e5b.a075@mx.google.com> Message-ID: Ah, I was wrong in my earlier response. The problem is that the single quotation marks are copied from the ParaView Guide as apostrophes (or "smart" single quotes). Change these to single quotes ( ' ) in your script and it will run fine. HTH, Cory On Thu, Feb 22, 2018 at 5:36 PM, Mohammed Babiker wrote: > Dear Cory, > > Thanks for your quick respond, I did what you said but a gain I got error > massage as shown below > > ERROR: In C:\bbd\7cc78367\source-paraview\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx, > line 809 > > vtkPVDataRepresentationPipeline (0000024B59BAEEC0): Input for connection > index 0 on input port index 0 for algorithm vtkGeometryRepresentationWithFaces(0000024B5AC08230) > is of type vtkTable, but a vtkDataSet is required. > > > > ERROR: In C:\bbd\7cc78367\source-paraview\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx, > line 809 > > vtkPVDataRepresentationPipeline (0000024B59BB4AA0): Input for connection > index 0 on input port index 0 for algorithm vtkGeometryRepresentation(0000024B534FA090) > is of type vtkTable, but a vtkDataSet is required. > > > > ERROR: In C:\bbd\7cc78367\source-paraview\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx, > line 809 > > vtkPVDataRepresentationPipeline (0000024B51452420): Input for connection > index 0 on input port index 0 for algorithm vtkPVGridAxes3DRepresentation(0000024B593C64B0) > is of type vtkTable, but a vtkCompositeDataSet is required. > > Regards. > > *From: *Cory Quammen > *Sent: *Thursday, February 22, 2018 11:30 PM > *To: *Mohammed Babiker > *Cc: *paraview at public.kitware.com > *Subject: *Re: [Paraview] Teaser (Programmable filter) Not working > > > > Mohammed, > > > > There is a bug in this filter that requires you to set the output data > type to the desired type to vtkTable before the first time you click Apply. > Changing it after clicking Apply currently doesn't work. > > > > See if that works around the problem. > > > > Thanks, > > Cory > > > > On Thu, Feb 22, 2018 at 5:17 PM, Mohammed Babiker > wrote: > > Good evening Paraview-Help > > I tried to run the script in Paraview guide chapter fourteen (Teaser) page > 175 I used first source sphere then the filter elevation and then > programmable filter and then I paste the script bellow in script part: > > *from* *vtk.* *numpy_interface* *import* dataset_adapter *as* dsa > > *from* *vtk.* *numpy_interface* *import* algorithms *as* algs > > data = inputs [0] > > *print* data.PointData.keys () > > *print* data.PointData[?Elevation ?] > > and the rest left default as it was .after hitting run it suppose to get a > table as was said in the guide but I got the below error : > > File "", line 6 > > print data.PointData[?Elevation ?] > > ^ > > SyntaxError: invalid syntax > > Traceback (most recent call last): > > File "", line 22, in > > NameError: name 'RequestData' is not defined > > Then I tried to change the output type to different types > (vtktable,vtkpolydata,?etc) and I got different errors. > > Below attached images contain info. About the version of ParaView and the > pipeline scheme (format png). > > Any help or advice will be greatly appreciated . > > > > Kind Regards. > > > > Mohammed B. A. Hassan > > > _______________________________________________ > 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: > https://public.kitware.com/mailman/listinfo/paraview > > > > > > -- > > Cory Quammen > Staff R&D Engineer > Kitware, Inc. > > > -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: