{"id":21,"date":"2016-07-27T21:10:22","date_gmt":"2016-07-27T21:10:22","guid":{"rendered":"http:\/\/peder.ddns.net\/aursand\/?p=21"},"modified":"2021-11-09T17:03:52","modified_gmt":"2021-11-09T17:03:52","slug":"python-boids","status":"publish","type":"post","link":"https:\/\/drgaff.net\/?p=21","title":{"rendered":"Python boids"},"content":{"rendered":"<p>As a part of my PhD defence in 2015 I gave a trial lecture on the topic <b>Mathematical models for flocking and swarming<\/b>. In preparation for this lecture I implemented a code simulating flocking behavior in a group of agents following the <a href=\"http:\/\/dl.acm.org\/citation.cfm?id=37406\" target=\"_blank\" rel=\"noopener noreferrer\">three rules of Reynolds<\/a>.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-22\" src=\"http:\/\/peder.ddns.net\/aursand\/wp-content\/uploads\/example.png\" alt=\"\" width=\"600\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-22\" src=\"http:\/\/drgaff.net\/wp-content\/uploads\/example.png\" alt=\"\" width=\"812\" height=\"612\"><\/p>\n<p>The code I wrote, with documentation, can be found on its github page <a href=\"https:\/\/github.com\/pederka\/pythonBoids2D\" target=\"_blank\" rel=\"noopener noreferrer\">HERE<\/a>. It is written in object-oriented python and released under the <a href=\"https:\/\/opensource.org\/licenses\/MIT\" target=\"_blank\" rel=\"noopener noreferrer\">MIT license<\/a> in case someone finds it useful.<\/p>\n<p>For anyone interested in the phenomena of flocking the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Flocking_(behavior)\" target=\"_blank\" rel=\"noopener noreferrer\">wikipedia page<\/a> is a great place to start. Also, Craig Reynolds&#8217; <a href=\"http:\/\/www.red3d.com\/cwr\/boids\/\" target=\"_blank\" rel=\"noopener noreferrer\">website<\/a> on the subject contains a lot of resources.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As a part of my PhD defence in 2015 I gave a trial lecture on the topic Mathematical models for flocking and swarming. In preparation for this lecture I implemented a code simulating flocking behavior in a group of agents following the three rules of Reynolds. The code I wrote, with documentation, can be found [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-21","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/drgaff.net\/index.php?rest_route=\/wp\/v2\/posts\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/drgaff.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/drgaff.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/drgaff.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/drgaff.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=21"}],"version-history":[{"count":5,"href":"https:\/\/drgaff.net\/index.php?rest_route=\/wp\/v2\/posts\/21\/revisions"}],"predecessor-version":[{"id":195,"href":"https:\/\/drgaff.net\/index.php?rest_route=\/wp\/v2\/posts\/21\/revisions\/195"}],"wp:attachment":[{"href":"https:\/\/drgaff.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/drgaff.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/drgaff.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}