Re: [Paraview] Calculating time-averaged shear stress

2017-10-23 Thread Shuhao Wu
stou wrote: Hi Shuhao, Thank you for your response. Yes, I found the TemporalStatistics filter as well. Could you please let me know how I can save it back as a .vtu file? Best Regards, Parastou From: ParaView <paraview-boun...@paraview.org> on behalf of

Re: [Paraview] Calculating time-averaged shear stress

2017-10-23 Thread Shuhao Wu
I believe you're looking for the TemporalStatistics filter. Specifically what you want maybe something along the lines of: temporal_statistics = TemporalStatistics(Input=vtk_data) temporal_statistics.ComputeAverage = 1 temporal_statistics.ComputeMinimum = 0

[Paraview] Take spatial average on slice along a direction with a single filter

2017-09-11 Thread Shuhao Wu
Hello all, What I want to do is to take a bunch of X slices in my domain and compute the average on that slice for a particular quantity. I want to then be able to plot this as a line plot (X vs average quantity) and also find the coordinate X of a specific average quantity. I'm having

[Paraview] Dialog box for Macros?

2017-09-07 Thread Shuhao Wu
Hello, I would like to create a dialog box for my macro that takes a screenshot for each timestep. I want to be able to specify a file name prefix and the number of timesteps to screenshot. I can't figure out how to import PyQT (tried import PyQt4, PyQt5, PySide). Am I doing something wrong?

[Paraview] Annotation Arrows?

2017-09-05 Thread Shuhao Wu
Hello all, Does anyone know of a way to draw an arrow attached to the view rather than the 3D arrow source? The use of this is to point at a particular structure in the plot and label it with some text (which can be attached to an arbitrary location). Does this functionality exist in

Re: [Paraview] Extract region enclosed by isocontour surface and slice

2017-09-05 Thread Shuhao Wu
That works great! Thanks! Shuhao On 2017-09-01 12:45 PM, Ross Gardiner wrote: Not sure. The Glyph filter might work? - Ross On 01/09/2017, 17:10, "Shuhao Wu" <shu...@shuhaowu.com> wrote: Thanks for the help! That worked like a charm. One more question: afte

Re: [Paraview] Extract region enclosed by isocontour surface and slice

2017-09-01 Thread Shuhao Wu
, "Shuhao Wu" <shu...@shuhaowu.com> wrote: Hello all, I'm trying to find a maximum value in a region that's enclosed by an contour. I've attached an example of this, where the region of interest is within the black box and the grey surface. Of course, I would f

[Paraview] Paraview pipeline error in python

2017-08-11 Thread Shuhao Wu
Hello, Is there a way to get errors that occurred while updating a pipeline in Python? I noticed that if I missed the option of GradientOfUnstructuredDataSet.ScalarArray, paraview will emit an error to STDOUT when I call UpdatePipeline. However, my python code continues to execute and then

Re: [Paraview] Coloring isocontour by the coordinates outputted from a Transform filter and some other questions

2017-07-09 Thread Shuhao Wu
, ymin, ymax, zmin, zmax] and 1 inside it. Thanks, Cory On Fri, Jul 7, 2017 at 10:51 AM, Shuhao Wu <shu...@shuhaowu.com> wrote: Is there documentation on how the Box clip type work? I'm not quite sure how to do the math to convert the threshold values to the position/scale values. Thanks, S

Re: [Paraview] Coloring isocontour by the coordinates outputted from a Transform filter and some other questions

2017-07-07 Thread Shuhao Wu
Is there documentation on how the Box clip type work? I'm not quite sure how to do the math to convert the threshold values to the position/scale values. Thanks, Shuhao On 2017-07-03 10:03 AM, Cory Quammen wrote: On Tue, Jun 20, 2017 at 9:33 PM, Shuhao Wu <shu...@shuhaowu.com> wrote:

[Paraview] Paraview Python best practise?

2017-06-23 Thread Shuhao Wu
Hello, I was wondering if there are any sort of general best practise when writing Python based Paraview scripts for visualizations. From the materials I've gathered, everything feels very much like mutating a global state machine, which might not be the best if you want to turn certain

Re: [Paraview] Coloring isocontour by the coordinates outputted from a Transform filter and some other questions

2017-06-20 Thread Shuhao Wu
Shuhao, Welcome to ParaView! On Sun, Jun 4, 2017 at 6:33 PM, Shuhao Wu <shu...@shuhaowu.com> wrote: Hello all, Is there a way to color an isocontour via the coordinates outputted from a Transform filter? I'm using the Transform filter to "normalize" my coordinate systems

[Paraview] Coloring isocontour by the coordinates outputted from a Transform filter and some other questions

2017-06-04 Thread Shuhao Wu
Hello all, Is there a way to color an isocontour via the coordinates outputted from a Transform filter? I'm using the Transform filter to "normalize" my coordinate systems and I want to display the isocontour colored by the normalized Y coordinates. Do I have to create yet another Calculator