Updated pickle with input output arguments
This commit is contained in:
parent
56d77d98bc
commit
2fea19158f
2 changed files with 29 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Reference in a new issue