mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
tutorials: Added the new Allmesh scripts
This commit is contained in:
17
tutorials/multiphase/interFoam/RAS/mixerVesselAMI/Allmesh
Executable file
17
tutorials/multiphase/interFoam/RAS/mixerVesselAMI/Allmesh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/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)
|
||||
|
||||
# Meshing
|
||||
runApplication blockMesh
|
||||
runApplication surfaceFeatures
|
||||
runApplication snappyHexMesh -overwrite
|
||||
runApplication createBaffles -overwrite
|
||||
runApplication mergeOrSplitBaffles -split -overwrite
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
25
tutorials/multiphase/interPhaseChangeDyMFoam/propeller/Allmesh
Executable file
25
tutorials/multiphase/interPhaseChangeDyMFoam/propeller/Allmesh
Executable file
@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# Copy propeller surface from resources directory
|
||||
cp $FOAM_TUTORIALS/resources/geometry/propellerTip.obj.gz constant/triSurface/
|
||||
|
||||
runApplication blockMesh
|
||||
runApplication surfaceFeatures
|
||||
runApplication snappyHexMesh -overwrite
|
||||
|
||||
# Generate face/cell sets and zones
|
||||
runApplication topoSet -dict system/createInletOutletSets.topoSetDict
|
||||
|
||||
# Create the inlet/outlet and AMI patches
|
||||
runApplication createPatch -overwrite
|
||||
|
||||
runApplication renumberMesh -noFields -overwrite
|
||||
|
||||
# Test by running moveDynamicMesh
|
||||
#runApplication moveDynamicMesh -checkAMI
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user