h2integrate.simulation.technologies.iron.martin_ore.cost_model

Contents

h2integrate.simulation.technologies.iron.martin_ore.cost_model#

Direct Reduced Grade (DR-Grade) iron ore model developed by Jonathan Martin at NREL in conjunction with UMN-Duluth's NRRI (Brett Spigarelli, Rod Johnson, Matt Aro)

Functions

main(config)

Loads and processes Direct Reduced Grade (DR-Grade) iron ore cost coefficients.

h2integrate.simulation.technologies.iron.martin_ore.cost_model.main(config)#

Loads and processes Direct Reduced Grade (DR-Grade) iron ore cost coefficients.

This function imports "top-down" costs, loads coefficients for a specified iron ore product and site, and converts units from wet long tons to dry metric tonnes. If refitting the model, it loads an input dataframe and saves the updated coefficients. Otherwise, it loads pre-existing coefficients.

Parameters:

config (object) --

Configuration object containing: - model (dict): Includes:

  • refit_coeffs (bool): Whether to refit model coefficients.

  • inputs_fp (str): File path for input coefficients (if refitting).

  • coeffs_fp (str): File path for stored coefficients.

  • product_selection (str): Selected iron ore product.

  • site (dict): Contains name (str), the site name.

Returns:

pd.DataFrame -- DataFrame containing processed cost coefficients for the selected product and site.

Raises:

ValueError -- If the selected product or site is not found in the coefficients data.

Notes

Direct Reduced Grade (DR-Grade) iron ore model developed by Jonathan Martin at NREL in conjunction with UMN-Duluth's NRRI (Brett Spigarelli, Rod Johnson, Matt Aro)