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/validationAndVerificationSuite/verification/incompressible/simpleFoam/consistencyTest/cavity/Allrun

22 lines
613 B
Text
Raw Normal View History

#!/bin/sh
# Source tutorial run and clean functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
for j in 0.8 0.7 0.6 0.5 0.4 0.3
do
(
cp -r TemplateCase alphaU-$j
cd alphaU-$j
sed -i s/URelaxFactor/$j/g system/fvSolution
pRelaxFactor=$(echo "scale=1;1-$j" | bc)
sed -i s/pRelaxFactor/$pRelaxFactor/g system/fvSolution
runApplication blockMesh
runApplication simpleFoam
)
done
# Print out the converged pressure for all relaxation factors for visual check
# whether the solution does not depend on the under-relaxation factors
tail -n 1 */probes/0/p