Files
Henry Weller a59351c64f test: Refactored transposing of plot data into function bin/tools/RunFunctions::transposeFile()
which simplifies the reactingEulerFoam populationBalance test cases.

Patch contributed by Institute of Fluid Dynamics, Helmholtz-Zentrum
Dresden - Rossendorf (HZDR)
2018-03-23 14:24:50 +00:00

22 lines
537 B
Bash
Executable File

#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Set application name
application=`getApplication`
runApplication blockMesh
runApplication $application
# Get and transpose results
cp postProcessing/numberDensity/0/numberDensity.dat .
sed -i -e '1d' -e 's/# /#/g' numberDensity.dat
transposeFile numberDensity.dat > numberDensity.transposed.dat
# Create plot
./plot
#------------------------------------------------------------------------------