-
Notifications
You must be signed in to change notification settings - Fork 0
/
plotDimensionlessNumbers.py
171 lines (139 loc) · 4.39 KB
/
plotDimensionlessNumbers.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 24 11:50:05 2018
@author: bizgi
"""
import render
# --- < Stratification Number > ----------------------------------------------
# plot Str Number for different velocity cases
StVel = {
'trace': 'caseVel',
'caseTemp': '333',
'caseVel': ['0.1', '0.2', '0.4', '0.6', '0.8'],
'caseTime': ['d5', 'd10','d15', 'd20', 'd25', 'd30'],
'numberOfNodes' : 16,
'tankHigh' : 1, # meter
'xLabel' : 't* [-]',
'yLabel': 'Str [-]',
'legend' : ['v1', 'v2', 'v3', 'v4', 'v5'],
'savePlot' : 'False',
'saveDpi' : 300,
'compareCase1' : 'data-1',
'compareCase2' : 'data-2'
}
# plot Str Number for different temperature cases
StTemp = {
'trace': 'caseTemp',
'caseTemp': ['318', '323', '328', '333', '338'],
'caseVel': '0.6',
'caseTime': ['d5', 'd10','d15', 'd20', 'd25', 'd30'],
'numberOfNodes' : 16,
'tankHigh' : 1, # meter
'xLabel' : 't* [-]',
'yLabel': 'Str [-]',
'legend' : ['T1', 'T2', 'T3', 'T4', 'T5'],
'savePlot' : 'True',
'saveDpi' : 300,
'compareCase1' : 'data-1',
'compareCase2' : 'data-2'
}
# --- </ Stratification Number > ----------------------------------------------
# --- < Richardson Number > --------------------------------------------------
# plot Ri Number for different velocity cases
RiVel = {
'trace': 'caseVel',
'caseTemp': '318',
'caseVel': ['0.1', '0.2', '0.4', '0.6', '0.8'],
'caseTime': ['d5', 'd10','d15', 'd20', 'd25', 'd30'],
'tankHigh' : 1, # meter
'xLabel' : 't* [-]',
'yLabel': 'Ri [-]',
'legend' : ['v1', 'v2', 'v3', 'v4', 'v5'],
'savePlot' : 'False',
'saveDpi' : 300,
'compareCase1' : 'data-1',
'compareCase2' : 'data-2'
}
# plot Ri Number for different temperature cases
RiTemp = {
'trace': 'caseTemp',
'caseTemp': ['318', '323', '328', '333', '338'],
'caseVel': '0.8',
'caseTime': [ 'd5', 'd10','d15', 'd20', 'd25', 'd30'],
'tankHigh' : 1, # meter
'xLabel' : 't* [-]',
'yLabel': 'Ri [-]',
'legend' : ['T1', 'T2', 'T3', 'T4', 'T5'],
'savePlot' : 'False',
'saveDpi' : 300,
'compareCase1' : 'data-1',
'compareCase2' : 'data-2'
}
# --- </ Richardson Number > --------------------------------------------------
# --- < Mix Number > ---------------------------------------------------------
# plot Mix Number for different velocity cases
MixVel = {
'trace': 'caseVel',
'caseTemp': '333',
'caseVel': ['0.1', '0.2', '0.4', '0.6', '0.8'],
'caseTime': ['d5', 'd10','d15', 'd20', 'd25', 'd30'],
'tankHigh' : 1, # meter
'tankD' : 0.45, # meter
'numberOfVolume' : 15,
'xLabel' : 't* [-]',
'yLabel': 'MIX [-]',
# 'yLabel' : '$\eta_{Str}$',
'legend' : ['v1', 'v2', 'v3', 'v4', 'v5'],
'savePlot' : 'False',
'saveDpi' : 300,
'compareCase1' : 'data-1',
'compareCase2' : 'data-2'
}
# plot Mix Number for different temperature cases
MixTemp = {
'name' : 't-MIX',
'trace': 'caseTemp',
'caseTemp': ['318', '323', '328', '333', '338'],
'caseVel': '0.6',
'caseTime': ['d5', 'd10','d15', 'd20', 'd25', 'd30'],
'tankHigh' : 1, # meter
'tankD' : 0.45, # meter
'numberOfVolume' : 15,
'xLabel' : 't* [-]',
'yLabel': 'MIX [-]',
# 'yLabel' : '$\eta_{Str}$',
'legend' : ['T1', 'T2', 'T3', 'T4', 'T5'],
'savePlot' : 'False',
'saveDpi' : 300,
'compareCase1' : 'data-1',
'compareCase2' : 'data-2'
}
# --- </ Mix Number > --------------------------------------------------
#-- <data files> --------------------------------------------------------------
path = './data/engelli-volAve.csv'
path2= './data/engelsiz-volAve.csv'
#-- </data files> --------------------------------------------------------------
# -- <plot> -------------------------------------------------------------------
# -- uncomment to plot
# -- Stratification Number
#render.St(path, StVel)
#render.St(path, StTemp)
# -- Richardson Number
#render.Ri(path, RiVel)
#render.Ri(path, RiTemp)
# -- Mix Number
#render.Mix(path, MixVel)
#render.Mix(path, MixTemp)
#--- </plot> ------------------------------------------------------------------
# -- <compare plot> -----------------------------------------------------------
# -- uncomment to plot
# -- Stratification Number
#render.compare(render.St, StVel, path, path2)
#render.compare(render.St, StTemp, path, path2)
# -- Richardson Number
#render.compare(render.Ri, RiVel, path, path2)
#render.compare(render.Ri, RiTemp, path, path2)
# -- Mix Number
#render.compare(render.Mix, MixVel, path, path2)
#render.compare(render.Mix, MixTemp, path, path2)
# -- </compare plot> ----------------------------------------------------------