Skip to content

Conversation

@jd-lara
Copy link
Member

@jd-lara jd-lara commented Aug 5, 2025

This is a first draft of the power plant attributes

@jd-lara jd-lara requested a review from rodrigomha August 5, 2025 04:52
@jd-lara jd-lara changed the base branch from main to psy5 August 5, 2025 04:52
@jd-lara jd-lara requested a review from pesap August 5, 2025 04:52
@jd-lara jd-lara self-assigned this Aug 5, 2025
@jd-lara jd-lara linked an issue Aug 5, 2025 that may be closed by this pull request

struct PumpedHydroPowerPlant <: PowerPlant
name::String
penstock_map::Dict{Int, String}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we add a way to enforce that is a sequential map?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you mean a sequential map?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we going to allow user to pass this? penstock_map = Dict([(1, "2"), (-1, "test"), (0, "four"])

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In theory the user wouldn't use negative numbers or zeros but yes. The idea is that the dict gets which penstock number is connected to which turbine name.

Base automatically changed from psy5 to main October 31, 2025 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Plant Supplemental Attribute

3 participants