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

merge vof_spray.out file using catc script

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 4, 2022, 03:33
Post merge vof_spray.out file using catc script
  #1
New Member
 
Aman Kumar
Join Date: May 2022
Posts: 2
Rep Power: 0
amankumar7 is on a distinguished road
Dear,


I'm trying to merge two vof_spray.out file ( created due to 2 restart) using linux catc script.



I edited the file name in catc script line 121.



120 # Files with unknown lines of headers:
121 set files_unknown = ( vof_spray )



Since, vof_spray.out doesn't have header like other output files, it merges file with some loss of data. Also, while running simulation using merged file, I get following error -

in vof_spray.dat. Cell_Count should be followed by an integer

Is there a fast way to merge this big file?



Thanks
amankumar7 is offline   Reply With Quote

Old   May 20, 2022, 19:25
Default
  #2
New Member
 
psrikanth's Avatar
 
Praveen Srikanth
Join Date: May 2021
Location: Convergent Science, Madison, WI
Posts: 19
Rep Power: 3
psrikanth is on a distinguished road
Hi,

The vof_spray.out file has two lines of header (the first two lines which are commented out in the file). You could either change the catc script accordingly. I am not sure how the catc script would handle the additional lines at the start of each time in vof_spray.out. Or if you are a linux user, you could try to manually merge those files with sed (to remove the first two lines from restart outputs) and cat (to combine the files).

Praveen
psrikanth is offline   Reply With Quote

Old   September 22, 2022, 22:48
Default
  #3
New Member
 
Aman Kumar
Join Date: May 2022
Posts: 2
Rep Power: 0
amankumar7 is on a distinguished road
Thanks Praveen for your response.

Sorry about letting you know lately but I had merged all vof_spray.out files manually using linux command.

For someone who's trying to do this :
  • Go to the line from where you want to delete then, Press d then shift+g
  • cat vof_spray1.out >> vof_spray.out
  • cat vof_spray2.out >> vof_spray.out
amankumar7 is offline   Reply With Quote

Reply

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
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 10:07
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 22:53
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 17:02
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24


All times are GMT -4. The time now is 15:09.