.. _electricity-model:

Electricity
===========

In Cascade, electricity is consumed for a number of end uses including charging all-electric aircraft, producing gaseous hydrogen via electrolysis as well as liquefying gaseous hydrogen, powering direct air capture (:term:`DAC`), producing e-SAF via the power-to-liquid (:term:`PtL`) pathway, producing e-methane via the power-to-gas (:term:`PtG`) pathway, producing bio-SAF and biomethane, and liquefaction of gaseous methane.
In general, the electricity model that serves this demand consists of a single electricity grid.
The grid produces energy from a combination of fossil and low carbon sources, and their relative market share determines the associated carbon intensity.
The user may also opt for some of the aforementioned end uses to draw from off-grid sources with their own independently specifiable carbon intensities.
The inputs and outputs of the electricity model are detailed below.


.. list-table:: - Output Variables
  :header-rows: 1

  * - Variable Name
    - Description
    - Units
  * - :math:`X(\mathrm{fossil},t)`
    - Share of grid electricity produced from fossil sources
    - -
  * - :math:`CI_\mathrm{elec,grid}(t)`
    - Carbon intensity of the electricity grid
    - |gco2eqmj|
  * - :math:`CI_\mathrm{elec,aircraft}(t)`
    - Carbon intensity of electricity consumed directly by battery electric aircraft
    - |gco2eqmj|
  * - :math:`CI_\mathrm{elec,e\text{-}fuels}(t)`
    - Carbon intensity of electricity consumed for e-fuel production, including both e-SAF and e-methane
    - |gco2eqmj|

.. list-table:: - Input Variables
  :header-rows: 1

  * - Variable Name
    - Description
    - Units
  * - :math:`X(\mathrm{low\ carbon}, t)`
    - Market share of grid electricity produced from low carbon sources
    - -
  * - :math:`CI_\mathrm{etype}(t)`
    - Carbon intensity of each electricity generation source including fossil, low carbon, and any off-grid sources that are configured.
    - |gco2eqmj|
  * - :math:`E_\mathrm{elec,PtL}(t)`
    - Total electrical energy used for PtL SAF production for aviation
    - MJ
  * - :math:`E_\mathrm{elec,PtG}(t)`
    - Total electrical energy used for PtG methane production for aviation
    - MJ

Electricity System Composition
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. _grid-electricity:

Grid Electricity
----------------

Low carbon sources of electricity include wind, hydroelectric power, photovoltaic (:term:`PV`) solar, bioenergy, other renewables (tidal, geothermal, concentrated solar), and nuclear power.
In contrast, fossil-based electricity includes that derived from coal, natural gas, and oil.
Users can specify the low carbon market share of the electricity grid :math:`X(\mathrm{low\ carbon}, t)` in each year, which implicitly defines the market share of fossil-based electricity through the constraint that they sum to 1 in each year:

.. math::
    :label:

    X(\mathrm{low\ carbon}, t) + X(\mathrm{fossil}, t) = 1, \qquad t_\mathrm{start} \leq t \leq t_\mathrm{end}.

Because the market adoption rates of most alternative energy technologies are not expected to plateau in the time frame of interest, the market share of low-carbon electricity may assume any of the functional forms described in :ref:`custom-curves`. See :ref:`electricity-data-sources` for more information on how the default values were chosen.

Electricity Carbon Intensity
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Grid Electricity
----------------

The user controls both the market share and carbon intensity of fossil and low carbon electricity constituting the grid over time.
Each source's carbon intensity is specified as a time-varying array using any of the functional forms described in :ref:`custom-curves`, enabling modeling of grid decarbonization trends such as improving efficiency of fossil plants or decreasing emissions from low-carbon sources over time.
The carbon intensity of the grid as a whole, :math:`CI_\mathrm{elec,grid}(t)`, is calculated using the market share-weighted average of the carbon intensities of both generation types:

.. math::
    :label: eq-grid-ci

    CI_\mathrm{elec,grid}(t) = X(\mathrm{low\ carbon},t) \cdot CI_\mathrm{low\ carbon}(t) + X(\mathrm{fossil},t) \cdot CI_\mathrm{fossil}(t).

Off-Grid Electricity
--------------------

Similar to the energy sources used for the grid, any off-grid electricity sources, if enabled by the user, require direct specification of their own carbon intensities. These are also specified as time-varying arrays using any of the functional forms described in :ref:`custom-curves`.


Electricity for aircraft
------------------------

One particular carbon intensity of interest is that of electricity used directly in battery electric aircraft.
As mentioned above, all of this energy is drawn from the grid, and so the carbon intensity of electricity for aircraft is equal to that of the grid:

.. math::
    :label:

    CI_\mathrm{elec,aircraft}(t) = CI_\mathrm{elec,grid}(t).

Note that in years where no electric aircraft have market share, this value is not reported.

Electricity for e-fuel production
---------------------------------

Manufacturing e-fuels requires electricity for gaseous hydrogen production, e-SAF production, production of gaseous methane via :term:`PtG`, and the liquefaction of the gaseous methane thus produced.
Any one of these consumptions can either draw from the grid or use a dedicated off-grid electricity source.
The carbon intensity of electricity for e-fuel production is calculated as an energy demand-weighted average of the different relevant grid and off-grid contributions for e-SAF and e-methane:

.. math::
    :label:

    CI_\mathrm{elec,e\text{-}fuels}(t) = \dfrac{\sum_\mathrm{etype} E_\mathrm{grid,etype}(t) \cdot CI_\mathrm{elec,grid}(t) + \sum_\mathrm{etype} E_\mathrm{offgrid,etype}(t) \cdot CI_\mathrm{offgrid,etype}(t)}{\sum_\mathrm{etype} E_\mathrm{grid,etype}(t) + \sum_\mathrm{etype} E_\mathrm{offgrid,etype}(t)},

where :math:`\mathrm{etype} \in \{\mathrm{PtL}, \mathrm{PtG}\}`.
The electricity consumed for e-fuel production will either be on-grid or off-grid for all years depending on user input.
For example, either :math:`E_\mathrm{grid,PtL}(t) = E_\mathrm{elec,PtL}(t)` and :math:`E_\mathrm{offgrid,PtL}(t) = 0`, or vice versa.
Note that this calculation neglects emissions associated with electricity used to produce gaseous hydrogen used in e-fuels, as well as the electricity used to liquefy gaseous methane, as those are accounted for separately in the carbon intensity of gaseous hydrogen production (cf. :eq:`ci-gaseous-hydrogen`) and the life cycle carbon intensity of methane (cf. :eq:`methane_aggregate_ci`).
Rather, it strictly pertains to the electricity used directly in the production stage where feedstocks are converted to :term:`PtL` and :term:`PtG`.

.. _electricity-data-sources:

Data Sources
~~~~~~~~~~~~

The electricity scenarios are adapted from the :term:`IEA` 2020 World Energy Outlook :cite:p:`IEA20`.
Bounds on carbon intensity are based on data published by :term:`NLR` :cite:p:`NLR`, as explained in the :ref:`Electricity Parameter Bounds <energy-electricity-parameter-bounds>` section.