1
1
2
- # Enumerated Types
2
+ # Specifying the type of...
3
3
4
- To specify fields representing an option from a pre-defined list, some of the fields of
5
- ` Component ` structs are specified with
6
- [ ` IS.scoped_enums ` ] ( https://nrel-sienna.github.io/InfrastructureSystems.jl/stable/InfrastructureSystems/#InfrastructureSystems.@scoped_enum-Tuple{Any,%20Vararg{Any,%20N}%20where%20N} ) (e.g.
7
- ` set_fuel!(gen, ThermalFuels.COAL) ` ). Below are the enumerated types contained in ` PowerSystems ` .
4
+ Some fields in PowerSystems.jl are specified with an option from a pre-defined list
5
+ (Specified with [ ` IS.scoped_enums ` ] ( https://nrel-sienna.github.io/InfrastructureSystems.jl/stable/InfrastructureSystems/#InfrastructureSystems.@scoped_enum-Tuple{Any,%20Vararg{Any,%20N}%20where%20N} ) ).
8
6
9
- ## [ ` ThermalFuels ` ] (@id tf_list)
7
+ Example syntax:
8
+ ```
9
+ set_fuel!(gen, ThermalFuels.COAL)
10
+ ```
10
11
11
- Each ` ThermalGen ` generator struct contains a field for ` fuel::ThermalFuels ` where ` ThermalFuels `
12
- are intended to reflect the options denoted by the
13
- [ Aggregated Fuel Codes] ( https://www.eia.gov/survey/form/eia_923/instructions.pdf ) from the
14
- EIA Annual Energy Review. Specifically, ` ThermalFuels ` is an enumerated type with the
15
- following options:
12
+ These predefined lists are below:
16
13
17
- | EnumName | EIA Fuel Code | Description |
18
- | ----------| ---------------| -------------|
19
- | ` COAL ` | COL | Anthracite Coal and Bituminous Coal |
20
- | ` WASTE_COAL ` | WOC | Waste/Other Coal (includes anthracite culm, gob, fine coal, lignite waste, waste coal) |
21
- | ` DISTILLATE_FUEL_OIL ` | DFO | Distillate Fuel Oil (Diesel, No. 1, No. 2, and No. 4) |
22
- | ` WASTE_OIL ` | WOO | Waste Oil Kerosene and JetFuel Butane, Propane |
23
- | ` PETROLEUM_COKE ` | PC | Petroleum Coke |
24
- | ` RESIDUAL_FUEL_OIL ` | RFO | Residual Fuel Oil (No. 5, No. 6 Fuel Oils, and Bunker Oil) |
25
- | ` NATURAL_GAS ` | NG | Natural Gas |
26
- | ` OTHER_GAS ` | OOG | Other Gas and blast furnace gas |
27
- | ` NUCLEAR ` | NUC | Nuclear Fission (Uranium, Plutonium, Thorium) |
28
- | ` AG_BIPRODUCT ` | ORW | Agricultural Crop Byproducts/Straw/Energy Crops |
29
- | ` MUNICIPAL_WASTE ` | MLG | Municipal Solid Waste – Biogenic component |
30
- | ` WOOD_WASTE ` | WWW | Wood Waste Liquids excluding Black Liquor (BLQ) (Includes red liquor, sludge wood, spent sulfite liquor, and other wood-based liquids) |
31
- | ` GEOTHERMAL ` | GEO | Geothermal |
32
- | ` OTHER ` | OTH | Other |
14
+ ## [ AC Buses] (@id acbustypes_list)
15
+
16
+ ` ACBusTypes ` categorize buses for modeling activities and denote which quantities are specified
17
+ for load flow calculations. ` ACBusTypes ` has the options:
33
18
34
- ## [ ` PrimeMovers ` ] (@id pm_list)
19
+ | Name | Description |
20
+ | :----------| :-------------|
21
+ | ` ISOLATED ` | Disconnected from network |
22
+ | ` PQ ` | Active and reactive power defined (load bus)|
23
+ | ` PV ` | Active power and voltage magnitude defined (generator bus)|
24
+ | ` REF ` | Reference bus (θ = 0)|
25
+ | ` SLACK ` | Slack bus |
35
26
36
- Each generator struct contains a field for ` prime_mover::PrimeMovers ` where ` PrimeMovers `
37
- are intended to reflect the options denoted by
38
- [ EIA form 923] ( https://www.eia.gov/survey/form/eia_923/instructions.pdf ) . Specifically,
39
- ` PrimeMovers ` is an enumerated type with the following options:
27
+ ## [ Prime Movers] (@id pm_list)
40
28
41
- | EnumName | Description |
42
- | ----------| -------------|
29
+ Each generator contains a field for ` prime_mover::PrimeMovers ` , based on the options in
30
+ [ EIA form 923] ( https://www.eia.gov/survey/form/eia_923/instructions.pdf ) .
31
+ ` PrimeMovers ` has the options:
32
+
33
+ | Name | Description |
34
+ | :----------| :-------------|
43
35
| ` BA ` | Energy Storage, Battery |
44
36
| ` BT ` | Turbines Used in a Binary Cycle (including those used for geothermal applications) |
45
37
| ` CA ` | Combined-Cycle – Steam Part |
@@ -60,36 +52,71 @@ are intended to reflect the options denoted by
60
52
| ` PS ` | Energy Storage, Reversible Hydraulic Turbine (Pumped Storage) |
61
53
| ` OT ` | Other |
62
54
| ` ST ` | Steam Turbine (including nuclear, geothermal and solar steam; does not include combined-cycle turbine) |
63
- | ` PV ` | Photovoltaic * renaming from EIA PV to PVe to avoid conflict with ACBusType.PV |
55
+ | ` PVe ` | Photovoltaic \( * Note * : renaming from EIA PV to PVe to avoid conflict with ` ACBusType.PV ` \) |
64
56
| ` WT ` | Wind Turbine, Onshore |
65
57
| ` WS ` | Wind Turbine, Offshore |
66
58
67
- ## [ ` ACBusTypes ` ] (@id acbustypes_list)
68
-
69
- ` ACBusTypes ` is used to denote which quantities are specified for load flow calculations and
70
- to otherwise categorize buses for modeling activities.
59
+ ## [ Fuels for Thermal Generators] (@id tf_list)
71
60
72
- | EnumName | Description |
73
- | ----------| -------------|
74
- | ` ISOLATED ` | Disconnected from network |
75
- | ` PQ ` | Active and reactive power defined (load bus)|
76
- | ` PV ` | Active power and voltage magnitude defined (generator bus)|
77
- | ` REF ` | Reference bus (θ = 0)|
78
- | ` SLACK ` | Slack bus |
79
-
80
- ## [ ` AngleUnits ` ] (@id angleunits_list)
81
-
82
- | EnumName |
83
- | ----------|
84
- | ` DEGREES ` |
85
- | ` RADIANS ` |
86
-
87
- ## [ ` StateTypes ` ] (@id states_list)
61
+ Each [ ` ThermalGen ` ] ( @ref ) generator has a field for ` fuel::ThermalFuels ` where ` ThermalFuels `
62
+ are intended to reflect the options in the
63
+ [ Aggregated Fuel Codes] ( https://www.eia.gov/survey/form/eia_923/instructions.pdf ) from the
64
+ EIA Annual Energy Review. ` ThermalFuels ` has the options:
88
65
89
- ` StateTypes ` are used to denote the type of dynamic equation a specific state is subject to in ` PowerSimulationsDynamics.jl `
66
+ | Name | EIA Fuel Code | Description |
67
+ | :----------| :---------------| :-------------|
68
+ | ` COAL ` | COL | Anthracite Coal and Bituminous Coal |
69
+ | ` WASTE_COAL ` | WOC | Waste/Other Coal (includes anthracite culm, gob, fine coal, lignite waste, waste coal) |
70
+ | ` DISTILLATE_FUEL_OIL ` | DFO | Distillate Fuel Oil (Diesel, No. 1, No. 2, and No. 4) |
71
+ | ` WASTE_OIL ` | WOO | Waste Oil Kerosene and JetFuel Butane, Propane |
72
+ | ` PETROLEUM_COKE ` | PC | Petroleum Coke |
73
+ | ` RESIDUAL_FUEL_OIL ` | RFO | Residual Fuel Oil (No. 5, No. 6 Fuel Oils, and Bunker Oil) |
74
+ | ` NATURAL_GAS ` | NG | Natural Gas |
75
+ | ` OTHER_GAS ` | OOG | Other Gas and blast furnace gas |
76
+ | ` NUCLEAR ` | NUC | Nuclear Fission (Uranium, Plutonium, Thorium) |
77
+ | ` AG_BIPRODUCT ` | ORW | Agricultural Crop Byproducts/Straw/Energy Crops |
78
+ | ` MUNICIPAL_WASTE ` | MLG | Municipal Solid Waste – Biogenic component |
79
+ | ` WOOD_WASTE ` | WWW | Wood Waste Liquids excluding Black Liquor (BLQ) (Includes red liquor, sludge wood, spent sulfite liquor, and other wood-based liquids) |
80
+ | ` GEOTHERMAL ` | GEO | Geothermal |
81
+ | ` OTHER ` | OTH | Other |
90
82
91
- | EnumName | Description |
92
- | ----------| -------------|
83
+ ## [ Energy Storage] (@id storagetech_list)
84
+
85
+ ` StorageTech ` defines the storage technology used in an energy [ ` Storage ` ] ( @ref ) system, based
86
+ on the options in [ EIA form 923] ( https://www.eia.gov/survey/form/eia_923/instructions.pdf ) .
87
+ ` StorageTech ` has the options:
88
+
89
+ | Name | Description |
90
+ | :----------| :-------------|
91
+ | ` PTES ` | Pumped thermal energy storage |
92
+ | ` LIB ` | LiON Battery |
93
+ | ` LAB ` | Lead Acid Battery |
94
+ | ` FLWB ` | Redox Flow Battery |
95
+ | ` SIB ` | Sodium Ion Battery |
96
+ | ` ZIB ` | Zinc Ion Battery |
97
+ | ` HGS ` | Hydrogen Gas Storage |
98
+ | ` LAES ` | Liquid Air Storage |
99
+ | ` OTHER_CHEM ` | Other Chemical Storage |
100
+ | ` OTHER_MECH ` | Other Mechanical Storage |
101
+ | ` OTHER_THERM ` | Other Thermal Storage |
102
+
103
+ ## [ Dynamic States] (@id states_list)
104
+
105
+ ` StateTypes ` are used to denote the type of dynamic equation a specific [ state] (@ref S) is subject
106
+ to in [ ` PowerSimulationsDynamics.jl ` ] ( https://nrel-sienna.github.io/PowerSimulationsDynamics.jl/stable/ ) .
107
+ ` StateTypes ` has the options:
108
+
109
+ | Name | Description |
110
+ | :----------| :-------------|
93
111
| ` Differential ` | State evolves over time via a differential equation `` \dot{x} = f(x) `` |
94
112
| ` Algebraic ` | State evolves over time by satisfying an algebraic equation `` 0 = g(x) `` |
95
113
| ` Hybrid ` | Depending on specific parameters, the state can be ` Differential ` or ` Algebraic ` |
114
+
115
+ ## [ Angle Units] (@id angleunits_list)
116
+
117
+ ` AngleUnits ` can be specified in:
118
+
119
+ | Name |
120
+ | ----------|
121
+ | ` DEGREES ` |
122
+ | ` RADIANS ` |
0 commit comments