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

[OpenFOAM] Paraview problem: loading the VTK cellSets changes the time

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 17, 2018, 14:02
Default Paraview problem: loading the VTK cellSets changes the time
  #1
Senior Member
 
Join Date: Mar 2018
Posts: 115
Rep Power: 8
anon_q is on a distinguished road
Hello,
I modified the pimpleFoam solver in order to add a moving source term (using moving cellSet, ...etc).
Now in paraFoam, I can see the cellSets (by checking: include sets). The problem with this is I cannot visualize the velocity contours and the cellSets simultaneously. So I decided to convert the cellSets in each <timestep>/polyMesh/sets directory to VTK format:

Code:
for timeStep in $(foamListTimes); do foamToVTK -time $timeStep -cellSet myCellSets; done
The simulation time is 1 second with dt = 0.01 (so I have 100 timesteps).
Here is the issue that I encountered:
When I open the simulation case:
Code:
paraFoam
everything works fine (In paraview, the time is normal: there is 100-time steps as expected). But when I load the cellSets from the VTK folder (while the simulation is loaded in paraview), the total time steps in Paraview changes to 200. That is when I load the cellSets from the VTK folder instead of starting from 0 it starts from 100.

I hope you can understand my problem.

P.S: I tried to convert the simulation to VTK and that solves the issue, but I am asking why that happens?
anon_q is offline   Reply With Quote

Old   November 3, 2018, 21:53
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: I'm possibly late on this, but the trick is to load the same "casename.OpenFOAM" file twice within the same ParaView:
  1. In one entry, you choose the normal fields et al you want to see.
  2. In the second entry, you choose to only see the desired cellSets.
The separate VTK files do not have timing identification in them, therefore they don't match the same simulation timestamps as the case itself, e.g. you probably have time snapshots every 0.5s for 100s, which results in 200 VTK files, but the ".OpenFOAM" file is open in ParaView with the timestamp identification and only goes up to 100s.
anon_q likes this.
__________________
wyldckat is offline   Reply With Quote

Reply


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
[General] Extracting ParaView Data into Python Arrays Jeffzda ParaView 30 November 6, 2023 22:00
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 6, 2023 00:48
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 06:28
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Low Mixing time Problem Mavier CFX 5 April 29, 2013 01:00


All times are GMT -4. The time now is 18:23.