CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Cleaning out timesteps in processor??? directories

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 15, 2020, 06:18
Default Cleaning out timesteps in processor??? directories
  #1
Senior Member
 
Gerry Kan's Avatar
 
Gerry Kan
Join Date: May 2016
Posts: 348
Rep Power: 10
Gerry Kan is on a distinguished road
Howdy Foamers:

I am running a job with about 400+ subdomains.

Sometimes when the run went wrong and I want to start the run from scratch, I need to remove the processor??? directories in order to (quickly) remove the timestep data, and rebuild them using decomposePar. This actually takes quite some time because of the number of subdomains involved.

So this begs the question, whether there is a more convenient way to just remove the timestep files within the processor??? directories?

Thanks in advance, Gerry.
Gerry Kan is offline   Reply With Quote

Old   December 15, 2020, 09:01
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
I would not delete `processor*` directories if you do not change the mesh.

- If you want to replace the `processor*/0` directory from the new `0.orig` directory:
-- `rm -rf processor*/<time> && restore0Dir -processor`
-- You need to source `/bin/tools/RunFunctions` to use `restore0Dir`.
- If you want to decompose fields only, and not the existing mesh:
-- `decomposePar -fields`
- If you want to perform decompositions in parallel:
-- `mpirun -np X redistributePar -decompose -parallel`

I am sure the number of methods reducing the computational effort can further be increased.

Hope it helps a bit.
HPE 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
Write field data at a few specific timesteps gary7 OpenFOAM 5 March 11, 2020 12:31
How to load only few timesteps from all timesteps that have been loaded in CFD-Post? vuongcongdat FLUENT 2 August 1, 2019 23:46
Transient analysis - timesteps vs iteration Jiricbeng CFX 6 July 14, 2017 06:35
Problem with maximum number of Timesteps Phantalor CFX 5 July 13, 2013 07:15
Adaptive Timesteps swiss_zhang CFX 8 August 30, 2011 06:51


All times are GMT -4. The time now is 01:38.