Power.ftt_p_rldc module

Power.ftt_p_rldc module#

ftt_p_rldc.py#

Power generation RLDC FTT module.

Local library imports:

Support functions:

  • divide

    Element-wise divide which replaces divide-by-zeros with zeros

Functions included:
  • rldc

    Calculate residual load duration curves

Power.ftt_p_rldc.feqs(a)#
Power.ftt_p_rldc.get_wind_solar_indices(titles)#

Load wind/solar/CSP technology indices from T2TI_roles.csv.

‘csp’ is optional — if absent from the CSV (e.g. 12-tech schema where CSP is merged into Solar), csp_idx is set to None and the RLDC skips the CSP addend.

Power.ftt_p_rldc.rldc(data, MEWDt, time_lag, data_dt, year, t, titles, histend, wind_solar_indices, sector_coupling=True)#

Calculate RLDCs.

The function calculates the RLDCs and returns load band heights, curtailment, and storage information, including storage costs and marginal costs for wind and solar.

Parameters:
  • data (dictionary) – data is a dictionary with data of current year. Variable names are keys and the values are 3D NumPy arrays.

  • time_lag (dictionary) – time_lag is the same, but with data for last year. Variable names are keys and the values are 3D NumPy arrays.

  • t (int) – Current iteration timestep within the year.

  • titles (dictionary) – Titles is a container of all permissible dimension titles of the model.

Returns:

  • data (dictionary)

  • Updated variables are MCRT (curtailment), MCTG (gross curtailment per tech),

  • MKLB (capacity by load band),

  • Four categories of storage costs (long-term vs short-term, normal vs marginal)