b6cf22304f
First validation test case: backwardFacingStep with simpleFoam, comparison of velocity profiles and pressure coefficient with experimental data. Author: Robert Keser, Merge: Vuko Vukcevic
25 lines
595 B
Bash
Executable file
25 lines
595 B
Bash
Executable file
#!/bin/sh
|
|
# Source tutorial run functions
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
application=simpleFoam
|
|
|
|
runApplication blockMesh
|
|
runApplication potentialFoam
|
|
runApplication $application
|
|
runApplication sample -latestTime
|
|
|
|
timeStep=$(grep "^endTime" system/controlDict | awk '{ print $2 }' | sed 's/;//g')
|
|
|
|
cp -v surfaces/$timeStep/p_lowerWall.raw validationData/
|
|
cp -v sets/$timeStep/profile_?_U.xy validationData/
|
|
|
|
./validationData/gnuplot
|
|
|
|
mkdir -v validationResults
|
|
|
|
mv -v *.png validationResults/
|
|
|
|
cp -v validationData/BFSLines.pdf validationResults/
|
|
|
|
gnome-open validationResults/Cp.png
|