Skip to content

Commit

Permalink
Merge pull request #13956 from rmcdermo/master
Browse files Browse the repository at this point in the history
FDS Validation: improve formatting of wood_ramps.py script
  • Loading branch information
rmcdermo authored Dec 30, 2024
2 parents 9fc70e3 + ddeac6e commit 32f4101
Showing 1 changed file with 36 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,20 @@
print('dry wood properties:')

cdf = pd.DataFrame({'T': T-273., 'c': c})
print(cdf)
# print(cdf)
T_values = T
F_values = c
print('')
for TT, FF in zip(T_values, F_values):
print(f"&RAMP ID='c_v dry wood', T={TT}, F={FF:.4g}/")

kdf = pd.DataFrame({'T': T-273., 'k': k})
print(kdf)
# print(kdf)
T_values = T
F_values = k
print('')
for TT, FF in zip(T_values, F_values):
print(f"&RAMP ID='k dry wood', T={TT}, F={FF:.4g}/")

# plt.figure(1)
# plt.plot(T,c)
Expand All @@ -57,10 +67,20 @@
print('char properties:')

cdf = pd.DataFrame({'T': T-273., 'c': c})
print(cdf)
# print(cdf)
T_values = T
F_values = c
print('')
for TT, FF in zip(T_values, F_values):
print(f"&RAMP ID='c_v char', T={TT}, F={FF:.4g}/")

kdf = pd.DataFrame({'T': T-273., 'k': k})
print(kdf)
# print(kdf)
T_values = T
F_values = k
print('')
for TT, FF in zip(T_values, F_values):
print(f"&RAMP ID='k + k_r char', T={TT}, F={FF:.4g}/")

# ash

Expand All @@ -77,10 +97,20 @@
print('ash properties:')

cdf = pd.DataFrame({'T': T-273., 'c': c})
print(cdf)
# print(cdf)
T_values = T
F_values = c
print('')
for TT, FF in zip(T_values, F_values):
print(f"&RAMP ID='c_v ash', T={TT}, F={FF:.4g}/")

kdf = pd.DataFrame({'T': T-273., 'k': k})
print(kdf)
# print(kdf)
T_values = T
F_values = k
print('')
for TT, FF in zip(T_values, F_values):
print(f"&RAMP ID='k + k_r ash', T={TT}, F={FF:.4g}/")



Expand Down

0 comments on commit 32f4101

Please sign in to comment.