CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   ParaView (http://www.cfd-online.com/Forums/paraview/)
-   -   [ParaView] SurfaceFlow filter in python script (http://www.cfd-online.com/Forums/paraview/98660-paraview-surfaceflow-filter-python-script.html)

yohey March 15, 2012 13:43

[ParaView] SurfaceFlow filter in python script
 
1 Attachment(s)
Hi.

I'd like to calculate SurfaceFlow in batch mode.

The attached case runs correctly in ParaView GUI (Run Script).
But in batch mode, with pvpython or pvbatch, I get empty output.

Would anyone help me on this problem?

I'm using ParaView 3.12.0 + Python 2.6.6.


Sincerely.

Yohey

7islands March 16, 2012 06:25

Hi Yohey

Giving answer without knowing exactly why it works only for the GUI but removing the UpdatePipeline() calls except the last one should work. Typically you only need UpdatePipeline() (if any is required) to the last object in the pipeline since ParaView's demand-driven pipeline mechanism propagates the update pipeline request upstream.

T

yohey March 18, 2012 08:43

Dr. Oshima

Thank you. It worked successfully.

Yohey


All times are GMT -4. The time now is 18:36.