Hi Aron I tried your method and created the trace. When I go to the python shell and run that python macro, it says that the custom filter I had created does not exist. My custom filter consists of 2 calculator filters, each calculating different things. To create that custom filter, I selected both the calculators on the pipeline browser, right click-> create custom filter->finish.
To create my python macro, I first load up my .vtu files in the pipeline browser, hit apply, then I start trace. I add my custom filter, follow Kenneth's procedure to obtain the plot over time, then I hit Stop trace. Then in the script generated, file->save as macro. On Fri, Jan 12, 2018 at 9:31 AM, Aron Helser <aron.hel...@kitware.com> wrote: > Hi Jairaj, > This is exactly what the 'trace' and python macro functions are for. Take > a look in the Tools menu, and choose Start Trace. If you check the 'show > incremental trace' button you can see it's recording a python script as you > take actions in the GUI. When you've completed your steps, you can choose > 'save as python macro' and you'll get a button that can repeat the steps. > > To go more in-depth, look for information on python scripting in Paraview! > Regards, > Aron > > On Thu, Jan 11, 2018 at 7:47 PM, Jairaj Mathur <hero.jai...@gmail.com> > wrote: > >> Hi Ken >> >> This is EXACTLY what I wanted! Thank you so much. Is it possible to >> create a custom filter to do this, so that I dont have to follow these >> steps? >> >> Jairaj Mathur >> Mechanical Engineering >> Washington University in St Louis >> >> On Jan 8, 2018 2:23 PM, "Moreland, Kenneth" <kmo...@sandia.gov> wrote: >> >>> Jairaj, >>> >>> >>> >>> I’m not sure what exactly you mean by “the threshold,” but there are >>> many ways to plot the average of a threshold-selection of cells over time. >>> >>> >>> >>> The most straightforward way is to open up the Find Data dialog box, >>> select the cells you want to plot, and then create a Plot Selection Over >>> Time filter. Specifically, here are steps that will do such a plot: >>> >>> >>> >>> 1. Open your data in ParaView. Apply. >>> 2. Open the Find Data dialog box (Edit → Find Data or click the >>> toolbar button on the top toolbar). >>> 3. In the top row, set the left combo box to either “Cell(s)” or >>> “Point(s)” depending on whether your data is cell or point data. In the >>> longer combo box to the right, make sure that your data is selected. >>> 4. In the second row, set the left combo box to the field you want >>> to threshold on. Change the next combo box to say “is between”. This will >>> create to text edit boxes where you enter the minimum and maximum values >>> of >>> your threshold range. >>> 5. Click the “Run Selection Query” button. This will select all >>> cells or points matching your threshold. >>> 6. Click the “Plot Selection Over Time” at the bottom of the Find >>> Data dialog box. This will create a filter in the pipeline browser. >>> 7. Close the Find Data dialog box and click the Apply button. >>> >>> >>> >>> -Ken >>> >>> >>> >>> *From:* ParaView [mailto:paraview-boun...@paraview.org] *On Behalf Of >>> *Jairaj >>> Mathur >>> *Sent:* Friday, January 5, 2018 4:53 PM >>> *To:* paraview <paraview@paraview.org> >>> *Subject:* [EXTERNAL] [Paraview] Plot selection over time for threshold >>> >>> >>> >>> Dear all >>> >>> >>> >>> How can I plot the average over time of only the threshold cells? It >>> should only average the cells that are within the threshold. >>> >>> >>> >>> Thanks a lot! >>> >>> >>> >>> -- >>> >>> Jairaj Mathur, >>> Mechanical Engineering >>> >>> Washington University in St Louis >>> >>> >>> >> >> _______________________________________________ >> 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 >> >> > -- Jairaj Mathur, Mechanical Engineering Washington University in St Louis
_______________________________________________ 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