CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] How to extract data from a single time step in paraview? (https://www.cfd-online.com/Forums/paraview/238616-how-extract-data-single-time-step-paraview.html)

nepomnyi September 22, 2021 20:58

How to extract data from a single time step in paraview?
 
Hello dear CFD community.


I've done an OpenFOAM simulation. I've got a lot of time steps. I go to my case folder and type paraFoam. This command loads all the time steps into the Paraview and then opens a new Paraview window.


Question: how do I load only one time step, not all of them?


Thank you in advance.


Ivan

nepomnyi September 29, 2021 12:45

If anybody is interested, we figured two options how to load only one time step.


I raised this question in the discussion under this post. The suggested solution is to copy your case folder keeping only one time step. Then just run paraFoam from within this copied folder and you get you results at one time step only.


Another solution suggested in that post and repeated under my post on Research Gate, is to use foamToVTK -time $100 command where 100 is the desired time step (it can be any, e.g., 50 or any other time step you want). Still, I haven't figured how to use this command properly. Every time I use it, I get all the time steps loaded not just one.
Just to clarify: I type foamToVTK -time $100 from within my case directory, then I type paraview & to launch a Paraview window. Then I go to the Paraview window and load my dummy .foam file. Then I would notice that all my time steps are loaded, not just the 100th step as I want.

foamiste February 23, 2022 03:51

Hello, here is how to load only the steps of your interest:

STEP 1: foamToVTK -time 100 (or whatever is the time step of your interest)
STEP 2: open paraview
STEP 3: in paraview click in open and choose: VTK/*_100.VTK

Following these steps, you should have only the steps of your interest loaded.


The mistake you made is you download .foam file instead of the generated .vtk file.


All times are GMT -4. The time now is 11:27.