CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] How to extract data from a single time step in paraview?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By foamiste

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 22, 2021, 20:58
Default How to extract data from a single time step in paraview?
  #1
Member
 
Ivan Nepomnyashchikh
Join Date: Sep 2019
Location: USA
Posts: 30
Blog Entries: 1
Rep Power: 6
nepomnyi is on a distinguished road
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 is offline   Reply With Quote

Old   September 29, 2021, 12:45
Default
  #2
Member
 
Ivan Nepomnyashchikh
Join Date: Sep 2019
Location: USA
Posts: 30
Blog Entries: 1
Rep Power: 6
nepomnyi is on a distinguished road
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.
nepomnyi is offline   Reply With Quote

Old   February 23, 2022, 03:51
Default
  #3
Senior Member
 
Asmaa
Join Date: Mar 2016
Posts: 102
Rep Power: 10
foamiste is on a distinguished road
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.
nepomnyi likes this.
foamiste is offline   Reply With Quote

Reply

Tags
openfoam 1.7.x, paraview 4.2


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script for pseudo-parallel usage of reconstructPar kwardle OpenFOAM Post-Processing 41 August 23, 2023 02:48
[solidMechanics] Support thread for "Solid Mechanics Solvers added to OpenFOAM Extend" bigphil OpenFOAM CC Toolkits for Fluid-Structure Interaction 686 December 22, 2022 09:10
Transient simulation not converging skabilan OpenFOAM Running, Solving & CFD 14 December 16, 2019 23:12
LES, Courant Number, Crash, Sudden Alhasan OpenFOAM Running, Solving & CFD 5 November 22, 2019 02:05
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03


All times are GMT -4. The time now is 01:52.