This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/validationSuite/incompressible/icoFoam/consistencyTest/cavity/Allrun

22 lines
600 B
Text
Raw Normal View History

#!/bin/sh
# Source tutorial run and clean functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
for j in 0.01 0.001 0.0001 0.00001
do
(
cp -r TemplateCase deltaT-$j
cd deltaT-$j
sed -i s/TimeStepSize/$j/g system/controlDict
outputTime=$(echo "scale=0;1/($j*100)" | bc)
sed -i s/ProbeOutputInterval/$outputTime/g system/controlDict
runApplication blockMesh
runApplication icoFoam
)
done
# Print out the converged pressure for all time steps for visual check whether
# the solution does not depend on the time step
tail -n 1 */probes/0/p