diff --git a/kalman/graphics/figure3.py b/kalman/graphics/figure3.py index da75da8..96613da 100644 --- a/kalman/graphics/figure3.py +++ b/kalman/graphics/figure3.py @@ -76,10 +76,13 @@ def plot_parameters(dat, input_file, deparameterize=False, ref=None): } - + dim = dat['theta'].shape[-1] meas_flag = False - RC_flag = False + if dim==7: + RC_flag = True + else: + RC_flag = False line_split = 1.5 current_val = [] current_val_C = [] @@ -110,7 +113,6 @@ def plot_parameters(dat, input_file, deparameterize=False, ref=None): - dim = dat['theta'].shape[-1] fig1, axes1 = plt.subplots(1,1,figsize=(12,6)) if RC_flag: fig2, axes2 = plt.subplots(1,1,figsize=(12,6)) @@ -200,6 +202,7 @@ def plot_parameters(dat, input_file, deparameterize=False, ref=None): axes1.set_ylabel(r'$R_d$',fontsize=22) axes1.legend(fontsize=18,loc='upper right') axes1.set_xlim([-0.01,0.81]) + axes1.set_ylim([1700,35000]) axes1.set_xlabel(r'$t (s)$',fontsize=22) plt.savefig('C.png') diff --git a/kalman/input_files/aorta.yaml b/kalman/input_files/aorta.yaml index 9a2caa7..b7b08e5 100755 --- a/kalman/input_files/aorta.yaml +++ b/kalman/input_files/aorta.yaml @@ -8,7 +8,7 @@ fluid: implicit_windkessel: True io: - write_path: 'results/Rz_Pa_vnoise' + write_path: 'results/Rz_Pc7' restart: path: '' # './projects/nse_coa3d/results/test_restart2/' time: 0 @@ -26,10 +26,9 @@ boundary_conditions: # -U*sin(DOLFIN_PI*(t-1.6)/Th)*(t<= 1.6+Th )*(t>1.6) + (t<2.4)*(1.6+Th0.8) + (t<1.6)*(0.8+Th1.6) + (t<2.4)*(1.6+Th