Skip to content

Conversation

staudtMarius
Copy link
Member

Resolves #1543

@staudtMarius staudtMarius self-assigned this Sep 22, 2025
@staudtMarius staudtMarius added the enhancement New feature or request label Sep 22, 2025
Copy link
Member

@danielfeismann danielfeismann left a comment

Choose a reason for hiding this comment

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

Thanks for all the changes done so far.
Besides the anotated points, please also have a look if there can be done reasonable changes in TransformerTappingModel (e.g. some parts might be changed from double values to squants).
Additional question: Should this PR also add things to rtd or will that happen later?

def getTapRation: Double = tapRatio

/** Returns [[TransformerTappingModel.autoTap]].
*/
Copy link
Member

Choose a reason for hiding this comment

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

Maybe TransomerTapping and TransformerTapping Model are better located at model.control?

Copy link
Member Author

Choose a reason for hiding this comment

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

I would like to keep the transformer model with the other grid models. But we could move the ``TransformerTapping`´, since it is related to grid control.

@danielfeismann danielfeismann added this to the Version 4.1 milestone Sep 24, 2025
Copy link
Member

@danielfeismann danielfeismann left a comment

Choose a reason for hiding this comment

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

Thanks for including my comments. Looks good, just some remaining questions.

case ranges =>
// check for possible increase and decrease that can be applied to all transformers

// TODO: Enhance this, to support transformer combinations with different tap deltas
Copy link
Member

Choose a reason for hiding this comment

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

If you add the issue number to the TODO, we have later the chance to check if the TODO is solved or not.

Comment on lines 219 to 220
val deltaV = calculateVoltageDeltaFromLineCurrent(
nodeResMap,
Copy link
Member

Choose a reason for hiding this comment

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

Do you see a chance and sense to convert the nodeResMap to squants somewhere early? If so, one could kick the javax Dimensionless out here.

Comment on lines +61 to +62
// between both range limits => set upper limit to deltaV, lower limit is unchanged
(deltaV, deltaMinus)
Copy link
Member

Choose a reason for hiding this comment

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

Would this result in always tapping to the upper range, also if there is actually no congestion? No, or? Just double checking my guess.

// greater than both range limits => limits are unchanged
(deltaPlus, deltaMinus)
case (false, false) =>
// should is only possible, if deltaMinus > deltaPlus => limits are unchanged
Copy link
Member

Choose a reason for hiding this comment

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

Here is some grammar error / a word is missing.

Comment on lines +220 to +222
range.deltaPlus should approximate(Each(-0.03))
range.deltaMinus should approximate(Each(-0.02))
range.suggestion should approximate(Each(-0.02))
Copy link
Member

Choose a reason for hiding this comment

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

Could you just give me some short update why these values changed (also others here)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add tap position calculation support
2 participants