|
47 | 47 | # fields |
48 | 48 | generate_noda = False |
49 | 49 | generate_oneda = False |
50 | | -gen_5c1_euler_full = True |
| 50 | +gen_5c1_euler_full = False |
51 | 51 | gen_5c1_euler_momenta = False |
52 | 52 | gen_loc_errors_tv = False |
53 | 53 |
|
|
59 | 59 | # path_to_obs = '/srv/public/ray/' |
60 | 60 | path_to_obs = './' |
61 | 61 |
|
62 | | -enda_sfx = 'wda_obsconv' |
| 62 | +enda_sfx = 'wda' |
63 | 63 | noda_sfx = '' |
64 | 64 | ref_aux = '_truthgen' |
| 65 | +ref_aux = '' |
65 | 66 |
|
66 | 67 | if gen_5b_obs_truth_euler or gen_all: |
67 | 68 | ########################################## |
|
117 | 118 | # |
118 | 119 | ########################################## |
119 | 120 |
|
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:] |
122 | 123 | da_times = np.around(da_times,3) |
123 | 124 | da_times = da_times.tolist() |
124 | 125 |
|
|
193 | 194 | v = 4.0 / u_ref |
194 | 195 |
|
195 | 196 |
|
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 | + |
204 | 200 | dap = { |
205 | 201 | 'da_times' : da_times, |
206 | 202 | # Assimilate all fields |
207 | 203 | 'obs_attrs' : ['rho', 'rhou', 'rhov', 'rhoY', 'p2_nodes'], |
208 | 204 | # 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), |
211 | 207 | # using variance: 1K for temperature, 4ms^-1 for velocity, 50Pa for pressure |
212 | 208 | # 'sd_setter' : [rho**0.5, (rho*v)**0.5, (rho*v)**0.5, p**0.5, pi**0.5], |
213 | 209 | # '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), |
215 | 211 | } |
216 | 212 |
|
217 | 213 | # run simulation |
|
334 | 330 | # run simulation |
335 | 331 | rp.ud = json.dumps(ud) |
336 | 332 | rp.dap = json.dumps(dap) |
337 | | - rp.queue_run() |
| 333 | + # rp.queue_run() |
338 | 334 |
|
339 | 335 |
|
340 | 336 | ud = { |
341 | | - 'aux' : 'wda_31', |
| 337 | + 'aux' : 'wda_41', |
342 | 338 | # Do blending for initial time-step |
343 | 339 | 'initial_blending' : True |
344 | 340 | } |
|
350 | 346 | 'obs_attrs' : ['rho', 'rhou', 'rhov', 'rhoY', 'p2_nodes'], |
351 | 347 | # Path to the generated observation |
352 | 348 | '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) |
354 | 350 | } |
355 | 351 |
|
356 | 352 | # run simulation |
357 | 353 | rp.ud = json.dumps(ud) |
358 | 354 | rp.dap = json.dumps(dap) |
359 | | - # rp.queue_run() |
| 355 | + rp.queue_run() |
360 | 356 |
|
361 | 357 | ud = { |
362 | | - 'aux' : 'wda_31', |
| 358 | + 'aux' : 'wda_41', |
363 | 359 | # Do blending for initial time-step |
364 | 360 | 'initial_blending' : True, |
365 | 361 | 'continuous_blending' : True |
|
368 | 364 | # run simulation |
369 | 365 | rp.ud = json.dumps(ud) |
370 | 366 | rp.dap = json.dumps(dap) |
371 | | - # rp.queue_run() |
| 367 | + rp.queue_run() |
372 | 368 |
|
373 | 369 |
|
374 | 370 | ud = { |
375 | | - 'aux' : 'wda_15', |
| 371 | + 'aux' : 'wda_21', |
376 | 372 | # Do blending for initial time-step |
377 | 373 | 'initial_blending' : True |
378 | 374 | } |
|
384 | 380 | 'obs_attrs' : ['rho', 'rhou', 'rhov', 'rhoY', 'p2_nodes'], |
385 | 381 | # Path to the generated observation |
386 | 382 | '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) |
388 | 384 | } |
389 | 385 |
|
390 | 386 | # run simulation |
391 | 387 | rp.ud = json.dumps(ud) |
392 | 388 | rp.dap = json.dumps(dap) |
393 | | - # rp.queue_run() |
| 389 | + rp.queue_run() |
394 | 390 |
|
395 | 391 | ud = { |
396 | | - 'aux' : 'wda_15', |
| 392 | + 'aux' : 'wda_21', |
397 | 393 | # Do blending for initial time-step |
398 | 394 | 'initial_blending' : True, |
399 | 395 | 'continuous_blending' : True |
|
402 | 398 | # run simulation |
403 | 399 | rp.ud = json.dumps(ud) |
404 | 400 | rp.dap = json.dumps(dap) |
405 | | - # rp.queue_run() |
| 401 | + rp.queue_run() |
406 | 402 |
|
407 | 403 | ud = { |
408 | | - 'aux' : 'wda_7', |
| 404 | + 'aux' : 'wda_5', |
409 | 405 | # Do blending for initial time-step |
410 | 406 | 'initial_blending' : True |
411 | 407 | } |
|
417 | 413 | 'obs_attrs' : ['rho', 'rhou', 'rhov', 'rhoY', 'p2_nodes'], |
418 | 414 | # Path to the generated observation |
419 | 415 | '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) |
421 | 417 | } |
422 | 418 |
|
423 | 419 | # run simulation |
|
426 | 422 | rp.queue_run() |
427 | 423 |
|
428 | 424 | ud = { |
429 | | - 'aux' : 'wda_7', |
| 425 | + 'aux' : 'wda_5', |
430 | 426 | # Do blending for initial time-step |
431 | 427 | 'initial_blending' : True, |
432 | 428 | 'continuous_blending' : True |
|
0 commit comments