Skip to content

Commit 9f5233b

Browse files
Merge pull request #15411 from marcosvanella/master
FDS Verification: changes to mass_balance.py.
2 parents 294ca47 + 36c92a3 commit 9f5233b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Source/pres.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3653,7 +3653,7 @@ SUBROUTINE CHECK_UNSUPPORTED_MESH(SUPPORTED_MESH)
36533653
TRN_ME(2)=TRN_ME(1)
36543654
IF (N_MPI_PROCESSES > 1) CALL MPI_ALLREDUCE(TRN_ME(1),TRN_ME(2),1,MPI_INTEGER,MPI_SUM,MPI_COMM_WORLD,IERR)
36553655
IF (TRN_ME(2) > 0) THEN ! Meshes at different refinement levels. Not Unsupported.
3656-
IF (MY_RANK == 0) WRITE(LU_ERR,*) 'GLMAT Setup Error : Meshes at different refinement levels unsupported.'
3656+
IF (MY_RANK == 0) WRITE(LU_ERR,*) 'GLMAT Setup Error: Meshes at different refinement levels currently unsupported for &GEOM.'
36573657
SUPPORTED_MESH = .FALSE.
36583658
STOP_STATUS = SETUP_STOP
36593659
RETURN

Utilities/Python/scripts/mass_balance.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
def plot_mass_balance(chid, title_text):
1414

1515
plot_style = fdsplotlib.get_plot_style('fds')
16-
ddir = '../../Verification/Species/'
17-
pltdir = '../../Manuals/FDS_Verification_Guide/SCRIPT_FIGURES/'
16+
fds_dir = os.path.normpath(os.path.join(os.path.dirname(__file__),'..','..','..'))
17+
ddir = os.path.join(fds_dir, 'Verification','Species','')
18+
pltdir = os.path.join(fds_dir, 'Manuals','FDS_Verification_Guide','SCRIPT_FIGURES','')
1819

1920
mass_file = os.path.join(ddir, f'{chid}_mass.csv')
2021

@@ -47,16 +48,15 @@ def plot_mass_balance(chid, title_text):
4748

4849
# Plot zero reference line first (black solid line, no label)
4950
fig = fdsplotlib.plot_to_fig(x_data=t, y_data=np.zeros_like(t), marker_style='k-',revision_label=version_string,legend_location='upper right',
50-
x_label='time (s)', y_label='mass flow (kg/s)',x_min=0, x_max=2000, y_min=-0.005, y_max=0.015)
51+
x_label='time (s)', y_label='mass flow (kg/s)',x_min=0, x_max=2000, y_min=-0.005, y_max=0.015,
52+
xnumticks=6, ynumticks=5)
5153
fdsplotlib.plot_to_fig(x_data=t, y_data=mdot_in, figure_handle=fig, marker_style='r-', data_label='Inlet H2O')
5254
fdsplotlib.plot_to_fig(x_data=t, y_data=-mdot_out, figure_handle=fig, marker_style='m-', data_label='Outlet H2O')
5355
fdsplotlib.plot_to_fig(x_data=t, y_data=bal, figure_handle=fig, marker_style='b-', data_label='dm/dt+out-in')
5456

5557
ax = plt.gca()
5658
lines = ax.get_lines()
57-
lines[2].set_color('#EDB120') # Orange for outlet (second data line)
58-
ax.locator_params(axis='x', nbins=6) # ~6 ticks on x-axis
59-
ax.locator_params(axis='y', nbins=5) # ~5 ticks on y-axis
59+
lines[2].set_color('orange') # Orange for outlet (second data line)
6060
fdsplotlib.apply_global_exponent(ax, axis='y')
6161
ax.text(100, 18e-3, title_text,fontsize=plot_style['Title_Font_Size'],fontname=plot_style['Font_Name'])
6262

0 commit comments

Comments
 (0)