axialTurbine tutorials: Mesh improvements and runApplication in Allrun
This commit is contained in:
parent
f2c3a353c1
commit
f4fed6fdc7
7 changed files with 25 additions and 22 deletions
|
@ -3,16 +3,17 @@
|
||||||
# Source tutorial run functions
|
# Source tutorial run functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
application="MRFSimpleFoam"
|
application=`getApplication`
|
||||||
|
|
||||||
#Create the mesh:
|
#Create the mesh:
|
||||||
m4 < constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict
|
m4 < constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict
|
||||||
blockMesh
|
runApplication blockMesh
|
||||||
|
transformPoints -scale "(1 20 1)"
|
||||||
transformPoints -cylToCart "((0 0 0) (0 0 1) (1 0 0))"
|
transformPoints -cylToCart "((0 0 0) (0 0 1) (1 0 0))"
|
||||||
|
|
||||||
# Set 0-directory and create GGI set:
|
# Set 0-directory and create GGI set:
|
||||||
cp -r 0_orig 0
|
cp -r 0_orig 0
|
||||||
setSet -batch setBatchGgi
|
runApplication setSet -batch setBatchGgi
|
||||||
setsToZones -noFlipMap
|
runApplication setsToZones -noFlipMap
|
||||||
|
|
||||||
runApplication $application
|
runApplication $application
|
||||||
|
|
|
@ -20,7 +20,7 @@ define(calc, [esyscmd(perl -e 'printf ($1)')])
|
||||||
//define(calc, [esyscmd(echo $1 | bc | tr -d \\n)])
|
//define(calc, [esyscmd(echo $1 | bc | tr -d \\n)])
|
||||||
define(VCOUNT, 0)
|
define(VCOUNT, 0)
|
||||||
define(vlabel, [[// ]Vertex $1 = VCOUNT define($1, VCOUNT)define([VCOUNT], incr(VCOUNT))])
|
define(vlabel, [[// ]Vertex $1 = VCOUNT define($1, VCOUNT)define([VCOUNT], incr(VCOUNT))])
|
||||||
define(pi, 3.14159265)
|
define(pi, calc(3.14159265/20))
|
||||||
|
|
||||||
define(hex2D, hex ($1b $2b $3b $4b $1t $2t $3t $4t))
|
define(hex2D, hex ($1b $2b $3b $4b $1t $2t $3t $4t))
|
||||||
define(quad2D, ($1b $2b $2t $1t))
|
define(quad2D, ($1b $2b $2t $1t))
|
||||||
|
@ -200,7 +200,7 @@ blocks
|
||||||
|
|
||||||
hex2D(GV1l, GV1r, GV2r, GV2l)
|
hex2D(GV1l, GV1r, GV2r, GV2l)
|
||||||
(GVtc GVbac GVrc)
|
(GVtc GVbac GVrc)
|
||||||
simpleGrading (1 0.2 1)
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
hex2D(GV2l, GV2r, GV3r, GV3l)
|
hex2D(GV2l, GV2r, GV3r, GV3l)
|
||||||
(GVtc GViac GVrc)
|
(GVtc GViac GVrc)
|
||||||
|
@ -215,7 +215,7 @@ blocks
|
||||||
hex2D(RU1l, RU1r, RU2r, RU2l)
|
hex2D(RU1l, RU1r, RU2r, RU2l)
|
||||||
rotor
|
rotor
|
||||||
(RUtc RUbac RUrc)
|
(RUtc RUbac RUrc)
|
||||||
simpleGrading (1 0.4 1)
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
hex2D(RU2l, RU2r, RU3r, RU3l)
|
hex2D(RU2l, RU2r, RU3r, RU3l)
|
||||||
rotor
|
rotor
|
||||||
|
|
|
@ -3,16 +3,17 @@
|
||||||
# Source tutorial run functions
|
# Source tutorial run functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
application="MRFSimpleFoam"
|
application=`getApplication`
|
||||||
|
|
||||||
#Create the mesh:
|
#Create the mesh:
|
||||||
m4 < constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict
|
m4 < constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict
|
||||||
blockMesh
|
runApplication blockMesh
|
||||||
|
transformPoints -scale "(1 20 1)"
|
||||||
transformPoints -cylToCart "((0 0 0) (0 0 1) (1 0 0))"
|
transformPoints -cylToCart "((0 0 0) (0 0 1) (1 0 0))"
|
||||||
|
|
||||||
# Set 0-directory and create GGI set:
|
# Set 0-directory and create GGI set:
|
||||||
cp -r 0_orig 0
|
cp -r 0_orig 0
|
||||||
setSet -batch setBatchGgi
|
runApplication setSet -batch setBatchGgi
|
||||||
setsToZones -noFlipMap
|
runApplication setsToZones -noFlipMap
|
||||||
|
|
||||||
runApplication $application
|
runApplication $application
|
||||||
|
|
|
@ -20,7 +20,7 @@ define(calc, [esyscmd(perl -e 'printf ($1)')])
|
||||||
//define(calc, [esyscmd(echo $1 | bc | tr -d \\n)])
|
//define(calc, [esyscmd(echo $1 | bc | tr -d \\n)])
|
||||||
define(VCOUNT, 0)
|
define(VCOUNT, 0)
|
||||||
define(vlabel, [[// ]Vertex $1 = VCOUNT define($1, VCOUNT)define([VCOUNT], incr(VCOUNT))])
|
define(vlabel, [[// ]Vertex $1 = VCOUNT define($1, VCOUNT)define([VCOUNT], incr(VCOUNT))])
|
||||||
define(pi, 3.14159265)
|
define(pi, calc(3.14159265/20))
|
||||||
|
|
||||||
define(hex2D, hex ($1b $2b $3b $4b $1t $2t $3t $4t))
|
define(hex2D, hex ($1b $2b $3b $4b $1t $2t $3t $4t))
|
||||||
define(quad2D, ($1b $2b $2t $1t))
|
define(quad2D, ($1b $2b $2t $1t))
|
||||||
|
@ -200,7 +200,7 @@ blocks
|
||||||
|
|
||||||
hex2D(GV1l, GV1r, GV2r, GV2l)
|
hex2D(GV1l, GV1r, GV2r, GV2l)
|
||||||
(GVtc GVbac GVrc)
|
(GVtc GVbac GVrc)
|
||||||
simpleGrading (1 0.2 1)
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
hex2D(GV2l, GV2r, GV3r, GV3l)
|
hex2D(GV2l, GV2r, GV3r, GV3l)
|
||||||
(GVtc GViac GVrc)
|
(GVtc GViac GVrc)
|
||||||
|
@ -215,7 +215,7 @@ blocks
|
||||||
hex2D(RU1l, RU1r, RU2r, RU2l)
|
hex2D(RU1l, RU1r, RU2r, RU2l)
|
||||||
rotor
|
rotor
|
||||||
(RUtc RUbac RUrc)
|
(RUtc RUbac RUrc)
|
||||||
simpleGrading (1 0.4 1)
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
hex2D(RU2l, RU2r, RU3r, RU3l)
|
hex2D(RU2l, RU2r, RU3r, RU3l)
|
||||||
rotor
|
rotor
|
||||||
|
|
|
@ -3,16 +3,17 @@
|
||||||
# Source tutorial run functions
|
# Source tutorial run functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
application="pimpleDyMFoam"
|
application=`getApplication`
|
||||||
|
|
||||||
#Create the mesh:
|
#Create the mesh:
|
||||||
m4 < constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict
|
m4 < constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict
|
||||||
blockMesh
|
runApplication blockMesh
|
||||||
|
transformPoints -scale "(1 20 1)"
|
||||||
transformPoints -cylToCart "((0 0 0) (0 0 1) (1 0 0))"
|
transformPoints -cylToCart "((0 0 0) (0 0 1) (1 0 0))"
|
||||||
|
|
||||||
# Set 0-directory and create GGI set:
|
# Set 0-directory and create GGI set:
|
||||||
cp -r 0_orig 0
|
cp -r 0_orig 0
|
||||||
setSet -batch setBatchGgi
|
runApplication setSet -batch setBatchGgi
|
||||||
setsToZones -noFlipMap
|
runApplication setsToZones -noFlipMap
|
||||||
|
|
||||||
runApplication $application
|
runApplication $application
|
||||||
|
|
|
@ -20,7 +20,7 @@ define(calc, [esyscmd(perl -e 'printf ($1)')])
|
||||||
//define(calc, [esyscmd(echo $1 | bc | tr -d \\n)])
|
//define(calc, [esyscmd(echo $1 | bc | tr -d \\n)])
|
||||||
define(VCOUNT, 0)
|
define(VCOUNT, 0)
|
||||||
define(vlabel, [[// ]Vertex $1 = VCOUNT define($1, VCOUNT)define([VCOUNT], incr(VCOUNT))])
|
define(vlabel, [[// ]Vertex $1 = VCOUNT define($1, VCOUNT)define([VCOUNT], incr(VCOUNT))])
|
||||||
define(pi, 3.14159265)
|
define(pi, calc(3.14159265/20))
|
||||||
|
|
||||||
define(hex2D, hex ($1b $2b $3b $4b $1t $2t $3t $4t))
|
define(hex2D, hex ($1b $2b $3b $4b $1t $2t $3t $4t))
|
||||||
define(quad2D, ($1b $2b $2t $1t))
|
define(quad2D, ($1b $2b $2t $1t))
|
||||||
|
@ -200,7 +200,7 @@ blocks
|
||||||
|
|
||||||
hex2D(GV1l, GV1r, GV2r, GV2l)
|
hex2D(GV1l, GV1r, GV2r, GV2l)
|
||||||
(GVtc GVbac GVrc)
|
(GVtc GVbac GVrc)
|
||||||
simpleGrading (1 0.2 1)
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
hex2D(GV2l, GV2r, GV3r, GV3l)
|
hex2D(GV2l, GV2r, GV3r, GV3l)
|
||||||
(GVtc GViac GVrc)
|
(GVtc GViac GVrc)
|
||||||
|
@ -215,7 +215,7 @@ blocks
|
||||||
hex2D(RU1l, RU1r, RU2r, RU2l)
|
hex2D(RU1l, RU1r, RU2r, RU2l)
|
||||||
rotor
|
rotor
|
||||||
(RUtc RUbac RUrc)
|
(RUtc RUbac RUrc)
|
||||||
simpleGrading (1 0.4 1)
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
hex2D(RU2l, RU2r, RU3r, RU3l)
|
hex2D(RU2l, RU2r, RU3r, RU3l)
|
||||||
rotor
|
rotor
|
||||||
|
|
|
@ -14,7 +14,7 @@ FoamFile
|
||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
application simpleFoam;
|
application pimpleDyMFoam;
|
||||||
|
|
||||||
startFrom startTime;
|
startFrom startTime;
|
||||||
|
|
||||||
|
|
Reference in a new issue