{"id":16167077,"url":"https://github.com/xlucn/celestialmechanics","last_synced_at":"2025-08-11T16:05:08.999Z","repository":{"id":91304714,"uuid":"55333325","full_name":"xlucn/CelestialMechanics","owner":"xlucn","description":"[NJU] 南京大学天文天体力学基础作业 Homework of Fundamental Celestial Mechanics Class","archived":false,"fork":false,"pushed_at":"2021-04-20T08:14:22.000Z","size":13066,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-11T19:14:13.071Z","etag":null,"topics":["c-language","fundamental-celestial-mechanics","homework","nju","rkf","runge-kutta","runge-kutta-fehlberg"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xlucn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-03T06:36:00.000Z","updated_at":"2023-01-29T11:52:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"ecc8af3b-7537-47b0-8a2c-8a9694982a53","html_url":"https://github.com/xlucn/CelestialMechanics","commit_stats":{"total_commits":84,"total_committers":1,"mean_commits":84.0,"dds":0.0,"last_synced_commit":"e611ea55f4130ba50cf9f88c48842b91f45356b0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xlucn/CelestialMechanics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlucn%2FCelestialMechanics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlucn%2FCelestialMechanics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlucn%2FCelestialMechanics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlucn%2FCelestialMechanics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xlucn","download_url":"https://codeload.github.com/xlucn/CelestialMechanics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlucn%2FCelestialMechanics/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269915184,"owners_count":24495652,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-language","fundamental-celestial-mechanics","homework","nju","rkf","runge-kutta","runge-kutta-fehlberg"],"created_at":"2024-10-10T03:05:48.255Z","updated_at":"2025-08-11T16:05:08.962Z","avatar_url":"https://github.com/xlucn.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Celestial Mechanics\n\nHomework of Fundamental Celestial Mechanics Class. This is a project of source\ncodes and some pictures I wrote to solve the problems in the textbook.\n\nThe textbook is written by Jilin Zhou @ NJU.\n\n## Requirement\n\nIn case someone wants to use my code:\n\n**This project need the static library of another project of mine :\n[MyRecipes](https://github.com/OliverLew/MyRecipes.git)**\n\nBesides of this, you need those programs/modules installed in your computer:\n\n- gcc\n- make\n- python\n    - numpy\n    - matplotlib\n\n## Chapter 2\n\n### Problem 2.6\n\nTransformation between orbital elements and coordinate-velocity of a celestial\nbody.\n\n**related files:**\n\n[transform.c](https://github.com/OliverLew/CelestialMechanics/blob/master/chap2/transform.c)\n\n### Problem 2.7\n\nUse RKF7(8) method to integrate the two-body motion's differential equation for\nmore than two periods. Check the conservation of energy.\n\n**related files:**\n\n[OrbitEvaluation.c](https://github.com/OliverLew/CelestialMechanics/blob/master/chap2/OrbitEvaluation.c)\n\n[plotorbit.py](https://github.com/OliverLew/CelestialMechanics/blob/master/chap2/plotorbit.py)\n\n\n## Chapter 3\n\n### Problem 3.2\n\nFind circular restricted three-body problem orbit using RKF7(8) method. Check\nthe conservation of C_J.\n\nPlot the contour map of C_J in z=0 plane.\n\nFind at least three kinds of motions.\n\n**related files:**\n\n[CircularRTB.c](https://github.com/OliverLew/CelestialMechanics/blob/master/chap3/CircularRTB.c)\n\n[orbitplot.py](https://github.com/OliverLew/CelestialMechanics/blob/master/chap3/orbitplot.py)\n\n[plotcontour.py](https://github.com/OliverLew/CelestialMechanics/blob/master/chap3/plotcontour.py)\n\n### Problem 3.4\n\nUse numerical method to plot the Poincare section among the five Lagrangian\npoints in circular restricted 3-body problem.\n\n**related files**\n\n[CircularRTB.c](https://github.com/OliverLew/CelestialMechanics/blob/master/chap3/CircularRTB.c)\n\n[PoincareMapRTB.py](https://github.com/OliverLew/CelestialMechanics/blob/master/chap3/PoincareMapRTB.py)\n\n### Problem 3.6\n\nPlot the phase diagram of circular and elliptic [Sitnikov problem](https://en.wikipedia.org/wiki/Sitnikov_problem).\n\n**related files**\n\n[CircularSitnikov.c](https://github.com/OliverLew/CelestialMechanics/blob/master/chap3/CircularSitnikov.c)\n\n[EllipticSitnikov.c](https://github.com/OliverLew/CelestialMechanics/blob/master/chap3/EllipticSitnikov.c)\n\n[plotcontour.py](https://github.com/OliverLew/CelestialMechanics/blob/master/chap3/plotcontour.py)\n\n## Chapter 4\n\n### Problem 4.1\n\nThe perturbation potential of two body system is U = - c / r^2, solve the\nperturbation equations using numerical method.\n\n**related files**\n\n[Perturbation.c](https://github.com/OliverLew/CelestialMechanics/blob/master/chap4/Perturbation.c)\n\n[plotperturbation.py](https://github.com/OliverLew/CelestialMechanics/blob/master/chap4/plotperturbation.py)\n\n### Problem 4.3\n\nCalculate the Laplace coefficient. Refer to the values in equation (4.163) in\nthe textbook.\n\n**related files**\n\n[LaplaceCoefficient.c](https://github.com/OliverLew/CelestialMechanics/blob/master/chap4/LaplaceCoefficient.c)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxlucn%2Fcelestialmechanics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxlucn%2Fcelestialmechanics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxlucn%2Fcelestialmechanics/lists"}