|
| static void | InitializeStaticVariables () |
| |
| static void | DeleteStaticVariables () |
| |
| static bool | AllVariablesInitialized () |
| |
| static void | PrintUninitializedVariables () |
| | Prints all variable names to stdout, that are not initialized.
|
| |
| static bool | CheckTimeRelatedVariablesInitState () |
| | Returns true if all time-related variables have been initialized. If not, it will return false and prints out all missing variables. It does not include Global::first_timestep and Global::last_timestep (as this checking function is considered to be executed before the calculation of both values). Moreover, it will print out warnings for impossible combinations.
|
| |
| static void | LockAllVariables () |
| | No (set) variable can be overwritten after this call, unset variables can still be set / overwritten once.
|
| |
| static void | UnlockAllVariables () |
| | All variables can now be overwritten.
|
| |
| static unsigned long | get_n_timesteps () |
| |
| static unsigned long | get_first_timestep () |
| | Returns the first timestep (starting at 1) in the simulation range.
|
| |
| static unsigned long | get_last_timestep () |
| | Returns the last (inclusive) timestep (starting at 1) in the simulation range.
|
| |
| static unsigned long | get_n_substations () |
| |
| static unsigned long | get_n_CUs () |
| |
| static unsigned long | get_n_MUs () |
| |
| static unsigned long | get_n_pv_profiles () |
| |
| static unsigned long | get_n_heatpump_profiles () |
| |
| static unsigned int | get_seed () |
| |
| static bool | is_seed_set () |
| |
| static bool | get_compute_weekly_metrics () |
| |
| static bool | is_parameter_variation () |
| |
| static int | get_parameter_varID () |
| |
| static bool | get_repetitions_selected () |
| |
| static uint | get_n_repetitions () |
| |
| static uint | get_n_threads () |
| |
| static bool | get_work_stealing () |
| | True, if work stealing is selected between the running worker threads.
|
| |
| static bool | get_stop_on_cc_err () |
| | Stores the value of command line option 'stop_on_cc_err'. True, if the simulation execution should be stopped on if an computation error occurs inside an optimization-based controller in any control unit.
|
| |
| static struct tm * | get_ts_start_tm () |
| |
| static struct tm * | get_ts_end_tm () |
| |
| static unsigned int | get_tsteps_per_hour () |
| |
| static float | get_time_step_size_in_h () |
| |
| static unsigned long | get_expansion_scenario_id () |
| |
| static bool | get_break_sac_loop_if_limit_reached () |
| | Returns true if the SAC loop should be stopped for an individual combination (like PV + HP) if one of the limits is reached (either PV or HP) (even though HP components should still be added)
|
| |
| static float | get_exp_pv_kWp_static () |
| |
| static float | get_exp_pv_kWp_per_m2 () |
| |
| static float | get_exp_pv_min_kWp_roof_sec () |
| | Returns the min. kWp per roof section - smaller sections will be ignored, defaults to 0.0.
|
| |
| static float | get_exp_pv_max_kWp_roof_sec () |
| | Returns the max. kWp per roof section, or -1.0 if it is not set.
|
| |
| static float | get_exp_pv_max_kWp_per_unit () |
| | Returns the max. kWp per unit, or -1.0 if it is not set.
|
| |
| static float | get_exp_pv_max_kWp_total () |
| | Returns the max. kWp for all expanded units, or -1.0 if it is not set.
|
| |
| static float | get_exp_bess_kW () |
| |
| static float | get_exp_bess_kWh () |
| |
| static float | get_exp_bess_E_P_ratio () |
| |
| static float | get_exp_bess_max_capacity () |
| | Returns the maxium capacity of a battery storage (important for sizing with other modes than constant). Returns -1 if it is not set.
|
| |
| static float | get_exp_bess_sizingE_boPV () |
| |
| static float | get_exp_bess_start_soc () |
| | !< Returns the factor multiplied with PV nominal power if the battery sizing mode is set to use the PV capacity
|
| |
| static float | get_exp_bess_effi_in () |
| |
| static float | get_exp_bess_effi_out () |
| |
| static float | get_exp_bess_self_ds_ts () |
| |
| static float | get_exp_bess_P_for_SOC_0 () |
| |
| static float | get_exp_bess_P_for_SOC_1 () |
| |
| static float | get_exp_bess_max_E_total () |
| | Returns the upper limit of (resid.) battery capacity for installation, or -1.0 if it is not set.
|
| |
| static float | get_exp_bess_max_P_total () |
| | Returns the upper limit of (resid.) battery power for installation, or -1.0 if it is not set.
|
| |
| static bool | is_exp_hp_max_n_addition_set () |
| | Returns true iif a upper limit for the number of added heat pumps is set. The concrete value would be given by Global::get_exp_hp_max_n_addition().
|
| |
| static unsigned long | get_exp_hp_max_n_addition () |
| | Upper limit for the number of added simulated heat pumps.
|
| |
| static bool | is_exp_ev_max_n_addition_set () |
| | Returns true iif a upper limit for the number of added EVs is set. The concrete value would be given by Global::get_exp_ev_max_n_addition().
|
| |
| static unsigned long | get_exp_ev_max_n_addition () |
| | Upper limit for the (total) number of added EVs (summed over all control units)
|
| |
| static unsigned long | get_exp_cs_max_ev_per_cs () |
| | 0 if not selected. Returns the upper limit for the number of added EVs per control unit / EV charging station. Units with more EVs are not selected.
|
| |
| static float | get_open_space_pv_kWp () |
| |
| static float | get_wind_kWp () |
| |
| static float | get_feed_in_tariff () |
| |
| static float | get_demand_tariff () |
| |
| static float | get_emissions_g_CO2eq_per_kWh () |
| |
| static float | get_inst_cost_PV_per_kWp () |
| | !< Returns the mean emissions in g CO2eq for one kWh of grid demanded energy. If a time series is available, use the latter one!
|
| |
| static float | get_inst_cost_BS_per_kWh () |
| |
| static float | get_inst_cost_HP_per_kW () |
| |
| static float | get_inst_cost_CS_per_unit () |
| |
| static float | get_npv_discount_rate () |
| |
| static unsigned int | get_npv_time_horizon () |
| |
| static double | get_npv_factor_if_const () |
| | Returns the factor for multiplication in the NPV formula for the discounted revenues if the cashflow is constant.
|
| |
| static double | get_annuity_factor () |
| | Returns the annuity factor for economic assesment.
|
| |
| static unsigned int | get_hp_flexibility_in_ts () |
| | Returns the flexibility of the heat pump profiles in time steps.
|
| |
| static float | get_heat_demand_thermalE_to_hpE_conv_f () |
| |
| static float | get_heat_cons_bobv_slope () |
| | Parameter of linear regression (slope) for estimating annual heat consumption based on the building volume (bobv)
|
| |
| static float | get_heat_cons_bobv_intercept () |
| | Parameter of linear regression (intercept) for estimating annual heat consumption based on the building volume (bobv)
|
| |
| static float | get_ev_plugin_probability () |
| |
| static float | get_ev_battery_size_kWh () |
| | The battery capacity in kWh for simulated EVs.
|
| |
| static float | get_ev_consumption_kWh_km () |
| | The electricity consumption of an EV for driving 1 km.
|
| |
| static float | get_ev_max_charging_power_kW () |
| | The maximum charging power of a simulated EV.
|
| |
| static float | get_cs_max_charging_power_kW () |
| | Returns the maximum charging power per simulated ComponentCS or -1, if not set.
|
| |
| static bool | get_use_emission_time_series_ia () |
| | Return weather the emission time series (if it is available in the data) should be used or not.
|
| |
| static bool | get_use_prices_time_series_ia () |
| | Return weather the electricity prices time series (if it is available in the data) should be used or not.
|
| |
| static bool | get_select_only_residential_buildings () |
| | Should only be residential buildings be considered for simulated component addition (SAC planning)?
|
| |
| static uint | get_control_horizon_in_ts () |
| | The control horizon in time steps (only if controller_mode is set to a value including optimization)
|
| |
| static uint | get_control_update_freq_in_ts () |
| | The update frequency of the optimization inside the control units (only if controller_mode is set to a value including optimization)
|
| |
| static unsigned long | get_max_parallel_opti_vars () |
| | Returns the number of maximum parallel optimization variables, or 0, if not set.
|
| |
| static const std::string & | get_input_path () |
| |
| static const std::string & | get_output_path () |
| |
| static const std::string & | get_structure_database_name () |
| |
| static const std::string & | get_ev_data_path () |
| |
| static const std::string & | get_cache_dir_path () |
| | Returns the path for the cache directory - it this was NOT set, it will return the default value which is the input path.
|
| |
| static global::OutputModePerCU | get_output_mode_per_cu () |
| |
| static global::ExpansionProfileAllocationMode | get_exp_profile_mode () |
| |
| static global::CUSModeFCA | get_cu_selection_mode_fca () |
| |
| static global::BatteryPowerComputationMode | get_battery_power_computation_mode () |
| |
| static global::BatteryCapacityComputationMode | get_battery_capacity_computation_mode () |
| |
| static global::PVSizingMode | get_exp_pv_sizing_mode () |
| |
| static global::ControllerMode | get_controller_mode () |
| |
| static global::ControllerBSGridChargingMode | get_controller_bs_grid_charging_mode () |
| | Return whether the battery can be charged from the grid / discharged into the grid - only effective if an optimized charging strategy is selected.
|
| |
| static global::ControllerOptimizationTarget | get_controller_optimization_target () |
| | Returns the selected optimization target (only valid if a controller mode with optimization is selected)
|
| |
| static const std::set< unsigned long > * | get_cu_list_for_sac_planning () |
| | Returns the std::set of control unit IDs (if existing, otherwise NULL) that contains the IDs of the units that should be selected for SAC addition.
|
| |
| static float | get_annual_heat_demand_limit_fsac () |
| | Returns the upper limit for selection of a control unit for simulative addition based on the annual heat demand in kWh; -1 if this value is not set (thus no limit is given; default)
|
| |
| static bool | get_select_buildings_wg_heatd_only () |
| | True, if only buildings are to be selected for the simulated addition for which an exact specified heat demand is given in the input data - Defaults to false.
|
| |
| static bool | get_create_substation_output () |
| | Returns whether a output for the substation time series should be created or not.
|
| |
| static bool | get_create_control_cmd_output () |
| | Returns wheather a output for detailed control commands per time step and CU should be created.
|
| |
| static bool | get_create_ev_detailed_output () |
| | Returns wheather a output for detailed EV states per time step and EV should be created.
|
| |
| static const std::string & | get_exp_pv_static_profile_orientation () |
| |
| static int | get_exp_pv_static_profile_idx () |
| |
| static void | increment_seed () |
| | Thus class method increments the current seed at anytime during the simulation, no lock is applied to this function.
|
| |
| static void | set_n_timesteps (unsigned long n_timesteps) |
| |
| static void | set_first_timestep (unsigned long ts) |
| |
| static void | set_last_timestep (unsigned long ts) |
| |
| static void | set_n_substations (unsigned long n_substations) |
| |
| static void | set_n_CUs (unsigned long n_CUs) |
| |
| static void | set_n_MUs (unsigned long n_MUs) |
| |
| static void | set_n_pv_profiles (unsigned long n_pv_ts) |
| |
| static void | set_n_heatpump_profiles (unsigned long n_hp_ts) |
| |
| static void | set_seed (unsigned int value) |
| |
| static void | set_compute_weekly_metrics (bool mode) |
| |
| static void | set_pvar_vals (bool pvar_set, int pvarID) |
| |
| static void | set_repetitions_selected (bool value) |
| |
| static void | set_n_repetitions (unsigned int value) |
| |
| static void | set_n_threads (unsigned int value) |
| |
| static void | set_work_stealing (bool value) |
| |
| static void | set_stop_on_cc_err (bool value) |
| |
| static void | set_ts_start_tm (struct tm *ts_start_tm) |
| |
| static void | set_ts_end_tm (struct tm *ts_end_tm) |
| |
| static void | set_tsteps_per_hour (int tsteps_per_hour) |
| |
| static void | set_expansion_scenario_id (unsigned long expansion_scenario_id) |
| |
| static void | set_break_sac_loop_if_limit_reached (bool value) |
| |
| static void | set_exp_pv_sizing_mode (global::PVSizingMode mode) |
| |
| static void | set_exp_pv_kWp_static (float value) |
| |
| static void | set_exp_pv_kWp_per_m2 (float value) |
| |
| static void | set_exp_pv_min_kWp_roof_sec (float value) |
| |
| static void | set_exp_pv_max_kWp_roof_sec (float value) |
| |
| static void | set_exp_pv_max_kWp_per_unit (float value) |
| |
| static void | set_exp_pv_max_kWp_total (float value) |
| |
| static void | set_exp_bess_kW (float exp_bess_kW) |
| |
| static void | set_exp_bess_kWh (float exp_bess_kWh) |
| |
| static void | set_exp_bess_E_P_ratio (float value) |
| |
| static void | set_exp_bess_max_capacity (float value) |
| |
| static void | set_exp_bess_sizingE_boPV (float value) |
| |
| static void | set_exp_bess_start_soc (float exp_bess_start_soc) |
| |
| static void | set_exp_bess_effi_in (float value) |
| |
| static void | set_exp_bess_effi_out (float value) |
| |
| static void | set_exp_bess_self_ds_ts (float value) |
| |
| static void | set_exp_bess_P_for_SOC_0 (float value) |
| |
| static void | set_exp_bess_P_for_SOC_1 (float value) |
| |
| static void | set_exp_bess_max_E_total (float value) |
| |
| static void | set_exp_bess_max_P_total (float value) |
| |
| static void | set_exp_hp_max_n_addition (unsigned long value) |
| |
| static void | set_exp_ev_max_n_addition (unsigned long value) |
| |
| static void | set_exp_cs_max_ev_per_cs (unsigned long value) |
| |
| static void | set_open_space_pv_kWp (float open_space_kWp) |
| |
| static void | set_wind_kWp (float wind_kWp) |
| |
| static void | set_feed_in_tariff (float value) |
| |
| static void | set_demand_tariff (float value) |
| |
| static void | set_emissions_g_CO2eq_per_kWh (float value) |
| |
| static void | set_inst_cost_PV_per_kWp (float value) |
| |
| static void | set_inst_cost_BS_per_kWh (float value) |
| |
| static void | set_inst_cost_HP_per_kW (float value) |
| |
| static void | set_inst_cost_CS_per_unit (float value) |
| |
| static void | set_npv_discount_rate (float value) |
| |
| static void | set_npv_time_horizon (unsigned int value) |
| |
| static void | set_hp_flexibility_in_ts (unsigned int value) |
| |
| static void | set_heat_demand_thermalE_to_hpE_conv_f (float value) |
| |
| static void | set_heat_cons_bobv_slope (float value) |
| |
| static void | set_heat_cons_bobv_intercept (float value) |
| |
| static void | set_ev_plugin_probability (float value) |
| |
| static void | set_ev_battery_size_kWh (float value) |
| |
| static void | set_ev_consumption_kWh_km (float value) |
| |
| static void | set_ev_max_charging_power_kW (float value) |
| |
| static void | set_cs_max_charging_power_kW (float value) |
| |
| static void | set_use_emission_time_series_ia (bool use) |
| |
| static void | set_use_prices_time_series_ia (bool use) |
| |
| static void | set_select_only_residential_buildings (bool value) |
| |
| static void | set_control_horizon_in_ts (unsigned int value) |
| |
| static void | set_control_update_freq_in_ts (unsigned int value) |
| |
| static void | set_max_parallel_opti_vars (unsigned long value) |
| |
| static void | set_input_path (std::string *path) |
| |
| static void | set_output_path (std::string *path) |
| |
| static void | set_structure_database_name (std::string *fname) |
| |
| static void | set_ev_data_path (std::string *path) |
| |
| static void | set_cache_dir_path (const std::string *path) |
| |
| static void | set_output_mode_per_cu (global::OutputModePerCU mode) |
| |
| static void | set_exp_profile_mode (global::ExpansionProfileAllocationMode mode) |
| |
| static void | set_cu_selection_mode_fca (global::CUSModeFCA mode) |
| |
| static void | set_battery_power_computation_mode (global::BatteryPowerComputationMode mode) |
| |
| static void | set_battery_capacity_computation_mode (global::BatteryCapacityComputationMode mode) |
| |
| static void | set_controller_mode (global::ControllerMode mode) |
| |
| static void | set_controller_bs_grid_charging_mode (global::ControllerBSGridChargingMode mode) |
| |
| static void | set_controller_optimization_target (global::ControllerOptimizationTarget mode) |
| |
| static void | set_cu_list_for_sac_planning (const std::set< unsigned long > *selected_cuIDs) |
| |
| static void | set_annual_heat_demand_limit_fsac (float value) |
| |
| static void | set_select_buildings_wg_heatd_only (bool value) |
| |
| static void | set_create_substation_output (bool value) |
| |
| static void | set_create_control_cmd_output (bool value) |
| |
| static void | set_create_ev_detailed_output (bool value) |
| |
| static void | set_exp_pv_static_profile_orientation (std::string *value) |
| |
| static void | set_exp_pv_static_profile_idx (int value) |
| |