Skip to content

Commit 94c03d9

Browse files
authored
Merge pull request #15193 from mcgratta/master
FDS Verification: Remove quotes from scripts
2 parents b653fb3 + 23c31a5 commit 94c03d9

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

Utilities/Matlab/scripts/freecon_sphere.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102

103103
% check for steady state
104104
t = M.data(:,find(strcmp(M.colheaders,'Time')));
105-
Q = mean(M.data(round(end/2):end,find(strcmp(M.colheaders,'"Q"'))))*1000;
105+
Q = mean(M.data(round(end/2):end,find(strcmp(M.colheaders,'Q'))))*1000;
106106
alpha = k/(rho*cp);
107107
nu = mu/rho;
108108
b = 2./(T(i)+T2);

Utilities/Matlab/scripts/impinging_jet.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
% FDS results
6060

6161
M = importdata([outdir,'impinging_jet_Re_',Re_str{i},'_',res_str{j},'_devc.csv'],',',2);
62-
HF = mean(M.data(floor(end/2):end,find(strcmp(M.colheaders,'"HF"'))));
62+
HF = mean(M.data(floor(end/2):end,find(strcmp(M.colheaders,'HF'))));
6363

6464
qconv = HF * 1000; % W/m2
6565
h_fds = qconv/(T_j-T_w);

Utilities/Matlab/scripts/natconh.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,9 @@
228228

229229
% check for steady state
230230
t = M.data(:,1);
231-
Q1 = M.data(:,find(strcmp(M.colheaders,'"Q1-0"')));
232-
Q2 = M.data(:,find(strcmp(M.colheaders,'"Q2-0"')));
233-
rho = M.data(end,find(strcmp(M.colheaders,'"rho"')));
231+
Q1 = M.data(:,find(strcmp(M.colheaders,'Q1-0')));
232+
Q2 = M.data(:,find(strcmp(M.colheaders,'Q2-0')));
233+
rho = M.data(end,find(strcmp(M.colheaders,'rho')));
234234
alpha = k/(rho*cp);
235235
nu = mu/rho;
236236
b = 2./(T(i)+T2);

Utilities/Matlab/scripts/natconv.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,9 @@
351351

352352
% check for steady state
353353
t = M.data(:,1);
354-
Q1 = M.data(:,find(strcmp(M.colheaders,'"Q1-0"')));
355-
Q2 = M.data(:,find(strcmp(M.colheaders,'"Q2-0"')));
356-
rho = M.data(end,find(strcmp(M.colheaders,'"rho"')));
354+
Q1 = M.data(:,find(strcmp(M.colheaders,'Q1-0')));
355+
Q2 = M.data(:,find(strcmp(M.colheaders,'Q2-0')));
356+
rho = M.data(end,find(strcmp(M.colheaders,'rho')));
357357
alpha = k/(rho*cp);
358358
nu = mu/rho;
359359
b = 2./(T(i)+T2);

Utilities/Matlab/scripts/tunnel_pressure_drop.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@
5050

5151
M = importdata([datadir,chid,'_',cases{i},'_',res{j},'_devc.csv'],',',2);
5252
t = M.data(:,find(strcmp(M.colheaders,'Time')));
53-
U = M.data(:,find(strcmp(M.colheaders,'"UBAR"')));
53+
U = M.data(:,find(strcmp(M.colheaders,'UBAR')));
5454
% plot(t,U)
5555
% xlabel('time (s)')
5656
% ylabel('u velocity (m/s)')
5757

5858
% compute friction factor (f) from Colebrook equation
59-
mu = M.data(end,find(strcmp(M.colheaders,'"MU"'))); % dynamic viscosity of AIR
60-
rho = M.data(end,find(strcmp(M.colheaders,'"RHO"'))); % density of AIR
59+
mu = M.data(end,find(strcmp(M.colheaders,'MU'))); % dynamic viscosity of AIR
60+
rho = M.data(end,find(strcmp(M.colheaders,'RHO'))); % density of AIR
6161

6262
Re = rho*H(i)*VEL(i)/mu;
6363
[f,error,iter] = colebrook(Re,s(i)/H(i),.001,1e-9);
@@ -66,7 +66,7 @@
6666

6767
% pressure drop
6868

69-
P = M.data(end,find(strcmp(M.colheaders,'"P10"')):end)';
69+
P = M.data(end,find(strcmp(M.colheaders,'P10')):end)';
7070

7171
hh(nh)=plot(x,P,markers{j}); hold on;
7272
nh=nh+1;

0 commit comments

Comments
 (0)