Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions hycon/interfaces/hercules_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
hercules_battery_types = ["BatteryLithiumIon", "BatterySimple"]
hercules_hydrogen_types = ["ElectrolyzerPlant"]
hercules_thermal_types = ["HardCoalSteamTurbine", "OpenCycleGasTurbine"]
hercules_playback_types = ["PowerPlayback"]


class HerculesInterface(InterfaceBase):
Expand Down Expand Up @@ -76,6 +77,8 @@ def __init__(self, h_dict):
self.plant_parameters[c] = {"type": "hydrogen", "component_category": "load"}
elif c_type in hercules_thermal_types:
self.plant_parameters[c] = {"type": "thermal", "component_category": "generator"}
elif c_type in hercules_playback_types:
self.plant_parameters[c] = {"type": "playback", "component_category": "generator"}
Comment on lines +80 to +81
else:
raise ValueError(f"Component '{c}' has unrecognized type '{c_type}' for Hycon.")

Expand Down
Loading