CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[Other] Remove timesteps/fields from decomposed cases with foamClean

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

LinkBack Thread Tools Search this Thread Display Modes
Old   August 13, 2021, 14:07
Default Remove timesteps/fields from decomposed cases with foamClean
New Member
Dmitrii Turygin
Join Date: Aug 2021
Posts: 2
Rep Power: 0
dturygin is on a distinguished road
Hello everyone!

I have created an openFOAM utility called foamClean written in python to manage timesteps and fields in a decomposed case. Some common use cases:
  1. Reset the case to start over by deleting all timesteps from all processor folders except for 0.000e+00 directory
  2. Save space by removing all fields except alpha1 from all processorN/timestepT directories. If one is just interested in making an animation they might not be interested in all the fields, and modifying solver's output can be challenging.
I made it to be flexible to serve many needs. foamClean provides ample information about which timesteps will be affected and which fields will be kept or removed. You can take a look at the GitHub page for more details. I hope you find it useful!
dturygin is offline   Reply With Quote

Old   May 2, 2022, 06:34
Join Date: Aug 2014
Location: Italy
Posts: 48
Rep Power: 10
Artur.Ant is on a distinguished road
Hello to every one,
Great Job.
For anyone interested in the topic:
OF has its utility to manage the files and timeSteps within the processor's folder.
Here are some links that introduce the subject.
Have an excellent simulation!

Delete files in different processors in Parallel running

How to delete the same time folder in different processors folder
Artur.Ant is offline   Reply With Quote


foamclean, openfoam

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
[OpenFOAM] decomposed case reader in Paraview cnsidero ParaView 2 June 23, 2011 08:47
How to speed up the simulation of a large amount of similar steady state cases tss Main CFD Forum 4 November 5, 2010 15:36
Reconstruction of decomposed dynamic mesh cases david OpenFOAM Post-Processing 2 January 9, 2009 08:19
Directory constructions of complex cases 7islands OpenFOAM 2 August 26, 2008 06:25
[OpenFOAM] ParaFoam OF 14 decomposed cases philippose ParaView 4 April 18, 2007 06:17

All times are GMT -4. The time now is 22:54.