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, 07:18
Default Cleaning out timesteps in processor??? directories
  #1
Senior Member
 
Gerry Kan's Avatar
 
Gerry Kan
Join Date: May 2016
Posts: 376
Rep Power: 11
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, 10: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: 931
Rep Power: 13
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 13:31
How to load only few timesteps from all timesteps that have been loaded in CFD-Post? vuongcongdat FLUENT 2 August 2, 2019 00:46
Transient analysis - timesteps vs iteration Jiricbeng CFX 6 July 14, 2017 07:35
Problem with maximum number of Timesteps Phantalor CFX 5 July 13, 2013 08:15
Adaptive Timesteps swiss_zhang CFX 8 August 30, 2011 07:51


All times are GMT -4. The time now is 00:59.