Bash Script for Directory Clean, Decomposition, and Reconstruction in OpenFOAM

@Runmin ZHAO  March 27, 2019
#!/bin/bash
cd ${0%/*} || exit 1

rm -rf processor* 0 post*
foamListTimes -rm

cp -ap 0.org 0

decomposePar
mpirun -np 16 potentialFoam -parallel
mpirun -np 16  simpleFoam -parallel

reconstructPar -latestTime

Add a New Comment