CFD Online Discussion Forums

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

yohey March 15, 2012 12:43

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 05: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 07:43

Dr. Oshima

Thank you. It worked successfully.

Yohey


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