Documentation of UrbanFireXDT
Documentation of UrbanFireXDT
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions | Variables
global.h File Reference
#include <ctime>
#include <filesystem>
#include <list>
#include <map>
#include <set>
#include <string>
#include <utility>
#include <vector>
#include "sac_planning.h"
#include "units.h"
Include dependency graph for global.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Global
 

Namespaces

namespace  global
 

Enumerations

enum struct  global::OutputModePerCU : short { global::IndividualFile , global::SingleFile , global::NoOutput }
 
enum struct  global::ExpansionProfileAllocationMode : short { global::Uninitialized , global::AsInData , global::Random }
 
enum struct  global::CUSModeFCA {
  global::Uninitialized , global::OrderAsInData , global::RandomSelection , global::BestSSR ,
  global::BestNPV , global::UseList
}
 
enum struct  global::BatteryPowerComputationMode { global::AsDefinedByConfigVar , global::UseEOverPRatio }
 
enum struct  global::BatteryCapacityComputationMode {
  global::Constant , global::BasedOnNominalPVPower , global::BasedOnAnnualConsumption , global::BasedOnAnnualConsumptionWithHeatPump ,
  global::Optimized
}
 
enum struct  global::PVSizingMode : short { global::MaxAvailableRoofArea , global::StaticPVSize , global::Optimized }
 
enum struct  global::ControllerMode { global::RuleBased , global::OptimizedWithPerfectForecast }
 
enum struct  global::ControllerBSGridChargingMode { global::NoGridCharging , global::OnlyGridCharging , global::GridChargingAndDischarging }
 
enum struct  global::ControllerOptimizationTarget { global::ElectricityCosts , global::PeakLoad , global::Emissions }
 

Functions

bool global::all_variables_initialized ()
 Checks if all variables are initialized.
 
void global::vacuum ()
 Deletes all global variables in the end.
 
void global::print_uninitialized_variables ()
 Prints all variable names to stdout, that are not initialized.
 

Variables

unsigned long * global::time_timestep_id = NULL
 Reference to the list of time steps.
 
std::vector< struct tm * > * global::time_localtime_r = NULL
 Reference to the list of right-aligned time stamps as struct tm. Right-aligned means the time at time step ts denotes the time at the ending of the interval - alignment fits to time_timestep_id.
 
std::vector< struct tm * > * global::time_localtime_l = NULL
 Reference to the list of left-aligned time stamps as struct tm. Left-aligned means the time at time step ts denotes the time at the start of the interval - alignment fits to time_timestep_id.
 
std::vector< std::string > * global::time_localtimezone_str = NULL
 Reference to the list of the time zone as string - alignment fits to time_timestep_id.
 
std::map< std::string, size_t > global::pv_profiles_information
 Map (orientation, number of time series) where the number of pv-profiles per orientation are given.
 
std::map< std::string, std::vector< const float * > > global::pv_profiles_per_ori
 Map (orientation, vector of references to the time series) where the available time series per orientation are given - same ordering as in data.
 
const float *const * global::pv_profiles_data = NULL
 Reference to the list of global PV profiles (Two dimensional array with [n_pv_profiles, n_timesteps])
 
const float *const * global::hp_profiles = NULL
 Reference to the list of global heat pump profiles (Two dimensional array with [n_heatpump_profiles, n_timesteps])
 
const double *const * global::hp_profiles_cumsum = NULL
 Reference to the list of cumulated global heat pump profiles (Two dimensional array with [n_heatpump_profiles, n_timesteps])
 
const float * global::residual_gridload_kW = NULL
 Residual netload, i.e. amount of load that has to be added to the final netload, this is a load that is not measured by smart meters occuring in this simulation.
 
const float * global::wind_profile = NULL
 Reference to the list of the global wind profile values.
 
OpenSpacePVOrWindglobal::unit_open_space_pv = NULL
 Reference to the global open space pv unit.
 
OpenSpacePVOrWindglobal::unit_open_space_wind = NULL
 Reference to the global open space wind unit.
 
unsigned long global::n_ts_between_flushs = 1000
 Number of timesteps between the flush of the output buffers.
 
std::map< unsigned long, float > global::annual_heat_demand_kWh
 Map storing the annaul heat demand for the buildings in kWh (thermal) [per location id].
 
std::map< unsigned long, float > global::building_volumes_m3
 Map storing the volume of the biggest building at a given location in cubic-meters (m^3)
 
std::map< unsigned long, std::vector< std::pair< float, std::string > > > global::roof_section_orientations
 Map storing a complet list of roof sections per location ID. Roof sections are tuples/pairs with the information (roof section area, roof section orientation)
 
std::set< unsigned long > global::locations_with_geodata
 List / Set storing all locations for which geodata is available.
 
unsigned int global::current_repetition_counter = 0
 Repetition counter, if repetitions is set as a command line argument.
 
const float * global::emission_ts = NULL
 Reference to the emission time series for grid demanded energy (if present) in g CO2eq per kWh.
 
const float * global::eprices_local_ts = NULL
 Reference to the time series of the energy prices (for residential customers) for grid demanded energy (if present)
 
const float * global::eprices_spotm_ts = NULL
 Reference to the time series of the energy prices at the spot market (for non-residential customers, without vat or taxes) (if present)
 
std::vector< unsigned long > global::unitIDs_selected_for_output
 A vector containing a list of all unitIDs selected for output. If this vector is empty (as it is by default), all units will generate an output.
 
std::list< std::list< std::pair< std::string, float > > > * global::parameter_var_list = NULL
 List of parameters variation settings (i.e. the list contains a list of lists, where the inner lists represent a setting of ONE parameter variation setting (variable name, variable value))
 
unsigned int global::curr_param_vari_combi_index = 0
 The index of the current parameter variation combination, that is simulated (0, if no parameter variation is selected)
 
std::filesystem::path * global::current_output_dir = NULL
 Reference to the object holding the current output path (maybe changed due to different parameter variations)
 
std::filesystem::path * global::current_output_dir_prefix = NULL
 Reference to the path of the output path where all parameter variations can be found (i.e. the top level of current_output_dir if param vari is selected; i.e.2. one level below current_global_output_dir)
 
std::filesystem::path * global::current_global_output_dir = NULL
 Reference to the object holding the current output dir for global information (i.e. information that does not change during parameter variations)
 
bool global::time_info_init = false
 
std::chrono::time_point< std::chrono::system_clock > global::time_of_simulation_start
 The time of the simulation start.
 
std::string global::structure_db_column_name_energy_prices = "local_price"
 The name of the column containing the local energy prices in EUR/kWh.
 
const char *const global::output_section_delimiter = "*********************************************************************************"