{"id":4439,"date":"2015-04-13T01:44:37","date_gmt":"2015-04-13T05:44:37","guid":{"rendered":"http:\/\/pages.vassar.edu\/magnes\/?p=4439"},"modified":"2015-04-16T13:43:42","modified_gmt":"2015-04-16T17:43:42","slug":"matteo-nadav-week-one","status":"publish","type":"post","link":"https:\/\/pages.vassar.edu\/magnes\/2015\/04\/13\/matteo-nadav-week-one\/","title":{"rendered":"Matteo &amp; Nadav: Week One"},"content":{"rendered":"<p>Nadav Hendel &amp;\u00a0Matteo Bjornson<\/p>\n<p>Week One<\/p>\n<p>Our first model, <i>Planets<\/i>, assumes the sun&#8217;s motion due to orbiting planets is negligible and we can keep it fixed at the center of our system. This approximation is a good starting point because the sun is so massive in comparison to any of the planets (Jupiter, the most massive planet, is still no more than 0.1% of the solar mass). The planet motion results from the gravitational force of the sun. \u00a0The size of this force is described by<\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pages.vassar.edu\/magnes\/wp-content\/ql-cache\/quicklatex.com-7a29467e585cef828ac216a81cb87bdc_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#70;&#95;&#71;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#71;&#77;&#95;&#83;&#77;&#95;&#112;&#125;&#123;&#114;&#94;&#50;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"25\" width=\"102\" style=\"vertical-align: -7px;\"\/><\/p>\n<p>where <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pages.vassar.edu\/magnes\/wp-content\/ql-cache\/quicklatex.com-7620c75c8772e1ee533aefe8de7019b0_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#71;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: 0px;\"\/> is the gravitational constant, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pages.vassar.edu\/magnes\/wp-content\/ql-cache\/quicklatex.com-7456c5e551ac9739d2917f962b0c9898_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#77;&#95;&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"26\" style=\"vertical-align: -3px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pages.vassar.edu\/magnes\/wp-content\/ql-cache\/quicklatex.com-351f6c275f876f22d6732e2cc424dee4_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#77;&#95;&#112;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"24\" style=\"vertical-align: -6px;\"\/> are the Solar and planet mass, respectively. <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pages.vassar.edu\/magnes\/wp-content\/ql-cache\/quicklatex.com-df163da6c15d481bf43b92e0e9ab6c1c_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#114;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"8\" style=\"vertical-align: 0px;\"\/> is the planet-sun distance.<\/p>\n<p>Due to Newton\u2019s Second Law we know the acceleration of the planet is equal to the force experienced by the planet divided by its mass. This results in a second order differential equation that can be written componentwise as<\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pages.vassar.edu\/magnes\/wp-content\/ql-cache\/quicklatex.com-d773619ee991cbaeae04aec87dcd2d08_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#92;&#102;&#114;&#97;&#99;&#123;&#100;&#94;&#50;&#120;&#125;&#123;&#100;&#116;&#125;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#70;&#95;&#123;&#71;&#44;&#120;&#125;&#125;&#123;&#77;&#95;&#69;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"27\" width=\"79\" style=\"vertical-align: -8px;\"\/><\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pages.vassar.edu\/magnes\/wp-content\/ql-cache\/quicklatex.com-2767fcbaaf2cdca99a2b6e87aab7292e_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#92;&#102;&#114;&#97;&#99;&#123;&#100;&#94;&#50;&#121;&#125;&#123;&#100;&#116;&#125;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#70;&#95;&#123;&#71;&#44;&#121;&#125;&#125;&#123;&#77;&#95;&#69;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"27\" width=\"78\" style=\"vertical-align: -8px;\"\/><\/p>\n<p>These can be rewritten as first order differential equations<\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pages.vassar.edu\/magnes\/wp-content\/ql-cache\/quicklatex.com-490dac40f6e154fb6e2b8b41be0ddeeb_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#92;&#102;&#114;&#97;&#99;&#123;&#100;&#118;&#95;&#120;&#125;&#123;&#100;&#116;&#125;&#61;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#71;&#77;&#95;&#83;&#120;&#125;&#123;&#114;&#94;&#51;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"24\" width=\"104\" style=\"vertical-align: -7px;\"\/><\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pages.vassar.edu\/magnes\/wp-content\/ql-cache\/quicklatex.com-1642673d739ad2d674d991379a835578_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#92;&#102;&#114;&#97;&#99;&#123;&#100;&#118;&#95;&#121;&#125;&#123;&#100;&#116;&#125;&#61;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#71;&#77;&#95;&#83;&#121;&#125;&#123;&#114;&#94;&#51;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"25\" width=\"102\" style=\"vertical-align: -7px;\"\/><\/p>\n<p>where <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pages.vassar.edu\/magnes\/wp-content\/ql-cache\/quicklatex.com-ac86846ab790c1488dfea2b80228c5f2_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#118;&#95;&#120;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#100;&#120;&#125;&#123;&#100;&#116;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"22\" width=\"58\" style=\"vertical-align: -6px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pages.vassar.edu\/magnes\/wp-content\/ql-cache\/quicklatex.com-b477b9efc62c9b1cb73ae6d031de10e6_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#118;&#95;&#121;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#100;&#121;&#125;&#123;&#100;&#116;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"23\" width=\"57\" style=\"vertical-align: -6px;\"\/>. This program assumes the planet follows uniform circular motion. This is a fairly reasonable approximation to make, as all the planets except Mercury and Pluto have very circular orbits. For example, the eccentricity of Earth\u2019s orbit is under 0.017 [1]. \u00a0Making this assumption we know that the <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pages.vassar.edu\/magnes\/wp-content\/ql-cache\/quicklatex.com-b29eca0ef38501e89f56437f1f49ff5c_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#32;&#71;&#77;&#95;&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"40\" style=\"vertical-align: -3px;\"\/> product is equal to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pages.vassar.edu\/magnes\/wp-content\/ql-cache\/quicklatex.com-54000851f1c3ab651709a1b6d67307e1_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#118;&#94;&#50;&#114;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"25\" style=\"vertical-align: 0px;\"\/>. The average speed of the planet is equal to the distance traveled in one orbit divided by the orbital period, thus <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pages.vassar.edu\/magnes\/wp-content\/ql-cache\/quicklatex.com-9683f5e736535609c3cb470beceb9c29_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#71;&#77;&#95;&#83;&#61;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#50;&#92;&#112;&#105;&#32;&#114;&#125;&#123;&#84;&#125;&#41;&#94;&#50;&#114;\" title=\"Rendered by QuickLaTeX.com\" height=\"22\" width=\"120\" style=\"vertical-align: -6px;\"\/>. Using units of AU for distance and years for time, the <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pages.vassar.edu\/magnes\/wp-content\/ql-cache\/quicklatex.com-b29eca0ef38501e89f56437f1f49ff5c_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#32;&#71;&#77;&#95;&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"40\" style=\"vertical-align: -3px;\"\/> product for Earth (where T=1yr and r=1AU), for example is simply <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pages.vassar.edu\/magnes\/wp-content\/ql-cache\/quicklatex.com-3895e45586ae572ae45dc3ba62cc0081_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#52;&#92;&#112;&#105;&#94;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"27\" style=\"vertical-align: -1px;\"\/>. Therefore we can rewrite the first order differentials as<\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pages.vassar.edu\/magnes\/wp-content\/ql-cache\/quicklatex.com-aa843ba5ca4d60554703062ae5d4a4a4_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#92;&#102;&#114;&#97;&#99;&#123;&#100;&#118;&#95;&#120;&#125;&#123;&#100;&#116;&#125;&#61;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#52;&#92;&#112;&#105;&#94;&#50;&#120;&#125;&#123;&#114;&#84;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"24\" width=\"93\" style=\"vertical-align: -6px;\"\/><\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pages.vassar.edu\/magnes\/wp-content\/ql-cache\/quicklatex.com-2dbf7e7a423621cd2d1013ef77a0559a_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#92;&#102;&#114;&#97;&#99;&#123;&#100;&#118;&#95;&#120;&#125;&#123;&#100;&#116;&#125;&#61;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#52;&#92;&#112;&#105;&#94;&#50;&#121;&#125;&#123;&#114;&#84;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"25\" width=\"93\" style=\"vertical-align: -6px;\"\/><strong><strong>\u00a0<\/strong><\/strong><\/p>\n<p>The solution to these first order differential equations, x and y, can be approximated using numerical methods. We chose to use the Euler-Cromer Method (Runge-Kutta would work as well), outlined by Giordano, Equations 4.7:<\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pages.vassar.edu\/magnes\/wp-content\/ql-cache\/quicklatex.com-fe27fa7db8c695e0ce4da38d14d9d927_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#118;&#95;&#123;&#120;&#44;&#105;&#43;&#49;&#125;&#61;&#118;&#95;&#123;&#120;&#44;&#105;&#125;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#52;&#92;&#112;&#105;&#94;&#50;&#120;&#95;&#105;&#125;&#123;&#114;&#95;&#105;&#94;&#51;&#125;&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"30\" width=\"174\" style=\"vertical-align: -12px;\"\/><\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pages.vassar.edu\/magnes\/wp-content\/ql-cache\/quicklatex.com-1550f07829a6d671d044d62f600a5a88_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#120;&#95;&#123;&#105;&#43;&#49;&#125;&#61;&#120;&#95;&#105;&#43;&#118;&#95;&#123;&#120;&#44;&#105;&#43;&#49;&#125;&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"158\" style=\"vertical-align: -6px;\"\/><\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pages.vassar.edu\/magnes\/wp-content\/ql-cache\/quicklatex.com-52f7754b0fb3405865bce792d3bc70f5_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#118;&#95;&#123;&#120;&#44;&#105;&#43;&#49;&#125;&#61;&#118;&#95;&#123;&#121;&#44;&#105;&#125;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#52;&#92;&#112;&#105;&#94;&#50;&#121;&#95;&#105;&#125;&#123;&#114;&#95;&#105;&#94;&#51;&#125;&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"31\" width=\"173\" style=\"vertical-align: -12px;\"\/><\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pages.vassar.edu\/magnes\/wp-content\/ql-cache\/quicklatex.com-afcdcc227a917b43c9c20410c95cc681_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#121;&#95;&#123;&#105;&#43;&#49;&#125;&#61;&#120;&#95;&#105;&#43;&#118;&#95;&#123;&#121;&#44;&#105;&#43;&#49;&#125;&#92;&#68;&#101;&#108;&#116;&#97;&#32;&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"156\" style=\"vertical-align: -6px;\"\/><\/p>\n<p>Thus, the only constants necessary to calculate the position of a planet is its orbital period and radius (in this case the semi-major axis). We will be using Astronomical Units (AU) for this section since 1 AU is defined as the average distance between the earth and sun, which has a nearly circular orbit (eccentricity of under 0.017) [1]. Using the Euler-Cromer method, we can create a plot in <i>Planets <\/i>that traces the earth\u2019s position around the sun due to gravity for a set amount of time.<\/p>\n<p>As long as the average velocity and semi-major axis are known, our program can currently be used to model any other real or hypothetical orbit of a planet around the sun, given the assumption of circular orbits. In fact, we have altered our final subroutine <i>Planets<\/i> to include the assumed circular orbit for every planet in our solar system excluding Mercury and Pluto. Both of these two planets have eccentricities that are relatively greater than the rest, and are too large to be considered even close to circular. While this is a somewhat subjective judgment made by observation, it seems logical given the relative magnitude of the other planets eccentricities. Given this, the user is prompted at the beginning of the code to pick which planet they wish to observe from the remaining seven.<\/p>\n<p>Now that we have completed a working model for the two-body systems of each planet in our solar system, sans Mercury and Pluto, we wished to do a comparison between computational methods. Since energy must be conserved in our system, similar to the pendulum problems from earlier this semester, we know that difficulties might arise when using the Euler method. To validate this, we wrote another routine implementing Euler instead of Euler Cromer. A comparison of the methods in GIF form is shown below:<\/p>\n<p><strong><strong>\u00a0<\/strong><\/strong><\/p>\n<p><a href=\"http:\/\/pages.vassar.edu\/magnes\/files\/2015\/04\/earthEC.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"  wp-image-4452 aligncenter\" src=\"http:\/\/pages.vassar.edu\/magnes\/files\/2015\/04\/earthEC.gif\" alt=\"earthEC\" width=\"355\" height=\"307\" \/><\/a> <a href=\"http:\/\/pages.vassar.edu\/magnes\/files\/2015\/04\/earthE.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"  wp-image-4451 aligncenter\" src=\"http:\/\/pages.vassar.edu\/magnes\/files\/2015\/04\/earthE.gif\" alt=\"earthE\" width=\"353\" height=\"315\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><b>Pictured topis the earth\u2019s orbit calculated using the Euler-Cromer method, and bottom\u00a0is the same code, only run solely using the Euler Method<\/b><\/p>\n<p>The radius and velocity of the orbits that we have been modeling are already known to be stable, but we wanted to note what an unstable system using our model might look like. By increasing or reducing the initial velocity, we can observe such a system.<\/p>\n<p><strong><strong>\u00a0<\/strong><\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"  wp-image-4454 aligncenter\" src=\"http:\/\/pages.vassar.edu\/magnes\/files\/2015\/04\/earthunstable.gif\" alt=\"earthunstable\" width=\"371\" height=\"321\" \/><img loading=\"lazy\" decoding=\"async\" class=\"  wp-image-4453 aligncenter\" src=\"http:\/\/pages.vassar.edu\/magnes\/files\/2015\/04\/earthlessv0.gif\" alt=\"earthlessv0\" width=\"373\" height=\"333\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><b>Pictured top\u00a0is the earth\u2019s orbit calculated using a larger initial velocity by a factor of 2, and bottom\u00a0is the same orbit using less than \u00bd original velocity.<\/b><\/p>\n<p>Given our goals for week one, we believe we now have a good foundation to expand our\u00a0<em>Planet\u00a0<\/em>routine into a multi-body system. We have become confident with the Euler-Cromer method over\u00a0the Euler Method, and we have explored the boundaries of our system given different initial conditions. Also, through exploration of chapter four in the Giordano text, we have expanded our understanding of the computational methods used to solve general celestial mechanical problems.<\/p>\n<p style=\"text-align: center\">Please click the Matlab Icon to download our\u00a0<em>Planet<\/em> routine code<\/p>\n<p>\u00a0<a href=\"https:\/\/vspace.vassar.edu\/mabjornsson\/PlanetOrbit.m\"><img loading=\"lazy\" decoding=\"async\" class=\"  aligncenter wp-image-4459\" src=\"http:\/\/pages.vassar.edu\/magnes\/files\/2015\/04\/matlabFile.png\" alt=\"matlabFile\" width=\"243\" height=\"243\" srcset=\"https:\/\/pages.vassar.edu\/magnes\/files\/2015\/04\/matlabFile.png 315w, https:\/\/pages.vassar.edu\/magnes\/files\/2015\/04\/matlabFile-150x150.png 150w, https:\/\/pages.vassar.edu\/magnes\/files\/2015\/04\/matlabFile-300x300.png 300w\" sizes=\"auto, (max-width: 243px) 100vw, 243px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nadav Hendel &amp;\u00a0Matteo Bjornson Week One Our first model, Planets, assumes the sun&#8217;s motion due to orbiting planets is negligible and we can keep it fixed at the center of our system. This approximation is a good starting point because the sun is so massive in comparison to any of the planets (Jupiter, the most [&hellip;]<\/p>\n","protected":false},"author":3622,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4439","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/posts\/4439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/users\/3622"}],"replies":[{"embeddable":true,"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/comments?post=4439"}],"version-history":[{"count":9,"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/posts\/4439\/revisions"}],"predecessor-version":[{"id":4595,"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/posts\/4439\/revisions\/4595"}],"wp:attachment":[{"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/media?parent=4439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/categories?post=4439"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/tags?post=4439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}