1
Fork 0

Updated run_ola.sh

This commit is contained in:
Edgar P. Burkhart 2022-04-12 10:29:37 +02:00
parent 61b22a326f
commit 6202f32499
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -4,7 +4,7 @@ export inp="of"
read -p "Output: " out
cp -r --reflink $inp $out
cd $out
pushd $out
source /opt/OpenFOAM/OpenFOAM-9/etc/bashrc
mkdir log
echo Generating mesh
@ -15,12 +15,12 @@ cp -r 0.org 0
echo Setting initial fields
setFields > log/setFields.log
pushd ..
popd
echo Converting swash output to initial condition
python -m processing.sws_ola -o $out
echo Converting swash output to boundary condition
python -m processing.sws_wavedict_paddle -o $out
popd
pushd $out
echo Generating parallel cases
decomposePar > log/decomposePar.log
@ -28,5 +28,10 @@ echo Running model
mpirun -np 4 olaFlow -parallel > log/olaFlow.log
echo Merging parallel cases
reconstructPar > log/reconstructPar.log
echo Removing parallel cases
rm -r processor*
popd
7z a $out.7z $out
echo END