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

22 lines
392 B
Text
Raw Permalink Normal View History

2022-01-23 12:27:04 +01:00
#!/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