Skip to content

Commit 2f78c8f

Browse files
authored
Merge pull request #15249 from cxp484/FireX
FireX: Merge with firemodels/master
2 parents 54fc5bb + bc67661 commit 2f78c8f

File tree

5 files changed

+172
-303
lines changed

5 files changed

+172
-303
lines changed

Utilities/Matlab/FDS_validation_script.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
backward_facing_step
7777
sandia_helium_plume
7878
sandia_methane_fire
79-
spray_attenuation
8079
flame_height2
8180
purdue_flames
8281
NIST_NRC_Parallel_Panels

Utilities/Matlab/scripts/spray_attenuation.m

Lines changed: 0 additions & 267 deletions
This file was deleted.

Utilities/Python/FDS_validation_script.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
# Special cases
4444

4545
print("Beyler_Hood..."); subprocess.run(["python","./scripts/Beyler_Hood.py"])
46+
print("BRE_LEMTA_Sprays..."); subprocess.run(["python","./scripts/BRE_LEMTA_Sprays.py"])
4647
print("FM_FPRF_Datacenter..."); subprocess.run(["python","./scripts/FM_FPRF_Datacenter.py"])
4748
print("McCaffrey_Plume..."); subprocess.run(["python","./scripts/McCaffrey_Plume.py"])
4849
print("Sandia_Pools..."); subprocess.run(["python","./scripts/Sandia_Pools.py"])

Utilities/Python/fdsplotlib.py

Lines changed: 28 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ def plot_to_fig(x_data,y_data,**kwargs):
351351
default_legend_framealpha = 1
352352
default_title_fontsize = plot_style["Title_Font_Size"]
353353
default_markevery = 1
354-
markerfacecolor = 'none'
354+
markerfacecolor = None
355355
markeredgecolor = 'black'
356356
markeredgewidth = 1
357357
marker = None
@@ -361,20 +361,9 @@ def plot_to_fig(x_data,y_data,**kwargs):
361361
color = 'black'
362362
###############################
363363

364-
if kwargs.get('figure_size'):
365-
figure_size=kwargs.get('figure_size')
366-
else:
367-
figure_size=default_figure_size
368-
369-
if kwargs.get('plot_size'):
370-
plot_size=kwargs.get('plot_size')
371-
else:
372-
plot_size=default_plot_size
373-
374-
if kwargs.get('plot_origin'):
375-
plot_origin=kwargs.get('plot_origin')
376-
else:
377-
plot_origin=default_plot_origin
364+
figure_size=kwargs.get('figure_size',default_figure_size)
365+
plot_size=kwargs.get('plot_size',default_plot_size)
366+
plot_origin=kwargs.get('plot_origin',default_plot_origin)
378367

379368
# if figure handle is passed, append to current figure, else generate a new figure
380369
if kwargs.get('figure_handle'):
@@ -407,7 +396,10 @@ def plot_to_fig(x_data,y_data,**kwargs):
407396
style = kwargs.get('line_style')
408397
color,marker,linestyle = parse_matlab_style(style)
409398

410-
fill_color = kwargs.get('fill_color',color)
399+
marker_fill_color = kwargs.get('marker_fill_color',None)
400+
markerfacecolor = marker_fill_color
401+
402+
error_fill_color = kwargs.get('error_fill_color',None)
411403

412404
# other plot parameters
413405
markevery = kwargs.get('data_markevery',default_markevery)
@@ -474,26 +466,27 @@ def plot_to_fig(x_data,y_data,**kwargs):
474466
color=color)
475467

476468
# if y fill range is passed, add it to the plot
477-
if kwargs.get('y_fill_absolute') and not kwargs.get('y_fill_relative'):
478-
if kwargs.get('y_fill_absolute')>0.:
469+
if kwargs.get('y_error_fill_absolute') and not kwargs.get('y_error_fill_relative'):
470+
if kwargs.get('y_error_fill_absolute')>0.:
479471
ax.fill_between(x_data,y_data-kwargs.get('y_fill_absolute'),y_data+kwargs.get('y_fill_absolute'),
480-
alpha=0.1,color=kwargs.get('marker_edge_color'))
481-
482-
if kwargs.get('y_fill_relative') and not kwargs.get('y_fill_absolute'):
483-
if kwargs.get('y_fill_relative')>0.:
484-
ax.fill_between(x_data,y_data*(1.-kwargs.get('y_fill_relative')),y_data*(1.+kwargs.get('y_fill_relative')),
485-
alpha=0.1,color=kwargs.get('marker_edge_color'))
486-
487-
if kwargs.get('y_fill_relative') and kwargs.get('y_fill_absolute'):
488-
if kwargs.get('y_fill_relative')>0.:
489-
ax.fill_between(x_data,y_data*(1.-kwargs.get('y_fill_relative'))-kwargs.get('y_fill_absolute'),y_data*(1.+kwargs.get('y_fill_relative'))+kwargs.get('y_fill_absolute'),
490-
alpha=0.1,color=kwargs.get('marker_edge_color'))
491-
492-
if kwargs.get('y_fill'):
493-
y_fill = kwargs.get('y_fill')
494-
if len(y_data)==len(y_fill):
495-
ax.fill_between(x_data,y_data-y_fill,y_data+y_fill,
496-
alpha=0.1,color=fill_color)
472+
alpha=0.1,color=error_fill_color)
473+
474+
if kwargs.get('y_error_fill_relative') and not kwargs.get('y_error_fill_absolute'):
475+
if kwargs.get('y_error_fill_relative')>0.:
476+
ax.fill_between(x_data,y_data*(1.-kwargs.get('y_error_fill_relative')),y_data*(1.+kwargs.get('y_error_fill_relative')),
477+
alpha=0.1,color=error_fill_color)
478+
479+
if kwargs.get('y_error_fill_relative') and kwargs.get('y_error_fill_absolute'):
480+
if kwargs.get('y_error_fill_relative')>0.:
481+
ax.fill_between(x_data,y_data*(1.-kwargs.get('y_error_fill_relative'))-kwargs.get('y_error_fill_absolute'),
482+
y_data*(1.+kwargs.get('y_error_fill_relative'))+kwargs.get('y_error_fill_absolute'),
483+
alpha=0.1,color=error_fill_color)
484+
485+
if kwargs.get('y_error_fill'):
486+
y_error_fill = kwargs.get('y_error_fill')
487+
if len(y_data)==len(y_error_fill):
488+
ax.fill_between(x_data,y_data-y_error_fill,y_data+y_error_fill,
489+
alpha=0.1,color=error_fill_color)
497490
else:
498491
raise ValueError(f"y_fill must the same length as y_data")
499492

0 commit comments

Comments
 (0)