AltDSS: adding PVs #38
Replies: 2 comments 3 replies
-
(I'll assume you mean the Python package.)
That's an option. For the classic use of OpenDSS, people tend to generate the command strings and feed the engine. If you choose to do that, and are working with large-scale circuits, using a big string with all commands is the fastest alternative.
Yes:
If you're using an editor/IDE with good type hint support, it should autocomplete and suggest the properties. For a reference to the properties, see https://dss-extensions.org/dss-format/PVSystem.html (there's a link for the official OpenDSS docs and example .DSS scripts). For the time being, some of the tests can help getting an idea of how it works:
PVSystem has a lot of parameters (if you don't really need those, you might want to use a generator or negative load instead), so I won't dare to write an example just before bed time, but just to illustrate a simplified command (without setting up efficiency and irradiance curves, maybe attach InvControl, etc.) could be something like:
For batches, most properties accept both scalars and arrays. So, if you're adding a list of uniform PVs, you can just pass a single value. Since you mentioned you're new, remember to solve the system after the changes before trying to get the updated power flow state. A few colleagues are writing some examples, but it should take a few more weeks before we publish them. Let me know if this was enough to get you started, otherwise I can try to write a simple PV example tomorrow with the whole setup. |
Beta Was this translation helpful? Give feedback.
-
Thank you, Paulo. I really liked this approach. It'll be very valuable and efficient for my studies. For now that's it. Other question. I'm not very familiar with forums in GitHub. So, Is this channel the most appropriate place to ask basic questions about the AltDss package? |
Beta Was this translation helpful? Give feedback.
-
It's my first time with OpenDSS and I've started with altDSS package. My question is: how do I select a set of buses and connect PV systems to them? There is a direct command to this or do I need to use text: for example altdss("New something")?
Beta Was this translation helpful? Give feedback.
All reactions