Skip to content

Commit

Permalink
Added default values
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadac1 committed Jan 22, 2023
1 parent 66bd550 commit d1adae1
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 8 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file removed Profils/profil_50_pic1.xlsx
Binary file not shown.
Binary file removed Profils/profil_80_pic1.xlsx
Binary file not shown.
Binary file removed Profils/profil_90_pic1.xlsx
Binary file not shown.
13 changes: 11 additions & 2 deletions interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,37 +46,46 @@ def on_study_select(*args):
eta_label.grid(row=1, column=0)
eta_entry = tk.Entry(root)
eta_entry.grid(row=1, column=1)
eta_entry.insert(0, "0.33")

sys_max_label = tk.Label(root, text="System max power (MWe)", font=font_option)
sys_max_label.grid(row=2, column=0)
sys_max_entry = tk.Entry(root)
sys_max_entry.grid(row=2, column=1)
sys_max_entry.insert(0, "500")


reac_T_out_label = tk.Label(root, text="Reactor outlet temperature (°C)", font=font_option)
reac_T_out_label.grid(row=3, column=0)
reac_T_out_entry = tk.Entry(root)
reac_T_out_entry.grid(row=3, column=1)
reac_T_out_entry.insert(0, "550")

reac_T_in_label = tk.Label(root, text="Reactor inlet temperature (°C)", font=font_option)
reac_T_in_label.grid(row=4, column=0)
reac_T_in_entry = tk.Entry(root)
reac_T_in_entry.grid(row=4, column=1)
reac_T_in_entry.insert(0, "400")


T_hot_label = tk.Label(root, text="Hot storage temperature (°C)", font=font_option)
T_hot_label.grid(row=5, column=0)
T_hot_entry = tk.Entry(root)
T_hot_entry.grid(row=5, column=1)
T_hot_entry.insert(0, "500")


T_cold_label = tk.Label(root, text="Cold storage temperature (°C)", font=font_option)
T_cold_label.grid(row=6, column=0)
T_cold_entry = tk.Entry(root)
T_cold_entry.grid(row=6, column=1)
T_cold_entry.insert(0, "290")

storage_level_label = tk.Label(root, text="Storage Initial Level", font=font_option)
storage_level_label = tk.Label(root, text="Storage Initial Level (0-1)", font=font_option)
storage_level_label.grid(row=7, column=0)
storage_level_entry = tk.Entry(root)
storage_level_entry.grid(row=7, column=1)

storage_level_entry.insert(0, "1")

# Create Combobox for season selection
rate_label = tk.Label(root, text=" VRE penetration rate ", font=font_option)
Expand Down
12 changes: 6 additions & 6 deletions load_interpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ def interpolation(profil) :
return donnees_interpo


profil_90EnR_sem_sum = interpolation('Profils/DonnéesPDI-90_EnR_sem_ete.xlsx')
profil_80EnR_sem_sum = interpolation('Profils/DonnéesPDI-80_EnR_sem_ete.xlsx')
profil_50EnR_sem_sum = interpolation('Profils/DonnéesPDI-50_EnR_sem_ete.xlsx')
profil_90EnR_sem_sum = interpolation('Profils/DataPDI-90_EnR_sem_ete.xlsx')
profil_80EnR_sem_sum = interpolation('Profils/DataPDI-80_EnR_sem_ete.xlsx')
profil_50EnR_sem_sum = interpolation('Profils/DataPDI-50_EnR_sem_ete.xlsx')

profil_50EnR_sem_winter = interpolation('Profils/DonnéesPDI-50_EnR_sem_hiver.xlsx')
profil_90EnR_sem_winter = interpolation('Profils/DonnéesPDI-90_EnR_sem_hiver.xlsx')
profil_80EnR_sem_winter = interpolation('Profils/DonnéesPDI-80_EnR_sem_hiver.xlsx')
profil_50EnR_sem_winter = interpolation('Profils/DataPDI-50_EnR_sem_hiver.xlsx')
profil_90EnR_sem_winter = interpolation('Profils/DataPDI-90_EnR_sem_hiver.xlsx')
profil_80EnR_sem_winter = interpolation('Profils/DataPDI-80_EnR_sem_hiver.xlsx')


# df = pd.read_excel('Profils/profil_50_pic1.xlsx', sheet_name='Feuil1') # can also index sheet by name or fetch all sheets
Expand Down

0 comments on commit d1adae1

Please sign in to comment.