Updated pickle with input output arguments

This commit is contained in:
Edgar P. Burkhart 2022-05-03 11:13:27 +02:00
parent 56d77d98bc
commit 2fea19158f
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 29 additions and 15 deletions

View file

@ -1,10 +1,12 @@
#!/usr/bin/env sh
echo START
export inp="of"
read -p "Output: " out
read -p "Case: " out
export out_of="out_of_$out"
export out_post="out_post_$out"
cp -r --reflink $inp $out
pushd $out
cp -r --reflink $inp $out_of
pushd $out_of
source /opt/OpenFOAM/OpenFOAM-9/etc/bashrc
mkdir log
echo Generating mesh
@ -17,10 +19,10 @@ setFields > log/setFields.log
popd
echo Converting swash output to initial condition
python -m processing.sws_ola -o $out
python -m processing.sws_ola -o $out_of
echo Converting swash output to boundary condition
python -m processing.sws_wavedict_paddle -o $out
pushd $out
python -m processing.sws_wavedict_paddle -o $out_of
pushd $out_of
echo Generating parallel cases
decomposePar > log/decomposePar.log
@ -36,6 +38,6 @@ postProcess -func graphUniform > log/postProcess.log
popd
echo Pickling Olaflow output
python -m processing.pickle -o $out
python -m processing.pickle -i $out_of -o $out_post
echo END