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

Archiving and compressing FOAM time directories into one

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Tobermory

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 20, 2021, 04:05
Default Archiving and compressing FOAM time directories into one
  #1
New Member
 
VladJ
Join Date: Feb 2012
Location: Belgium
Posts: 18
Rep Power: 14
kingeorge is on a distinguished road
Hello there.



I am doing calculations in the cloud with OpenFOAM dev and only the command line is available for communication with the cloud. Since the remote visualization with Paraview is not that smooth, I would like to download only reconstructed time directories to my local computer. To do that I was gonna pipe the output of the FoamListTimes to the "tar czf" and collect and compress all the new time directories so it is easy to download to my machine and add to the already existing time directories.



Simple piping "foamListTimes | tar -rvf > NewTimes.tar.gz" does not work . I would appreciate if someone has done this before and is willing to suggest a way for how to do this in a correct and elegant way.



Looking forward to some feedback on this one.



Thanks in advance!
kingeorge is offline   Reply With Quote

Old   October 20, 2021, 12:47
Default
  #2
Senior Member
 
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 15
adhiraj is on a distinguished road
Quote:
Originally Posted by kingeorge View Post
Since the remote visualization with Paraview is not that smooth, I would like to download only reconstructed time directories to my local computer.
Just curious, why is this not working?
adhiraj is offline   Reply With Quote

Old   October 21, 2021, 12:17
Default
  #3
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 668
Rep Power: 14
Tobermory will become famous soon enough
Try:

Code:
tar -rzvf NewTimes.tar.gz $(foamListTimes -withZero)
or even simpler:

Code:
tar -rzvf NewTimes.tar.gz [0-9]*
kingeorge likes this.
Tobermory is online now   Reply With Quote

Old   October 21, 2021, 13:39
Default
  #4
New Member
 
VladJ
Join Date: Feb 2012
Location: Belgium
Posts: 18
Rep Power: 14
kingeorge is on a distinguished road
Quote:
Originally Posted by adhiraj View Post
Just curious, why is this not working?

The connection to the cloud is not that good and I never managed to launch paraview remotely. I am all new to this cloud computing with OpenFOAM, maybe I am doing something wrong. Downloading the data and doing post-processing locally is a good option at the moment.
kingeorge is offline   Reply With Quote

Old   October 24, 2021, 13:02
Default
  #5
Senior Member
 
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 15
adhiraj is on a distinguished road
Quote:
Originally Posted by kingeorge View Post
The connection to the cloud is not that good and I never managed to launch paraview remotely.
Did you try to use ParaView in client-server mode? I found it very useful ever since I started working from home. Maybe you can look into it?
adhiraj 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



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