Units-related bugs #1622
luke-kiernan
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There's a number of bugs that have come up that could be prevented by better units handling. I'm using this discussion to keep track of them, so that as we prototype units-aware things, we structure things so as to better prevent and detect such things.
Bad arithmetic
FixedAdmittanceload calculation in system checks #1618:P = Re(V^2/Y), when it should beP = Re(V^2 * Y). Context: calculating total load (power) from fixed admittance elements, assumingV = 1.0 p.u..Oddities of a stateful unit system
with_units_basebug #1590: the implementation ofwith_units_baseon a component inadvertently broke the association between the component's unit setting and the system's unit setting.x/0.0 = Infor0.0/0.0 = NaN.Implicit units
Ax = bfor a DC power flow, whereAis in p.u. andbcomes from callingget_active_poweron the components. Will give incorrect results when the system's unit setting isn't p.u.Beta Was this translation helpful? Give feedback.
All reactions