hydesign.h2.h2

Classes

BiogasH2

Class to inherit from when all output variables are explicit.

Module Contents

class hydesign.h2.h2.BiogasH2(N_time, heat_mwht_per_kg_h2, biogas_h2_mass_ratio, water_h2_mass_ratio, co2_h2_mass_ratio)[source]

Bases: openmdao.api.ExplicitComponent

Class to inherit from when all output variables are explicit.

Parameters:

**kwargs (dict of keyword arguments) – Keyword arguments that will be mapped into the Component options.

_has_compute_partials[source]

If True, the instance overrides compute_partials.

Type:

bool

_vjp_hash[source]

Hash value for the last set of inputs to the compute_primal function.

Type:

int or None

_vjp_fun[source]

The vector-Jacobian product function.

Type:

function or None

N_time[source]
biogas_h2_mass_ratio[source]
co2_h2_mass_ratio[source]
water_h2_mass_ratio[source]
heat_mwht_per_kg_h2[source]
setup()[source]

Declare inputs and outputs.

Available attributes:

name pathname comm options

compute(inputs, outputs)[source]

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.