hydesign.h2.h2
Classes
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.
- _vjp_hash[source]
Hash value for the last set of inputs to the compute_primal function.
- Type:
int or None
- 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.