pvcompare.analysis.loop_pvcompare¶
- pvcompare.analysis.loop_pvcompare(scenario_name, latitude, longitude, years, storeys, country, loop_type, loop_dict=None, pv_setup=None, user_inputs_mvs_directory=None, outputs_directory=None, user_inputs_pvcompare_directory=None)[source]¶
Starts multiple pvcompare simulations with a range of values for a specific loop type.
The loop type corresponds to a variable or a set of variables that is/are changed in each loop.The results, stored in two excel sheets, are copied into loop_output_directory.
- Parameters
scenario_name (str) – Name of the Scenario. The name should follow the scheme: “Scenario_A1”, “Scenario_A2”, “Scenario_B1” etc.
latitude (float) – latitude of the location
longitude (foat) – longitude of the location
years (list) – year(s) of simulation
storeys (int) – number of storeys
country (str) – country of location
loop_type (str) – possible values: ‘location’, ‘year’, ‘storeys’, ‘technology’, ‘hp_temp’. Defines the variable or variables that are changed with each loop.
loop_dict (dict) – For location, the form of the dict should be: {“step1”: [“country”, “lat”, “lon”], “step2”: [“country”, “lat”, “lon”], etc}. For technology, the form of the dict should be: {“step1”: “si”, “step2”: “cpv”, “step3”: “psi”} For year/storeys/hp_temp, the form of the dict should be: {“start”: “1”, “stop”: “10”, “step”: “2”}
pv_setup (dict or None) – If pv_setup is None, it is loaded from the input_directory/pv_setup.cvs. Default: None.
user_inputs_mvs_directory (str or None) – Default: user_inputs_mvs_directory = constants.DEFAULT_USER_INPUTS_MVS_DIRECTORY
outputs_directory (str or None) – Path to output directory. Default: outputs_directory = constants.DEFAULT_OUTPUTS_DIRECTORY
user_inputs_pvcompare_directory (str or None) – If None, constants.DEFAULT_USER_INPUTS_PVCOMPARE_DIRECTORY is used as user_input_directory. Default: None.
- Returns
- Return type