29 lines
522 B
Text
29 lines
522 B
Text
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
cp constant/turbulenceProperties_keps constant/turbulenceProperties
|
||
|
|
||
|
echo blockMesh meshing...
|
||
|
blockMesh #> blockMesh.log
|
||
|
|
||
|
echo snappyHexMesh meshing...
|
||
|
snappyHexMesh -overwrite #> snappyHexMesh.log
|
||
|
|
||
|
echo Preparing 0 folder...
|
||
|
cp -r 0.org/ 0
|
||
|
|
||
|
echo Setting the fields...
|
||
|
setFields #> setFields.log
|
||
|
|
||
|
#olaFlow
|
||
|
echo Decomposing domain...
|
||
|
decomposePar #> decomposePar.log
|
||
|
|
||
|
echo Running...
|
||
|
mpirun -np 4 olaFlow -parallel #> olaFlow.log
|
||
|
|
||
|
echo Reconstructing domain...
|
||
|
reconstructPar
|
||
|
echo Simulation complete
|