mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: foamyHexMesh: Update flange tutorial
This commit is contained in:
@ -4,6 +4,9 @@ cd ${0%/*} || exit 1 # run from this directory
|
|||||||
# Source tutorial run functions
|
# Source tutorial run functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
|
# copy flange surface from resources folder
|
||||||
|
cp $FOAM_TUTORIALS/resources/geometry/flange.stl.gz constant/triSurface/
|
||||||
|
|
||||||
runApplication foamyHexMesh
|
runApplication foamyHexMesh
|
||||||
runApplication collapseEdges -latestTime -collapseFaces
|
runApplication collapseEdges -latestTime -collapseFaces
|
||||||
runApplication checkMesh -latestTime -allGeometry -allTopology
|
runApplication checkMesh -latestTime -allGeometry -allTopology
|
||||||
|
|||||||
@ -7,6 +7,9 @@ cd ${0%/*} || exit 1 # run from this directory
|
|||||||
# Get the number of processors to run on from system/decomposeParDict
|
# Get the number of processors to run on from system/decomposeParDict
|
||||||
nProc=$(getNumberOfProcessors)
|
nProc=$(getNumberOfProcessors)
|
||||||
|
|
||||||
|
# copy flange surface from resources folder
|
||||||
|
cp $FOAM_TUTORIALS/resources/geometry/flange.stl.gz constant/triSurface/
|
||||||
|
|
||||||
# Create tight-fitting background mesh
|
# Create tight-fitting background mesh
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
runApplication topoSet -dict system/topoSetDict-background
|
runApplication topoSet -dict system/topoSetDict-background
|
||||||
|
|||||||
@ -4,6 +4,9 @@ cd ${0%/*} || exit 1 # run from this directory
|
|||||||
# Source tutorial run functions
|
# Source tutorial run functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
|
# copy flange surface from resources folder
|
||||||
|
cp $FOAM_TUTORIALS/resources/geometry/flange.stl.gz constant/triSurface/
|
||||||
|
|
||||||
# Create tight-fitting background mesh
|
# Create tight-fitting background mesh
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
runApplication foamyHexMesh
|
runApplication foamyHexMesh
|
||||||
@ -16,4 +19,5 @@ system/collapseDict.org > system/collapseDict
|
|||||||
|
|
||||||
runApplication collapseEdges -latestTime -collapseFaces
|
runApplication collapseEdges -latestTime -collapseFaces
|
||||||
|
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -0,0 +1,4 @@
|
|||||||
|
Folder to house tri-surfaces
|
||||||
|
|
||||||
|
The Allrun script copies the surface from the $FOAM_TUTORIALS/resources/geometry
|
||||||
|
folder
|
||||||
@ -22,7 +22,7 @@ FoamFile
|
|||||||
|
|
||||||
geometry
|
geometry
|
||||||
{
|
{
|
||||||
flange.obj
|
flange.stl
|
||||||
{
|
{
|
||||||
name flange;
|
name flange;
|
||||||
type triSurfaceMesh;
|
type triSurfaceMesh;
|
||||||
|
|||||||
Reference in New Issue
Block a user