Skip to content

Fluid-Mechanics-Lund-University/ZYfoamListTimes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZYfoamListTimes

OpenFOAM version

Usage

supported for both collated and uncollated fileHandler

get time list from processor*:

ZYfoamListTimes -processor

rm every time directory in processor*:

ZYfoamListTimes -processor -rm

advanced usage

parallelly reconstructPar!

You can run below commands to accelerate your reconstructPar 6 times faster.

timeList=`ZYfoamListTimes -processor`
for time in $timeList; do
    nCores=6
    joblist=($(jobs -p))
    while (( ${#joblist[*]} >= "$nCores" ))
    do
        # When the job limit is reached wait for a job to finish
        wait -n
        joblist=($(jobs -p))
    done
    reconstructPar -time $time >log.$time&
done

About

foamListTimes, support for collated fileHandler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%