CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

reconstructPar | Getting time folder names as integers instead of times

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By tomf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 15, 2022, 06:33
Question reconstructPar | Getting time folder names as integers instead of times
  #1
New Member
 
Ahsan
Join Date: Nov 2019
Location: Bologna, Italy
Posts: 27
Rep Power: 7
mahsankhan is on a distinguished road
Hello Everyone,


I hope everyone is having a good day.


I wanted to ask if there is any way through which we can generate the time folders as integers, without manually renaming the time folders.

I ask this because I have two codes running in integration. Where OpenFOAM produces time steps as 0.05, 0.1, 0.15, 0.2, 0.25, ... The other code is producing the corresponding steps as 1, 2, 3, 4, 5, ...

So the problem is, when I load the .foam file in ParaView and the VTKs from the other code, they do not sync correctly due to the difference in time names.

Is there any way I can generate the folder names as integers, or to force ParaView to correspond:
OpenFOAM --> External Code
0.05 --> 1
0.1 --> 2
0.15 --> 3
0.2 --> 4
and so on...
mahsankhan is offline   Reply With Quote

Old   July 18, 2022, 06:47
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 646
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi,

I think the ParaView filter Temporal Shift Scale may be what you need.

Best Regards,
Tom
Yann likes this.
tomf is offline   Reply With Quote

Old   July 19, 2022, 05:12
Smile Thanks a bunch!!!
  #3
New Member
 
Ahsan
Join Date: Nov 2019
Location: Bologna, Italy
Posts: 27
Rep Power: 7
mahsankhan is on a distinguished road
Thanks a lot!!!
That worked like a charm.

Quote:
Originally Posted by tomf View Post
Hi,

I think the ParaView filter Temporal Shift Scale may be what you need.

Best Regards,
Tom
mahsankhan is offline   Reply With Quote

Reply

Tags
openfoam, paraview, postprocess, reconstuctpar, time steps

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 42 May 8, 2024 00:17
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 05:13
laplacianFoam with source term Herwig OpenFOAM Running, Solving & CFD 17 November 19, 2019 14:47
pressure in incompressible solvers e.g. simpleFoam chrizzl OpenFOAM Running, Solving & CFD 13 March 28, 2017 06:49
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 05:03


All times are GMT -4. The time now is 17:46.