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
Vuko Vukcevic 1e8dd2ecb1 Validation suite update:
Distinguishing between validation and verification cases: small changes in the
directory structure
2017-04-27 15:00:44 +02:00

21 lines
613 B
Bash
Executable file

#!/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