Re: [Paraview] Accessing a specific variable in Python Programmable Filter
thanks Burlen, -simon From: Burlen Loring [burlen.lor...@gmail.com] Sent: Friday, May 16, 2014 6:12 PM To: Burlen Loring; Su, Simon M CTR USARMY ARL (US); paraview@paraview.org Subject: Re: [Paraview] Accessing a specific variable in Python Programmable Filter correction, Dave D. just pointed out to me that since PV 4.0 the shallow copy is no longer needed because of the VTK 6.0 pipeline improvements. On 05/16/2014 02:07 PM, Burlen Loring wrote: By the way, the example following that is buggy as well, when you apply an internal filter you first need to shallow copy the input. I fixed both of these, although I think these examples(ones in Examples section) are not great ones in the first place and don't add much to the already pretty comprehensive examples preceding them, I would vote to remove them. However, I'll leave this up to the real pv developers On 05/16/2014 01:43 PM, Su, Simon M CTR USARMY ARL (US) wrote: Thanks Burlen -simon From: Burlen Loring [blor...@lbl.govmailto:blor...@lbl.gov] Sent: Friday, May 16, 2014 4:23 PM To: Su, Simon M CTR USARMY ARL (US); paraview@paraview.orgmailto:paraview@paraview.org Subject: Re: [Paraview] Accessing a specific variable in Python Programmable Filter = input = self.GetPolyDataInput(); output = self.GetPolyDataOutput(); colors = vtk.vtkUnsignedCharArray(); colors.SetNumberOfComponents(3); colors.SetName(Colors); numPoints = input.GetNumberOfPoints() for i in range(0, numPoints): colors.InsertNextTuple3(255,0,0); output=input output.GetPointData().AddArray(colors) === Not sure how this got on the wiki but this is an example of what *not* to do!! In a VTK filter one's never supposed to modify the input. output=input output.GetPointData().AddArray(colors) This is exactly what's done here. Of course you're not going to find the array in the filter's output if you're adding it to the input! This code can be fixed by removing the output=input line. With that change you should be able to see the array in downstream filters. note, in python 2 range actually generates a list with all the values in it, while xrange creates an iterator which is far more efficient. To actually use the colors you'll also have to uncheck the map scalars check box in the display properties. input = self.GetPolyDataInput(); output = self.GetPolyDataOutput(); colors = vtk.vtkUnsignedCharArray(); colors.SetNumberOfComponents(3); colors.SetName(Colors); numPoints = input.GetNumberOfPoints() for i in xrange(0, numPoints): colors.InsertNextTuple3(0,255,0); output.GetPointData().AddArray(colors) del colors On 05/16/2014 12:46 PM, Su, Simon M CTR USARMY ARL (US) wrote: Hello, After staring at http://www.paraview.org/Wiki/Python_Programmable_Filter for a while, the way to access the data for a specific variable name still eludes me. This is the python code from the wiki on Add the Colors variable to a PolyData = input = self.GetPolyDataInput(); output = self.GetPolyDataOutput(); colors = vtk.vtkUnsignedCharArray(); colors.SetNumberOfComponents(3); colors.SetName(Colors); numPoints = input.GetNumberOfPoints() for i in range(0, numPoints): colors.InsertNextTuple3(255,0,0); output=input output.GetPointData().AddArray(colors) === How do I from the next filter, access the variable name Colors that I created? Any help is much appreciated. thanks -simon ___ Powered by www.kitware.comhttp://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.comhttp://www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] ParaviewWeb Multiuser
Hello, I want to setup a server with multiuser support. Each user should have a specific own data directory. Do I need Jetty launcher for this or can I achieve this only with the Pyhton launcher? As far as I can see I can't setup the directory on the client so that I have to create app entries in the launcher.config file for each user? Then I could run paraview with: |{ 'sessionManagerURL': 'http://localhost:8080/paraview', 'application': 'launcher', 'node': 1024, 'secret': 'katglrt54#%dfg', 'user': 'sebastien.jourdain', 'password': 'ousdfbdxldfgh', 'app': 'launcher with parameters from user' // here I set the app name with specific user paramteres saved in launcher.config? }| ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] ParaviewWeb Multiuser
On Mon, May 19, 2014 at 16:03:49 +0200, Daniel Zuidinga wrote: 'secret': 'katglrt54#%dfg', 'user': 'sebastien.jourdain', 'password': 'ousdfbdxldfgh', Hmm...might want to change these if they're real? --Ben ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Change size of arrow
Dear Paraview Users and Developers, I am having some difficulties to change the size of the arrow. Using the calculatior I have created a vector filed as iHat*velocity_X+jHat*velocity_Y+kHat*velocity_Z Then I have plotted it choosing 3D Glyphs. I get huge arrow and I do not know how to change (re-scale) their size. Any ideas? Thank you. -- Matteo ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Compilation with Manta plugin
* Search the paraview bug tracker for Manta. There are a handful of known bugs listed there that I never got around to resolving when we first made the plugin. * The plugin works by sending the surface geometry over to manta instead of OpenGL for rendering. We made no attempt to hand volumes off, so I am not surprised that volume rendering does not work. Manta's predecessor did a great job with volume rendering (and direct isosurface rendering), so manta might too if we do hand them off but I've never looked into whether manta has the same features that rtrt/star-ray did. * opacity should work, if the normal opacity control in the GUI is not hooked up then I am thinking it is dependent on the color mode (render single color vs color mapping) like the advanced materials are and will only take effect with single color. * you are probably the first person to try it on mavericks. I appreciate the patches. * in general the code has been stagnant since we (kitware and LANL) first developed a couple of years ago. We've done what was necessary to keep it up to date at ParaView release time, but there hasn't been enough interest (either external developers or funded projects) to turn it into the photorealistic rendering back end that it should be. David E DeMarle Kitware, Inc. RD Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Mon, May 19, 2014 at 10:24 AM, Wolfram, Phillip J pwolf...@lanl.govwrote: Thanks David, I see… Also, should the Manta plugin work with transparency/opacity? It currently does not (there was a typo in the original email). Is there a listing somewhere of the known limitations of the plugin? For example, it doesn’t appear to render volumes. I’m on OS X Mavericks (10.9) and had to modify the plugin to work. I use the latest version and update the headers so it properly compiles (please see attached). I’ve attached it so that it may also be considered for inclusion in the ParaView SuperBuild because the previous version of the plugin is out of date for OS X 10.9. I’m happy to provide additional information as useful and will submit the bug request after hearing back from you so that I properly include all the issues I’ve been having. Thank you! Phil -- Phillip Wolfram, Ph.D. Postdoctoral Research Associate T-3 Fluid Dynamics and Structural Mechanics Climate, Ocean and Sea Ice Modeling Los Alamos National Laboratory Phone: (505) 667-7744 Email: pwolf...@lanl.gov On May 17, 2014, at 6:58 PM, David E DeMarle dave.dema...@kitware.com wrote: I don't think the rendering bug is related to the compilation warnings. I think it is an off by one error in the color mapping. Please submit a bug report and I will fix it in master. thanks. David E DeMarle Kitware, Inc. RD Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Fri, May 16, 2014 at 10:25 PM, Wolfram, Phillip J pwolf...@lanl.govwrote: Dear Paraview Users and Developers, Has anyone recently compiled Paraview from source with the Manta plugin, particularly on OS X 10.9 (Mavericks)? I have successfully compiled Manta, but have the compiler warnings of type: ld: warning: direct access in ___cxx_global_var_init27 to global weak symbol guard variable for Manta::MantaRTTIManta::Texturefloat ::force_initialize means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings. ld: warning: direct access in ___cxx_global_var_init28 to global weak symbol guard variable for Manta::MantaRTTIManta::Constantfloat ::init means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings. etc The executable appears to be working properly, but it is less clear if the Manta ray tracing plugin is working correctly. For example, it does allow for changing opacity and there are some rendering artifacts. The benefit is higher quality rendering, but if it doesn't work properly it clearly isn't worth it as you can see below where the OpenGL renderer is on the left and the Manta renderer is on the right. Notice how there is a patch of red missing near the notch. Screen Shot 2014-05-16 at 8.19.40 PM.png I suspect it is a compilation issue because of the warnings but would greatly appreciate any ideas / suggestions from the community. I may also be using the plugin incorrectly and would appreciate correction too. Thanks, Phillip ___ 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:
Re: [Paraview] ParaviewWeb Multiuser
Hi Daniel, I would suggest to handle the data-dir argument inside a shell script that will then depend on the user. So instead of running a pvpython command line you run your custom script command line. BTW, Ben the payload example given come from the documentation and are given for example since none of those keys are required. So no worries about those fake password and user name. ;-) Seb On Mon, May 19, 2014 at 8:27 AM, Ben Boeckel ben.boec...@kitware.comwrote: On Mon, May 19, 2014 at 16:03:49 +0200, Daniel Zuidinga wrote: 'secret': 'katglrt54#%dfg', 'user': 'sebastien.jourdain', 'password': 'ousdfbdxldfgh', Hmm...might want to change these if they're real? --Ben ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] [EXTERNAL] Change size of arrow
On the properties tab, slide down and you will see Scale Mode. Right below there is a checkbox (Edit). Check that, and change the scale. You can also change scale mode to be Scalar (don’t scale with the length of your vector). Alan From: ParaView [mailto:paraview-boun...@paraview.org] On Behalf Of Matteo Parsani Sent: Monday, May 19, 2014 8:38 AM To: paraview@paraview.org Subject: [EXTERNAL] [Paraview] Change size of arrow Dear Paraview Users and Developers, I am having some difficulties to change the size of the arrow. Using the calculatior I have created a vector filed as iHat*velocity_X+jHat*velocity_Y+kHat*velocity_Z Then I have plotted it choosing 3D Glyphs. I get huge arrow and I do not know how to change (re-scale) their size. Any ideas? Thank you. -- Matteo ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] [EXTERNAL] Change size of arrow
Thanks for the answer, Scott. Where do I find the properties tab? When I plot with 3D Glyphs I do not have any property tab? Thanks On Mon, May 19, 2014 at 12:25 PM, Scott, W Alan wasc...@sandia.gov wrote: On the properties tab, slide down and you will see Scale Mode. Right below there is a checkbox (Edit). Check that, and change the scale. You can also change scale mode to be Scalar (don’t scale with the length of your vector). Alan *From:* ParaView [mailto:paraview-boun...@paraview.org] *On Behalf Of *Matteo Parsani *Sent:* Monday, May 19, 2014 8:38 AM *To:* paraview@paraview.org *Subject:* [EXTERNAL] [Paraview] Change size of arrow Dear Paraview Users and Developers, I am having some difficulties to change the size of the arrow. Using the calculatior I have created a vector filed as iHat*velocity_X+jHat*velocity_Y+kHat*velocity_Z Then I have plotted it choosing 3D Glyphs. I get huge arrow and I do not know how to change (re-scale) their size. Any ideas? Thank you. -- Matteo -- Matteo ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Change size of arrow
You can scale the glyphs by applying a transform to them. Under the Properties panel, there is a Glyph transform section that you can use to scale glyphs. Hope that helps. -- Sankhesh Jhaveri Research Development Engineer Kitware, Inc. Phone: (518) 881 4417 Fax: (518) 371 4573 On Mon, 2014-05-19 at 10:38 -0400, Matteo Parsani wrote: Dear Paraview Users and Developers, I am having some difficulties to change the size of the arrow. Using the calculatior I have created a vector filed as iHat*velocity_X+jHat*velocity_Y+kHat*velocity_Z Then I have plotted it choosing 3D Glyphs. I get huge arrow and I do not know how to change (re-scale) their size. Any ideas? Thank you. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] [EXTERNAL] Change size of arrow
Should be “on” be default. The properties tab is where you find the big magic “apply” button (left side of the window). If you accidentally turned it off, View/ Properties. Alan From: Matteo Parsani [mailto:parsani.mat...@gmail.com] Sent: Monday, May 19, 2014 11:29 AM To: Scott, W Alan Cc: paraview@paraview.org Subject: Re: [EXTERNAL] [Paraview] Change size of arrow Thanks for the answer, Scott. Where do I find the properties tab? When I plot with 3D Glyphs I do not have any property tab? Thanks On Mon, May 19, 2014 at 12:25 PM, Scott, W Alan wasc...@sandia.govmailto:wasc...@sandia.gov wrote: On the properties tab, slide down and you will see Scale Mode. Right below there is a checkbox (Edit). Check that, and change the scale. You can also change scale mode to be Scalar (don’t scale with the length of your vector). Alan From: ParaView [mailto:paraview-boun...@paraview.orgmailto:paraview-boun...@paraview.org] On Behalf Of Matteo Parsani Sent: Monday, May 19, 2014 8:38 AM To: paraview@paraview.orgmailto:paraview@paraview.org Subject: [EXTERNAL] [Paraview] Change size of arrow Dear Paraview Users and Developers, I am having some difficulties to change the size of the arrow. Using the calculatior I have created a vector filed as iHat*velocity_X+jHat*velocity_Y+kHat*velocity_Z Then I have plotted it choosing 3D Glyphs. I get huge arrow and I do not know how to change (re-scale) their size. Any ideas? Thank you. -- Matteo -- Matteo ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] [EXTERNAL] Change size of arrow
Thanks to both! On Mon, May 19, 2014 at 4:10 PM, Scott, W Alan wasc...@sandia.gov wrote: Should be “on” be default. The properties tab is where you find the big magic “apply” button (left side of the window). If you accidentally turned it off, View/ Properties. Alan *From:* Matteo Parsani [mailto:parsani.mat...@gmail.com] *Sent:* Monday, May 19, 2014 11:29 AM *To:* Scott, W Alan *Cc:* paraview@paraview.org *Subject:* Re: [EXTERNAL] [Paraview] Change size of arrow Thanks for the answer, Scott. Where do I find the properties tab? When I plot with 3D Glyphs I do not have any property tab? Thanks On Mon, May 19, 2014 at 12:25 PM, Scott, W Alan wasc...@sandia.gov wrote: On the properties tab, slide down and you will see Scale Mode. Right below there is a checkbox (Edit). Check that, and change the scale. You can also change scale mode to be Scalar (don’t scale with the length of your vector). Alan *From:* ParaView [mailto:paraview-boun...@paraview.org] *On Behalf Of *Matteo Parsani *Sent:* Monday, May 19, 2014 8:38 AM *To:* paraview@paraview.org *Subject:* [EXTERNAL] [Paraview] Change size of arrow Dear Paraview Users and Developers, I am having some difficulties to change the size of the arrow. Using the calculatior I have created a vector filed as iHat*velocity_X+jHat*velocity_Y+kHat*velocity_Z Then I have plotted it choosing 3D Glyphs. I get huge arrow and I do not know how to change (re-scale) their size. Any ideas? Thank you. -- Matteo -- Matteo -- Matteo ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Cell to point, and ghost cells
I have a user that is getting visual artifacts between simulation processor boundaries when using cell to point. My user is reading two files into ParaView. He then runs cells to point. He then colors by a former cell variable, which is now a point variable. He is seeing artifacts at the boundaries of the two files. I am only on one processor for ParaView. These artifacts are being created because we don't have ghost cells around each file's data. I tried turning piece invariant on in the cell to point filter, but it does nothing. So, my questions - is this a feature or a bug? Do we want to fix it? How hard is it to fix? Thanks, Alan ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Interpolate across NaN's?
Can you be more specific by what you mean by interpolate across NaN's? A NaN interpolated with anything else (including NaN) is NaN. There is not much you can do when something is not a number. What exactly are you expecting ParaView to do? -Ken Sent from my iPad so blame autocorrect. On May 19, 2014, at 12:59 PM, Joshua Murphy joshua.mur...@lasp.colorado.edumailto:joshua.mur...@lasp.colorado.edu wrote: Hello all, I am working on a study that involves many hundreds of model runs, and I am trying determine if it is possible to force Paraview to interpolate across NaN’s when rendering the results to a render view? Attached is a sample output of what I have so far. What I would like is to have ParaView render across the white space (NaN’s). The reason I would like to do this is quite simple: I would like to see refinements to the image as more and more runs finish. The attached images shows the following: 1. Top Left: Course resolution (15 degree x 15 degree sampling) 2. Top Right: Medium Resolution (5 degree x 5 degree sampling) 3. Bottom Right: High Resolution (1 degree x 1 degree sampling) 4. The Bottom Right can be ignored. This is just feedback to me to ensure my algorithms are working as intended. As you can see, the High resolution, at this time, is just a bunch of point values. This is what I would like to fix. At this point in my study, the High resolution and Medium resolution would ideally look the same. If someone could help me out on how I might be able to make this so, that would be great! Thanks, Josh exampleScreen.png ___ Powered by www.kitware.comhttp://www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Interpolate across NaN's?
Probably bad choice of words on my part. I would like to interpolate from/to the nearest valid values, filling in the missing (NaN) values with an interpolated value. Sent from my iPhone On May 19, 2014, at 16:58, Moreland, Kenneth kmo...@sandia.govmailto:kmo...@sandia.gov wrote: Can you be more specific by what you mean by interpolate across NaN's? A NaN interpolated with anything else (including NaN) is NaN. There is not much you can do when something is not a number. What exactly are you expecting ParaView to do? -Ken Sent from my iPad so blame autocorrect. On May 19, 2014, at 12:59 PM, Joshua Murphy joshua.mur...@lasp.colorado.edumailto:joshua.mur...@lasp.colorado.edu wrote: Hello all, I am working on a study that involves many hundreds of model runs, and I am trying determine if it is possible to force Paraview to interpolate across NaN’s when rendering the results to a render view? Attached is a sample output of what I have so far. What I would like is to have ParaView render across the white space (NaN’s). The reason I would like to do this is quite simple: I would like to see refinements to the image as more and more runs finish. The attached images shows the following: 1. Top Left: Course resolution (15 degree x 15 degree sampling) 2. Top Right: Medium Resolution (5 degree x 5 degree sampling) 3. Bottom Right: High Resolution (1 degree x 1 degree sampling) 4. The Bottom Right can be ignored. This is just feedback to me to ensure my algorithms are working as intended. As you can see, the High resolution, at this time, is just a bunch of point values. This is what I would like to fix. At this point in my study, the High resolution and Medium resolution would ideally look the same. If someone could help me out on how I might be able to make this so, that would be great! Thanks, Josh exampleScreen.png ___ Powered by www.kitware.comhttp://www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Integrate variable filter
Utkarsh/Berk/All, I have a user that wants to add up all of the forces in a dataset, not volume corrected. Is there a reason that the Integrate Variable filter can't do this (default off)? My user just dumped the raw data as a .csv file and read it into excel, which worked. It would be nicer if ParaView did this internally. Also, having just poked through the documentation for this filter, from that I could find, it does not explicitly state that the variables are being corrected for volume, area or length. Documentation should be adjusted to state this. I finally had to create a hacky test, along with reading the code, to find what this filter does. Alan ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Integrate variable filter
Hi Alan, My question is how should the forces be added up? I'm inferring that you mean that the point/cell data array should just be added up. It seems odd to do it like this since small cells don't get weighted proportionally to big cells. If you wanted to do it like this though it seems like numpy in the python programmable filter would work fairly well for this (assuming this isn't in parallel AND with point data). I thought that maybe for point data you could use the Glyph filter with 2d box glyphs with a unit size and then use the integrate attributes filter. I didn't check if this gave the correct answer or not but theoretically it should work. Regards, Andy On Mon, May 19, 2014 at 9:43 PM, Scott, W Alan wasc...@sandia.gov wrote: Utkarsh/Berk/All, I have a user that wants to add up all of the forces in a dataset, not volume corrected. Is there a reason that the Integrate Variable filter can’t do this (default off)? My user just dumped the raw data as a .csv file and read it into excel, which worked. It would be nicer if ParaView did this internally. Also, having just poked through the documentation for this filter, from that I could find, it does not explicitly state that the variables are being corrected for volume, area or length. Documentation should be adjusted to state this. I finally had to create a hacky test, along with reading the code, to find what this filter does. Alan ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ 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