CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] pvpython: How to save several datasets at once? (https://www.cfd-online.com/Forums/paraview/218083-pvpython-how-save-several-datasets-once.html)

TeresaT June 7, 2019 05:44

pvpython: How to save several datasets at once?
 
Hello,

I am looking for a way to safe the data of several independent filters at once using paraview.simple
I just began programming with python, so please give me a hint even though the awnser might be obviously to you.

Best regards,
Terry
-------- More explanation:
I have a set of 1000 time steps (later more) of a few cfd simulations (reader: OpenFOAmReader) and need several data written to csv files:
-plotOverLlines (at least two)
-plotSelectionOverTime (at least two, exact number unknown)

I am able two save the data one after the other but it takes a lot of time and I would like to save the data (or collect the data and save it later) without reloading every time step for every filter.

So far i use SaveData(’./interfaceVelocity.csv’, proxy=slice1_1, Precision=10, WriteTimeSteps=1) for saving


Link to same post in paraview forums: https://discourse.paraview.org/t/pvp...s-at-once/2003

TeresaT June 7, 2019 09:50

The question has been awnsered here: Paraview Forum

Short: Function will be available in paraview 5.7 and it can be done already via scripting.


All times are GMT -4. The time now is 20:51.