Combustor

class flexops.unit_models.powergeneration.combustor.Combustor(*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.

    inlet_names

    Role names of the combustor’s gas inlets; inlet i is built as port f’inlet_{name}’. Must be unique and non-empty when given. Defaults to None, meaning no inlet ports are built; provide at least one name to enable inlet-connected combustion.

    heating_values

    Mapping of fuel name to its lower heating value per unit volume (a fixed, regressable Var per fuel once built, kWh/m^3). A value for every fuel source – both inlets in inlet_names and names in utility_fuel_source – selects the heating-value power relation; None or empty selects the constant-intensity relation; a partial mapping is rejected.

    efficiency

    Electrical conversion efficiency, a dimensionless fraction in (0, 1] (a fixed, regressable Var once built). Used only under the heating-value power relation.

    energy_intensity

    Electrical output per unit total fuel volume (a fixed, regressable Var once built), kWh/m^3. Used only under the constant-intensity power relation.

    air_to_fuel_ratio

    Volumes of combustion air entrained per unit volume of fuel gas (a fixed, regressable Var once built), dimensionless. Sets the flue-gas volume, since combustion air is not a modeled inlet. An IC-design property: estimate it or model it externally rather than deriving it here. The default ~9.5 is roughly stoichiometric for natural gas.

    flue_gas_temperature

    Flue-gas outlet temperature (a fixed, regressable Var once built), K.

    utility_fuel_source

    Fuel names pulled from utilities rather than connected via inlet ports. Accepts a single name or a list of names; these names are independent of inlet_names and must not overlap with it. Each utility fuel gets its own utility_flow_{name} Var (m^3/hr) registered via register_fuel_usage for costing. If None, no utility fuel is used.

    blend_ratio

    Optional fixed volume ratio between two fuel sources. Accepts a single dict or a list of dicts, each of the form {fuel_a: fuel_b, ratio: r}, which enforces flow_fuel_a[t] == flow_fuel_b[t] * r. Both fuel names must be known inlets or utility fuel sources, and r must be positive. The ratio is a fixed, regressable process parameter. Pass a list to define multiple independent ratio constraints.

  • 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:

(Combustor) New instance

Variables

Name

Index

Units

Role

Description

flow_vol_phase

time

m**3/h

input

Volumetric flowrate by time and phase

flow_vol_phase

time

m**3/h

output

Volumetric flowrate by time and phase

pressure

time

Pa

input

Pressure

temperature

time

K

input

Pressure

pressure

time

Pa

output

Pressure

temperature

time

K

output

Pressure

power_generated

time

kW

output

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

Constraints

Name

Description

mixing_mass_balance

Flue gas: outlet flow == (1 + air_to_fuel_ratio) * total fuel flow — the fuel burned plus the combustion air it entrains.

pass_through_pressure_eq

Pass-through: outlet pressure equals inlet pressure.

outlet_temperature_eq

Outlet temperature is fixed at flue_gas_temperature.

power_electrical_sign

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

power_electrical_relation

power_generated == energy_intensity * total inlet flow; the export magnitude (kW).

Degrees of Freedom

Name

Units

Description

flow_vol_phase

m**3/h

Volumetric flowrate by time and phase

pressure

Pa

Pressure

temperature

K

Pressure