├── .gitignore
├── .travis.yml
├── LICENSE
├── Project.toml
├── README.md
├── apt.txt
├── generate_notebooks.sh
├── ieee14-4th-order
├── .gitignore
├── Project.toml
├── README.md
├── convert_notebook.jl
├── ieee14-4th-order.json
├── plotting.jl
├── runexample.ipynb
└── runexample.jl
├── ieee14-minimal-power-reduction
├── .gitignore
├── IEEE14_busses.csv
├── IEEE14_lines.csv
├── Project.toml
└── runexample.jl
├── ieee14-minimal
├── .gitignore
├── Project.toml
├── README.md
├── ieee-14-minimal.json
├── plotting.jl
├── runexample.ipynb
└── runexample.jl
├── notebooks
└── Project.toml
├── push.sh
└── travis_key.enc
/.gitignore:
--------------------------------------------------------------------------------
1 | Manifest.toml
2 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: julia
2 | julia:
3 | - 1.2
4 | script:
5 | - ./generate_notebooks.sh
6 | after_success:
7 | - ./push.sh
8 | env:
9 | matrix:
10 | secure: Op1xkbui4pE+3YwpLzEIIvwIP8PDFUPGXpmP1ZsjHT3lyvLybNZeFbWMKT3gml0q3VZ0uXELQ2/uy1/HNa9ZEKkIlhJnxrI4OHANeES14ZfvYAPUMn0SdDr2UUpbaxPOMdt2IPUcqMt5IPJmzm+Oc2W+3ycyWB1N9V98+EZ9DAwRk8sGMEnH9GBA4NaBzZhwK142il5UTfLiIUZ1C0o0sWd8J3iowGDnvCYJWPCdcWy9DMFaBk6uCdUn+9Z4QAq967iZbCYOmf3L3fDMwqfEYb9XnB7xIajDYJ0fVREYb8Lp1mufXvU6ZhAo0kkMaNvkTsKUJSgxLDQqgFKpk6YtBVRj0jZ0BJXk17KqibID2nCQUs1H2bqNJx8glYeUOIcJ12VeyAABJjuuyk1XqLMP+3R0sU7hCfwNS35x5lyB8MV12ldZjJ+L2dRYFXtfP9xjb9jgXytuB1ecG/uV/YD3MGYoA02zcrtbku1bSWxV1rsjVSom9L3ZxaaQkwmXaMxZywtNGuq2Rhdep3ehVb/srkIwYVruYTurhWR041d3kxSQrbInoec0W92eBcwZHVRgzZQ78Xg1L5j4xziB59xq0l9fMZ9OtG+UDk/vTxSxk3peNYUXq7NIA4ct6KfbX0Po1luVTl4Q+7RJcybmkkN5hCkgb+U8sQwJGrm0fTl2wzE=
11 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/Project.toml:
--------------------------------------------------------------------------------
1 | [deps]
2 | LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
3 | OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
4 | Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
5 | PowerDynamics = "cc46b21f-1b17-51c2-b642-af74c3d3a8be"
6 |
7 | [compat]
8 | PowerDynamics = "2.4.1"
9 | julia = "^1.2"
10 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [](https://juliaenergy.github.io/PowerDynamics.jl/stable/)
2 | [](https://juliaenergy.github.io/PowerDynamics.jl/dev/)
3 |
4 | # PowerDynamicsExamples
5 |
6 | **Status**: This Repository is deprecated and no longer compatible with newer releases of `PowerDynamics.jl`. Please use the [example scripts](https://github.com/JuliaEnergy/PowerDynamics.jl/tree/main/examples) in the main repository.
7 |
--------------------------------------------------------------------------------
/apt.txt:
--------------------------------------------------------------------------------
1 | texlive-latex-base
2 | texlive-latex-recommended
3 | texlive-science
4 | texlive-latex-extra
5 | texlive-fonts-recommended
6 | dvipng
7 | ghostscript
8 |
--------------------------------------------------------------------------------
/generate_notebooks.sh:
--------------------------------------------------------------------------------
1 | julia --check-bounds=yes --color=yes -e "using Pkg; Pkg.activate(\"./notebooks\");Pkg.instantiate(); using Literate;
2 | Literate.notebook(\"ieee14-4th-order/runexample.jl\",\"ieee14-4th-order\",execute=false)
3 | Literate.notebook(\"ieee14-minimal/runexample.jl\",\"ieee14-minimal\",execute=false)
4 | "
5 |
--------------------------------------------------------------------------------
/ieee14-4th-order/.gitignore:
--------------------------------------------------------------------------------
1 | *.pdf
2 | *.png
3 | Manifest.toml
4 | *.DS_Store
--------------------------------------------------------------------------------
/ieee14-4th-order/Project.toml:
--------------------------------------------------------------------------------
1 | [deps]
2 | CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
3 | DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
4 | IJulia = "7073ff75-c697-5162-941a-fcdaad2a7d2a"
5 | LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
6 | OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
7 | Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
8 | PowerDynamics = "cc46b21f-1b17-51c2-b642-af74c3d3a8be"
9 | SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
10 | Weave = "44d3d7a6-8a23-5bf8-98c5-b353f8df5ec9"
11 |
12 | [compat]
13 | PowerDynamics = "2.4.1"
14 | julia = "^1.2"
15 |
--------------------------------------------------------------------------------
/ieee14-4th-order/README.md:
--------------------------------------------------------------------------------
1 | [](https://mybinder.org/v2/gh/JuliaEnergy/PowerDynamicsExamples/master?filepath=ieee14-4th-order%2Frunexample.ipynb)
2 |
--------------------------------------------------------------------------------
/ieee14-4th-order/convert_notebook.jl:
--------------------------------------------------------------------------------
1 | using Weave: convert_doc
2 | convert_doc("runexample.jl", "runexample.ipynb")
--------------------------------------------------------------------------------
/ieee14-4th-order/ieee14-4th-order.json:
--------------------------------------------------------------------------------
1 | {
2 | "nodes": [
3 | {
4 | "name": "bus1",
5 | "params": {
6 | "T_d_dash": 7.4,
7 | "D": 2,
8 | "X_d": 0.8979,
9 | "X_q": 0.646,
10 | "Ω": 50,
11 | "X_d_dash": 0.2995,
12 | "T_q_dash": 0.1,
13 | "X_q_dash": 0.646,
14 | "P": 2.32,
15 | "H": 5.148,
16 | "E_f": 1,
17 | "Y_n": 0
18 | },
19 | "type": "FourthOrderEq"
20 | },
21 | {
22 | "name": "bus2",
23 | "params": {
24 | "U": 1,
25 | "Y_n": 0
26 | },
27 | "type": "SlackAlgebraic"
28 | },
29 | {
30 | "name": "bus3",
31 | "params": {
32 | "T_d_dash": 6.1,
33 | "D": 2,
34 | "X_d": 1.05,
35 | "X_q": 0.98,
36 | "Ω": 50,
37 | "X_d_dash": 0.185,
38 | "T_q_dash": 0.4,
39 | "X_q_dash": 0.36,
40 | "P": -0.942,
41 | "H": 6.54,
42 | "E_f": 1,
43 | "Y_n": 0
44 | },
45 | "type": "FourthOrderEq"
46 | },
47 | {
48 | "name": "bus4",
49 | "params": {
50 | "U": 1.0,
51 | "P": -0.478,
52 | "A": 0.0,
53 | "Q": -0.0,
54 | "B": 0.0,
55 | "Y_n": 0
56 | },
57 | "type": "VoltageDependentLoad"
58 | },
59 | {
60 | "name": "bus5",
61 | "params": {
62 | "U": 1.0,
63 | "P": -0.076,
64 | "A": 0.0,
65 | "Q": -0.016,
66 | "B": 0.0,
67 | "Y_n": 0
68 | },
69 | "type": "VoltageDependentLoad"
70 | },
71 | {
72 | "name": "bus6",
73 | "params": {
74 | "T_d_dash": 4.75,
75 | "D": 2,
76 | "X_d": 1.25,
77 | "X_q": 1.22,
78 | "Ω": 50,
79 | "X_d_dash": 0.232,
80 | "T_q_dash": 1.6,
81 | "X_q_dash": 0.715,
82 | "P": -0.122,
83 | "H": 5.06,
84 | "E_f": 1,
85 | "Y_n": 0
86 | },
87 | "type": "FourthOrderEq"
88 | },
89 | {
90 | "name": "bus7",
91 | "params": {
92 | "U": 1.0,
93 | "P": -0.0,
94 | "A": 0.0,
95 | "Q": -0.0,
96 | "B": 0.0,
97 | "Y_n": 0
98 | },
99 | "type": "VoltageDependentLoad"
100 | },
101 | {
102 | "name": "bus8",
103 | "params": {
104 | "T_d_dash": 4.75,
105 | "D": 2,
106 | "X_d": 1.25,
107 | "X_q": 1.22,
108 | "Ω": 50,
109 | "X_d_dash": 0.232,
110 | "T_q_dash": 1.6,
111 | "X_q_dash": 0.715,
112 | "P": 0.0,
113 | "H": 5.06,
114 | "E_f": 1,
115 | "Y_n": 0
116 | },
117 | "type": "FourthOrderEq"
118 | },
119 | {
120 | "name": "bus9",
121 | "params": {
122 | "U": 1.0,
123 | "P": -0.295,
124 | "A": 0.0,
125 | "Q": -0.166,
126 | "B": 0.0,
127 | "Y_n": 0
128 | },
129 | "type": "VoltageDependentLoad"
130 | },
131 | {
132 | "name": "bus10",
133 | "params": {
134 | "U": 1.0,
135 | "P": -0.09,
136 | "A": 0.0,
137 | "Q": -0.058,
138 | "B": 0.0,
139 | "Y_n": 0
140 | },
141 | "type": "VoltageDependentLoad"
142 | },
143 | {
144 | "name": "bus11",
145 | "params": {
146 | "U": 1.0,
147 | "P": -0.035,
148 | "A": 0.0,
149 | "Q": -0.018,
150 | "B": 0.0,
151 | "Y_n": 0
152 | },
153 | "type": "VoltageDependentLoad"
154 | },
155 | {
156 | "name": "bus12",
157 | "params": {
158 | "U": 1.0,
159 | "P": -0.061,
160 | "A": 0.0,
161 | "Q": -0.016,
162 | "B": 0.0,
163 | "Y_n": 0
164 | },
165 | "type": "VoltageDependentLoad"
166 | },
167 | {
168 | "name": "bus13",
169 | "params": {
170 | "U": 1.0,
171 | "P": -0.135,
172 | "A": 0.0,
173 | "Q": -0.058,
174 | "B": 0.0,
175 | "Y_n": 0
176 | },
177 | "type": "VoltageDependentLoad"
178 | },
179 | {
180 | "name": "bus14",
181 | "params": {
182 | "U": 1.0,
183 | "P": -0.149,
184 | "A": 0.0,
185 | "Q": -0.05,
186 | "B": 0.0,
187 | "Y_n": 0
188 | },
189 | "type": "VoltageDependentLoad"
190 | }
191 | ],
192 | "lines": [
193 | {
194 | "name": "branch1",
195 | "params": {
196 | "y": {
197 | "re": 4.999131600798035,
198 | "im": -15.263086523179553
199 | },
200 | "from": "bus1",
201 | "y_shunt_mk": 0.0264,
202 | "y_shunt_km": 0.0264,
203 | "to": "bus2"
204 | },
205 | "type": "PiModelLine"
206 | },
207 | {
208 | "name": "branch2",
209 | "params": {
210 | "y": {
211 | "re": 1.025897454970189,
212 | "im": -4.234983682334831
213 | },
214 | "from": "bus1",
215 | "y_shunt_mk": 0.0246,
216 | "y_shunt_km": 0.0246,
217 | "to": "bus5"
218 | },
219 | "type": "PiModelLine"
220 | },
221 | {
222 | "name": "branch3",
223 | "params": {
224 | "y": {
225 | "re": 1.1350191923073958,
226 | "im": -4.781863151757718
227 | },
228 | "from": "bus2",
229 | "y_shunt_mk": 0.0219,
230 | "y_shunt_km": 0.0219,
231 | "to": "bus3"
232 | },
233 | "type": "PiModelLine"
234 | },
235 | {
236 | "name": "branch4",
237 | "params": {
238 | "y": {
239 | "re": 1.686033150614943,
240 | "im": -5.115838325872083
241 | },
242 | "from": "bus2",
243 | "y_shunt_mk": 0.017,
244 | "y_shunt_km": 0.017,
245 | "to": "bus4"
246 | },
247 | "type": "PiModelLine"
248 | },
249 | {
250 | "name": "branch5",
251 | "params": {
252 | "y": {
253 | "re": 1.7011396670944048,
254 | "im": -5.193927397969713
255 | },
256 | "from": "bus2",
257 | "y_shunt_mk": 0.0173,
258 | "y_shunt_km": 0.0173,
259 | "to": "bus5"
260 | },
261 | "type": "PiModelLine"
262 | },
263 | {
264 | "name": "branch6",
265 | "params": {
266 | "y": {
267 | "re": 1.9859757099255606,
268 | "im": -5.0688169775939205
269 | },
270 | "from": "bus3",
271 | "y_shunt_mk": 0.0064,
272 | "y_shunt_km": 0.0064,
273 | "to": "bus4"
274 | },
275 | "type": "PiModelLine"
276 | },
277 | {
278 | "name": "branch7",
279 | "params": {
280 | "from": "bus4",
281 | "Y": {
282 | "re": 6.840980661495672,
283 | "im": -21.578553981691588
284 | },
285 | "to": "bus5"
286 | },
287 | "type": "StaticLine"
288 | },
289 | {
290 | "name": "branch8",
291 | "params": {
292 | "y": {
293 | "re": 0.0,
294 | "im": -4.781943381790359
295 | },
296 | "t_ratio": 0.978,
297 | "from": "bus4",
298 | "to": "bus7"
299 | },
300 | "type": "Transformer"
301 | },
302 | {
303 | "name": "branch9",
304 | "params": {
305 | "y": {
306 | "re": 0.0,
307 | "im": -1.7979790715236075
308 | },
309 | "t_ratio": 0.969,
310 | "from": "bus4",
311 | "to": "bus9"
312 | },
313 | "type": "Transformer"
314 | },
315 | {
316 | "name": "branch10",
317 | "params": {
318 | "y": {
319 | "re": 0.0,
320 | "im": -3.967939052456154
321 | },
322 | "t_ratio": 0.932,
323 | "from": "bus5",
324 | "to": "bus6"
325 | },
326 | "type": "Transformer"
327 | },
328 | {
329 | "name": "branch11",
330 | "params": {
331 | "from": "bus6",
332 | "Y": {
333 | "re": 1.9550285631772604,
334 | "im": -4.0940743442404415
335 | },
336 | "to": "bus11"
337 | },
338 | "type": "StaticLine"
339 | },
340 | {
341 | "name": "branch12",
342 | "params": {
343 | "from": "bus6",
344 | "Y": {
345 | "re": 1.525967440450974,
346 | "im": -3.1759639650294003
347 | },
348 | "to": "bus12"
349 | },
350 | "type": "StaticLine"
351 | },
352 | {
353 | "name": "branch13",
354 | "params": {
355 | "from": "bus6",
356 | "Y": {
357 | "re": 3.0989274038379877,
358 | "im": -6.102755448193116
359 | },
360 | "to": "bus13"
361 | },
362 | "type": "StaticLine"
363 | },
364 | {
365 | "name": "branch14",
366 | "params": {
367 | "from": "bus7",
368 | "Y": {
369 | "re": 0.0,
370 | "im": -5.676979846721544
371 | },
372 | "to": "bus8"
373 | },
374 | "type": "StaticLine"
375 | },
376 | {
377 | "name": "branch15",
378 | "params": {
379 | "from": "bus7",
380 | "Y": {
381 | "re": 0.0,
382 | "im": -9.09008271975275
383 | },
384 | "to": "bus9"
385 | },
386 | "type": "StaticLine"
387 | },
388 | {
389 | "name": "branch16",
390 | "params": {
391 | "from": "bus9",
392 | "Y": {
393 | "re": 3.902049552447428,
394 | "im": -10.365394127060915
395 | },
396 | "to": "bus10"
397 | },
398 | "type": "StaticLine"
399 | },
400 | {
401 | "name": "branch17",
402 | "params": {
403 | "from": "bus9",
404 | "Y": {
405 | "re": 1.4240054870199312,
406 | "im": -3.0290504569306034
407 | },
408 | "to": "bus14"
409 | },
410 | "type": "StaticLine"
411 | },
412 | {
413 | "name": "branch18",
414 | "params": {
415 | "from": "bus10",
416 | "Y": {
417 | "re": 1.8808847537003996,
418 | "im": -4.402943749460521
419 | },
420 | "to": "bus11"
421 | },
422 | "type": "StaticLine"
423 | },
424 | {
425 | "name": "branch19",
426 | "params": {
427 | "from": "bus12",
428 | "Y": {
429 | "re": 2.4890245868219187,
430 | "im": -2.251974626172212
431 | },
432 | "to": "bus13"
433 | },
434 | "type": "StaticLine"
435 | },
436 | {
437 | "name": "branch20",
438 | "params": {
439 | "from": "bus13",
440 | "Y": {
441 | "re": 1.1369941578063267,
442 | "im": -2.314963475105352
443 | },
444 | "to": "bus14"
445 | },
446 | "type": "StaticLine"
447 | }
448 | ],
449 | "version": "1"
450 | }
451 |
--------------------------------------------------------------------------------
/ieee14-4th-order/plotting.jl:
--------------------------------------------------------------------------------
1 | using PowerDynamics: symbolsof
2 | using Plots: plot, get_color_palette, plot_color
3 | using LaTeXStrings: latexstring, @L_str
4 |
5 | function create_plot(sol)
6 | swing_indices = findall(n -> :ω ∈ symbolsof(n), sol.powergrid.nodes)
7 | ω_labels = reshape([latexstring(string(raw"\omega", "_{$i}")) for i=swing_indices], (1, length(swing_indices)))
8 | p_labels = reshape([latexstring(string(raw"p", "_{$i}")) for i=swing_indices], (1, length(swing_indices)))
9 | q_labels = reshape([latexstring(string(raw"q", "_{$i}")) for i=swing_indices], (1, length(swing_indices)))
10 | v_labels = reshape([latexstring(string(raw"v", "_{$i}")) for i=swing_indices], (1, length(swing_indices)))
11 |
12 | pl_v = plot(sol, swing_indices, :v, legend = (0.8, 0.7), ylabel=L"V [p.u.]",label = v_labels)
13 | pl_p = plot(sol, swing_indices, :p, legend = (0.8, 0.7), ylabel=L"p [p.u.]", label=p_labels)
14 | pl_q = plot(sol, swing_indices, :q, legend = (0.8, 0.7), ylabel=L"q [p.u.]", label=q_labels)
15 | pl_ω = plot(sol, swing_indices, :ω, legend = (0.8, 0.7), ylabel=L"\omega \left[rad/s\right]", label=ω_labels)
16 | pl = plot(pl_ω, pl_v, pl_p, pl_q;
17 | layout=(2,2),
18 | size = (1000, 500),
19 | lw=3,
20 | xlabel=L"t[s]"
21 | )
22 | return pl
23 | end
24 |
--------------------------------------------------------------------------------
/ieee14-4th-order/runexample.ipynb:
--------------------------------------------------------------------------------
1 | {
2 | "cells": [
3 | {
4 | "outputs": [],
5 | "cell_type": "code",
6 | "source": [
7 | "using PowerDynamics: SlackAlgebraic, FourthOrderEq, VoltageDependentLoad, PiModelLine, StaticLine, Transformer, PowerGrid, write_powergrid, Json, Inc, find_operationpoint, ChangeInitialConditions, LineFailure, PowerPerturbation, simulate\n",
8 | "using OrderedCollections: OrderedDict\n",
9 | "using Plots: savefig\n",
10 | "\n",
11 | "include(\"plotting.jl\")"
12 | ],
13 | "metadata": {},
14 | "execution_count": null
15 | },
16 | {
17 | "cell_type": "markdown",
18 | "source": [
19 | "Data Source: Kodsi, S. K. M., & Canizares, C. A. (2003). Modeling and simulation of IEEE 14-bus system with FACTS controllers. University of Waterloo, Canada, Tech. Rep."
20 | ],
21 | "metadata": {}
22 | },
23 | {
24 | "outputs": [],
25 | "cell_type": "code",
26 | "source": [
27 | "buses=OrderedDict(\n",
28 | " \"bus1\"=> FourthOrderEq(T_d_dash=7.4, D=2, X_d=0.8979, X_q=0.646, Ω=50, X_d_dash=0.2995, T_q_dash=0.1, X_q_dash=0.646, P=2.32, H=5.148, E_f=1),\n",
29 | " \"bus2\"=> SlackAlgebraic(U=1),\n",
30 | " \"bus3\"=> FourthOrderEq(T_d_dash=6.1, D=2, X_d=1.05, X_q=0.98, Ω=50, X_d_dash=0.185, T_q_dash=0.4, X_q_dash=0.36, P=-0.942, H=6.54, E_f= 1),\n",
31 | " \"bus4\"=> VoltageDependentLoad(P=-0.478, Q=-0.0, U=1.0, A=0.0, B=0.0),\n",
32 | " \"bus5\"=> VoltageDependentLoad(P=-0.076, Q=-0.016, U=1.0, A=0.0, B=0.0),\n",
33 | " \"bus6\"=> FourthOrderEq(T_d_dash=4.75, D=2, X_d=1.25, X_q=1.22, Ω=50, X_d_dash=0.232, T_q_dash=1.6, X_q_dash=0.715, P=-0.122, H=5.06, E_f= 1),\n",
34 | " \"bus7\"=> VoltageDependentLoad(P=-0.0, Q=-0.0, U=1.0, A=0.0, B=0.0),\n",
35 | " \"bus8\"=> FourthOrderEq(T_d_dash=4.75, D=2, X_d=1.25, X_q=1.22, Ω=50, X_d_dash=0.232, T_q_dash=1.6, X_q_dash=0.715, P=0.0, H=5.06, E_f= 1),\n",
36 | " \"bus9\"=> VoltageDependentLoad(P=-0.295, Q=-0.166, U=1.0, A=0.0, B=0.0),\n",
37 | " \"bus10\"=> VoltageDependentLoad(P=-0.09, Q=-0.058, U=1.0, A=0.0, B=0.0),\n",
38 | " \"bus11\"=> VoltageDependentLoad(P=-0.035, Q=-0.018, U=1.0, A=0.0, B=0.0),\n",
39 | " \"bus12\"=> VoltageDependentLoad(P=-0.061, Q=-0.016, U=1.0, A=0.0, B=0.0),\n",
40 | " \"bus13\"=> VoltageDependentLoad(P=-0.135, Q=-0.058, U=1.0, A=0.0, B=0.0),\n",
41 | " \"bus14\"=> VoltageDependentLoad(P=-0.149, Q=-0.05, U=1.0, A=0.0, B=0.0));\n",
42 | "\n",
43 | "branches=OrderedDict(\n",
44 | " \"branch1\"=> PiModelLine(from= \"bus1\", to = \"bus2\",y=4.999131600798035-1im*15.263086523179553, y_shunt_km=0.0528/2, y_shunt_mk=0.0528/2),\n",
45 | " \"branch2\"=> PiModelLine(from= \"bus1\", to = \"bus5\",y=1.025897454970189-1im*4.234983682334831, y_shunt_km=0.0492/2, y_shunt_mk=0.0492/2),\n",
46 | " \"branch3\"=> PiModelLine(from= \"bus2\", to = \"bus3\",y=1.1350191923073958-1im*4.781863151757718, y_shunt_km=0.0438/2, y_shunt_mk=0.0438/2),\n",
47 | " \"branch4\"=> PiModelLine(from= \"bus2\", to = \"bus4\",y=1.686033150614943-1im*5.115838325872083, y_shunt_km=0.0340/2, y_shunt_mk=0.0340/2),\n",
48 | " \"branch5\"=> PiModelLine(from= \"bus2\", to = \"bus5\",y=1.7011396670944048-1im*5.193927397969713, y_shunt_km=0.0346/2, y_shunt_mk=0.0346/2),\n",
49 | " \"branch6\"=> PiModelLine(from= \"bus3\", to = \"bus4\",y=1.9859757099255606-1im*5.0688169775939205, y_shunt_km=0.0128/2, y_shunt_mk=0.0128/2),\n",
50 | " \"branch7\"=> StaticLine(from= \"bus4\", to = \"bus5\",Y=6.840980661495672-1im*21.578553981691588),\n",
51 | " \"branch8\"=> Transformer(from= \"bus4\", to = \"bus7\", y=0.0-1im*4.781943381790359, t_ratio=0.978),\n",
52 | " \"branch9\"=> Transformer(from= \"bus4\", to = \"bus9\", y=0.0-1im*1.7979790715236075, t_ratio=0.969),\n",
53 | " \"branch10\"=> Transformer(from= \"bus5\", to = \"bus6\", y=0.0-1im*3.967939052456154, t_ratio=0.932),\n",
54 | " \"branch11\"=> StaticLine(from= \"bus6\", to = \"bus11\",Y=1.9550285631772604-1im*4.0940743442404415),\n",
55 | " \"branch12\"=> StaticLine(from= \"bus6\", to = \"bus12\",Y=1.525967440450974-1im*3.1759639650294003),\n",
56 | " \"branch13\"=> StaticLine(from= \"bus6\", to = \"bus13\",Y=3.0989274038379877-1im*6.102755448193116),\n",
57 | " \"branch14\"=> StaticLine(from= \"bus7\", to = \"bus8\",Y=0.0-1im*5.676979846721544),\n",
58 | " \"branch15\"=> StaticLine(from= \"bus7\", to = \"bus9\",Y=0.0-1im*9.09008271975275),\n",
59 | " \"branch16\"=> StaticLine(from= \"bus9\", to = \"bus10\",Y=3.902049552447428-1im*10.365394127060915),\n",
60 | " \"branch17\"=> StaticLine(from= \"bus9\", to = \"bus14\",Y=1.4240054870199312-1im*3.0290504569306034),\n",
61 | " \"branch18\"=> StaticLine(from= \"bus10\", to = \"bus11\",Y=1.8808847537003996-1im*4.402943749460521),\n",
62 | " \"branch19\"=> StaticLine(from= \"bus12\", to = \"bus13\",Y=2.4890245868219187-1im*2.251974626172212),\n",
63 | " \"branch20\"=> StaticLine(from= \"bus13\", to = \"bus14\",Y=1.1369941578063267-1im*2.314963475105352));\n",
64 | "\n",
65 | "\n",
66 | "powergrid = PowerGrid(buses, branches)\n",
67 | "write_powergrid(powergrid,\"ieee14-4th-order.json\", Json)\n",
68 | "\n",
69 | "operationpoint = find_operationpoint(powergrid)\n",
70 | "\n",
71 | "timespan= (0.0,5.)"
72 | ],
73 | "metadata": {},
74 | "execution_count": null
75 | },
76 | {
77 | "cell_type": "markdown",
78 | "source": [
79 | "simulating a frequency perturbation at node 1"
80 | ],
81 | "metadata": {}
82 | },
83 | {
84 | "outputs": [],
85 | "cell_type": "code",
86 | "source": [
87 | "fault1 = ChangeInitialConditions(node=\"bus1\", var=:ω, f=Inc(0.2))\n",
88 | "solution1 = simulate(fault1, powergrid, operationpoint, timespan)\n",
89 | "plot1 = create_plot(solution1)\n",
90 | "savefig(plot1, \"ieee14-4th-order-frequency-perturbation.pdf\")\n",
91 | "display(plot1)"
92 | ],
93 | "metadata": {},
94 | "execution_count": null
95 | },
96 | {
97 | "cell_type": "markdown",
98 | "source": [
99 | "simulating a tripped line between node 1 and 5"
100 | ],
101 | "metadata": {}
102 | },
103 | {
104 | "outputs": [],
105 | "cell_type": "code",
106 | "source": [
107 | "fault2 = LineFailure(line_name=\"branch2\", tspan_fault=(1.,5.))\n",
108 | "solution2 = simulate(fault2, powergrid, operationpoint, timespan)\n",
109 | "plot2 = create_plot(solution2)\n",
110 | "savefig(plot2, \"ieee14-4th-order-line-tripping.pdf\")\n",
111 | "display(plot2)"
112 | ],
113 | "metadata": {},
114 | "execution_count": null
115 | },
116 | {
117 | "cell_type": "markdown",
118 | "source": [
119 | "simulating a load drop at node 5"
120 | ],
121 | "metadata": {}
122 | },
123 | {
124 | "outputs": [],
125 | "cell_type": "code",
126 | "source": [
127 | "fault3 = PowerPerturbation(node=\"bus5\", fault_power=0.0, tspan_fault=(1.,5.), var=:P)\n",
128 | "solution3 = simulate(fault3, powergrid, operationpoint, timespan)\n",
129 | "plot3 = create_plot(solution3)\n",
130 | "savefig(plot3, \"ieee14-4th-order-load-drop.pdf\")\n",
131 | "display(plot3)\n",
132 | "\n",
133 | "\n",
134 | "using Weave: convert_doc\n",
135 | "convert_doc(\"runexample.jl\", \"runexample.ipynb\")"
136 | ],
137 | "metadata": {},
138 | "execution_count": null
139 | },
140 | {
141 | "cell_type": "markdown",
142 | "source": [
143 | "---\n",
144 | "\n",
145 | "*This notebook was generated using [Literate.jl](https://github.com/fredrikekre/Literate.jl).*"
146 | ],
147 | "metadata": {}
148 | }
149 | ],
150 | "nbformat_minor": 3,
151 | "metadata": {
152 | "language_info": {
153 | "file_extension": ".jl",
154 | "mimetype": "application/julia",
155 | "name": "julia",
156 | "version": "1.2.0"
157 | },
158 | "kernelspec": {
159 | "name": "julia-1.2",
160 | "display_name": "Julia 1.2.0",
161 | "language": "julia"
162 | }
163 | },
164 | "nbformat": 4
165 | }
166 |
--------------------------------------------------------------------------------
/ieee14-4th-order/runexample.jl:
--------------------------------------------------------------------------------
1 | using PowerDynamics: SlackAlgebraic, FourthOrderEq, VoltageDependentLoad, PiModelLine, StaticLine, Transformer, PowerGrid, write_powergrid, Json, Inc, find_operationpoint, ChangeInitialConditions, LineFailure, PowerPerturbation, simulate
2 | using OrderedCollections: OrderedDict
3 | using Plots: savefig
4 |
5 | include("plotting.jl")
6 |
7 | # Data Source: Kodsi, S. K. M., & Canizares, C. A. (2003). Modeling and simulation of IEEE 14-bus system with FACTS controllers. University of Waterloo, Canada, Tech. Rep.
8 |
9 | buses=OrderedDict(
10 | "bus1"=> FourthOrderEq(T_d_dash=7.4, D=2, X_d=0.8979, X_q=0.646, Ω=50, X_d_dash=0.2995, T_q_dash=0.1, X_q_dash=0.646, P=2.32, H=5.148, E_f=1),
11 | "bus2"=> SlackAlgebraic(U=1),
12 | "bus3"=> FourthOrderEq(T_d_dash=6.1, D=2, X_d=1.05, X_q=0.98, Ω=50, X_d_dash=0.185, T_q_dash=0.4, X_q_dash=0.36, P=-0.942, H=6.54, E_f= 1),
13 | "bus4"=> VoltageDependentLoad(P=-0.478, Q=-0.0, U=1.0, A=0.0, B=0.0),
14 | "bus5"=> VoltageDependentLoad(P=-0.076, Q=-0.016, U=1.0, A=0.0, B=0.0),
15 | "bus6"=> FourthOrderEq(T_d_dash=4.75, D=2, X_d=1.25, X_q=1.22, Ω=50, X_d_dash=0.232, T_q_dash=1.6, X_q_dash=0.715, P=-0.122, H=5.06, E_f= 1),
16 | "bus7"=> VoltageDependentLoad(P=-0.0, Q=-0.0, U=1.0, A=0.0, B=0.0),
17 | "bus8"=> FourthOrderEq(T_d_dash=4.75, D=2, X_d=1.25, X_q=1.22, Ω=50, X_d_dash=0.232, T_q_dash=1.6, X_q_dash=0.715, P=0.0, H=5.06, E_f= 1),
18 | "bus9"=> VoltageDependentLoad(P=-0.295, Q=-0.166, U=1.0, A=0.0, B=0.0),
19 | "bus10"=> VoltageDependentLoad(P=-0.09, Q=-0.058, U=1.0, A=0.0, B=0.0),
20 | "bus11"=> VoltageDependentLoad(P=-0.035, Q=-0.018, U=1.0, A=0.0, B=0.0),
21 | "bus12"=> VoltageDependentLoad(P=-0.061, Q=-0.016, U=1.0, A=0.0, B=0.0),
22 | "bus13"=> VoltageDependentLoad(P=-0.135, Q=-0.058, U=1.0, A=0.0, B=0.0),
23 | "bus14"=> VoltageDependentLoad(P=-0.149, Q=-0.05, U=1.0, A=0.0, B=0.0));
24 |
25 | branches=OrderedDict(
26 | "branch1"=> PiModelLine(from= "bus1", to = "bus2",y=4.999131600798035-1im*15.263086523179553, y_shunt_km=0.0528/2, y_shunt_mk=0.0528/2),
27 | "branch2"=> PiModelLine(from= "bus1", to = "bus5",y=1.025897454970189-1im*4.234983682334831, y_shunt_km=0.0492/2, y_shunt_mk=0.0492/2),
28 | "branch3"=> PiModelLine(from= "bus2", to = "bus3",y=1.1350191923073958-1im*4.781863151757718, y_shunt_km=0.0438/2, y_shunt_mk=0.0438/2),
29 | "branch4"=> PiModelLine(from= "bus2", to = "bus4",y=1.686033150614943-1im*5.115838325872083, y_shunt_km=0.0340/2, y_shunt_mk=0.0340/2),
30 | "branch5"=> PiModelLine(from= "bus2", to = "bus5",y=1.7011396670944048-1im*5.193927397969713, y_shunt_km=0.0346/2, y_shunt_mk=0.0346/2),
31 | "branch6"=> PiModelLine(from= "bus3", to = "bus4",y=1.9859757099255606-1im*5.0688169775939205, y_shunt_km=0.0128/2, y_shunt_mk=0.0128/2),
32 | "branch7"=> StaticLine(from= "bus4", to = "bus5",Y=6.840980661495672-1im*21.578553981691588),
33 | "branch8"=> Transformer(from= "bus4", to = "bus7", y=0.0-1im*4.781943381790359, t_ratio=0.978),
34 | "branch9"=> Transformer(from= "bus4", to = "bus9", y=0.0-1im*1.7979790715236075, t_ratio=0.969),
35 | "branch10"=> Transformer(from= "bus5", to = "bus6", y=0.0-1im*3.967939052456154, t_ratio=0.932),
36 | "branch11"=> StaticLine(from= "bus6", to = "bus11",Y=1.9550285631772604-1im*4.0940743442404415),
37 | "branch12"=> StaticLine(from= "bus6", to = "bus12",Y=1.525967440450974-1im*3.1759639650294003),
38 | "branch13"=> StaticLine(from= "bus6", to = "bus13",Y=3.0989274038379877-1im*6.102755448193116),
39 | "branch14"=> StaticLine(from= "bus7", to = "bus8",Y=0.0-1im*5.676979846721544),
40 | "branch15"=> StaticLine(from= "bus7", to = "bus9",Y=0.0-1im*9.09008271975275),
41 | "branch16"=> StaticLine(from= "bus9", to = "bus10",Y=3.902049552447428-1im*10.365394127060915),
42 | "branch17"=> StaticLine(from= "bus9", to = "bus14",Y=1.4240054870199312-1im*3.0290504569306034),
43 | "branch18"=> StaticLine(from= "bus10", to = "bus11",Y=1.8808847537003996-1im*4.402943749460521),
44 | "branch19"=> StaticLine(from= "bus12", to = "bus13",Y=2.4890245868219187-1im*2.251974626172212),
45 | "branch20"=> StaticLine(from= "bus13", to = "bus14",Y=1.1369941578063267-1im*2.314963475105352));
46 |
47 |
48 | powergrid = PowerGrid(buses, branches)
49 | write_powergrid(powergrid,"ieee14-4th-order.json", Json)
50 |
51 | operationpoint = find_operationpoint(powergrid)
52 |
53 | timespan= (0.0,5.)
54 | # simulating a frequency perturbation at node 1
55 | fault1 = ChangeInitialConditions(node="bus1", var=:ω, f=Inc(0.2))
56 | solution1 = simulate(fault1, powergrid, operationpoint, timespan)
57 | plot1 = create_plot(solution1)
58 | savefig(plot1, "ieee14-4th-order-frequency-perturbation.pdf")
59 | display(plot1)
60 |
61 | # simulating a tripped line between node 1 and 5
62 | fault2 = LineFailure(line_name="branch2", tspan_fault=(1.,5.))
63 | solution2 = simulate(fault2, powergrid, operationpoint, timespan)
64 | plot2 = create_plot(solution2)
65 | savefig(plot2, "ieee14-4th-order-line-tripping.pdf")
66 | display(plot2)
67 |
68 | # simulating a load drop at node 5
69 | fault3 = PowerPerturbation(node="bus5", fault_power=0.0, tspan_fault=(1.,5.), var=:P)
70 | solution3 = simulate(fault3, powergrid, operationpoint, timespan)
71 | plot3 = create_plot(solution3)
72 | savefig(plot3, "ieee14-4th-order-load-drop.pdf")
73 | display(plot3)
74 |
75 |
76 | using Weave: convert_doc
77 | convert_doc("runexample.jl", "runexample.ipynb")
--------------------------------------------------------------------------------
/ieee14-minimal-power-reduction/.gitignore:
--------------------------------------------------------------------------------
1 | *.pdf
2 | *.png
3 | *.svg
4 |
--------------------------------------------------------------------------------
/ieee14-minimal-power-reduction/IEEE14_busses.csv:
--------------------------------------------------------------------------------
1 | Bus Number,Bus Type,Bus Type Expl.,Base Voltage [kV],P_gen [100MW],Q_gen [100 MVAr],P_load [100MW],Q_load [100 MVAr],Inertia,Damping,Generator Capacity
2 | 1,G,G,69,2.32,0,0,0,5.148,2,615
3 | 2,S,Slack Bus,69,0.4,-0.424,0.217,0.127,6.54,2,60
4 | 3,G,Synchr. Comp.,69,0,0,0.942,0.19,6.54,2,60
5 | 4,L,Load,69,0,0,0.478,0,,,
6 | 5,L,Load,69,0,0,0.076,0.016,,,
7 | 6,G,Synchr. Comp.,13.8,0,0,0.112,0.075,5.06,2,25
8 | 7,L,Load,13.8,0,0,0,0,,,
9 | 8,G,Synchr. Comp.,18,0,0,0,0,5.06,2,25
10 | 9,L,Load,13.8,0,0,0.295,0.166,,,
11 | 10,L,Load,13.8,0,0,0.09,0.058,,,
12 | 11,L,Load,13.8,0,0,0.035,0.018,,,
13 | 12,L,Load,13.8,0,0,0.061,0.016,,,
14 | 13,L,Load,13.8,0,0,0.135,0.058,,,
15 | 14,L,Load,13.8,0,0,0.149,0.05,,,
16 |
--------------------------------------------------------------------------------
/ieee14-minimal-power-reduction/IEEE14_lines.csv:
--------------------------------------------------------------------------------
1 | From Bus,To Bus,R [pu],X [pu],Line Charging,Tap ratio
2 | 1,2,0.01938,0.05917,0.0528,1
3 | 1,5,0.05403,0.22304,0.0492,1
4 | 2,3,0.04699,0.19797,0.0438,1
5 | 2,4,0.05811,0.17632,0.034,1
6 | 2,5,0.05695,0.17388,0.0346,1
7 | 3,4,0.06701,0.17103,0.0128,1
8 | 4,5,0.01335,0.04211,0,1
9 | 4,7,0,0.20912,0,0.978
10 | 4,9,0,0.55618,0,0.969
11 | 5,6,0,0.25202,0,0.932
12 | 6,11,0.09498,0.1989,0,1
13 | 6,12,0.12291,0.25581,0,1
14 | 6,13,0.06615,0.13027,0,1
15 | 7,8,0,0.17615,0,1
16 | 7,9,0,0.11001,0,1
17 | 9,10,0.03181,0.0845,0,1
18 | 9,14,0.12711,0.27038,0,1
19 | 10,11,0.08205,0.19207,0,1
20 | 12,13,0.22092,0.19988,0,1
21 | 13,14,0.17093,0.34802,0,1
22 |
--------------------------------------------------------------------------------
/ieee14-minimal-power-reduction/Project.toml:
--------------------------------------------------------------------------------
1 | [deps]
2 | CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
3 | DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
4 | LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
5 | Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
6 | PowerDynBase = "7ffb48b1-f436-5a59-a310-b4407da33972"
7 | PowerDynOperationPoint = "95be4243-a2fd-5eef-a7d1-2e97978993e7"
8 | PowerDynSolve = "b2d36aa5-a2b1-5d23-8bd9-f353e61de00d"
9 | SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
10 |
11 | [compat]
12 | Julia = "^1.0"
13 | PowerDynSolve = ">=0.6.1"
14 |
--------------------------------------------------------------------------------
/ieee14-minimal-power-reduction/runexample.jl:
--------------------------------------------------------------------------------
1 | begin
2 | using Pkg
3 | Pkg.activate(@__DIR__)
4 | Pkg.resolve()
5 | Pkg.instantiate()
6 | cd(@__DIR__)
7 | end
8 |
9 | begin
10 | using CSV
11 | using DataFrames
12 | using PowerDynBase
13 | using PowerDynBase: AbstractNodeParameters
14 | using PowerDynSolve
15 | using PowerDynOperationPoint
16 | using LaTeXStrings
17 | using Plots
18 | using SparseArrays
19 | end
20 |
21 | begin
22 | busses_df = CSV.read("IEEE14_busses.csv")[[2,5,6,7,8,9,10]]
23 | df_names = [:type, :P_gen, :Q_gen, :P_load, :Q_load, :intertia, :damping]
24 | names!(getfield(busses_df, :colindex), df_names)
25 | display(busses_df)
26 |
27 | lines_df = CSV.read("IEEE14_lines.csv")
28 | df_names = [:from, :to, :R, :X, :charging, :tap_ratio]
29 | names!(getfield(lines_df, :colindex), df_names)
30 | display(lines_df)
31 | end
32 |
33 | begin
34 | println("converting dataframes to types of PowerDynamics")
35 | function busdf2nodelist(busses_df)
36 | node_list = Array{AbstractNodeParameters,1}()
37 | for bus_index = 1:size(busses_df)[1]
38 | bus_data = busses_df[bus_index,:]
39 | if busses_df[bus_index,:type] == "S"
40 | append!(node_list, [SlackAlgebraic(U=1)])
41 | elseif busses_df[bus_index,:type] == "G"
42 | append!(node_list, [SwingEqLVS(
43 | H=busses_df[bus_index,:intertia] ,
44 | P=(busses_df[bus_index,:P_gen] - busses_df[bus_index,:P_load]),
45 | D=busses_df[bus_index,:damping],
46 | Ω=50,
47 | Γ= 2,
48 | V=1
49 | )])
50 | elseif busses_df[bus_index,:type] == "L"
51 | append!(node_list, [PQAlgebraic(
52 | S= -busses_df[bus_index,:P_load] - im*busses_df[bus_index,:Q_load]
53 | )])
54 | end
55 | end
56 | return node_list
57 | end
58 |
59 | node_list = busdf2nodelist(busses_df)
60 | node_list_power_reduction = copy(node_list)
61 | n = node_list[1]
62 | node_list_power_reduction[1] = SwingEqLVS(
63 | H=n.H,
64 | P=n.P*0.9, # 10% power reduction
65 | D=n.D,
66 | Ω=n.Ω,
67 | Γ=n.Γ,
68 | V=n.V
69 | )
70 | @assert node_list != node_list_power_reduction
71 | # some preparation for plotting later
72 | swing_indices = findall(busses_df[:type] .== "G")
73 | ω_colors = reshape(Plots.get_color_palette(:auto, plot_color(:white), 8)[swing_indices], (1,length(swing_indices)))
74 | ω_labels = reshape([latexstring(string(raw"\omega", "_{$i}","[$(busses_df[i,:type])]")) for i=swing_indices], (1, length(swing_indices)))
75 | p_labels = reshape([latexstring(string(raw"p", "_{$i}","[$(busses_df[i,:type])]")) for i=1:length(node_list)], (1, length(node_list)))
76 | end
77 |
78 | begin
79 | function linedf2LY(lines_df, num_nodes)
80 | Y = spzeros(Complex, num_nodes, num_nodes)
81 | for line_index = 1:size(lines_df)[1]
82 | from = lines_df[line_index,:from]
83 | to = lines_df[line_index,:to]
84 | if (from > num_nodes) || (to > num_nodes)
85 | warn("Skipping line $line_index from $from to $(to)!")
86 | continue
87 | end
88 | admittance = 1/(lines_df[line_index,:R] + im*lines_df[line_index,:X])
89 | println("$from --> $to : $admittance")
90 | Y[from, to] = - admittance
91 | Y[to, from] = - admittance
92 | Y[from, from] += admittance # note the +=
93 | Y[to, to] += admittance # note the +=
94 | end
95 | return Y
96 | end
97 |
98 | # admittance laplacian
99 | LY = linedf2LY(lines_df, length(node_list))
100 | end
101 |
102 | # create network dynamics object
103 | g = GridDynamics(node_list, LY)
104 | g_power_reduction = GridDynamics(node_list_power_reduction, LY)
105 |
106 | # find the fixed point = normal operation point
107 | fp = getOperationPoint(g, ones(SystemSize(g)))
108 |
109 | begin
110 | # solve before fault (i.e. simply staying on the fixed point)
111 | sol1 = solve(g, fp, (0., 2.))
112 | final_state1 = sol1(:final)
113 | # solve after the fault
114 | sol2 = solve(g_power_reduction, State(g_power_reduction, convert(Vector, final_state1)), (2., 3.))
115 | final_state2 = sol2(:final)
116 | # solve after clearance of the fault
117 | sol3 = solve(g, State(g, convert(Vector, final_state2)), (3., 5.))
118 | sol = CompositeGridSolution(sol1, sol2, sol3)
119 | end
120 |
121 | begin
122 | # pl_v = plot(sol, :, :v, legend = (0.4, 1.), ylabel=L"V [p.u.]")
123 | pl_p = plot(sol, :, :p, legend = (0.8, 0.95), ylabel=L"p [p.u.]", label=p_labels)
124 | pl_ω = plot(sol, swing_indices, :ω, legend = (0.8, 0.7), ylabel=L"\omega \left[rad/s\right]", label=ω_labels, color=ω_colors, ylims=(-0.2, 0.2))
125 | pl = plot(
126 | # pl_v,
127 | pl_p, pl_ω;
128 | layout=(2,1),
129 | size = (500, 500),
130 | lw=3,
131 | xlabel=L"t[s]"
132 | )
133 | display(pl)
134 | end
135 |
--------------------------------------------------------------------------------
/ieee14-minimal/.gitignore:
--------------------------------------------------------------------------------
1 | *.pdf
2 | *.png
3 | *.svg
4 |
--------------------------------------------------------------------------------
/ieee14-minimal/Project.toml:
--------------------------------------------------------------------------------
1 | [deps]
2 | LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
3 | Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
4 | PowerDynamics = "cc46b21f-1b17-51c2-b642-af74c3d3a8be"
5 |
6 | [compat]
7 | julia = "^1.2"
8 |
--------------------------------------------------------------------------------
/ieee14-minimal/README.md:
--------------------------------------------------------------------------------
1 | [](https://mybinder.org/v2/gh/JuliaEnergy/PowerDynamicsExamples/master?filepath=ieee14-minimal%2Frunexample.ipynb)
2 |
--------------------------------------------------------------------------------
/ieee14-minimal/ieee-14-minimal.json:
--------------------------------------------------------------------------------
1 | {
2 | "nodes": [
3 | {
4 | "params": {
5 | "P": 2.32,
6 | "H": 5.148,
7 | "Ω": 314.1592653589793,
8 | "D": 0.006366197723675813,
9 | "Γ": 2,
10 | "V": 1
11 | },
12 | "type": "SwingEqLVS"
13 | },
14 | {
15 | "params": {
16 | "U": 1
17 | },
18 | "type": "SlackAlgebraic"
19 | },
20 | {
21 | "params": {
22 | "P": -0.942,
23 | "H": 6.54,
24 | "Ω": 314.1592653589793,
25 | "D": 0.006366197723675813,
26 | "Γ": 2,
27 | "V": 1
28 | },
29 | "type": "SwingEqLVS"
30 | },
31 | {
32 | "params": {
33 | "P": -0.478,
34 | "Q": -0.0
35 | },
36 | "type": "PQAlgebraic"
37 | },
38 | {
39 | "params": {
40 | "P": -0.076,
41 | "Q": -0.016
42 | },
43 | "type": "PQAlgebraic"
44 | },
45 | {
46 | "params": {
47 | "P": -0.112,
48 | "H": 5.06,
49 | "Ω": 314.1592653589793,
50 | "D": 0.006366197723675813,
51 | "Γ": 2,
52 | "V": 1
53 | },
54 | "type": "SwingEqLVS"
55 | },
56 | {
57 | "params": {
58 | "P": -0.0,
59 | "Q": -0.0
60 | },
61 | "type": "PQAlgebraic"
62 | },
63 | {
64 | "params": {
65 | "P": 0.0,
66 | "H": 5.06,
67 | "Ω": 314.1592653589793,
68 | "D": 0.006366197723675813,
69 | "Γ": 2,
70 | "V": 1
71 | },
72 | "type": "SwingEqLVS"
73 | },
74 | {
75 | "params": {
76 | "P": -0.295,
77 | "Q": -0.166
78 | },
79 | "type": "PQAlgebraic"
80 | },
81 | {
82 | "params": {
83 | "P": -0.09,
84 | "Q": -0.058
85 | },
86 | "type": "PQAlgebraic"
87 | },
88 | {
89 | "params": {
90 | "P": -0.035,
91 | "Q": -0.018
92 | },
93 | "type": "PQAlgebraic"
94 | },
95 | {
96 | "params": {
97 | "P": -0.061,
98 | "Q": -0.016
99 | },
100 | "type": "PQAlgebraic"
101 | },
102 | {
103 | "params": {
104 | "P": -0.135,
105 | "Q": -0.058
106 | },
107 | "type": "PQAlgebraic"
108 | },
109 | {
110 | "params": {
111 | "P": -0.149,
112 | "Q": -0.05
113 | },
114 | "type": "PQAlgebraic"
115 | }
116 | ],
117 | "lines": [
118 | {
119 | "params": {
120 | "from": 1,
121 | "Y": {
122 | "re": 4.999131600798035,
123 | "im": -15.263086523179553
124 | },
125 | "to": 2
126 | },
127 | "type": "StaticLine"
128 | },
129 | {
130 | "params": {
131 | "from": 1,
132 | "Y": {
133 | "re": 1.025897454970189,
134 | "im": -4.234983682334831
135 | },
136 | "to": 5
137 | },
138 | "type": "StaticLine"
139 | },
140 | {
141 | "params": {
142 | "from": 2,
143 | "Y": {
144 | "re": 1.1350191923073958,
145 | "im": -4.781863151757718
146 | },
147 | "to": 3
148 | },
149 | "type": "StaticLine"
150 | },
151 | {
152 | "params": {
153 | "from": 2,
154 | "Y": {
155 | "re": 1.686033150614943,
156 | "im": -5.115838325872083
157 | },
158 | "to": 4
159 | },
160 | "type": "StaticLine"
161 | },
162 | {
163 | "params": {
164 | "from": 2,
165 | "Y": {
166 | "re": 1.7011396670944048,
167 | "im": -5.193927397969713
168 | },
169 | "to": 5
170 | },
171 | "type": "StaticLine"
172 | },
173 | {
174 | "params": {
175 | "from": 3,
176 | "Y": {
177 | "re": 1.9859757099255606,
178 | "im": -5.0688169775939205
179 | },
180 | "to": 4
181 | },
182 | "type": "StaticLine"
183 | },
184 | {
185 | "params": {
186 | "from": 4,
187 | "Y": {
188 | "re": 6.840980661495672,
189 | "im": -21.578553981691588
190 | },
191 | "to": 5
192 | },
193 | "type": "StaticLine"
194 | },
195 | {
196 | "params": {
197 | "from": 4,
198 | "Y": {
199 | "re": 0.0,
200 | "im": -4.781943381790359
201 | },
202 | "to": 7
203 | },
204 | "type": "StaticLine"
205 | },
206 | {
207 | "params": {
208 | "from": 4,
209 | "Y": {
210 | "re": 0.0,
211 | "im": -1.7979790715236075
212 | },
213 | "to": 9
214 | },
215 | "type": "StaticLine"
216 | },
217 | {
218 | "params": {
219 | "from": 5,
220 | "Y": {
221 | "re": 0.0,
222 | "im": -3.967939052456154
223 | },
224 | "to": 6
225 | },
226 | "type": "StaticLine"
227 | },
228 | {
229 | "params": {
230 | "from": 6,
231 | "Y": {
232 | "re": 1.9550285631772604,
233 | "im": -4.0940743442404415
234 | },
235 | "to": 11
236 | },
237 | "type": "StaticLine"
238 | },
239 | {
240 | "params": {
241 | "from": 6,
242 | "Y": {
243 | "re": 1.525967440450974,
244 | "im": -3.1759639650294003
245 | },
246 | "to": 12
247 | },
248 | "type": "StaticLine"
249 | },
250 | {
251 | "params": {
252 | "from": 6,
253 | "Y": {
254 | "re": 3.0989274038379877,
255 | "im": -6.102755448193116
256 | },
257 | "to": 13
258 | },
259 | "type": "StaticLine"
260 | },
261 | {
262 | "params": {
263 | "from": 7,
264 | "Y": {
265 | "re": 0.0,
266 | "im": -5.676979846721544
267 | },
268 | "to": 8
269 | },
270 | "type": "StaticLine"
271 | },
272 | {
273 | "params": {
274 | "from": 7,
275 | "Y": {
276 | "re": 0.0,
277 | "im": -9.09008271975275
278 | },
279 | "to": 9
280 | },
281 | "type": "StaticLine"
282 | },
283 | {
284 | "params": {
285 | "from": 9,
286 | "Y": {
287 | "re": 3.902049552447428,
288 | "im": -10.365394127060915
289 | },
290 | "to": 10
291 | },
292 | "type": "StaticLine"
293 | },
294 | {
295 | "params": {
296 | "from": 9,
297 | "Y": {
298 | "re": 1.4240054870199312,
299 | "im": -3.0290504569306034
300 | },
301 | "to": 14
302 | },
303 | "type": "StaticLine"
304 | },
305 | {
306 | "params": {
307 | "from": 10,
308 | "Y": {
309 | "re": 1.8808847537003996,
310 | "im": -4.402943749460521
311 | },
312 | "to": 11
313 | },
314 | "type": "StaticLine"
315 | },
316 | {
317 | "params": {
318 | "from": 12,
319 | "Y": {
320 | "re": 2.4890245868219187,
321 | "im": -2.251974626172212
322 | },
323 | "to": 13
324 | },
325 | "type": "StaticLine"
326 | },
327 | {
328 | "params": {
329 | "from": 13,
330 | "Y": {
331 | "re": 1.1369941578063267,
332 | "im": -2.314963475105352
333 | },
334 | "to": 14
335 | },
336 | "type": "StaticLine"
337 | }
338 | ],
339 | "version": "1"
340 | }
341 |
--------------------------------------------------------------------------------
/ieee14-minimal/plotting.jl:
--------------------------------------------------------------------------------
1 | using PowerDynamics: symbolsof
2 | using Plots: plot, get_color_palette, plot_color
3 | using LaTeXStrings: latexstring, @L_str
4 |
5 | function create_plot(sol)
6 | swing_indices = findall(n -> :ω ∈ symbolsof(n), sol.powergrid.nodes)
7 | ω_colors = reshape(get_color_palette(:auto, plot_color(:white), 8)[swing_indices], (1,length(swing_indices)))
8 | ω_labels = reshape([latexstring(string(raw"\omega", "_{$i}")) for i=swing_indices], (1, length(swing_indices)))
9 | p_labels = reshape([latexstring(string(raw"p", "_{$i}")) for i=1:length(sol.powergrid.nodes)], (1, length(sol.powergrid.nodes)))
10 |
11 | pl_p = plot(sol, :, :p, legend = (0.8, 0.95), ylabel=L"p [p.u.]", label=p_labels)
12 | pl_ω = plot(sol, swing_indices, :ω, legend = (0.8, 0.7), ylabel=L"\omega \left[rad/s\right]", label=ω_labels, color=ω_colors)
13 | pl = plot(
14 | pl_p, pl_ω;
15 | layout=(2,1),
16 | size = (500, 500),
17 | lw=3,
18 | xlabel=L"t[s]"
19 | )
20 | return pl
21 | end
22 |
--------------------------------------------------------------------------------
/ieee14-minimal/runexample.ipynb:
--------------------------------------------------------------------------------
1 | {
2 | "cells": [
3 | {
4 | "outputs": [],
5 | "cell_type": "code",
6 | "source": [
7 | "using PowerDynamics: read_powergrid, Json, find_operationpoint, Perturbation, Inc, LineFault, simulate\n",
8 | "using Plots: savefig\n",
9 | "include(\"plotting.jl\")\n",
10 | "\n",
11 | "powergrid = read_powergrid(\"ieee-14-minimal.json\", Json)\n",
12 | "\n",
13 | "operationpoint = find_operationpoint(powergrid)"
14 | ],
15 | "metadata": {},
16 | "execution_count": null
17 | },
18 | {
19 | "cell_type": "markdown",
20 | "source": [
21 | "simulating a frequency perturbation at node 1"
22 | ],
23 | "metadata": {}
24 | },
25 | {
26 | "outputs": [],
27 | "cell_type": "code",
28 | "source": [
29 | "solution1 = simulate(Perturbation(1, :ω, Inc(0.2)), powergrid, operationpoint, timespan = (0.0,10.))\n",
30 | "plot1 = create_plot(solution1)\n",
31 | "savefig(plot1,\"ieee14-minimal-omega_perturbation.pdf\")"
32 | ],
33 | "metadata": {},
34 | "execution_count": null
35 | },
36 | {
37 | "cell_type": "markdown",
38 | "source": [
39 | "simulating a tripped line between node 1 and 5"
40 | ],
41 | "metadata": {}
42 | },
43 | {
44 | "outputs": [],
45 | "cell_type": "code",
46 | "source": [
47 | "solution2 = simulate(LineFault(from=1,to=5), powergrid, operationpoint, timespan = (0.0,10.0))\n",
48 | "plot2 = create_plot(solution2)\n",
49 | "savefig(plot2, \"ieee14-minimal-line-fault.pdf\")"
50 | ],
51 | "metadata": {},
52 | "execution_count": null
53 | },
54 | {
55 | "cell_type": "markdown",
56 | "source": [
57 | "---\n",
58 | "\n",
59 | "*This notebook was generated using [Literate.jl](https://github.com/fredrikekre/Literate.jl).*"
60 | ],
61 | "metadata": {}
62 | }
63 | ],
64 | "nbformat_minor": 3,
65 | "metadata": {
66 | "language_info": {
67 | "file_extension": ".jl",
68 | "mimetype": "application/julia",
69 | "name": "julia",
70 | "version": "1.2.0"
71 | },
72 | "kernelspec": {
73 | "name": "julia-1.2",
74 | "display_name": "Julia 1.2.0",
75 | "language": "julia"
76 | }
77 | },
78 | "nbformat": 4
79 | }
80 |
--------------------------------------------------------------------------------
/ieee14-minimal/runexample.jl:
--------------------------------------------------------------------------------
1 | using PowerDynamics: read_powergrid, Json, find_operationpoint, Perturbation, Inc, LineFault, simulate
2 | using Plots: savefig
3 | include("plotting.jl")
4 |
5 | powergrid = read_powergrid("ieee-14-minimal.json", Json)
6 |
7 | operationpoint = find_operationpoint(powergrid)
8 |
9 | # simulating a frequency perturbation at node 1
10 | solution1 = simulate(Perturbation(1, :ω, Inc(0.2)), powergrid, operationpoint, timespan = (0.0,10.))
11 | plot1 = create_plot(solution1)
12 | savefig(plot1,"ieee14-minimal-omega_perturbation.pdf")
13 |
14 | # simulating a tripped line between node 1 and 5
15 | solution2 = simulate(LineFault(from=1,to=5), powergrid, operationpoint, timespan = (0.0,10.0))
16 | plot2 = create_plot(solution2)
17 | savefig(plot2, "ieee14-minimal-line-fault.pdf")
18 |
--------------------------------------------------------------------------------
/notebooks/Project.toml:
--------------------------------------------------------------------------------
1 | [deps]
2 | Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
3 |
--------------------------------------------------------------------------------
/push.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | if [[ `git status --porcelain --untracked-files=no` ]]; then
4 | # Decode private deploy SSH key
5 | openssl aes-256-cbc -k "$travis_key_password" -md sha256 -d -a -in travis_key.enc -out ./travis_key
6 | chmod 400 ./travis_key
7 | echo "Host github.com" > ~/.ssh/config
8 | echo " IdentityFile $(pwd)/travis_key" >> ~/.ssh/config
9 | git remote set-url origin git@github.com:JuliaEnergy/PowerDynamicsExamples.git
10 | echo "github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==" > ~/.ssh/known_hosts
11 |
12 | echo "Pushing updated notebooks"
13 | git add *.ipynb
14 | git commit -m "Automatic update of notebooks [skip ci]" # skip ci prevents infinite triggering of travis
15 | git diff-tree --no-commit-id --name-only -r HEAD # list changed files
16 | git push origin HEAD:$TRAVIS_BRANCH
17 | else
18 | echo "No changes, nothing to do :)"
19 | fi
20 |
--------------------------------------------------------------------------------
/travis_key.enc:
--------------------------------------------------------------------------------
1 | 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
72 | nulYC2to3V/SdFmKvms2Kg==
73 |
--------------------------------------------------------------------------------