CINXE.COM

Celestia/Tutorials/Star Systems - Wikibooks, open books for an open world

<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>Celestia/Tutorials/Star Systems - Wikibooks, open books for an open world</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )enwikibooksmwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat": "dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"68ae1da9-1336-4fc0-a62d-43448635b844","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"Celestia/Tutorials/Star_Systems","wgTitle":"Celestia/Tutorials/Star Systems","wgCurRevisionId":4348087,"wgRevisionId":4348087,"wgArticleId":417757,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Book:Celestia"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Celestia/Tutorials/Star_Systems","wgRelevantArticleId":417757,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikibooks","wgCiteReferencePreviewsActive":true,"wgFlaggedRevsParams":{"tags":{"value":{"levels":3}}},"wgStableRevisionId":4348087, "wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":20000,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"wgSiteNoticeId":"2.24"};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","mediawiki.page.gallery.styles":"ready","ext.math.styles":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready", "ext.flaggedRevs.basic":"ready","mediawiki.codex.messagebox.styles":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready","ext.dismissableSiteNotice.styles":"ready"};RLPAGEMODULES=["mediawiki.page.media","site","mediawiki.page.ready","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.flaggedRevs.advanced","ext.gadget.wikidialog","ext.gadget.commons-file","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.checkUser.clientHints","ext.dismissableSiteNotice"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=ext.dismissableSiteNotice.styles%7Cext.flaggedRevs.basic%7Cext.math.styles%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediaBadges%7Cext.wikimediamessages.styles%7Cmediawiki.codex.messagebox.styles%7Cmediawiki.page.gallery.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&amp;only=styles&amp;skin=vector-2022"> <script async="" src="/w/load.php?lang=en&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=site.styles&amp;only=styles&amp;skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.6"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Celestia/Tutorials/Star Systems - Wikibooks, open books for an open world"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//en.m.wikibooks.org/wiki/Celestia/Tutorials/Star_Systems"> <link rel="alternate" type="application/x-wiki" title="Edit" href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;action=edit"> <link rel="icon" href="/static/favicon/wikibooks.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikibooks (en)"> <link rel="EditURI" type="application/rsd+xml" href="//en.wikibooks.org/w/api.php?action=rsd"> <link rel="canonical" href="https://en.wikibooks.org/wiki/Celestia/Tutorials/Star_Systems"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en"> <link rel="alternate" type="application/atom+xml" title="Wikibooks Atom feed" href="/w/index.php?title=Special:RecentChanges&amp;feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-Celestia_Tutorials_Star_Systems rootpage-Celestia skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage" class="mw-list-item"><a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main Page</span></a></li><li id="n-help" class="mw-list-item"><a href="/wiki/Help:Contents" title="Find help on how to use and edit Wikibooks"><span>Help</span></a></li><li id="n-Browse" class="mw-list-item"><a href="/wiki/Wikibooks:Card_Catalog_Office" title="Check out what Wikibooks has to offer"><span>Browse</span></a></li><li id="n-Cookbook" class="mw-list-item"><a href="/wiki/Cookbook:Table_of_Contents" title="Learn recipes from around the world"><span>Cookbook</span></a></li><li id="n-Wikijunior" class="mw-list-item"><a href="/wiki/Wikijunior" title="Books for children"><span>Wikijunior</span></a></li><li id="n-Featured-books" class="mw-list-item"><a href="/wiki/Wikibooks:Featured_books" title="The best of Wikibooks"><span>Featured books</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes in the wiki [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-randomrootpage" class="mw-list-item"><a href="/wiki/Special:RandomInCategory/Book:Wikibooks_Stacks/Books"><span>Random book</span></a></li><li id="n-Using-Wikibooks" class="mw-list-item"><a href="/wiki/Using_Wikibooks"><span>Using Wikibooks</span></a></li> </ul> </div> </div> <div id="p-community" class="vector-menu mw-portlet mw-portlet-community" > <div class="vector-menu-heading"> Community </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-Reading-room-forum" class="mw-list-item"><a href="/wiki/Wikibooks:Reading_room"><span>Reading room forum</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikibooks:Community_Portal" title="Find your way around the Wikibooks community"><span>Community portal</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Wikibooks:Reading_room/Bulletin_Board" title="Important community news"><span>Bulletin Board</span></a></li><li id="n-maintenance" class="mw-list-item"><a href="/wiki/Wikibooks:Maintenance" title="Frequent tasks that you can help with"><span>Help out!</span></a></li><li id="n-Policies-and-guidelines" class="mw-list-item"><a href="/wiki/Wikibooks:Policies_and_guidelines" title="Pages detailing important rules and procedures"><span>Policies and guidelines</span></a></li><li id="n-contact" class="mw-list-item"><a href="/wiki/Wikibooks:Contact_us" title="Alternative methods of communication"><span>Contact us</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Main_Page" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikibooks.svg" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikibooks" src="/static/images/mobile/copyright/wikibooks-wordmark-vi.svg" style="width: 7.5em; height: 0.9375em;"> <img class="mw-logo-tagline" alt="The Free Textbook Project" src="/static/images/mobile/copyright/wikibooks-tagline-en.svg" width="120" height="10" style="width: 7.5em; height: 0.625em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search Wikibooks [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikibooks" aria-label="Search Wikibooks" autocapitalize="sentences" title="Search Wikibooks [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page&#039;s font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/?wmf_source=donate&amp;wmf_medium=sidebar&amp;wmf_campaign=en.wikibooks.org&amp;uselang=en" class=""><span>Donations</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&amp;returnto=Celestia%2FTutorials%2FStar+Systems" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&amp;returnto=Celestia%2FTutorials%2FStar+Systems" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="More options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/?wmf_source=donate&amp;wmf_medium=sidebar&amp;wmf_campaign=en.wikibooks.org&amp;uselang=en"><span>Donations</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&amp;returnto=Celestia%2FTutorials%2FStar+Systems" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&amp;returnto=Celestia%2FTutorials%2FStar+Systems" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Discussion for this IP address</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><div id="mw-dismissablenotice-anonplace"></div><script>(function(){var node=document.getElementById("mw-dismissablenotice-anonplace");if(node){node.outerHTML="\u003Cdiv class=\"mw-dismissable-notice\"\u003E\u003Cdiv class=\"mw-dismissable-notice-close\"\u003E[\u003Ca tabindex=\"0\" role=\"button\"\u003Edismiss\u003C/a\u003E]\u003C/div\u003E\u003Cdiv class=\"mw-dismissable-notice-body\"\u003E\u003C!-- CentralNotice --\u003E\u003Cdiv id=\"localNotice\" data-nosnippet=\"\"\u003E\u003Cdiv class=\"anonnotice\" lang=\"en\" dir=\"ltr\"\u003E\u003Cdiv style=\"width: fit-content; padding: 5px; border: 3px solid gray; background-color: #fafafa; text-align: center; margin: auto;\"\u003E\n\u003Cp\u003E\u003Cspan typeof=\"mw:File\"\u003E\u003Ca href=\"/wiki/File:OOjs_UI_icon_robot.svg\" class=\"mw-file-description\"\u003E\u003Cimg src=\"//upload.wikimedia.org/wikipedia/commons/thumb/7/71/OOjs_UI_icon_robot.svg/40px-OOjs_UI_icon_robot.svg.png\" decoding=\"async\" width=\"40\" height=\"40\" class=\"mw-file-element\" srcset=\"//upload.wikimedia.org/wikipedia/commons/thumb/7/71/OOjs_UI_icon_robot.svg/60px-OOjs_UI_icon_robot.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/7/71/OOjs_UI_icon_robot.svg/80px-OOjs_UI_icon_robot.svg.png 2x\" data-file-width=\"20\" data-file-height=\"20\" /\u003E\u003C/a\u003E\u003C/span\u003E The Wikibooks community is developing a policy on the use of generative AI. Please review the \u003Ca href=\"/wiki/Wikibooks:Artificial_Intelligence\" title=\"Wikibooks:Artificial Intelligence\"\u003Edraft policy\u003C/a\u003E and provide feedback on \u003Ca href=\"/wiki/Wikibooks_talk:Artificial_Intelligence\" title=\"Wikibooks talk:Artificial Intelligence\"\u003Eits talk page\u003C/a\u003E.\n\u003C/p\u003E\n\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E";}}());</script></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">Beginning</div> </a> </li> <li id="toc-Introduction" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Introduction"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Introduction</span> </div> </a> <button aria-controls="toc-Introduction-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Introduction subsection</span> </button> <ul id="toc-Introduction-sublist" class="vector-toc-list"> <li id="toc-Multiple_star_systems" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Multiple_star_systems"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.1</span> <span>Multiple star systems</span> </div> </a> <ul id="toc-Multiple_star_systems-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Basic_definition" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Basic_definition"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Basic definition</span> </div> </a> <ul id="toc-Basic_definition-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-List_of_parameters" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#List_of_parameters"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>List of parameters</span> </div> </a> <button aria-controls="toc-List_of_parameters-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle List of parameters subsection</span> </button> <ul id="toc-List_of_parameters-sublist" class="vector-toc-list"> <li id="toc-Name" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Name"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.1</span> <span>Name</span> </div> </a> <ul id="toc-Name-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-OrbitBarycenter" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#OrbitBarycenter"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.2</span> <span>OrbitBarycenter</span> </div> </a> <ul id="toc-OrbitBarycenter-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-EllipticalOrbit" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#EllipticalOrbit"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.3</span> <span>EllipticalOrbit</span> </div> </a> <ul id="toc-EllipticalOrbit-sublist" class="vector-toc-list"> <li id="toc-Reference_frames" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Reference_frames"> <div class="vector-toc-text"> <span class="vector-toc-numb">3.3.1</span> <span>Reference frames</span> </div> </a> <ul id="toc-Reference_frames-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> </ul> </li> <li id="toc-Visual_binaries" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Visual_binaries"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Visual binaries</span> </div> </a> <ul id="toc-Visual_binaries-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Astrometric_binaries" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Astrometric_binaries"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>Astrometric binaries</span> </div> </a> <ul id="toc-Astrometric_binaries-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Spectroscopic_(and_eclipsing)_binaries" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Spectroscopic_(and_eclipsing)_binaries"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>Spectroscopic (and eclipsing) binaries</span> </div> </a> <button aria-controls="toc-Spectroscopic_(and_eclipsing)_binaries-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Spectroscopic (and eclipsing) binaries subsection</span> </button> <ul id="toc-Spectroscopic_(and_eclipsing)_binaries-sublist" class="vector-toc-list"> <li id="toc-Short-period_binaries" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Short-period_binaries"> <div class="vector-toc-text"> <span class="vector-toc-numb">6.1</span> <span>Short-period binaries</span> </div> </a> <ul id="toc-Short-period_binaries-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Testing_your_code" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Testing_your_code"> <div class="vector-toc-text"> <span class="vector-toc-numb">7</span> <span>Testing your code</span> </div> </a> <button aria-controls="toc-Testing_your_code-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Testing your code subsection</span> </button> <ul id="toc-Testing_your_code-sublist" class="vector-toc-list"> <li id="toc-Fixing_the_radial_velocities_in_Celestia" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Fixing_the_radial_velocities_in_Celestia"> <div class="vector-toc-text"> <span class="vector-toc-numb">7.1</span> <span>Fixing the radial velocities in Celestia</span> </div> </a> <ul id="toc-Fixing_the_radial_velocities_in_Celestia-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">Celestia/Tutorials/Star Systems</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="This article exist only in this language. Add the article for other languages" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-0" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">Add languages</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> <div class="after-portlet after-portlet-lang"><span class="uls-after-portlet-link"></span><span class="wb-langlinks-add wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:NewItem?site=enwikibooks&amp;page=Celestia%2FTutorials%2FStar+Systems" title="Add interlanguage links" class="wbc-editpage">Add links</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-main" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Celestia/Tutorials/Star_Systems" title="View the content page [c]" accesskey="c"><span>Book</span></a></li><li id="ca-talk" class="new vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Talk:Celestia/Tutorials/Star_Systems&amp;action=edit&amp;redlink=1" rel="discussion" class="new" title="Discussion about the content page (does not exist) [t]" accesskey="t"><span>Discussion</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;stable=1"><span>Read</span></a></li><li id="ca-current" class="collapsible selected vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;stable=0&amp;redirect=no" title="View this page with the pending changes [v]" accesskey="v"><span>Latest draft</span></a></li><li id="ca-ve-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;veaction=edit" title="Edit this page [v]" accesskey="v"><span>Edit</span></a></li><li id="ca-edit" class="collapsible vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;action=edit" title="Edit the source code of this page [e]" accesskey="e"><span>Edit source</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;stable=1"><span>Read</span></a></li><li id="ca-more-current" class="collapsible selected vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;stable=0&amp;redirect=no"><span>Latest draft</span></a></li><li id="ca-more-ve-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;veaction=edit" title="Edit this page [v]" accesskey="v"><span>Edit</span></a></li><li id="ca-more-edit" class="collapsible vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;action=edit" title="Edit the source code of this page [e]" accesskey="e"><span>Edit source</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Celestia/Tutorials/Star_Systems" title="A list of all wiki pages that link here [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Celestia/Tutorials/Star_Systems" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="//commons.wikimedia.org/wiki/Special:UploadWizard?uselang=en" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;oldid=4348087" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Special:CiteThisPage&amp;page=Celestia%2FTutorials%2FStar_Systems&amp;id=4348087&amp;wpFormIdentifier=titleform" title="Information on how to cite this page"><span>Cite this page</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlQ%C4%B1sald%C4%B1c%C4%B1s%C4%B1&amp;url=https%3A%2F%2Fen.wikibooks.org%2Fwiki%2FCelestia%2FTutorials%2FStar_Systems"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrKodu&amp;url=https%3A%2F%2Fen.wikibooks.org%2Fwiki%2FCelestia%2FTutorials%2FStar_Systems"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-sister_projects" class="vector-menu mw-portlet mw-portlet-sister_projects" > <div class="vector-menu-heading"> Sister projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-Wikipedia" class="mw-list-item"><a href="https://en.wikipedia.org/wiki/Main_Page"><span>Wikipedia</span></a></li><li id="n-Wikiversity" class="mw-list-item"><a href="https://en.wikiversity.org/wiki/Wikiversity:Main_Page"><span>Wikiversity</span></a></li><li id="n-Wiktionary" class="mw-list-item"><a href="https://en.wiktionary.org/wiki/Wiktionary:Main_Page"><span>Wiktionary</span></a></li><li id="n-Wikiquote" class="mw-list-item"><a href="https://en.wikiquote.org/wiki/Main_Page"><span>Wikiquote</span></a></li><li id="n-Wikisource" class="mw-list-item"><a href="https://en.wikisource.org/wiki/Main_Page"><span>Wikisource</span></a></li><li id="n-Wikinews" class="mw-list-item"><a href="https://en.wikinews.org/wiki/Main_Page"><span>Wikinews</span></a></li><li id="n-Wikivoyage" class="mw-list-item"><a href="https://en.wikivoyage.org/wiki/Main_Page"><span>Wikivoyage</span></a></li><li id="n-Commons" class="mw-list-item"><a href="https://commons.wikimedia.org/wiki/Main_Page"><span>Commons</span></a></li><li id="n-Wikidata" class="mw-list-item"><a href="https://www.wikidata.org/wiki/Wikidata:Main_Page"><span>Wikidata</span></a></li><li id="n-MediaWiki" class="mw-list-item"><a href="https://www.mediawiki.org/wiki/Main_Page"><span>MediaWiki</span></a></li><li id="n-Meta-Wiki" class="mw-list-item"><a href="https://meta.wikimedia.org/wiki/Main_Page"><span>Meta-Wiki</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-create_a_book" class="mw-list-item"><a href="/w/index.php?title=Special:Book&amp;bookcmd=book_creator&amp;referer=Celestia%2FTutorials%2FStar+Systems"><span>Create a collection</span></a></li><li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&amp;page=Celestia%2FTutorials%2FStar_Systems&amp;action=show-download-screen"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects emptyPortlet" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">From Wikibooks, open books for an open world</div> </div> <div id="contentSub"><div id="mw-content-subtitle"><div class="subpages">&lt; <bdi dir="ltr"><a href="/wiki/Celestia" title="Celestia">Celestia</a></bdi> | <bdi dir="ltr"><a href="/wiki/Celestia/Tutorials" title="Celestia/Tutorials">Tutorials</a></bdi></div><div id="mw-fr-revision-messages"><div class="cdx-message mw-fr-message-box cdx-message--block cdx-message--notice mw-fr-basic mw-fr-draft-not-synced plainlinks noprint"><span class="cdx-message__icon"></span><div class="cdx-message__content">The <a class="external text" href="https://en.wikibooks.org/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;stable=1">latest reviewed version</a> was <a class="external text" href="https://en.wikibooks.org/w/index.php?title=Special:Log&amp;type=review&amp;page=Celestia/Tutorials/Star_Systems">checked</a> on <i>6 December 2023</i>. There are <a class="external text" href="https://en.wikibooks.org/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;oldid=4348087&amp;diff=cur&amp;diffonly=0">template/file changes</a> awaiting review.</div></div></div></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><p>A large fraction of stars are found in star systems. In star systems, stars orbit each other. </p><p>This tutorial assumes you have read the previous page: <a href="/wiki/Celestia/Tutorials/Stars" title="Celestia/Tutorials/Stars">Stars</a>. It is also highly recommended that you have a basic understanding of Keplerian orbital elements and what they mean. These are the sub-parameters given in the <code>EllipticalOrbit</code> parameters. </p> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="Introduction">Introduction</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;veaction=edit&amp;section=1" title="Edit section: Introduction" class="mw-editsection-visualeditor"><span>edit</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;action=edit&amp;section=1" title="Edit section&#039;s source code: Introduction"><span>edit source</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>When it is said that stars orbit each other, they technically orbit their common center of mass. This is called a "barycenter". Different pairs of stars may orbit each other in different ways: </p> <style data-mw-deduplicate="TemplateStyles:r3756980">@media all and (max-width:720px){.mw-parser-output .mod-gallery{width:100%!important}}.mw-parser-output .mod-gallery{display:table}.mw-parser-output .mod-gallery-default{background:transparent;margin-top:.3em}.mw-parser-output .mod-gallery-center{margin-left:auto;margin-right:auto}.mw-parser-output .mod-gallery-left{float:left}.mw-parser-output .mod-gallery-right{float:right}.mw-parser-output .mod-gallery-none{float:none}.mw-parser-output .mod-gallery-collapsible{width:100%}.mw-parser-output .mod-gallery .title,.mw-parser-output .mod-gallery .main,.mw-parser-output .mod-gallery .footer{display:table-row}.mw-parser-output .mod-gallery .title>div{display:table-cell;text-align:center;font-weight:bold}.mw-parser-output .mod-gallery .main>div{display:table-cell}.mw-parser-output .mod-gallery .footer>div{display:table-cell;text-align:right;font-size:80%;line-height:1em}.mw-parser-output .mod-gallery .title>div *,.mw-parser-output .mod-gallery .footer>div *{overflow:visible!important}.mw-parser-output .mod-gallery .gallerybox img{background:none!important}.mw-parser-output .mod-gallery .bordered-images .thumb img{border:solid #eaecf0 1px}.mw-parser-output .mod-gallery .whitebg .thumb{background:#fff!important}</style><div class="mod-gallery mod-gallery-default"><div class="title"><div><dl><dd>Various schematics of binary stars</dd></dl></div></div><div class="main"><div><ul class="gallery mw-gallery-traditional nochecker bordered-images whitebg" style="line-height:1.35em"> <li class="gallerybox" style="width: 235px"> <div class="thumb" style="width: 230px; height: 230px;"><span typeof="mw:File"><a href="/wiki/File:Orbit1.gif" class="mw-file-description" title="Two bodies with the same mass orbiting a common barycenter."><img alt="Two bodies with the same mass orbiting a common barycenter." src="//upload.wikimedia.org/wikipedia/commons/7/73/Orbit1.gif" decoding="async" width="200" height="200" class="mw-file-element" data-file-width="200" data-file-height="200" /></a></span></div> <div class="gallerytext">Two bodies with the same mass orbiting a common barycenter.</div> </li> <li class="gallerybox" style="width: 235px"> <div class="thumb" style="width: 230px; height: 230px;"><span typeof="mw:File"><a href="/wiki/File:Orbit2.gif" class="mw-file-description" title="Two bodies with a difference in mass orbiting a common barycenter external to both bodies."><img alt="Two bodies with a difference in mass orbiting a common barycenter external to both bodies." src="//upload.wikimedia.org/wikipedia/commons/f/f2/Orbit2.gif" decoding="async" width="200" height="200" class="mw-file-element" data-file-width="200" data-file-height="200" /></a></span></div> <div class="gallerytext">Two bodies with a difference in mass orbiting a common barycenter external to both bodies.</div> </li> <li class="gallerybox" style="width: 235px"> <div class="thumb" style="width: 230px; height: 230px;"><span typeof="mw:File"><a href="/wiki/File:Orbit3.gif" class="mw-file-description" title="Two bodies with an extreme difference in mass orbiting a common barycenter internal to one body."><img alt="Two bodies with an extreme difference in mass orbiting a common barycenter internal to one body." src="//upload.wikimedia.org/wikipedia/commons/5/59/Orbit3.gif" decoding="async" width="200" height="200" class="mw-file-element" data-file-width="200" data-file-height="200" /></a></span></div> <div class="gallerytext">Two bodies with an extreme difference in mass orbiting a common barycenter internal to one body.</div> </li> <li class="gallerybox" style="width: 235px"> <div class="thumb" style="width: 230px; height: 230px;"><span typeof="mw:File"><a href="/wiki/File:Orbit5.gif" class="mw-file-description" title="Two bodies with the same mass orbiting a common barycenter, external to both bodies, with eccentric elliptical orbits."><img alt="Two bodies with the same mass orbiting a common barycenter, external to both bodies, with eccentric elliptical orbits." src="//upload.wikimedia.org/wikipedia/commons/thumb/0/0e/Orbit5.gif/200px-Orbit5.gif" decoding="async" width="200" height="100" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/0/0e/Orbit5.gif/300px-Orbit5.gif 1.5x, //upload.wikimedia.org/wikipedia/commons/0/0e/Orbit5.gif 2x" data-file-width="400" data-file-height="200" /></a></span></div> <div class="gallerytext">Two bodies with the same mass orbiting a common barycenter, external to both bodies, with eccentric elliptical orbits.</div> </li> </ul></div></div></div> <p>A pair of stars orbiting their barycenter is called a "binary". The more massive or brighter star is called the "primary", and the less massive or less bright star is called the "secondary". Both stars orbit on opposite sides of the barycenter, although the more massive star has a smaller orbit around the barycenter. For a binary star whose stars have masses of A and B, the ratio of the semimajor axes (of the star orbiting the binary) is B to A. </p><p>However, in real life the barycenter is invisible so astronomers often treat the system as if the secondary orbits the primary, instead of both the primary and secondary orbiting the barycenter. So instead of two different semimajor axis values (for each star), astronomers will often give a single semimajor axis value, which is the sum of those two values. The individual values can be found using the component masses, using the ratio mentioned above. </p><p>The orbital period, the total semimajor axis, and the total mass are all related to each other (and can be calculated if two are known) using Kepler's third law: </p> <dl><dd><span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle T^{2}={\frac {4\pi ^{_{2}}}{GM}}a^{3}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <msup> <mi>T</mi> <mrow class="MJX-TeXAtom-ORD"> <mn>2</mn> </mrow> </msup> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mrow> <mn>4</mn> <msup> <mi>&#x03C0;<!-- π --></mi> <mrow class="MJX-TeXAtom-ORD"> <msub> <mi></mi> <mrow class="MJX-TeXAtom-ORD"> <mn>2</mn> </mrow> </msub> </mrow> </msup> </mrow> <mrow> <mi>G</mi> <mi>M</mi> </mrow> </mfrac> </mrow> <msup> <mi>a</mi> <mrow class="MJX-TeXAtom-ORD"> <mn>3</mn> </mrow> </msup> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle T^{2}={\frac {4\pi ^{_{2}}}{GM}}a^{3}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/4ddf83e8c89b6dbac862e8371fea2fa0567c4068" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.005ex; width:13.262ex; height:5.343ex;" alt="{\displaystyle T^{2}={\frac {4\pi ^{_{2}}}{GM}}a^{3}}"></span></dd></dl> <p>where <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle T}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>T</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle T}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/ec7200acd984a1d3a3d7dc455e262fbe54f7f6e0" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.636ex; height:2.176ex;" alt="{\displaystyle T}"></span> is the period, <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle G}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>G</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle G}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/f5f3c8921a3b352de45446a6789b104458c9f90b" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.827ex; height:2.176ex;" alt="{\displaystyle G}"></span> is the gravitational constant, <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle M}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>M</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle M}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/f82cade9898ced02fdd08712e5f0c0151758a0dd" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:2.442ex; height:2.176ex;" alt="{\displaystyle M}"></span> is the sum of the masses, and <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>a</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle a}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/ffd2487510aa438433a2579450ab2b3d557e5edc" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.23ex; height:1.676ex;" alt="{\displaystyle a}"></span> is the sum of the semimajor axes. Make sure that when doing a calculation, all your units are compatible with each other. </p> <div class="mw-heading mw-heading3"><h3 id="Multiple_star_systems">Multiple star systems</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;veaction=edit&amp;section=2" title="Edit section: Multiple star systems" class="mw-editsection-visualeditor"><span>edit</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;action=edit&amp;section=2" title="Edit section&#039;s source code: Multiple star systems"><span>edit source</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>While two-body systems are stable, generally systems with three or more bodies tend to be chaotic. A three-body system is generally stable if there is a close binary pair, and a third star that orbits further out. The close binary pair can be approximated as a single object. </p><p>This "hierarchical" arrangement can be extended to create multiple star systems with even more stars. However, in real life you will typically only see systems with up to six or seven stars. This is because the more stars, the more likely the system is to fall apart from internal perturbations. </p> <div class="mw-heading mw-heading2"><h2 id="Basic_definition">Basic definition</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;veaction=edit&amp;section=3" title="Edit section: Basic definition" class="mw-editsection-visualeditor"><span>edit</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;action=edit&amp;section=3" title="Edit section&#039;s source code: Basic definition"><span>edit source</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The basic definition looks like this: </p> <pre>Barycenter "Name" { RA &lt;number&gt; Dec &lt;number&gt; Distance &lt;number&gt; } "Primary" { OrbitBarycenter "Name" AppMag &lt;number&gt; SpectralType "&lt;string&gt;" EllipticalOrbit { Epoch &lt;number&gt; Period &lt;number&gt; SemiMajorAxis &lt;number&gt; Eccentricity &lt;number&gt; Inclination &lt;number&gt; AscendingNode &lt;number&gt; ArgOfPericenter &lt;number&gt; MeanAnomaly &lt;number&gt; } } "Secondary" { OrbitBarycenter "Name" AppMag &lt;number&gt; SpectralType "&lt;string&gt;" EllipticalOrbit { Epoch &lt;number&gt; Period &lt;number&gt; SemiMajorAxis &lt;number&gt; Eccentricity &lt;number&gt; Inclination &lt;number&gt; AscendingNode &lt;number&gt; ArgOfPericenter &lt;number&gt; MeanAnomaly &lt;number&gt; } } </pre> <div class="mw-heading mw-heading2"><h2 id="List_of_parameters">List of parameters</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;veaction=edit&amp;section=4" title="Edit section: List of parameters" class="mw-editsection-visualeditor"><span>edit</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;action=edit&amp;section=4" title="Edit section&#039;s source code: List of parameters"><span>edit source</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Most of the parameters are described in <a href="/wiki/Celestia/Tutorials/Stars" title="Celestia/Tutorials/Stars">Stars</a>, however the new ones are described below. </p> <div class="mw-heading mw-heading3"><h3 id="Name">Name</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;veaction=edit&amp;section=5" title="Edit section: Name" class="mw-editsection-visualeditor"><span>edit</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;action=edit&amp;section=5" title="Edit section&#039;s source code: Name"><span>edit source</span></a><span class="mw-editsection-bracket">]</span></span></div> <pre>Barycenter "Name" </pre> <pre>"Primary" </pre> <pre>"Secondary" </pre> <p>Putting <code>Barycenter</code> in front of the name will turn the object into a barycenter. In the case that the object has a HIP/TYC index number, then <code>Barycenter</code> will go before the index, like this: </p> <pre>Barycenter 123456 "Name" </pre> <div class="mw-heading mw-heading3"><h3 id="OrbitBarycenter">OrbitBarycenter</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;veaction=edit&amp;section=6" title="Edit section: OrbitBarycenter" class="mw-editsection-visualeditor"><span>edit</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;action=edit&amp;section=6" title="Edit section&#039;s source code: OrbitBarycenter"><span>edit source</span></a><span class="mw-editsection-bracket">]</span></span></div> <pre>OrbitBarycenter "Name" </pre> <p>This tells Celestia to put the object in orbit around "Name". The orbit must be defined using the <code>EllipticalOrbit</code> block. </p><p>By putting a barycenter in orbit around another barycenter, it is possible to create hierarchical systems in Celestia. </p> <div class="mw-heading mw-heading3"><h3 id="EllipticalOrbit">EllipticalOrbit</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;veaction=edit&amp;section=7" title="Edit section: EllipticalOrbit" class="mw-editsection-visualeditor"><span>edit</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;action=edit&amp;section=7" title="Edit section&#039;s source code: EllipticalOrbit"><span>edit source</span></a><span class="mw-editsection-bracket">]</span></span></div> <pre> EllipticalOrbit { Epoch &lt;number&gt; Period &lt;number&gt; SemiMajorAxis &lt;number&gt; Eccentricity &lt;number&gt; Inclination &lt;number&gt; AscendingNode &lt;number&gt; ArgOfPericenter &lt;number&gt; MeanAnomaly &lt;number&gt; } </pre> <p>This is the orbital definition. Note that the <code>Period</code> must be in years, and the <code>SemiMajorAxis</code> must be in astronomical units. </p><p>Within a binary star system, most of the two stars' orbital parameters will be identical. The exceptions are <code>SemiMajorAxis</code> and <code>ArgOfPericenter</code>. Recall that the semimajor axes of the stars' orbits around the barycenter depend on the masses. To put the stars on opposite sides of the barycenter, the <code>ArgOfPericenter</code> values must be 180 degrees apart. </p> <div class="mw-heading mw-heading4"><h4 id="Reference_frames">Reference frames</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;veaction=edit&amp;section=8" title="Edit section: Reference frames" class="mw-editsection-visualeditor"><span>edit</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;action=edit&amp;section=8" title="Edit section&#039;s source code: Reference frames"><span>edit source</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>A common mistake is to simply input the <code>Inclination</code>, <code>AscendingNode</code>, and <code>ArgOfPericenter</code> values from the literature directly into the <code>EllipticalOrbit</code> block. This results in the orbit being oriented incorrectly in 3D space. Why is this? </p><p>This is because Celestia uses the EclipticJ2000 system for all its orbits, whereas astronomers use the plane-of-sky as a reference frame. In the ecliptic system, an orbit with an inclination of 0 would be in the same plane as the ecliptic. In the plane-of-sky system, an orbit with the inclination of 0 would appear face-on from Earth's perspective. </p><p>To convert from the plane-of-sky to the ecliptic, it is necessary to use a tool such as Grant Hutchison's <a rel="nofollow" class="external text" href="https://www.classe.cornell.edu/~seb/celestia/hutchison/spreadsheets.html#2">star orbit translation spreadsheet</a>. This spreadsheet has several features such that it may not fit every binary system perfectly. Therefore, the different use cases are described below. </p> <div class="mw-heading mw-heading2"><h2 id="Visual_binaries">Visual binaries</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;veaction=edit&amp;section=9" title="Edit section: Visual binaries" class="mw-editsection-visualeditor"><span>edit</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;action=edit&amp;section=9" title="Edit section&#039;s source code: Visual binaries"><span>edit source</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>In a visual binary, the positions of the two stars is measured over time. This is usually in terms of the separation (in some angular unit like arcseconds), and the position angle of the secondary relative to the primary. The position angle is measured east of north, so think of it as degrees counterclockwise from north. (Imagine you're looking up at the sky, which is why it's reversed.) </p><p>In any case, with a visual orbit you will get the following parameters: </p> <ul><li>The period, typically in units of days or years;</li> <li>The semimajor axis (technically the sum of the two semimajor axes), typically in angular units like arcseconds, milliarcseconds, or in some physical value like astronomical units);</li> <li>The eccentricity;</li> <li>The inclination, which is typically in degrees;</li> <li>The ascending node, which is typically in degrees;</li> <li>The argument of pericenter, which is typically in degrees and applies to the secondary;</li> <li>The epoch of periastron - a reference time in which the periastron occurred, either in Julian date or Besselian years.</li></ul> <p>Grant Hutchison's spreadsheet uses the system's distance and the angular semimajor axis to get the <i>true</i> semimajor axis. It also uses the period and the epoch of periastron (in fractional years) to calculate the <code>MeanAnomaly</code> parameter. However, if you have the periastron epoch (in Julian date) and don't want to convert that to fractional years for the spreadsheet, you can also just use that as the <code>Epoch</code> parameter and not specify a <code>MeanAnomaly</code> parameter. </p><p>Grant Hutchison's spreadsheet gives the sum of the two semimajor axes. To find the individual semimajor axes for each star, use the component masses. Also, the spreadsheet only gives one <code>ArgOfPericenter</code> value, which is the secondary's. To find the primary's, add 180 degrees (or subtract 180 degrees, if it gives you a value outside of the typical 0 to 360 degree range). </p> <div class="mw-heading mw-heading2"><h2 id="Astrometric_binaries">Astrometric binaries</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;veaction=edit&amp;section=10" title="Edit section: Astrometric binaries" class="mw-editsection-visualeditor"><span>edit</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;action=edit&amp;section=10" title="Edit section&#039;s source code: Astrometric binaries"><span>edit source</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>In an astrometric binary, the secondary is typically not visible. However, it is detectable in the form of the primary orbiting around its barycenter. </p><p>So for an astrometric orbit you will get the following parameters: </p> <ul><li>The period, typically in units of days or years;</li> <li>The semimajor axis <i>of the primary's orbit around the barycenter</i>, typically in angular units like arcseconds, milliarcseconds, or in some physical value like astronomical units);</li> <li>The eccentricity;</li> <li>The inclination, which is typically in degrees;</li> <li>The ascending node, which is typically in degrees;</li> <li>The argument of pericenter, which is typically in degrees and applies to the <i>primary</i>;</li> <li>The epoch of periastron - a reference time in which the periastron occurred, either in Julian date or Besselian years.</li></ul> <p>To use Grant Hutchison's spreadsheet, use it the same way you would use it for a visual binary. But you would calculate the primary's semimajor axis using the distance, and calculate the secondary's semimajor axis using the component masses. To find the secondary's <code>ArgOfPericenter</code>, add 180 degrees (or subtract 180 degrees, if it gives you a value outside of the typical 0 to 360 degree range). </p> <div class="mw-heading mw-heading2"><h2 id="Spectroscopic_(and_eclipsing)_binaries"><span id="Spectroscopic_.28and_eclipsing.29_binaries"></span>Spectroscopic (and eclipsing) binaries</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;veaction=edit&amp;section=11" title="Edit section: Spectroscopic (and eclipsing) binaries" class="mw-editsection-visualeditor"><span>edit</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;action=edit&amp;section=11" title="Edit section&#039;s source code: Spectroscopic (and eclipsing) binaries"><span>edit source</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>In these binaries, the two objects are not resolved. Instead, the primary's orbit around the barycenter is detected from the object's spectrum periodically red-shifting or blue-shifting because of the Doppler effect. </p><p>Note the difference between single-lined and double-lined spectroscopic binaries. In a single-lined binary, only the primary's spectrum can be detected. In a double-lined binary, both the primary and secondary's spectra can be detected. Typically a single-lined binary will not have enough information to be accurately rendered in Celestia, though. </p><p>For a double-lined spectroscopic orbit you will typically get the following parameters: </p> <ul><li>The period, typically in units of days or years;</li> <li>The eccentricity;</li> <li>The argument of pericenter, which is typically in degrees and applies to the <i>secondary</i>;</li> <li>The epoch of periastron - a reference time in which the periastron occurred, either in Julian date or Besselian years.</li></ul> <p>You may sometimes also get <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a\sin i}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>a</mi> <mi>sin</mi> <mo>&#x2061;<!-- ⁡ --></mo> <mi>i</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle a\sin i}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/0cd0b9c2def8a80ec08c931bab6a4729fef40250" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:5.662ex; height:2.176ex;" alt="{\displaystyle a\sin i}"></span>, which is the semi-major axis multiplied by the sine of the (plane-of-sky) inclination. </p><p>For eclipsing binaries, the inclination value can be known because one star passes in front of the other, blocking its light. If the inclination is not given but you know the masses, you can sometimes calculate the inclination: </p> <ol><li>Use the period and the masses to calculate the true semimajor axis using Kepler's third law. This can either be the total semimajor axis or one of the components' semimajor axes, just make sure you're being consistent.</li> <li>Divide the <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a\sin i}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mi>a</mi> <mi>sin</mi> <mo>&#x2061;<!-- ⁡ --></mo> <mi>i</mi> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle a\sin i}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/0cd0b9c2def8a80ec08c931bab6a4729fef40250" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:5.662ex; height:2.176ex;" alt="{\displaystyle a\sin i}"></span> value by the true semimajor axis - make sure you're being consistent with units and you are using the same semimajor axis value. This gives you the sine of the inclination.</li> <li>Take the arcsine (or inverse sine) of the inclination. Make sure the value is in degrees.</li></ol> <p>Then, just use Grant Hutchison's star spreadsheet like before, with the inclination value you got. With spectroscopic binaries, it is impossible to know the longitude of the ascending node without resolving it. It is customary to enter in 0 for that value. </p> <div class="mw-heading mw-heading3"><h3 id="Short-period_binaries">Short-period binaries</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;veaction=edit&amp;section=12" title="Edit section: Short-period binaries" class="mw-editsection-visualeditor"><span>edit</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;action=edit&amp;section=12" title="Edit section&#039;s source code: Short-period binaries"><span>edit source</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>For some binaries, notably eclipsing binaries with short periods, the eccentricity is 0 so there is no periastron. In that case, the reference epoch may instead be <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle T_{min}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <msub> <mi>T</mi> <mrow class="MJX-TeXAtom-ORD"> <mi>m</mi> <mi>i</mi> <mi>n</mi> </mrow> </msub> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle T_{min}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/682ab46f5599b6d94ae2308d4d0cb88390c3fd8d" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:4.586ex; height:2.509ex;" alt="{\displaystyle T_{min}}"></span>, which is the epoch of the primary minimum. This is the time at which the dimmer star is directly in front of the brighter star (from Earth's viewpoint), so it is blocking the most light (hence the term minimum). In Celestia, you would set the <code>Epoch</code> values for both stars to be <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle T_{min}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <msub> <mi>T</mi> <mrow class="MJX-TeXAtom-ORD"> <mi>m</mi> <mi>i</mi> <mi>n</mi> </mrow> </msub> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle T_{min}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/682ab46f5599b6d94ae2308d4d0cb88390c3fd8d" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:4.586ex; height:2.509ex;" alt="{\displaystyle T_{min}}"></span>, and then set the <code>MeanAnomaly</code> to be 90. To test that the eclipse timings are accurate, travel to the system from Earth (or anywhere within the Solar System) and set the time to your <span class="mwe-math-element"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle T_{min}}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <msub> <mi>T</mi> <mrow class="MJX-TeXAtom-ORD"> <mi>m</mi> <mi>i</mi> <mi>n</mi> </mrow> </msub> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle T_{min}}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/682ab46f5599b6d94ae2308d4d0cb88390c3fd8d" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:4.586ex; height:2.509ex;" alt="{\displaystyle T_{min}}"></span>. If the dimmer star is in front of the brighter star, then that is the primary minimum and your code is correct. </p> <div class="mw-heading mw-heading2"><h2 id="Testing_your_code">Testing your code</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;veaction=edit&amp;section=13" title="Edit section: Testing your code" class="mw-editsection-visualeditor"><span>edit</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;action=edit&amp;section=13" title="Edit section&#039;s source code: Testing your code"><span>edit source</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>It is recommended to test your star system code in Celestia to see if it works. For example, for visual orbits to test that the orientation is correct, travel from the Solar System to your system and with the left and right arrow keys, turn the system around so that it points the same way as a diagram of the system. Be careful of the direction that the diagram itself in; sometimes, north will point down. If it's oriented the same way, then the code should be correct in this aspect. This test does not apply for systems that have not been spatially resolved. </p><p>Next, set the time in Celestia to a certain reference time, such as the epoch. If the stars are in the correct position, then the code should be correct in this aspect. For visual binaries, the diagram will often show the orbit of the secondary relative to the primary. For eclipsing binaries, you can set the time to a predicted eclipse, and see if that eclipse happens. </p> <div class="mw-heading mw-heading3"><h3 id="Fixing_the_radial_velocities_in_Celestia">Fixing the radial velocities in Celestia</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;veaction=edit&amp;section=14" title="Edit section: Fixing the radial velocities in Celestia" class="mw-editsection-visualeditor"><span>edit</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;action=edit&amp;section=14" title="Edit section&#039;s source code: Fixing the radial velocities in Celestia"><span>edit source</span></a><span class="mw-editsection-bracket">]</span></span></div> <figure class="mw-halign-right" typeof="mw:File/Thumb"><a href="/wiki/File:Gl581_radial_velocity_curve.jpg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/c/c9/Gl581_radial_velocity_curve.jpg/300px-Gl581_radial_velocity_curve.jpg" decoding="async" width="300" height="184" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/c/c9/Gl581_radial_velocity_curve.jpg/450px-Gl581_radial_velocity_curve.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/c/c9/Gl581_radial_velocity_curve.jpg/600px-Gl581_radial_velocity_curve.jpg 2x" data-file-width="1100" data-file-height="675" /></a><figcaption>Radial velocity graph of Gliese 581, caused by Gliese 581 b. Although not a star system, Gliese 581 can be thought of as a single-lined spectroscopic binary in this case.</figcaption></figure> <p>Finally, for systems whose orbital solutions use radial velocity measurements, you will need to fix the radial velocities within Celestia. The issue is that for a given orbit, there are two solutions that appear correct from Earth, but in one of them the periastron is pointing towards us and the in the other the periastron is pointing away from Earth. Unfortunately, astronomical conventions have been ambiguous, so even if you did everything right, you still have to check if the objects are approaching or receding at the correct times and correct them if they aren't. This is done by examining radial velocity graphs. </p><p>On the right is a radial velocity graph. The curve shows whether the object is receding or approaching us. The higher the radial velocity, the more it is receding, and the lower the radial velocity, the more it is approaching. </p><p>In the graph on the right, we can see that the graph is above the average (shown here with the dotted line) when the orbital phase = 0. Conventionally, the periastron is where the phase is 0. So in this example, the primary star is receding away from us when it is at periastron. </p><p>Now, open Celestia and travel to your system from the Solar System. Set the time to the reference time. Slowly speed up the time in Celestia until you can see the distance from the object changing (in the top left corner). If the object is receding from/approaching towards you when it should be, then that means the radial velocities are already fixed. But if it isn't, then invert the input inclination value (i.e. the value you input into Grant Hutchison's spreadsheet). For example, if the inclination was 45 degrees, input &#8722;45 degrees instead. Use the new values, and restart Celestia. You should see that the radial velocities should be fixed. </p> <!-- NewPP limit report Parsed by mw‐web.codfw.main‐7d9797f5d‐xjzcn Cached time: 20241120032229 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] CPU time usage: 0.086 seconds Real time usage: 0.156 seconds Preprocessor visited node count: 236/1000000 Post‐expand include size: 972/2097152 bytes Template argument size: 375/2097152 bytes Highest expansion depth: 11/100 Expensive parser function count: 0/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 4850/5000000 bytes Lua time usage: 0.040/10.000 seconds Lua memory usage: 923648/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 74.368 1 -total 66.22% 49.243 1 Template:Gallery 32.85% 24.430 1 Template:BookCat 12.99% 9.659 1 Template:Evalx 4.66% 3.465 1 Template:BOOKCATEGORY 2.36% 1.752 1 Template:NAIVEBOOKNAME --> <!-- Saved in parser cache with key enwikibooks:pcache:417757:|#|:idhash:canonical and timestamp 20241120032229 and revision id 4348087. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?useformat=desktop&amp;type=1x1&amp;usesul3=0" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://en.wikibooks.org/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;oldid=4348087">https://en.wikibooks.org/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;oldid=4348087</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Special:Categories" title="Special:Categories">Category</a>: <ul><li><a href="/wiki/Category:Book:Celestia" title="Category:Book:Celestia">Book:Celestia</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 6 December 2023, at 01:21.</li> <li id="footer-info-copyright">Text is available under the <a rel="nofollow" class="external text" href="//creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike License</a>; additional terms may apply. By using this site, you agree to the <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use">Terms of Use</a> and <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy Policy.</a></li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Wikibooks:Welcome">About Wikibooks</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikibooks:General_disclaimer">Disclaimers</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/en.wikibooks.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//en.m.wikibooks.org/w/index.php?title=Celestia/Tutorials/Star_Systems&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-7bbfc6c4f5-6fvkl","wgBackendResponseTime":144,"wgPageParseReport":{"limitreport":{"cputime":"0.086","walltime":"0.156","ppvisitednodes":{"value":236,"limit":1000000},"postexpandincludesize":{"value":972,"limit":2097152},"templateargumentsize":{"value":375,"limit":2097152},"expansiondepth":{"value":11,"limit":100},"expensivefunctioncount":{"value":0,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":4850,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 74.368 1 -total"," 66.22% 49.243 1 Template:Gallery"," 32.85% 24.430 1 Template:BookCat"," 12.99% 9.659 1 Template:Evalx"," 4.66% 3.465 1 Template:BOOKCATEGORY"," 2.36% 1.752 1 Template:NAIVEBOOKNAME"]},"scribunto":{"limitreport-timeusage":{"value":"0.040","limit":"10.000"},"limitreport-memusage":{"value":923648,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-7d9797f5d-xjzcn","timestamp":"20241120032229","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10