h2integrate.finances.profast_npv#

Classes

ProFastNPV(**kwargs)

Calculates the Net Present Value (NPV) of a commodity using ProFAST.

class h2integrate.finances.profast_npv.ProFastNPV(**kwargs)#

Calculates the Net Present Value (NPV) of a commodity using ProFAST.

This component extends ProFastBase to compute the NPV based on the user-defined commodity and its sell price. The NPV output reflects the present value of future cash flows, given the financial configuration of the plant.

output_txt#

Label used for naming outputs based on commodity type.

Type:

str

lco_units#

Units for pricing inputs (USD/kg or USD/kWh, depending on commodity).

Type:

str

Outputs:

NPV_<commodity> (float): Net Present Value of the commodity in USD.

add_model_specific_outputs()#

Define NPV output variable for the model.

Creates an output variable named NPV_<commodity> in USD.

Returns:

None

setup()#

Set up inputs for the NPV calculation.

Retrieves the commodity sell price from the plant configuration and registers it as an input for the component. Calls the base setup() method to initialize other ProFAST inputs and outputs.

Raises:

ValueError -- If commodity_sell_price is not provided in the configuration.

Returns:

None

compute(inputs, outputs)#

Compute the NPV of the commodity using ProFAST cash flows.

Parameters:
  • inputs (dict) -- Model inputs, including sell_price_<commodity>.

  • outputs (dict) -- Model outputs to populate with NPV results.

Returns:

None