-
Notifications
You must be signed in to change notification settings - Fork 0
/
gnuplot.plt
210 lines (158 loc) · 15.3 KB
/
gnuplot.plt
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
system ("rm energy_sprectra_DNS_vs_StylES.png")
set terminal pngcairo dashed
set output "energy_sprectra_DNS_vs_StylES.png"
reset
set logscale x
set logscale y
set format y "10^{%T}"
# set xrange [10:2000]
# set yrange [1e-8:1]
#set yrange [1e-4:0.1]
#set xrange [0.06:0.07]
#set xrange [0.069:0.075]
#set yrange [-2:0.5]
set grid
set xlabel '{/*1.2 k}'
set ylabel '{/*1.2 E}'
show xlabel
show ylabel
set style circle radius screen 0.003
# set arrow from 25,1e-8 to 25,1e-1 nohead dt 6 lc rgb 'blue'
# set label 1 at 25,1e-8 "l_0" offset 0.5,-0.7
plot 'bout_interfaces/results_bout/energy/Spectrum_0000.txt' using 1:2 with lines lc rgb 'red' title 'SylES', \
'bout_interfaces/results_bout/energy/Spectrum_0037.txt' using 1:2 with lines lc rgb 'yellow' title 'SylES', \
'bout_interfaces/results_bout_DNS/energy/Spectrum_0010.txt' using 1:2 with lines lc rgb 'black' title 'DNS'
# plot 'utilities/results/energy_org/energy_spectrum_lat_0_res_256.txt' using 1:2 with lines lc rgb 'black' title 'DNS 256^2', \
# 'utilities/results/energy/energy_spectrum_lat_0_res_256.txt' using 1:2 with lines lc rgb 'red' title 'StylES 256^2', \
# 'utilities/results/energy_org/energy_spectrum_lat_0_res_32.txt' using 1:2 with lines lc rgb 'black' dt 3 title 'DNS (Gaussian filtered) 32^2', \
# 'utilities/results/energy/energy_spectrum_lat_0_res_32.txt' using 1:2 with lines lc rgb 'red' dt 3 title 'StylES 32^2', \
# plot 'utilities/energy_spectrum_compare_DNS_1.txt' using 1:2 with lines lc rgb 'black' title 'DNS at 546\t_e', \
# 'utilities/energy_spectrum_compare_1.txt' using 1:2 with lines lc rgb 'red' title 'StyLES at 546\t_e', \
# 'utilities/results_compare_profiles_noHRnoise/energy_spectrum_compare_1.txt' using 1:2 with lines lc rgb 'blue' lw 2 title 'StyLES without HR noise at 546\t_e', \
# 'utilities/energy_spectrum_compare_DNS_2.txt' using 1:2 with lines lc rgb 'black' dt 3 lw 2 title 'DNS at 1818\t_e', \
# 'utilities/energy_spectrum_compare_2.txt' using 1:2 with lines lc rgb 'red' dt 3 lw 2 title 'StyLES at 1818\t_e', \
# 'utilities/results_compare_profiles_noHRnoise/energy_spectrum_compare_2.txt' using 1:2 with lines lc rgb 'blue' dt 3 lw 2 title 'StyLES without HR noise at 1818\t_e'
# plot 'utilities/results/energy_org/energy_spectrum_lat_0_res_256.txt' using 1:2 with lines title '256x256', \
# 'utilities/results/energy_org/energy_spectrum_lat_0_res_32.txt' using 1:2 with lines title '32x32'
# plot 'LES_Solvers/testcases/HIT_2D/ld_spectrum_0te.txt' using 1:2 with circles title '0\t_e L\&D', \
# 'LES_Solvers/testcases/HIT_2D/ld_spectrum_9te.txt' using 1:2 with circles title '9\t_e L\&D', \
# 'LES_Solvers/testcases/HIT_2D/ld_spectrum_24te.txt' using 1:2 with circles title '24\t_e L\&D', \
# 'LES_Solvers/testcases/HIT_2D/ld_spectrum_97te.txt' using 1:2 with circles title '97\t_e L\&D', \
# 'LES_Solvers/testcases/HIT_2D/ld_spectrum_134te.txt' using 1:2 with circles title '134\t_e L\&D', \
# '../../data/N256_1runs_tollm7/energy/energy_run0_9te.txt' using 1:2 with lines title '9te ', \
# '../../data/N256_1runs_tollm7/energy/energy_run0_24te.txt' using 1:2 with lines title '24te ', \
# '../../data/N256_1runs_tollm7/energy/energy_run0_97te.txt' using 1:2 with lines title '97te ', \
# '../../data/N256_1runs_tollm7/energy/energy_run0_134te.txt' using 1:2 with lines title '134te ', \
# '../../data/N256_1000runs/energy/energy_run1_9te.txt' using 1:2 with lines title '9te tollm4', \
# '../../data/N256_1000runs/energy/energy_run1_24te.txt' using 1:2 with lines title '24te tollm4', \
# '../../data/N256_1000runs/energy/energy_run1_97te.txt' using 1:2 with lines title '97te tollm4', \
# '../../data/N256_1000runs/energy/energy_run1_134te.txt' using 1:2 with lines title '134te tollm4', \
# '../../../../rubbish/06Mar2022/data/N1024_1DNS_seed10/energy/energy_run0_9te.txt' using 1:2 with lines title '1024 9te', \
# '../../../../rubbish/06Mar2022/data/N1024_1DNS_seed10/energy/energy_run0_24te.txt' using 1:2 with lines title '1024 24te', \
# '../../../../rubbish/06Mar2022/data/N1024_1DNS_seed10/energy/energy_run0_97te.txt' using 1:2 with lines title '1024 97te', \
# '../../../../rubbish/06Mar2022/data/N1024_1DNS_seed10/energy/energy_run0_134te.txt' using 1:2 with lines title '1024 134te'
# plot 'LES_Solvers/testcases/HIT_2D/ld_spectrum_134te.txt' using 1:2 with circles title '9\t_e L\&D', \
# '../../../../../shared/data_All/tollm7/Re60_N256_1DNS/energy/energy_run0_134te.txt' using 1:2 with lines title '9\t_e L\&D 256', \
# '../../../../../shared/data_All/tollm7/Re60_N512_1DNS/energy/energy_run0_134te.txt' using 1:2 with lines title '9\t_e L\&D 512', \
# '../../../../../shared/data_All/tollm7/Re60_N1024_1DNS/energy/energy_run0_134te.txt' using 1:2 with lines title '9\t_e L\&D 1024'
# plot '../../../../../shared/data/tollm4/Re60_N256/energy/energy_run873_9te.txt' using 1:2 with circles title 'ref', \
# './LES_Solvers/energy/energy_run0_9te.txt' using 1:2 with circles title '0\t_e L\&D'
# plot '../../data/N1024_100runs_Re240/energy/energy_spectrum_run0_it4000.txt' using 1:2 with lines title '4000 ', \
# '../../data/N1024_100runs_Re240/energy/energy_spectrum_run0_it10000.txt' using 1:2 with lines title '10000 ', \
# '../../data/N1024_100runs_Re240/energy/energy_spectrum_run0_it1000.txt' using 1:2 with lines title '1000 '
# plot './LES_Solvers/results/LES_N256_rs8/DNS_fromGAN_center_values.txt' using 1:2 with lines title 'DNS ', \
# './LES_Solvers/results/LES_N256_rs8/LES_center_values.txt' using 1:2 with lines linecolor 5 title 'LES ', \
# './LES_Solvers/results/LES_N256_rs8/LES_fromGAN_center_values.txt' using 1:2 every 20 w circles t 'LES from DNS'
# plot './LES_Solvers/paper_results/tollm5/DNS_N256_1000it/DNS_center_values.txt' using 1:2 with lines title 'DNS', \
# './LES_Solvers/paper_results/tollm5/DNS_N256_rs8/LES_fromGAN_center_values.txt' using 1:2 with lines title 'LES from GAN', \
# './LES_Solvers/paper_results/tollm5/A1_N256_rs8_DNStollM4/LES_center_values.txt' using 1:2 with lines title 'LES tollM4', \
# './LES_Solvers/paper_results/tollm5/A1_N256_rs8_DNStollM8/LES_center_values.txt' using 1:2 with lines title 'LES tollM8'
# plot './LES_Solvers/results/curves/n128_rs32/LES_fromGAN_center_values.txt' using 1:2 with lines title 'LES from DNS rs32', \
# './LES_Solvers/results/curves/n128_rs32/LES_center_values.txt' using 1:2 with circles title 'LES 128 rs32', \
# './LES_Solvers/results/curves/n64_rs32/LES_center_values.txt' using 1:2 with circles title 'LES 64 rs32', \
# './LES_Solvers/results/curves/n32_rs32/LES_center_values.txt' using 1:2 with circles title 'LES 32 rs32', \
# './LES_Solvers/results/curves/n16_rs32/LES_center_values.txt' using 1:2 with circles title 'LES 16 rs32', \
# './LES_Solvers/results/curves/n8_rs32/LES_center_values.txt' using 1:2 with circles title 'LES 8 rs32'
# plot './LES_Solvers/energy/energy_spectrum_DNS_fromGAN_it0.txt' using 1:2 with lines title 'DNS 256', \
# './LES_Solvers/energy/energy_spectrum_LES_it0.txt' using 1:2 with lines title 'LES 128', \
# './LES_Solvers/energy/energy_spectrum_nonlinear_.txt' using 1:2 with lines title 'UU', \
# './LES_Solvers/energy/energy_spectrum_filtered_nonlinear_.txt' using 1:2 with lines title 'fUU'
# plot 'utilities/energy/energy_org_spectrum_lat_0_res_256.txt' using 1:2 with lines title 'DNS 256', \
# 'utilities/energy/energy_org_spectrum_lat_0_res_32.txt' using 1:2 with lines title 'DNS 32', \
# 'utilities/energy/energy_spectrum_lat_0_res_256.txt' using 1:2 with circles title 'StyleGAN 256', \
# 'utilities/energy/energy_spectrum_lat_0_res_32.txt' using 1:2 with circles title 'StyleGAN 32', \
# 'utilities/energy/energy_spectrum_fil_lat_0_res_32.txt' using 1:2 with circles title 'filter 32'
# plot 'utilities/energy/energy_org_spectrum_lat_0_res_256.txt' using 1:2 with lines title 'DNS 256', \
# 'utilities/energy/energy_org_spectrum_lat_0_res_128.txt' using 1:2 with lines title 'DNS 128', \
# 'utilities/energy/energy_org_spectrum_lat_0_res_64.txt' using 1:2 with lines title 'DNS 64', \
# 'utilities/energy/energy_org_spectrum_lat_0_res_32.txt' using 1:2 with lines title 'DNS 32', \
# 'utilities/energy/energy_org_spectrum_lat_0_res_16.txt' using 1:2 with lines title 'DNS 16', \
# 'utilities/energy/energy_spectrum_lat_0_res_256.txt' using 1:2 with lines title 'StyleGAN 256', \
# 'utilities/energy/energy_spectrum_lat_0_res_128.txt' using 1:2 with lines title 'StyleGAN 128', \
# 'utilities/energy/energy_spectrum_lat_0_res_64.txt' using 1:2 with lines title 'StyleGAN 64', \
# 'utilities/energy/energy_spectrum_lat_0_res_32.txt' using 1:2 with lines title 'StyleGAN 32', \
# 'utilities/energy/energy_spectrum_lat_0_res_16.txt' using 1:2 with lines title 'StyleGAN 16'
# filename = 'spectrum_134te.png'
# set output filename
# plot '../../results/decayisoturb_2D/DNS/second_order_scheme/N256/energy_spectrum_134te.txt' using 1:2 with lines title '134te N256', \
# '../../results/decayisoturb_2D/DNS/second_order_scheme/N512/energy_spectrum_134te.txt' using 1:2 with lines title '134te N512', \
# '../../results/decayisoturb_2D/DNS/second_order_scheme/N1024/energy_spectrum_134te.txt' using 1:2 with lines title '134te N1024', \
# '../../results/decayisoturb_2D/DNS/second_order_scheme/N2048/energy_spectrum_134te.txt' using 1:2 with lines title '134te N2048', \
# 'LES_Solvers/testcases/HIT_2D/ld_spectrum_134te.txt' using 1:2 with circles title '134te (L\&D)'
# '../../results/decayisoturb_2D/DNS/second_order_scheme/N256/energy_spectrum_24te.txt' using 1:2 with lines title '24te N256', \
# '../../results/decayisoturb_2D/DNS/second_order_scheme/N512/energy_spectrum_24te.txt' using 1:2 with lines title '24te N512', \
# '../../results/decayisoturb_2D/DNS/second_order_scheme/N1024/energy_spectrum_24te.txt' using 1:2 with lines title '24te N1024', \
# '../../results/decayisoturb_2D/DNS/second_order_scheme/N2048/energy_spectrum_24te.txt' using 1:2 with lines title '24te N2048', \
# 'LES_Solvers/testcases/HIT_2D/ld_spectrum_24te.txt' using 1:2 with circles title '24te (L\&D)'
# '../../results/decayisoturb_2D/DNS/second_order_scheme/N256/energy_spectrum_97te.txt' using 1:2 with lines title '97te N256', \
# '../../results/decayisoturb_2D/DNS/second_order_scheme/N512/energy_spectrum_97te.txt' using 1:2 with lines title '97te N512', \
# '../../results/decayisoturb_2D/DNS/second_order_scheme/N1024/energy_spectrum_97te.txt' using 1:2 with lines title '97te N1024', \
# '../../results/decayisoturb_2D/DNS/second_order_scheme/N2048/energy_spectrum_97te.txt' using 1:2 with lines title '97te N2048', \
# 'LES_Solvers/testcases/HIT_2D/ld_spectrum_97te.txt' using 1:2 with circles title '97te (L\&D)' , \
# '../../results/decayisoturb_2D/DNS/second_order_scheme/N256/energy_spectrum_134te.txt' using 1:2 with lines title '134te N256' , \
# '../../results/decayisoturb_2D/DNS/second_order_scheme/N512/energy_spectrum_134te.txt' using 1:2 with lines title '134te N512', \
# '../../results/decayisoturb_2D/DNS/second_order_scheme/N1024/energy_spectrum_134te.txt' using 1:2 with lines title '134te N1024', \
# '../../results/decayisoturb_2D/DNS/second_order_scheme/N2048/energy_spectrum_134te.txt' using 1:2 with lines title '134te N2048', \
# 'LES_Solvers/testcases/HIT_2D/ld_spectrum_134te.txt' using 1:2 with circles title '134te (L\&D)'
# 'LES_Solvers/testcases/HIT_2D/ld_spectrum_9te.txt' using 1:(1e5*$1**(-3)) with lines lc 'red' title 'k^-3', \
# 'LES_Solvers/testcases/HIT_2D/ld_spectrum_9te.txt' using 1:(1e5*$1**(-4)) with lines lc 'black' title 'k^-4'
# #------------------------------check latent space
# filename = 'utilities/spectrum_16.png'
# set output filename
# plot 'utilities/energy_spectrum_lat_0_res_1024.txt' using 1:($2*400) with lines title '1024', \
# 'utilities/energy_spectrum_lat_0_res_512.txt' using 1:($2*400) with lines title '512', \
# 'utilities/energy_spectrum_lat_0_res_256.txt' using 1:($2*400) with lines title '256', \
# 'utilities/energy_spectrum_lat_0_res_128.txt' using 1:($2*400) with lines title '128', \
# 'utilities/energy_spectrum_lat_0_res_64.txt' using 1:($2*400) with lines title '64', \
# 'utilities/energy_spectrum_lat_0_res_32.txt' using 1:($2*400) with lines title '32', \
# 'utilities/energy_spectrum_lat_0_res_16.txt' using 1:($2*400) with lines title '16', \
# 'LES_Solvers/testcases/HIT_2D/ld_spectrum_134te.txt' using 1:2 with circles title '134\t_e L\&D'
# # 'LES_Solvers/testcases/HIT_2D/ld_spectrum_0te.txt' using 1:2 with circles title '0\t_e L\&D'
# # 'LES_Solvers/testcases/HIT_2D/ld_spectrum_9te.txt' using 1:2 with circles title '9\t_e L\&D'
# # 'LES_Solvers/testcases/HIT_2D/ld_spectrum_24te.txt' using 1:2 with circles title '24\t_e L\&D'
# # 'LES_Solvers/testcases/HIT_2D/ld_spectrum_97te.txt' using 1:2 with circles title '97\t_e L\&D'
# do for [i=0:9] {
# filename = sprintf('utilities/spectrum_%d.png',i)
# set output filename
# plot 'utilities/latents/energy_spectrum_lat_'.i.'_res_64.txt' using 1:($2*400) with lines title '64', \
# 'utilities/latents/energy_spectrum_lat_'.i.'_res_128.txt' using 1:($2*400) with lines title '128', \
# 'utilities/latents/energy_spectrum_lat_'.i.'_res_256.txt' using 1:($2*400) with lines title '256', \
# 'utilities/latents/energy_spectrum_lat_'.i.'_res_512.txt' using 1:($2*400) with lines title '512', \
# 'utilities/latents/energy_spectrum_lat_'.i.'_res_1024.txt' using 1:($2*400) with lines title '1024', \
# 'LES_Solvers/testcases/HIT_2D/ld_spectrum_134te.txt' using 1:2 with circles title '134\t_e L\&D'
# }
#------------------------------check styles
#do for [i=0:13] {
# filename = sprintf('spectrum_%d.png',i)
# set output filename
# plot './energy_spectrum_styles/Energy_spectrum_styles_'.i.'_level_0.txt' using 1:2 with lines title '0', \
# './energy_spectrum_styles/Energy_spectrum_styles_'.i.'_level_1.txt' using 1:2 with lines title '1', \
# './energy_spectrum_styles/Energy_spectrum_styles_'.i.'_level_2.txt' using 1:2 with lines title '2', \
# './energy_spectrum_styles/Energy_spectrum_styles_'.i.'_level_3.txt' using 1:2 with lines title '3', \
# './energy_spectrum_styles/Energy_spectrum_styles_'.i.'_level_4.txt' using 1:2 with lines title '4', \
# './Energy_spectrum_N256_9te.txt' using 1:2 with circles title '9\t_e L\&D', \
# './Energy_spectrum_N256_24te.txt' using 1:2 with circles title '24\t_e L\&D', \
# './Energy_spectrum_N256_97te.txt' using 1:2 with circles title '97\t_e L\&D', \
# './Energy_spectrum_N256_134te.txt' using 1:2 with circles title '134\t_e L\&D'
#}
#