phi_vec_mw: Create a phi vector for muscle work energy conversion chains

View source: R/energy_to_exergy.R

phi_vec_mwR Documentation

Create a phi vector for muscle work energy conversion chains

Description

To move from an energy to an exergy description of an energy conversion chain, a vector of phi (exergy-to-energy ratio) values is needed. Entries in the vector are for each type of muscle work energy carrier.

Usage

phi_vec_mw(
  .phi_table = MWTools::phi_constants_mw,
  matrix_class = c("matrix", "Matrix"),
  mw_energy_carriers = MWTools::mw_products,
  product = MWTools::mw_cols$product,
  product_type = MWTools::row_col_types$product,
  phi = "phi"
)

Arguments

.phi_table

A table of phi (exergy-to-energy ratio) values.

matrix_class

The type of matrix to be created, one of "matrix" or "Matrix". Default is "matrix".

mw_energy_carriers

A vector of string energy carriers relevant to muscle work calculations. Default is MWTools::mw_products.

product

See MWTools::mw_cols.

product_type

See MWTools::row_col_types.

phi

The name of the phi column in the outgoing vector. Default is "phi".

Value

A column vector of phi values.

Examples

phi_vec_mw()
phi_vec_mw(mw_energy_carriers = c("Food", "Feed"))

EnergyEconomyDecoupling/MWTools documentation built on April 14, 2025, 9:27 a.m.