h2integrate.converters.hopp.hopp_wrapper#

Classes

HOPPComponent(**kwargs)

A simple OpenMDAO component that represents a HOPP model.

HOPPComponentModelConfig(*, enable_caching, ...)

class h2integrate.converters.hopp.hopp_wrapper.HOPPComponentModelConfig(*, enable_caching, cache_dir, hopp_config, cost_year, electrolyzer_rating=None)#
Parameters:
  • enable_caching (bool)

  • cache_dir (str | Path)

  • hopp_config (dict)

  • cost_year (int)

  • electrolyzer_rating (int | float | None)

hopp_config: dict#
cost_year: int#
electrolyzer_rating: int | float | None#
class h2integrate.converters.hopp.hopp_wrapper.HOPPComponent(**kwargs)#

A simple OpenMDAO component that represents a HOPP model.

This component uses caching to store and retrieve results of the HOPP model based on the configuration and project lifetime. The caching mechanism helps to avoid redundant computations and speeds up the execution by reusing previously computed results when the same configuration is encountered.

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)#

Computation for the OM component.

For a template class this is not implement and raises an error.