From ef6d199907030907f2b6d0a09a3be49d61e425a5 Mon Sep 17 00:00:00 2001 From: mcgratta Date: Sun, 26 Jun 2022 14:35:46 -0400 Subject: [PATCH] FDS Validation: Remove hardwired values from FM_Burner.m --- Utilities/Matlab/scripts/FM_Burner.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Utilities/Matlab/scripts/FM_Burner.m b/Utilities/Matlab/scripts/FM_Burner.m index 59ea74e8c39..0934305f394 100644 --- a/Utilities/Matlab/scripts/FM_Burner.m +++ b/Utilities/Matlab/scripts/FM_Burner.m @@ -21,14 +21,14 @@ Time_FDS = DEV.data(:,find(strcmp(DEV.colheaders,'Time'))); XO2_FDS = DEV.data(:,find(strcmp(DEV.colheaders,'"XO2"'))); - Qdot_FDS = HRR.data(:,find(strcmp(HRR.colheaders,'HRR')))-1.; + Qdot_FDS = HRR.data(:,find(strcmp(HRR.colheaders,'HRR'))); Qrad_FDS = HRR.data(:,find(strcmp(HRR.colheaders,'Q_RADI'))); ntp = length(Time_FDS); fid = fopen([outdir,'FM_15cm_Burner_',fuel_name{i_fuel},'_',res_name{fds_resolution},'.csv'],'wt','n'); fprintf(fid,'%s\n','XO2,eta,Chi_R'); for ii=1:ntp - fprintf(fid,'%5.3f,%6.2f,%6.2f\n',XO2_FDS(ii),Qdot_FDS(ii)/10.,max(0,-Qrad_FDS(ii)/max(0.001,Qdot_FDS(ii)))); + fprintf(fid,'%5.3f,%6.2f,%6.2f\n',XO2_FDS(ii),Qdot_FDS(ii)/max(Qdot_FDS),max(0,-Qrad_FDS(ii)/max(0.001,Qdot_FDS(ii)))); end fclose(fid);