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/icoFoam/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
600 B
Bash
Executable file

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