mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: Update flange test in tutorial and remove flange.obj
This commit is contained in:
@ -7,17 +7,26 @@ cd ${0%/*} || exit 1 # run from this directory
|
|||||||
# copy flange surface from resources folder
|
# copy flange surface from resources folder
|
||||||
cp $FOAM_TUTORIALS/resources/geometry/flange.stl.gz constant/triSurface/
|
cp $FOAM_TUTORIALS/resources/geometry/flange.stl.gz constant/triSurface/
|
||||||
|
|
||||||
# Create tight-fitting background mesh
|
cp system/controlDict system/controlDict.org
|
||||||
runApplication blockMesh
|
|
||||||
|
sed -e s/"\(endTime[ \t]*\)\([0-9]*\);"/"\1 10;"/g \
|
||||||
|
-e s/"\(writeInterval[ \t]*\)\([0-9]*\);"/"\1 10;"/g \
|
||||||
|
system/controlDict.org > system/controlDict
|
||||||
|
|
||||||
runApplication foamyHexMesh
|
runApplication foamyHexMesh
|
||||||
|
|
||||||
# Change collapseEdges to only do one iteration
|
# Change collapseEdges to only do one iteration
|
||||||
cp system/collapseDict system/collapseDict.org
|
cp system/collapseDict system/collapseDict.org
|
||||||
|
|
||||||
sed -e s/"\(maximumIterations[ \t]*\)\([0-9]*\);"/"\1 1;"/g \
|
sed -e s/"\(maximumIterations[ \t]*\)\([0-9]*\);"/"\1 1;"/g \
|
||||||
system/collapseDict.org > system/collapseDict
|
system/collapseDict.org > system/collapseDict
|
||||||
|
|
||||||
runApplication collapseEdges -latestTime -collapseFaces
|
runApplication collapseEdges -latestTime -collapseFaces
|
||||||
|
|
||||||
|
cp system/controlDict.org system/controlDict
|
||||||
|
cp system/collapseDict.org system/collapseDict
|
||||||
|
|
||||||
|
rm -f system/controlDict.org system/collapseDict.org
|
||||||
|
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user