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:
14
tutorials/incompressible/pimpleFoam/RAS/oscillatingInletACMI2D/Allmesh
Executable file
14
tutorials/incompressible/pimpleFoam/RAS/oscillatingInletACMI2D/Allmesh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
runApplication topoSet -constant
|
||||
|
||||
# Split the mesh to generate the ACMI coupled patches
|
||||
runApplication createBaffles -overwrite
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
26
tutorials/incompressible/pimpleFoam/RAS/propeller/Allmesh
Executable file
26
tutorials/incompressible/pimpleFoam/RAS/propeller/Allmesh
Executable file
@ -0,0 +1,26 @@
|
||||
#!/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/
|
||||
|
||||
# Meshing
|
||||
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 moveDynamicMes
|
||||
#runApplication moveDynamicMesh -checkAMI
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
30
tutorials/incompressible/porousSimpleFoam/straightDuctImplicit/Allmesh
Executable file
30
tutorials/incompressible/porousSimpleFoam/straightDuctImplicit/Allmesh
Executable file
@ -0,0 +1,30 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
runApplication surfaceFeatures
|
||||
|
||||
runApplication foamyHexMesh
|
||||
|
||||
# Collapse only patch faces from incomplete conformation
|
||||
runApplication -s indirectPatchFaces \
|
||||
collapseEdges -collapseFaceSet indirectPatchFaces -latestTime -overwrite
|
||||
|
||||
# Collapse small edges and sliver faces
|
||||
runApplication -s collapseFaces \
|
||||
collapseEdges -collapseFaces -latestTime -overwrite
|
||||
|
||||
runApplication checkMesh -allTopology -allGeometry -latestTime
|
||||
|
||||
latestTime=`foamListTimes -latestTime`
|
||||
|
||||
# Move the mesh into polyMesh
|
||||
rm -rf constant/polyMesh
|
||||
mv "${latestTime}"/polyMesh constant
|
||||
|
||||
# Clean up intermediate meshes
|
||||
rm -r [1-9]*
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user