This commit is contained in:
jeremias
2021-03-22 10:22:00 +01:00
parent 0eb401c696
commit 3599c030b4
2 changed files with 25 additions and 19 deletions

View File

@ -56,15 +56,20 @@ def plot_parameters(dat, input_file, deparameterize=False, ref=None):
current_val = []
labels = []
for bnd_c in inputfile['estimation']['boundary_conditions']:
if 'windkessel' in bnd_c['type']:
for bnd_set in inputfile['boundary_conditions']:
if bnd_c['id'] == bnd_set['id']:
current_val.append(bnd_set['value'][0])
labels.append('R_' + str(bnd_c['id']))
elif 'dirichlet' in bnd_c['type']:
current_val.append(inputfile['boundary_conditions'][1]['parameters']['U'])
labels.append('U')
current_val.append(inputfile['boundary_conditions'][1]['parameters']['U'])
dim = dat['theta'].shape[-1]
fig1, axes = plt.subplots(1,1,figsize=(8,6))
@ -79,8 +84,8 @@ def plot_parameters(dat, input_file, deparameterize=False, ref=None):
col = cycle(['C0', 'C1', 'C2', 'C3','C4'])
ls = cycle(['-', '-', '--', '--', ':', ':', '-.', '-.'])
legends = cycle(['$R_3$','$R_4$','$R_5$','$R_6$','$U$'])
#legends = cycle(['$R_3$','$U$'])
#legends = cycle(['$R_3$','$R_4$','$R_5$','$R_6$','$U$'])
legends = cycle(labels)
col_ = next(col)