Skip to contents

Converts energy conversion chains represented by the matrices in the data frame of psut_energy from energy quantities to exergy quantities.

Usage

move_to_exergy(
  psut_energy,
  phi_vecs,
  countries,
  country = IEATools::iea_cols$country,
  phi_colname = IEATools::phi_constants_names$phi_colname
)

Arguments

psut_energy

A wide-by-matrices data frame of energy conversion chain data.

phi_vecs

A data frame of vectors of phi (exergy-to-energy ratios)

countries

The countries for which this task should be performed.

country

See IEATools::iea_cols.

phi_colname

See IEATools::phi_constants.

Value

A version of psut_energy with additional rows

Details

The steps in this calculation are to join phi_vecs to psut_energy. Thereafter, we call into the IEATools package to do the matrix multiplications.