Skip to content
Snippets Groups Projects
Commit 26d10640 authored by andy's avatar andy
Browse files

ENH: Updates to tutorial Allrun scripts

parent 94291433
Branches
Tags
No related merge requests found
...@@ -13,7 +13,7 @@ unset FOAM_SETNAN ...@@ -13,7 +13,7 @@ unset FOAM_SETNAN
unset FOAM_SIGFPE unset FOAM_SIGFPE
# Create first baffle # Create first baffle
createBaffles baffleFaces '(baffle1Wall_0 baffle1Wall_1)' -overwrite > log.createBaffles 2>&1 runApplication createBaffles baffleFaces '(baffle1Wall_0 baffle1Wall_1)' -overwrite
# Create region # Create region
runApplication extrudeToRegionMesh -overwrite runApplication extrudeToRegionMesh -overwrite
......
...@@ -16,9 +16,13 @@ unset FOAM_SETNAN ...@@ -16,9 +16,13 @@ unset FOAM_SETNAN
# Create faceZones for fan and baffles # Create faceZones for fan and baffles
runApplication topoSet runApplication topoSet
# Create fan cyclics # Create fan cyclics
createBaffles cyclicFaces '(fan_half0 fan_half1)' -overwrite > log.createBaffles 2>&1 runApplication createBaffles cyclicFaces '(fan_half0 fan_half1)' -overwrite
mv log.createBaffles log.createBaffles.1
# Create wall baffles # Create wall baffles
createBaffles baffleFaces '(baffles baffles)' -overwrite > log.createBaffles 2>&1 runApplication createBaffles baffleFaces '(baffles baffles)' -overwrite
mv log.createBaffles log.createBaffles.2
runApplication $application runApplication $application
...@@ -21,10 +21,12 @@ setsToZones -noFlipMap > log.setsToZones 2>&1 ...@@ -21,10 +21,12 @@ setsToZones -noFlipMap > log.setsToZones 2>&1
# - use binary writing to avoid 'nan' # - use binary writing to avoid 'nan'
# - use setFields to set values # - use setFields to set values
unset FOAM_SIGFPE unset FOAM_SIGFPE
createBaffles cycLeft '(cycLeft_half0 cycLeft_half1)' -overwrite > log.createBaffles1 2>&1 runApplication createBaffles cycLeft '(cycLeft_half0 cycLeft_half1)' -overwrite
mv log.createBaffles log.createBaffles1
# create the second cyclic - rhs of porous zone # create the second cyclic - rhs of porous zone
createBaffles cycRight '(cycRight_half0 cycRight_half1)' -overwrite > log.createBaffles2 2>&1 runApplication createBaffles cycRight '(cycRight_half0 cycRight_half1)' -overwrite
mv log.createBaffles log.createBaffles2
# Initialise newly created patchFields to 0 # Initialise newly created patchFields to 0
runApplication changeDictionary runApplication changeDictionary
......
...@@ -16,7 +16,7 @@ unset FOAM_SETNAN ...@@ -16,7 +16,7 @@ unset FOAM_SETNAN
# Create faceZones for porous baffles # Create faceZones for porous baffles
runApplication topoSet runApplication topoSet
createBaffles cyclicZoneFaces '(porous_half0 porous_half1)' -overwrite > log.createBaffles 2>&1 runApplication createBaffles cyclicZoneFaces '(porous_half0 porous_half1)' -overwrite
runApplication changeDictionary runApplication changeDictionary
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment