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
|
||||
cp $FOAM_TUTORIALS/resources/geometry/flange.stl.gz constant/triSurface/
|
||||
|
||||
# Create tight-fitting background mesh
|
||||
runApplication blockMesh
|
||||
cp system/controlDict system/controlDict.org
|
||||
|
||||
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
|
||||
|
||||
# Change collapseEdges to only do one iteration
|
||||
cp system/collapseDict system/collapseDict.org
|
||||
|
||||
sed -e s/"\(maximumIterations[ \t]*\)\([0-9]*\);"/"\1 1;"/g \
|
||||
system/collapseDict.org > system/collapseDict
|
||||
system/collapseDict.org > system/collapseDict
|
||||
|
||||
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
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user