From ddeac6ea88b7668047e9552be0a355e32ce192af Mon Sep 17 00:00:00 2001 From: rmcdermo Date: Mon, 30 Dec 2024 12:00:34 -0500 Subject: [PATCH] FDS Validation: improve formatting of wood_ramps.py script --- .../Build_Input_Files/wood_ramps.py | 42 ++++++++++++++++--- 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/Validation/Kashiwagi_Gasification/FDS_Input_Files/Build_Input_Files/wood_ramps.py b/Validation/Kashiwagi_Gasification/FDS_Input_Files/Build_Input_Files/wood_ramps.py index 3cc8fcd4391..407da096950 100644 --- a/Validation/Kashiwagi_Gasification/FDS_Input_Files/Build_Input_Files/wood_ramps.py +++ b/Validation/Kashiwagi_Gasification/FDS_Input_Files/Build_Input_Files/wood_ramps.py @@ -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) @@ -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 @@ -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}/")