Skip to content

Commit

Permalink
Merge pull request #10710 from mcgratta/master
Browse files Browse the repository at this point in the history
FDS Validation: Remove hardwired values from FM_Burner.m
  • Loading branch information
mcgratta authored Jun 26, 2022
2 parents ce79e42 + ef6d199 commit ec52dee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Utilities/Matlab/scripts/FM_Burner.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ec52dee

Please sign in to comment.