pvcompare.stratified_thermal_storage.add_strat_tes¶
- pvcompare.stratified_thermal_storage.add_strat_tes(weather, lat, lon, user_inputs_pvcompare_directory=None, user_inputs_mvs_directory=None, overwrite_tes_parameters=None)[source]¶
Adds stratified thermal storage if it exists either in ‘energyStorage.csv’.
The precalculations are done if inflow_direction and outflow_direction give a hint that the respective asset is a heat storage (inflow_direction: “Heat”, outflow_direction: “Heat”; check second option in the “Notes” section below).
- Parameters
weather (pandas.DataFrame) – DataFrame with time series for temperature in column ‘temp_air’ in °C.
lat (float) – Latitude of ambient temperature location in weather.
lon (float) – Longitude of ambient temperature location in weather.
user_inputs_pvcompare_directory (str or None) – Directory of the user inputs. If None, constants.DEFAULT_USER_INPUTS_PVCOMPARE_DIRECTORY is used as user_inputs_pvcompare_directory. Default: None.
user_inputs_mvs_directory (str or None) – Path to input directory containing files that describe the energy system and that are an input to MVS. Default: DEFAULT_MVS_OUTPUT_DIRECTORY (see
constants()
.overwrite_tes_parameters (bool) – Default: True. If true, existing fixed thermal losses absolute and relative will be overwritten with calculated time series of fixed thermal losses relative and absolute.
Notes
You can include a stratified thermal storage in the model using two ways:
With storage component with inflow_direction and outflow_direction to the heat bus
- With a storage bus, a storage component and inflow_direction and outflow_direction
as Transformer feeding in and from that bus Please note that the cost parameters of inflow_direction and outflow_direction of the Transformer should be set to zero, since they cannot be assigned to a real plant component with cost parameters
- Returns
Depending on the case, updates energyStorage.csv and saves calculated values to
’data/mvs_inputs/time_series’.