-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transformers #1269
Comments
I think this would be a nice addition. The modelling is relatively easy and spec sheets often have the needed info. |
Hey @mikofski, @kevinsa5 and @AdamRJensen brought this up during the PVPMC pvlib session. I'd like to take a stab at it if there are no objections. PlantPredict uses this very simple model from McCann, Lawrence , ABB Electrical Transmission and Distribution Reference, P.101. https://terabase.atlassian.net/servicedesk/customer/portal/3/article/1292304413 |
I would also like to write a blog post that documents how to create a pull request for a pvlib upgrade using the transformer model as a real world example. |
If it helps I did some nuts & bolts talks at UC BIDS a few years back: |
Mark those are awesome references, I will definitely riff off of them. |
@kurt-rhee that would be great! FYI I skimmed around a bit in the reference but did not find the equation from the PlantPredict docs. For the pvlib function, we should cite a particular equation number or something to make it easier to find. |
here is the SolarFarmer equation. I don’t know the reference. Is it similar to Plant Predict? |
@kandersolar That is unfortunate, I looked through it as well and there is no mention of the equations that are in PlantPredict's documentation. I've also asked around internally and none of our EE's are familiar with the equation. Looking at the commit history, the function was last edited back in 2017 so whichever performance engineer wrote the spec for that code is likely long gone. As for the path forward, I could upload the PlantPredict documentation to zenodo, or if that isn't sufficient for this type of work, I have reached out to First Solar to see if any of their engineers are familiar with the function. |
@mikofski Looks like SolarFarmer and PlantPredict have different models for transformer losses. |
@kurt-rhee I did a test and actually they’re identical! They’re just algebraic manipulations of each other. Now who knows the reference? Is this just common power electronics? Maybe any textbook? |
I think it's possible to derive them based on definitions inspired by the load and no-load losses described in that ABB reference. It would still be nice to have a more explicit reference though. Here is the outline (note: all quantities in the following are normalized to the rated power of the transformer): Assume load loss is proportional to the square of output power: Total loss is the variable load loss, plus a constant no-load loss: Conservation of energy: Now use quadratic formula to solve for where So: (the positive root must be the correct one, if |
@kandersolar that’s perfect! @kurt-rhee may I suggest moving this proof into a documentation theory section, similar to single diode but called “transformer” and then no need to reference either Plant Predict or SolarFarmer? The formula above is identical to the one in SF docs which I confirmed is the same as Plant Predict |
Robots in disguise |
I think it would be best to reference an introductory electrical engineering text for the simplification of the losses as:
I've thrown out my textbooks decades ago, but I assume they still teach it so I hope some young engineer can suggest one. The total loss is a vertically shifted parabola. Spec sheets give two points on that parabola, so you use these points to solve for the two coefficients of the parabola/transformer model, which we could call I think that all the calculations that go directly from specs to simulation needlessly and unfortunately obfuscate what is actually happening. |
@adriesse An introductory electrical engineering text would be really nice I agree. Would you be okay if I wrote a first version and created a PR with a reference to the worse text cited above along with Kevin's derivation just so that pvlib has some transformer model? My personal feeling is that a model with a not very good reference is better than no model at all, and we can always update the reference in the future. |
Seriously bravo thank you for all of the work you guys did. |
It's my time to shine! I'll drop my two cents here: the only English book I see recommended in the subject I had regarding them, is |
@echedey-ls Awesome! Here is a link to the textbook I found online. |
@echedey-ls & @kurt-rhee sorry I don’t understand the textbook reference. I can’t see how to manipulate it to the same form as @kandersolar derivation, Plant Predict, or SolarFarmer. |
I see your point @mikofski . I understood from @adriesse comment were looking for a didactic reference, not an explicit reference with the same equations. Textually, the book states some losses are constant and other losses are quadratic with the current. The following changes explain @kandersolar first equation: Notation is different; how to determine Thanks for putting the image @kurt-rhee , sometimes I forget the most obvious features of github 💀 |
I do not see a way to simplify or meaningfully separate the math shown above. If the copper loss was defined to be proportional to If you have a cleaner way, I would be quite happy to see it! |
I'm afraid I've reached my pro bono limit on this one. Perhaps just give it another name like "plantpredict_solarfarmer" rather than "simple"! :) |
@adriesse @kandersolar how about something like "abb_efficiency" so that it related to the reference? I don't think that PlantPredict or SolarFarmer should get credit for the model since neither of us came up with it. I'm sure @mikofski would agree. |
+1 for |
Works for me |
Thank you so much @kurt-rhee , @echedey-ls , @kandersolar , @adriesse , & everyone who helped on this. It feels so gods to see this issue/feature-request closed after 3 years! Amazing! |
problem
As an energy analyst, I need to know energy at point of interconnect, and that includes detailed transformer efficiency and losses, as well as ac collection losses and curtailment
solution
A transformer load / no-load model
alternatives
Roll your own, but then this risks everyone using slightly different, possibly flawed models, precisely one of the issues pvlib tries to solve
Additional context
The text was updated successfully, but these errors were encountered: