Skip to content

Commit 22ad1e6

Browse files
committed
latest script to generate newer TV ensemble DA experiments
1 parent cad60e9 commit 22ad1e6

File tree

1 file changed

+25
-29
lines changed

1 file changed

+25
-29
lines changed

RKLM_Python/tv_enda_tests.py

Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
# fields
4848
generate_noda = False
4949
generate_oneda = False
50-
gen_5c1_euler_full = True
50+
gen_5c1_euler_full = False
5151
gen_5c1_euler_momenta = False
5252
gen_loc_errors_tv = False
5353

@@ -59,9 +59,10 @@
5959
# path_to_obs = '/srv/public/ray/'
6060
path_to_obs = './'
6161

62-
enda_sfx = 'wda_obsconv'
62+
enda_sfx = 'wda'
6363
noda_sfx = ''
6464
ref_aux = '_truthgen'
65+
ref_aux = ''
6566

6667
if gen_5b_obs_truth_euler or gen_all:
6768
##########################################
@@ -117,8 +118,8 @@
117118
#
118119
##########################################
119120

120-
da_times = np.arange(0.0,10.05,0.05)[1:]
121-
# da_times = np.arange(0.0,3.25,0.25)[1:]
121+
# da_times = np.arange(0.0,10.05,0.05)[1:]
122+
da_times = np.arange(0.0,3.25,0.25)[1:]
122123
da_times = np.around(da_times,3)
123124
da_times = da_times.tolist()
124125

@@ -193,25 +194,20 @@
193194
v = 4.0 / u_ref
194195

195196

196-
sd_rho = 0.025
197-
sd_rhou = 0.0325
198-
sd_rhov = 0.0325
199-
sd_rhoY = 0.00025
200-
sd_pi = 0.0004
201-
sds = np.array([sd_rho, sd_rhou, sd_rhov, sd_rhoY, sd_pi])
202-
sds *= 2.0 # let's make it 10%
203-
sds = np.sqrt(sds)
197+
EMP = np.array([0.05, 0.065, 0.065, 0.0005, 0.0008])**0.5
198+
MID = np.array([0.004415880433163922, 0.005973692325521966, 0.005968249324550707, 3.1090995481007025e-06, 1.3780551512911225e-05])**0.5
199+
204200
dap = {
205201
'da_times' : da_times,
206202
# Assimilate all fields
207203
'obs_attrs' : ['rho', 'rhou', 'rhov', 'rhoY', 'p2_nodes'],
208204
# Path to the generated observation
209-
'obs_path' : path_to_obs + 'output_travelling_vortex/output_travelling_vortex_ensemble=1_64_64_10.0_obs%s.h5' %ref_aux,
210-
'loc_setter' : (21, 21),
205+
'obs_path' : path_to_obs + 'output_travelling_vortex/output_travelling_vortex_ensemble=1_64_64_3.0_obs%s.h5' %ref_aux,
206+
'loc_setter' : (11, 11),
211207
# using variance: 1K for temperature, 4ms^-1 for velocity, 50Pa for pressure
212208
# 'sd_setter' : [rho**0.5, (rho*v)**0.5, (rho*v)**0.5, p**0.5, pi**0.5],
213209
# 'sd_setter' : [0.05**2, 0.05**2, 0.05**2, 0.1, 0.0004],
214-
# 'sd_setter' : list(sds),
210+
# 'sd_setter' : list(MID),
215211
}
216212

217213
# run simulation
@@ -334,11 +330,11 @@
334330
# run simulation
335331
rp.ud = json.dumps(ud)
336332
rp.dap = json.dumps(dap)
337-
rp.queue_run()
333+
# rp.queue_run()
338334

339335

340336
ud = {
341-
'aux' : 'wda_31',
337+
'aux' : 'wda_41',
342338
# Do blending for initial time-step
343339
'initial_blending' : True
344340
}
@@ -350,16 +346,16 @@
350346
'obs_attrs' : ['rho', 'rhou', 'rhov', 'rhoY', 'p2_nodes'],
351347
# Path to the generated observation
352348
'obs_path' : path_to_obs + 'output_travelling_vortex/output_travelling_vortex_ensemble=1_64_64_3.0_obs.h5',
353-
'loc_setter' : (31,31)
349+
'loc_setter' : (41,41)
354350
}
355351

356352
# run simulation
357353
rp.ud = json.dumps(ud)
358354
rp.dap = json.dumps(dap)
359-
# rp.queue_run()
355+
rp.queue_run()
360356

361357
ud = {
362-
'aux' : 'wda_31',
358+
'aux' : 'wda_41',
363359
# Do blending for initial time-step
364360
'initial_blending' : True,
365361
'continuous_blending' : True
@@ -368,11 +364,11 @@
368364
# run simulation
369365
rp.ud = json.dumps(ud)
370366
rp.dap = json.dumps(dap)
371-
# rp.queue_run()
367+
rp.queue_run()
372368

373369

374370
ud = {
375-
'aux' : 'wda_15',
371+
'aux' : 'wda_21',
376372
# Do blending for initial time-step
377373
'initial_blending' : True
378374
}
@@ -384,16 +380,16 @@
384380
'obs_attrs' : ['rho', 'rhou', 'rhov', 'rhoY', 'p2_nodes'],
385381
# Path to the generated observation
386382
'obs_path' : path_to_obs + 'output_travelling_vortex/output_travelling_vortex_ensemble=1_64_64_3.0_obs.h5',
387-
'loc_setter' : (15,15)
383+
'loc_setter' : (21,21)
388384
}
389385

390386
# run simulation
391387
rp.ud = json.dumps(ud)
392388
rp.dap = json.dumps(dap)
393-
# rp.queue_run()
389+
rp.queue_run()
394390

395391
ud = {
396-
'aux' : 'wda_15',
392+
'aux' : 'wda_21',
397393
# Do blending for initial time-step
398394
'initial_blending' : True,
399395
'continuous_blending' : True
@@ -402,10 +398,10 @@
402398
# run simulation
403399
rp.ud = json.dumps(ud)
404400
rp.dap = json.dumps(dap)
405-
# rp.queue_run()
401+
rp.queue_run()
406402

407403
ud = {
408-
'aux' : 'wda_7',
404+
'aux' : 'wda_5',
409405
# Do blending for initial time-step
410406
'initial_blending' : True
411407
}
@@ -417,7 +413,7 @@
417413
'obs_attrs' : ['rho', 'rhou', 'rhov', 'rhoY', 'p2_nodes'],
418414
# Path to the generated observation
419415
'obs_path' : path_to_obs + 'output_travelling_vortex/output_travelling_vortex_ensemble=1_64_64_3.0_obs.h5',
420-
'loc_setter' : (7,7)
416+
'loc_setter' : (5,5)
421417
}
422418

423419
# run simulation
@@ -426,7 +422,7 @@
426422
rp.queue_run()
427423

428424
ud = {
429-
'aux' : 'wda_7',
425+
'aux' : 'wda_5',
430426
# Do blending for initial time-step
431427
'initial_blending' : True,
432428
'continuous_blending' : True

0 commit comments

Comments
 (0)