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.rldc(data, MEWDt, time_lag, data_dt, year, t, titles, histend)#
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)