#!/bin/sh
cd ${0%/*} || exit 1    # Run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

# Mesh
runApplication blockMesh -dict $FOAM_TUTORIALS/resources/blockMesh/ballValve

# Create couples
runApplication createNonConformalCouples

# Decompose
runApplication decomposePar -cellProc

# Initialise the velocity field
runParallel potentialFoam -pName p_rgh

# Run
runParallel foamRun

# Reconstruct
runApplication reconstructPar -newTimes

#------------------------------------------------------------------------------
