You should use the last 3.10 binary version. Numpy is embedded in the
pvpython = python included in the binary release.
After that, check out the part of the manual user, available in the binary
package of the 3.10, talking about the programmable filter. (p.60)

Then you will write something like that in the programmable filter, after
having cut your cylinder with the plane (for a simple arithmetic averaging,
that certainly doesn't fit to your situation)

array
= inputs[0].PointData[NameOfYourPressureArray]

print numpy.mean(array)


Le 9 mai 2011 14:01, Vinay Mahajan <[email protected]> a écrit :

> I am using version 3.8 of paraview.
>
>
> 2011/5/9 Aurélien Marsan <[email protected]>
>
>> That's not a filter. That is a python library you can use inside the
>> python programmable filter in Paraview.
>> Which version of Paraview are you using ?
>>
>> Le 9 mai 2011 13:43, Vinay Mahajan <[email protected]> a écrit :
>>
>> Hi Aurélien,
>>>
>>> Can you get me the link from where i can download the numpy filter?
>>> Thanks.
>>>
>>> Regards,
>>>
>>>
>>> 2011/5/9 Aurélien Marsan <[email protected]>
>>>
>>>> Hi,
>>>>
>>>> This can be done with the python programmable filter, using numpy and,
>>>> for plotting, matplotlib for example.
>>>>
>>>> Regards,
>>>>
>>>> Aurélien
>>>>
>>>>   2011/4/27 Vinay Mahajan <[email protected]>
>>>>
>>>>>  Dear all,
>>>>>
>>>>> I am simulation 3D cylindrical column. I want to plot a graph of
>>>>> Pressure Vs Time at a particular height in the column. I want average data
>>>>> of pressure at that height. Any idea how this can be done?
>>>>>
>>>>> Regards,
>>>>> --
>>>>> Vinay Mahajan
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Vinay Mahajan
>>>
>>>
>>>
>>>
>>
>
>
> --
> Vinay Mahajan
>
>
>
>
_______________________________________________
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

Reply via email to