This repository has been archived on 2022-02-01. You can view files and clone it, but cannot push or open issues or pull requests.
openfoam_project/openfoam/artha/cleanCase

21 lines
392 B
Bash

#!/bin/bash
shopt -s extglob
directory=`pwd`
read -p "Clearing case. Are you sure? (y/N) " -n 1 -r
echo ' '
if ! [[ $REPLY =~ ^[Yy]$ ]]
then
exit
fi
if [ -d "./constant/polyMesh" ]; then
cd ./constant/polyMesh
rm -fr !(blockMeshDict)
cd $directory
fi
rm -fr *[0-9].[0-9]* [0-9] [1-9]* gaugesVOF gaugesP postProcessing processor*
rm -f *.log
#rm -f constant/turbulenceProperties