|
[Sponsors] |
Archiving and compressing FOAM time directories into one |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 20, 2021, 04:05 |
Archiving and compressing FOAM time directories into one
|
#1 |
New Member
VladJ
Join Date: Feb 2012
Location: Belgium
Posts: 18
Rep Power: 14 |
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! |
|
October 20, 2021, 12:47 |
|
#2 |
Senior Member
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 15 |
||
October 21, 2021, 12:17 |
|
#3 |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 668
Rep Power: 14 |
Try:
Code:
tar -rzvf NewTimes.tar.gz $(foamListTimes -withZero) Code:
tar -rzvf NewTimes.tar.gz [0-9]* |
|
October 21, 2021, 13:39 |
|
#4 |
New Member
VladJ
Join Date: Feb 2012
Location: Belgium
Posts: 18
Rep Power: 14 |
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. |
|
October 24, 2021, 13:02 |
|
#5 |
Senior Member
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 15 |
||
|
|