h2integrate.finances.finances#

Classes

AdjustedCapexOpexComp(**kwargs)

OpenMDAO component to adjust CapEx and OpEx values for multiple technologies to a target dollar year using inflation.

class h2integrate.finances.finances.AdjustedCapexOpexComp(**kwargs)#

OpenMDAO component to adjust CapEx and OpEx values for multiple technologies to a target dollar year using inflation.

This component takes in capital expenditures (CapEx), operational expenditures (OpEx), and their associated cost years for each technology, and adjusts them to a specified target dollar year using a given inflation rate. The adjusted values are output for each technology, along with the total adjusted CapEx and OpEx across all technologies.

inflation_rate#

The annual inflation rate used for cost adjustment.

Type:

float

target_dollar_year#

The year to which all costs are adjusted.

Type:

int

Inputs:

capex_{tech} (float, USD): Capital expenditure for each technology. opex_{tech} (float, USD/year): Operational expenditure for each technology. cost_year_{tech} (int): Dollar year for the costs of each technology.

Outputs:
capex_adjusted_{tech} (float, USD): CapEx for each technology adjusted to the

target dollar year.

opex_adjusted_{tech} (float, USD/year): OpEx for each technology adjusted to the

target dollar year.

total_capex_adjusted (float, USD): Total adjusted CapEx across all technologies. total_opex_adjusted (float, USD/year): Total adjusted OpEx across all technologies.

initialize()#

Perform any one-time initialization run at instantiation.

setup()#

Declare inputs and outputs.

Available attributes:

name pathname comm options

compute(inputs, outputs, discrete_inputs, discrete_outputs)#

Compute outputs given inputs. The model is assumed to be in an unscaled state.

An inherited component may choose to either override this function or to define a compute_primal function.

Parameters:
  • inputs (Vector) -- Unscaled, dimensional input variables read via inputs[key].

  • outputs (Vector) -- Unscaled, dimensional output variables read via outputs[key].

  • discrete_inputs (dict-like or None) -- If not None, dict-like object containing discrete input values.

  • discrete_outputs (dict-like or None) -- If not None, dict-like object containing discrete output values.