Skip to content

Commit 2a79781

Browse files
committed
tut / crossWLF ... doe probe eta(T)
1 parent 4eba441 commit 2a79781

29 files changed

+695
-156
lines changed

tutorials/test/crossWLF/.gitignore

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,3 @@
1-
# git-ls-files --others --exclude-from=.git/info/exclude
2-
# Lines that start with '#' are comments.
3-
*.gz
4-
log.*
5-
postProcessing
6-
*~
7-
processor*
8-
[0-9]*
9-
[0-9]*.[0-9]*
10-
!0.org
11-
constant/extendedFeatureEdgeMesh
12-
*.eMesh
13-
constant/polyMesh/*
14-
!constant/polyMesh/blockMeshDict
15-
constant/cellToRegion
16-
*.OpenFOAM
17-
!0
18-
0/T.air
19-
0/T.poly
20-
*.png
1+
case_*
2+
!case_00_org
213
nohup.out
22-
# end-of-file

tutorials/test/crossWLF/Allclean

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
#!/bin/bash
2-
cd ${0%/*} || exit 1 # run from this directory
32

4-
# Source tutorial clean functions
5-
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
6-
7-
cleanCase
8-
foamClearPolyMesh
9-
10-
rm 0/T.poly
11-
rm 0/T.air
12-
rm *.png
13-
# ----------------------------------------------------------------- end-of-file
3+
# remove case dirs except for the original
4+
find -type d -name "case*" | grep -v "case_00_org" | xargs rm -rf
5+
rm -rf nohup.out

tutorials/test/crossWLF/Residuals

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# git-ls-files --others --exclude-from=.git/info/exclude
2+
# Lines that start with '#' are comments.
3+
*.gz
4+
log.*
5+
postProcessing
6+
*~
7+
processor*
8+
[0-9]*
9+
[0-9]*.[0-9]*
10+
!0.org
11+
constant/extendedFeatureEdgeMesh
12+
*.eMesh
13+
constant/polyMesh/*
14+
!constant/polyMesh/blockMeshDict
15+
constant/cellToRegion
16+
*.OpenFOAM
17+
*.png
18+
nohup.out
19+
# end-of-file
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
cd ${0%/*} || exit 1 # run from this directory
3+
4+
# Source tutorial clean functions
5+
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
6+
7+
cleanCase
8+
foamClearPolyMesh
9+
10+
rm *.png
11+
rm -r 0
12+
# ----------------------------------------------------------------- end-of-file

tutorials/test/crossWLF/Allrun renamed to tutorials/test/crossWLF/case_00_org/Allrun

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/bash
22
cd ${0%/*} || exit 1 # Run from this directory
33

4+
cp -r org0 0
5+
46
# Echoes all commands before executing.
57
set -o xtrace
68

@@ -14,3 +16,5 @@ application=`getApplication`
1416
blockMesh
1517

1618
runApplication $application
19+
20+
writeCellCentres
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env gnuplot
2+
3+
set multiplot layout 2, 1 title "Residuals"
4+
5+
set style line 1 lc rgb '#0060ad' lt 1 lw 1 pt 7 ps 0 # --- blue
6+
set style line 2 lc rgb '#9fac43' lt 1 lw 1 pt 7 ps 0 # --- blue
7+
set style line 3 lc rgb '#dd181f' lt 1 lw 1 pt 7 ps 0 # --- blue
8+
set style line 4 lc rgb '#000000' lt 2 lw 1 pt 7 ps 0 # --- blue
9+
10+
set logscale y
11+
set format y "1e{%L}"
12+
set title "p rgh"
13+
set ylabel 'Residual'
14+
set xlabel 'Iteration'
15+
plot "< grep 'GAMG:' log.openInjMoldSim | cut -d' ' -f9 | tr -d ','" title 'GAMG' with lines ls 1
16+
17+
set logscale y
18+
set format y "1e{%L}"
19+
set title "T"
20+
set ylabel 'Residual'
21+
set xlabel 'Iteration'
22+
plot "< grep 'smoothSolver: Solving for T,' log.openInjMoldSim | cut -d' ' -f9 | tr -d ','" title 'smoothSolver T ' with lines ls 1
23+
24+
pause 5
25+
reread

tutorials/test/crossWLF/analyze.py renamed to tutorials/test/crossWLF/case_00_org/analyze.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def main():
2929

3030
Tc = 200 # degC
3131
p = 60e6 # Pa
32-
L = 0.01 # m
32+
L = 0.1e-3 # m
3333
W = 1e-4 # m
3434
Thc = 1e-3 # m
3535
U = 0.1 # m/s

0 commit comments

Comments
 (0)