Updated run_ola.sh
This commit is contained in:
parent
61b22a326f
commit
6202f32499
1 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue