GenericRenewables

class flexops.unit_models.powergeneration.generic_renewables.GenericRenewables(*args, **kwds)

Bases: ProcessBlock

Parameters:
  • rule (function) – A rule function or None. Default rule calls build().

  • concrete (bool) – If True, make this a toplevel model. Default - False.

  • ctype (class) –

    Pyomo ctype of the block. Default - pyomo.environ.Block

    Config args

    dynamic

    Indicates whether this model will be dynamic or not, default = useDefault. Valid values: { useDefault - get flag from parent (default = False), True - set as a dynamic model, False - set as a steady-state model.}

    has_holdup

    Indicates whether holdup terms should be constructed or not. Must be True if dynamic = True, default - False. Valid values: { useDefault - get flag from parent (default = False), True - construct holdup terms, False - do not construct holdup terms}

    property_package

    Property (parameter) block carrying flow between units; None for units that need no fluid properties.

    flexops_config

    Optional already-validated UnitConfig for this unit (never a raw dict).

    unit_commitment

    Per-unit unit-commitment sub-config.

    external_dispatch

    Optional external (DERMS) dispatch source consumed by set_external_dispatch.

    relaxation

    Discrete-structure relaxation policy.

    allow_pass_through

    Whether add_bypass_constraints() builds inlet-to-outlet pass-through equalities for this unit’s non-excluded state variables. SISOBlock (and its subclasses Pump/Tank) override the base default to True so the flow-topology units are well-posed out of the box; the base OpsBlock default stays False.

    costing_package

    Optional FlexCosting block this unit associates with: register_power forwards the unit’s power draw to it. None for standalone units; the forwarding is strictly conditional.

    capacity

    Nameplate design capacity, kW – the fixed sizing Var value at construction. Required.

    capacity_factor

    Timeseries production profile: an array-like of length T, or a time-indexed Pyomo Var/Param of length T, every value a fraction of nameplate in [0, 1] (validated against the horizon in build()). Required.

    technology

    Which renewable technology this unit represents, ‘solar’ or ‘wind’ (or None). A placeholder: not yet consumed by this unit’s build logic; reserved for a future costing- function selection (technology-specific capex/opex parameters).

    curtailable

    Whether output may be curtailed. If False, power_curtailed is fixed at 0 and every available kWh is exported.

  • initialize (dict) – ProcessBlockData config for individual elements. Keys are BlockData indexes and values are dictionaries with config arguments as keys.

  • idx_map (function) – Function to take the index of a BlockData element and return the index in the initialize dict from which to read arguments. This can be provided to override the default behavior of matching the BlockData index exactly to the index in initialize.

Returns:

(GenericRenewables) New instance

Variables

Name

Index

Units

Role

Description

power_generated

time

kW

output

Available generation before curtailment (kW, non-negative). The relation’s target: its lower bound is what keeps a swapped-in surrogate from predicting a negative export.

power_curtailed

time

kW

output

Available generation spilled rather than exported (kW).

Constraints

Name

Description

curtailment_balance

power_delivered == power_generated - power_curtailed. Deliberately not registered, so no surrogate swap can replace it.

power_electrical_sign

Sign convention: an export is a negative draw, power_electrical == -power_delivered. Deliberately not registered, so no surrogate swap can replace it.

power_electrical_relation

power_generated == capacity_factor[t] * capacity; the export magnitude (kW).

Degrees of Freedom

None.