mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: mesh: clean up tutorials
This commit is contained in:
committed by
Andrew Heather
parent
6120e13d29
commit
3a858ac682
@ -3,10 +3,29 @@ cd "${0%/*}" || exit # Run from this directory
|
||||
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Generate mesh
|
||||
./Allrun-pre
|
||||
./Allrun.pre
|
||||
|
||||
# Run simulation
|
||||
./Allrun-simulation
|
||||
cp -f system/controlDict.flow system/controlDict
|
||||
|
||||
rm -rf 0
|
||||
|
||||
runApplication createBaffles -overwrite
|
||||
|
||||
runApplication mergeOrSplitBaffles -split -overwrite
|
||||
|
||||
# Get rid of zero faced patches
|
||||
runApplication createPatch -overwrite
|
||||
|
||||
# Copy fields after meshing to avoid the generation of unnecessary patch fields
|
||||
restore0Dir
|
||||
|
||||
# Initialize alpha
|
||||
runApplication setFields
|
||||
|
||||
runApplication -s main decomposePar -force
|
||||
|
||||
runParallel $(getApplication)
|
||||
|
||||
runApplication reconstructPar -noFunctionObjects
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user