Models Catalog
Current source · Browse release source
r2x_sienna.models provides the component classes used for parse and export.
Topology
Section titled “Topology”Area,LoadZoneBus,ACBus,DCBusArc
Bus, ACBus, and DCBus represent network nodes; Arc is the topology
relationship used by branch and network equipment models.
Branch and Network Equipment
Section titled “Branch and Network Equipment”Branch,ACBranch,DCBranchLine,MonitoredLineTwoWindingTransformer,ThreeWindingTransformerTransformer2W,TapTransformer,PhaseShiftingTransformerTransformer3W,PhaseShiftingTransformer3WTwoTerminalHVDCLine,TwoTerminalGenericHVDCLine,TwoTerminalLCCLine,TwoTerminalVSCLine,TModelHVDCLineAreaInterchange,DiscreteControlledACBranch
Generation and Storage
Section titled “Generation and Storage”Generator,Source,SynchronousCondenser,HybridSystem- Thermal:
ThermalGen,ThermalStandard,ThermalMultiStart - Hydro:
HydroGen,HydroDispatch,HydroReservoir,HydroEnergyReservoir,HydroPumpedStorage,HydroPumpTurbine,HydroTurbine - Renewable:
RenewableGen,RenewableDispatch,RenewableNonDispatch - Storage:
Storage,EnergyReservoirStorage
Load and FACTS-adjacent Load Models
Section titled “Load and FACTS-adjacent Load Models”InterconnectingConverterPowerLoad,StandardLoad,InterruptiblePowerLoad,InterruptibleStandardLoadShiftablePowerLoadMotorLoad,ExponentialLoadActiveConstantPowerLoadFixedAdmittance,SwitchedAdmittance,FACTSControlDevice
Services and Core Mappings
Section titled “Services and Core Mappings”ServiceReserve,VariableReserveReserveNonSpinning,VariableReserveNonSpinning,ConstantReserveNonSpinningReserveDemandCurve,TransmissionInterfaceReserveMap,TransmissionInterfaceMap
Cost Models
Section titled “Cost Models”ThermalGenerationCostHydroGenerationCost,HydroReservoirCostRenewableGenerationCostStorageCostLoadCost
Supplemental Attributes
Section titled “Supplemental Attributes”GeographicInfoGeometricDistributionForcedOutageImpedanceCorrectionDataEmissionsData— emission rate (as aValueCurve) for a single pollutant; attach to any component viaadd_supplemental_attribute. SupportsFUEL_INPUTorPOWER_OUTPUTbasis with validatedenergy_unitpairing. Scalarfloatrates are automatically wrapped in a constant-rateLinearCurve.
All Exported Models
Section titled “All Exported Models”The following classes and model-like types are exported from
r2x_sienna.models and are available for direct import. The grouped catalog
above describes their domain roles; this list is the complete public export
surface for model definitions.
Component Classes
Section titled “Component Classes”ACBranch, ACBus, ActiveConstantPowerLoad, Arc, Area,
AreaInterchange, Branch, Bus, ConstantReserveNonSpinning, DCBranch,
DCBus, DiscreteControlledACBranch, EmissionsData,
EnergyReservoirStorage, ExponentialLoad, FACTSControlDevice,
FixedAdmittance, Generator, GeographicInfo,
GeometricDistributionForcedOutage, HybridSystem, HydroDispatch,
HydroEnergyReservoir, HydroGen, HydroGenerationCost, HydroPumpTurbine,
HydroPumpedStorage, HydroReservoir, HydroReservoirCost, HydroTurbine,
ImpedanceCorrectionData, InterconnectingConverter, InterruptiblePowerLoad,
InterruptibleStandardLoad, Line, LoadCost, LoadZone, MonitoredLine,
MotorLoad, PhaseShiftingTransformer, PhaseShiftingTransformer3W,
PowerLoad, RenewableDispatch, RenewableGen, RenewableGenerationCost,
RenewableNonDispatch, Reserve, ReserveDemandCurve, ReserveMap,
ReserveNonSpinning, Service, ShiftablePowerLoad, Source, StandardLoad,
Storage, StorageCost, SwitchedAdmittance, SynchronousCondenser,
TModelHVDCLine, TapTransformer, ThermalGen, ThermalGenerationCost,
ThermalMultiStart, ThermalStandard, ThreeWindingTransformer,
TransmissionInterface, TransmissionInterfaceMap,
TwoTerminalGenericHVDCLine, TwoTerminalHVDCLine, TwoTerminalLCCLine,
TwoTerminalVSCLine, TwoWindingTransformer, Transformer2W, Transformer3W,
VariableReserve, and VariableReserveNonSpinning.
Emissions Enums
Section titled “Emissions Enums”| Enum | Members |
|---|---|
PollutantType | CO2, CO2E, CH4, N2O, NOX, SO2, PM25, PM10, HG, HAP, CUSTOM |
EmissionBasis | FUEL_INPUT, POWER_OUTPUT |
MassUnit | KG, LB, SHORT_TON, METRIC_TON |
EnergyUnit | MMBTU, GJ, MWH |
Additional exported classification enums are:
ACBusTypesDiscreteControlledBranchStatus,DiscreteControlledBranchTypeFACTSOperationModesHydroTurbineType,PumpHydroStatus,ReservoirDataType,ReservoirLocationImpedanceCorrectionTransformerControlModePrimeMoversType,ReserveDirection,ReserveTypeThermalFuelsTransformerControlObjectiveWindingCategory,WindingGroupNumber
Helper Types and Enums
Section titled “Helper Types and Enums”- Named tuples/helpers:
MinMax,UpDown,StartShut,StartUpStages,StartTimeLimits,InputOutput,FromTo_ToFrom,Complex,GeoLocation - Enums include fuel, reserve, transformer, hydro, bus-type, and related classification values
These helper models are used as typed fields inside component and cost models;
they can also be imported directly from r2x_sienna.models.
- Models are strongly typed and validated via
pydantic. - Base component classes include per-unit-aware behavior and shared serialization patterns.
- The parser relies on model metadata to resolve component references and deserialize polymorphic types.
PSY Compatibility Highlights
Section titled “PSY Compatibility Highlights”Recent model updates align r2x_sienna.models with current PowerSystems.jl generated schemas for
overlapping component names.
- Thermal cost:
ThermalGenerationCost.start_upaccepts either scalar or staged startup values (StartUpStages). - AC branch flows:
LineandMonitoredLineactive/reactive flow fields accept signed values. - Line requirements:
Lineenforces required electrical fields (r,x,rating) for PSY-style construction. - Transformer voltage bases:
missing winding base voltages default to
None. PSY exports omit missing or0.0kV bases so PowerSystems.jl derives them from the connected buses; the upgrader also replaces legacy0.0bases with connected-bus voltages when parsing. - Three-winding transformer ratings:
unset
rating_primary,rating_secondary, andrating_tertiaryvalues are omitted from PSY exports so PowerSystems.jl applies its required0.0default instead of rejectingnull. The same applies to unsetLine.g,MonitoredLine.g, andTwoTerminalVSCLineconverter limits (max_dc_current_*,rating_from/to,voltage_limits_from/to). - Cost serialization:
cost and curve fields left at their Python defaults (for example
fixed,start_up,shut_down,fuel_cost) are written, because PowerSystems.jl constructors require them. - Infinite values:
JSON cannot store infinity, so
time_at_status = infis exported as PowerSystems.jl’sINFINITE_TIME(1e4) and infiniteImportExportCostweekly limits asINFINITE_BOUND(1e6). Any other NaN or infinite value fails the export with the offending field paths. - Incomplete components:
PowerSystems.jl rejects a file when a component leaves a required field unset. The exporter
closes these gaps in two ways, logging a warning for each component it changes:
- Fields with a principled default are filled so the file loads: transformer
base_power(the exported system base, as the upgrader does) andprimary_shunt(no shunt), lineb(no shunt susceptance),MonitoredLine.flow_limits(the lineratingin both directions), andPowerLoad/InterruptiblePowerLoadreactive_power(0.0),max_active_powerandmax_reactive_power(the load’s own active and reactive power), andbase_power(the exported system base). - Fields with no correct default are left unset and listed in a warning: a generator, storage,
or source
bus; branchr,x, andrating;VariableReserve.requirement;AreaInterchangeareas; and loadoperation_cost. Any invented value here would load but describe a different system (for example,r = x = 0is a short circuit), so these must come from the source model or translation before the file can be used in Julia.
- Fields with a principled default are filled so the file loads: transformer
- Defaults aligned with PowerSystems.jl 5.12:
deployed_fractiondefaults to0.0on non-spinning reserves,VariableReserveNonSpinning.sustained_timeto14400.0, andFACTSControlDevice.reactive_power_requiredto0.0. - Static injection linkage:
static-injection models support optional
dynamic_injectorlinkage to dynamic models. - Load conformity naming:
load models use canonical
conformity; legacy input keycomformityremains accepted as an alias. - FACTS and switched-admittance controls:
control/regulated-bus/reactive-limit fields are represented in
FACTSControlDeviceandSwitchedAdmittance. - HVDC and converter controls: VSC and converter control fields (setpoints, control modes, droop, remote bus control metadata) are modeled for PSY interoperability.
- T-model HVDC representation:
PSY-style
r,l,c, active flow, and directional active-power limits are available inTModelHVDCLine. - Interface services:
TransmissionInterfaceincludesviolation_penalty.
These updates are additive where possible and preserve existing parse/export behavior expected by
r2x-sienna users.