Skip to content

Commit ddeac6e

Browse files
committed
FDS Validation: improve formatting of wood_ramps.py script
1 parent 9fc70e3 commit ddeac6e

File tree

1 file changed

+36
-6
lines changed
  • Validation/Kashiwagi_Gasification/FDS_Input_Files/Build_Input_Files

1 file changed

+36
-6
lines changed

Validation/Kashiwagi_Gasification/FDS_Input_Files/Build_Input_Files/wood_ramps.py

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,20 @@
2929
print('dry wood properties:')
3030

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

3439
kdf = pd.DataFrame({'T': T-273., 'k': k})
35-
print(kdf)
40+
# print(kdf)
41+
T_values = T
42+
F_values = k
43+
print('')
44+
for TT, FF in zip(T_values, F_values):
45+
print(f"&RAMP ID='k dry wood', T={TT}, F={FF:.4g}/")
3646

3747
# plt.figure(1)
3848
# plt.plot(T,c)
@@ -57,10 +67,20 @@
5767
print('char properties:')
5868

5969
cdf = pd.DataFrame({'T': T-273., 'c': c})
60-
print(cdf)
70+
# print(cdf)
71+
T_values = T
72+
F_values = c
73+
print('')
74+
for TT, FF in zip(T_values, F_values):
75+
print(f"&RAMP ID='c_v char', T={TT}, F={FF:.4g}/")
6176

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

6585
# ash
6686

@@ -77,10 +97,20 @@
7797
print('ash properties:')
7898

7999
cdf = pd.DataFrame({'T': T-273., 'c': c})
80-
print(cdf)
100+
# print(cdf)
101+
T_values = T
102+
F_values = c
103+
print('')
104+
for TT, FF in zip(T_values, F_values):
105+
print(f"&RAMP ID='c_v ash', T={TT}, F={FF:.4g}/")
81106

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

85115

86116

0 commit comments

Comments
 (0)