mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Patch provided by Bruno Santos Resolves patch application request http://www.openfoam.org/mantisbt/view.php?id=2015
38 lines
794 B
Bash
Executable File
38 lines
794 B
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
|
|
|
# Source tutorial run functions
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
\cp system/controlDict.flow system/controlDict
|
|
|
|
# Set application name
|
|
application=$(getApplication)
|
|
|
|
\rm -rf 0
|
|
|
|
runApplication createBaffles -overwrite
|
|
runApplication mergeOrSplitBaffles -split -overwrite
|
|
|
|
# Get rid of zero faced patches
|
|
runApplication createPatch -overwrite
|
|
|
|
# Copy fields after meshing to avoind the generation of unnecessary patch fields
|
|
\cp -r 0.org 0
|
|
|
|
# Initialize alpha
|
|
runApplication setFields
|
|
|
|
# Decompose
|
|
runApplication -s main \
|
|
decomposePar -force
|
|
|
|
# Run
|
|
runParallel $application
|
|
|
|
# Reconstruct
|
|
runApplication reconstructPar -noFunctionObjects
|
|
|
|
|
|
#------------------------------------------------------------------------------
|