27 lines
479 B
Text
27 lines
479 B
Text
|
#!/bin/bash
|
||
|
|
||
|
mkdir -p 0
|
||
|
|
||
|
cp constant/turbulenceProperties_sst constant/turbulenceProperties
|
||
|
|
||
|
echo blockMesh meshing...
|
||
|
blockMesh #> blockMesh.log
|
||
|
|
||
|
echo snappyHexMesh meshing...
|
||
|
snappyHexMesh -overwrite #> snappyHexMesh.log
|
||
|
|
||
|
echo Preparing 0 folder...
|
||
|
rm -fr 0
|
||
|
cp -r 0.org 0
|
||
|
|
||
|
echo Setting the fields...
|
||
|
setFields #> setFields.log
|
||
|
|
||
|
echo Decomposing domain...
|
||
|
decomposePar #> decomposePar.log
|
||
|
|
||
|
echo Running...
|
||
|
mpirun -np 4 olaFlow -parallel #> olaFlow.log
|
||
|
|
||
|
echo Simulation complete
|