Compute average quantities for each cross-section

Hello,
I can presently compute the average quantities for each cross-section manually. It would be a tedious process to do the same for thousands of cross-sections. Is there a way to automate the process for each cross-section using python scripting or any other process?

Thank you.

Best regards,

Abhijeet C.

Hi @Abhijeet_Chodankar

Definitely !

First step would be to generate a python trace (using Tools → PythonTrace) when you are using ParaView then to try to use that to automatize your workflow.

Doc: ParaView’s Python documentation! — ParaView/Python 5.11.0-RC2-294-gb5ba73caaa documentation

Best,

Hello @mwestphal

I am unable to track the PythonTrace command in tools options. I observe the start trace option in it. I am using Paraview 5.11.0 RC2 version. I am not a python user. I would really appreciate if you could share an example to work around this problem.

Thank you.

Best regards,

Abhijeet C.

  • run ParaView
  • Tools → Start trace
  • Do things in GUI
  • Tools → Stop trace
  • File → SaveAsMacro
  • Reset Session
  • Press the new macro button

hth

Hello @mwestphal ,
I followed the procedure. It worked for me.

Thank you.

Yours sincerely,

Abhijeet C.

1 Like