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
Vuko Vukcevic f327093a69 Cavity verification test case for icoFoam
icoFoam/consistencyTest/cavity: the test case serves to verify the time and
under-relaxation consistent formulation which produces the solution that does
not depend on time step size and under-relaxation factor.
Author: Vuko Vukcevic
2017-01-17 16:37:50 +01: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