IORegistry¶
- class flexops.core.registration.IORegistry(io_variables: list[IOVariableRecord] = <factory>, parameters: list[ParameterRecord] = <factory>, power: list[PowerRecord] = <factory>, fuel: list[FuelUsageRecord] = <factory>, intensity_basis: dict[~flexcore.nomenclature.PowerKind, str]=<factory>, relations: list[RelationRecord] = <factory>, boundary: list[BoundaryRecord] = <factory>, applied_surrogates: dict[str, ~typing.Any]=<factory>)¶
Container for everything a unit block registers.
- io_variables¶
Registered process IO variables.
- parameters¶
Registered design/regression parameters.
- power¶
Registered power-draw variables (kW).
- fuel¶
Registered fuel-usage variables (volumetric).
- intensity_basis¶
Per
PowerKind, the local name of the product flow the unit’s constant-intensity relation meters against. FlexParameterize reads it to regress the intensity against the same stream the model divides by; without it a unit with several flows would have to be guessed at.- Type:
- relations¶
Registered swappable relationships (see
RelationRecord).
- boundary¶
Registered boundary flows (feeds and products).
- applied_surrogates¶
Per relation name, the surrogate applied without a swap (a
constant_intensitythat sets the unit’s own intensity), so its spec can be read back; swapped surrogates live on theirRelationRecordinstead.