New olaflow run processus, includeing paddle boundary condition

This commit is contained in:
Edgar P. Burkhart 2022-04-11 16:06:36 +02:00
parent 1506fd06a1
commit 02c8586672
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
12 changed files with 2671 additions and 20 deletions

32
olaflow/run_ola.sh Executable file
View file

@ -0,0 +1,32 @@
#!/usr/bin/env sh
echo START
export inp="of"
read -p "Output: " out
cp -r --reflink $inp $out
cd $out
source /opt/OpenFOAM/OpenFOAM-9/etc/bashrc
mkdir log
echo Generating mesh
blockMesh > log/blockMesh.log
echo Refining mesh
snappyHexMesh -overwrite > log/snappyHexMesh.log
cp -r 0.org 0
echo Setting initial fields
setFields > log/setFields.log
pushd ..
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
echo Generating parallel cases
decomposePar > log/decomposePar.log
echo Running model
mpirun -np 4 olaFlow -parallel > log/olaFlow.log
echo Merging parallel cases
reconstructPar > log/reconstructPar.log
echo END