From 7a4b17ecf6503bfd570ceab973b6b4da7dc89121 Mon Sep 17 00:00:00 2001 From: Andrea Fiorencis Date: Tue, 17 Jun 2025 11:15:55 +0200 Subject: [PATCH] Inizializzazione fotovoltaici --- Fotovoltaico.py | 24 ++++++++++++++++++++++++ config.yml | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 Fotovoltaico.py diff --git a/Fotovoltaico.py b/Fotovoltaico.py new file mode 100644 index 0000000..af0c750 --- /dev/null +++ b/Fotovoltaico.py @@ -0,0 +1,24 @@ +from src.Functions_Energy_Model import * +from src.Functions_General import * + +location_ita = 'Biella' # location in Italian +capacity = 100 # kWp +tilt_angle = 30 # degrees +azimuth = 0 # degrees +num_years = 1 # number of years to simulate +derating_factor_percent = 1 # derating factor that reduce the efficiency of the modules in percentage [%] + +config = yaml.safe_load(open("config.yml", 'r')) +path_export = str(config['filename_output_csv_gen_pv']) # path to save the results + + +# INIZIALIZZAZIONE PARAMETRI PER SIMULAZIONE +location_eng = location_italian_to_english(location_ita) +path = "config.yml" +filename = "" +key = "project_lifetime_yrs" +value = num_years +add_to_file_yml(path, filename, key, value) +suppress_printing(generate_calendar) # generate the calendar for the location +coordinates_dataset = suppress_printing(create_coordinates_dataset, [location_eng]) # create a dataset with the coordinates of all the locations +derating_factor = derating_factor_percent / 100 \ No newline at end of file diff --git a/config.yml b/config.yml index 934d97a..a4b67e6 100644 --- a/config.yml +++ b/config.yml @@ -1,6 +1,6 @@ # time simulation start_date: 2025-01-01 -project_lifetime_yrs: 20 +project_lifetime_yrs: 1 type_of_cacer: CER # CER; AUC; AID; NO_CACER