Skip to content

Parameter typo in SauerPaiMachine ed_p equation #404

@fmajeau

Description

@fmajeau

Describe the bug
The SauerPaiMachine ODEs are taken directly from Equation (15.13) in Power System Modelling and Scripting by F. Milano. There is a typo in the book itself that appears to have been propagated into the Sienna code.

Expected behavior
In mdl_machine_ode! defined for SauerPaiMachine, the $\gamma_{d2}$ in the last term should instead be $\gamma_{q2}$.
Link to the incorrect $\gamma_{d2}$ parameter that needs to be changed: https://github.com/NREL-Sienna/PowerSimulationsDynamics.jl/blob/main/src/models/generator_models/machine_models.jl#L204C73-L204C77

Screenshots
The page in Milano defining these equations is shown below with annotations. Equations (15.12) and (15.13) are supposed to be equivalent. Specifically, they are related in the following way:

  1. (15.13.A) =(15.12.C) plugged into (15.12.A)
  2. (15.13.B) = (15.12.D) plugged into (15.12.B)
  3. (15.13.C) = (15.12.C)
  4. (15.13.D) = (15.12.D)

However, a typo occurred during the (15.13.B) substitution step (bullet 2 above). The coefficient of $e_{d}'$ is $\gamma_{d2}$ but it should be $\gamma_{q2}$.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions