Kepler's 2nd. Law
|
02-12-2018, 09:53 AM
(This post was last modified: 02-12-2018 10:43 AM by Ángel Martin.)
Post: #1
|
|||
|
|||
Kepler's 2nd. Law
From a recent conversation with a friend's on the Kepler's laws - his son's subject for a High school paper. The goal was to calculate the value of the swept area between two instants, as determined by the azimuth angles (a1, a2) of the segments linking the focus of the ellipse with the planet at those moments.
Initially I thought the formulas would involve the Elliptic functions, as elliptical sectors were involved - but it appears that's not the case when the coordinates are centered at the focal point, instead of at the center of the ellipse. I found that fact interesting, as it only involves trigonometric functions (not even hyperbolic). Here's the reference I followed to program it, a good article that describes an ingenious approach - avoiding painful integration steps. It may not be the simplest way to get this done, chime in if you know a better one. http://www.bado-shanai.net/Platonic%20Dr...Sector.htm And here's the FOCAL listing for a plain HP-41 - no extensions whatsoever. The result is the area swept between the two positions defined by the angles a1 and a2; a2 > a1. The parameters a,b are the semi-axis of the ellipse, a>b. Code: 1 LBL "K2+" (*) the symbol "<)" is for the angle character. Example: calculate the area swept between a1 = pi/4 and a2 = 3.pi/4, if the ellipse parameters are a= 2, b= 3 Solution: A = 1.989554087 Once the area is obtained, and knowing the period of the orbiting (T), it's straightforward to determine the time taken by the planet to travel between the two positions, with the direct application of Kepler's 2nd. law: t = T . Area / pi.a.b Cheers, ÁM "To live or die by your own sword one must first learn to wield it aptly." |
|||
02-13-2018, 01:07 AM
(This post was last modified: 02-13-2018 02:41 AM by toml_12953.)
Post: #2
|
|||
|
|||
RE: Kepler's 2nd. Law
(02-12-2018 09:53 AM)Ángel Martin Wrote: From a recent conversation with a friend's on the Kepler's laws - his son's subject for a High school paper. The goal was to calculate the value of the swept area between two instants, as determined by the azimuth angles (a1, a2) of the segments linking the focus of the ellipse with the planet at those moments. For the parameters a=2, b=3 and a1=.785398..., a2=2.35619... (Did I get the parameters right?) I get 5.89676233948396 which agrees with the calculator at http://keisan.casio.com/exec/system/1343722259 Code: DECLARE EXTERNAL FUNCTION F Tom L Cui bono? |
|||
02-13-2018, 02:01 AM
Post: #3
|
|||
|
|||
RE: Kepler's 2nd. Law
Angel
The 143 page publication Introduction to Orbital Flight Planning (I) (NASA-CE-165052) may be of interest as it includes a well-documented {equations, diagrams, etc.}discussion with respect to orbital mechanics & Kepler as well as an HP-67 based program for same. The discussion starts with elliptic orbits on page 51 then transitions to Kepler on page 54 with an HP-67 program on page 57. BEST! SlideRule |
|||
02-13-2018, 08:06 AM
(This post was last modified: 02-13-2018 08:07 AM by Ángel Martin.)
Post: #4
|
|||
|
|||
RE: Kepler's 2nd. Law
(02-13-2018 01:07 AM)toml_12953 Wrote:(02-12-2018 09:53 AM)Ángel Martin Wrote: Example: calculate the area swept between a1 = pi/4 and a2 = 3.pi/4, if the ellipse parameters are a= 2, b= 3 Mmm... something's fishy. I consistently get 1.989554087 using a1 = pi/4 (45 degrees) and a2 = 3.pi/4 (135 degrees). Besides, it's not possible to get the same as the web applet - which uses centered sectors, not focus-centered ones. In fact, using the angles above the applet shows an Area result of 3.5280156212854 Could you double check? "To live or die by your own sword one must first learn to wield it aptly." |
|||
02-13-2018, 08:11 AM
Post: #5
|
|||
|
|||
RE: Kepler's 2nd. Law
(02-13-2018 02:01 AM)SlideRule Wrote: The 143 page publication Introduction to Orbital Flight Planning (I) (NASA-CE-165052) may be of interest as it includes a well-documented {equations, diagrams, etc.}discussion with respect to orbital mechanics & Kepler as well as an HP-67 based program for same. The discussion starts with elliptic orbits on page 51 then transitions to Kepler on page 54 with an HP-67 program on page 57. Great reference, thanks for the link. I'll check it out ASAP. "To live or die by your own sword one must first learn to wield it aptly." |
|||
02-13-2018, 07:32 PM
Post: #6
|
|||
|
|||
RE: Kepler's 2nd. Law
(02-13-2018 02:01 AM)SlideRule Wrote: Angel Big thanks for the information! Saludos Saluti Cordialement Cumprimentos MfG BR + + + + + Luigi Vampa + Free42 '<3' I + + |
|||
03-05-2018, 01:41 PM
(This post was last modified: 03-05-2018 01:42 PM by Ángel Martin.)
Post: #7
|
|||
|
|||
RE: Kepler's 2nd. Law
I've prepared a set of functions and FOCAL drivers for an "Elliptic Applications" ROM, which also includes a basic "Orbital Mechanics for Dummies" section - quite an slippery subject, if I may say. Got the geometry and satellite positioning taken care of, but the velocities are giving some inconsistent result, still needs some work... Stay tuned!
"To live or die by your own sword one must first learn to wield it aptly." |
|||
03-10-2018, 03:44 PM
(This post was last modified: 03-10-2018 03:56 PM by Ángel Martin.)
Post: #8
|
|||
|
|||
RE: Kepler's 2nd. Law
The module is almost ready, here's the function QRG to whet your appetite:
Code: XROM Function Description Input / Output "To live or die by your own sword one must first learn to wield it aptly." |
|||
03-11-2018, 01:45 PM
Post: #9
|
|||
|
|||
RE: Kepler's 2nd. Law
Fantastic. I’ll look forward to the ROM.
I’ve been working on a package to determine real time altitude and azimuth from a satellites two-line-elements. I am hopelessly mired in the coordinate transformations. I posted a copy of a ham radio article from ORBIT that does the same, but it wasn’t as enamored with the advantage module as I am. It is a fun exercise to point out visible objects like the ISS and the Humanity Star and I have a working arduino version which points an antenna array. https://youtu.be/VG5L5oP2uNk As a conceit I have thought about plumbing an HP-IL/RS232 to it to place the ‘41 in charge. With the single precision math of the arduino the orbital elements age very quickly. https://github.com/twdeckard/HP41CX-PLAN...PLAN41.rpn (the only thing salvageable in the code would be the keps parser) Thanks for creating and sharing this. Todd |
|||
03-11-2018, 03:16 PM
Post: #10
|
|||
|
|||
RE: Kepler's 2nd. Law | |||
03-11-2018, 03:37 PM
(This post was last modified: 03-11-2018 03:38 PM by Ángel Martin.)
Post: #11
|
|||
|
|||
RE: Kepler's 2nd. Law
(03-11-2018 01:45 PM)twdeckard Wrote: I’ve been working on a package to determine real time altitude and azimuth from a satellites two-line-elements. I am hopelessly mired in the coordinate transformations. that sure looks like serious skills at work, very impressing! I hope you don"t set your expectations too high, the ROM is quite basic in contents and doesn't delve deep into the subjects - more of a personal past-time than any other thing. BTW would you rather have your program in a ROM format? I can transfer it to ROM if that makes any sense to you... Best, ÁM "To live or die by your own sword one must first learn to wield it aptly." |
|||
03-11-2018, 03:43 PM
Post: #12
|
|||
|
|||
RE: Kepler's 2nd. Law
(02-12-2018 09:53 AM)Ángel Martin Wrote: … a good article that describes an ingenious approach - avoiding painful integration steps. It may not be the simplest way to get this done, chime in if you know a better one… NOT better, but DG references nonetheless (for those with an interest) … [attachment=5735] [attachment=5736] [attachment=5737] [attachment=5738] [attachment=5739] … as well as these three articles from Surveying & Mapping magazine … Reference Ellipsoids direct & indirect solution v40 (09-80) Reference Ellipsoids comments on formulas v41 03'81 Reference Ellipsoids comments on article v41 09'81 … with a smidgen of applicability from the following articles … Total Inverse solution for the geoDesic & great Elliptic New Solutions to the Direct and Indirect Geodetic Problems on the Ellipsoid Direct & Inverse Solutions of Geodetics of the Ellipsoid with Application of Nested Equations Solving the Direct & Inverse Geodetic Problems on the Ellipsoid by Numerical Integration Ellipsometer Data Analysis w a Small Programmable Desk Calculator Ignore what doesn't facilitate the projected outcome, enjoy the rest. BEST! SlideRule |
|||
03-11-2018, 04:06 PM
Post: #13
|
|||
|
|||
RE: Kepler's 2nd. Law
(03-11-2018 03:37 PM)Ángel Martin Wrote: BTW would you rather have your program in a ROM format? I can transfer it to ROM if that makes any sense to you... Thank you for this kind offer! I have the nutstudio tools so if I ever get it to work I think I can spin it into a ROM of focal routines. Take care Todd |
|||
03-11-2018, 05:59 PM
Post: #14
|
|||
|
|||
RE: Kepler's 2nd. Law
Tracking Satellites in Elliptic Orbits article {referenced above} attached:
[attachment=5740] [attachment=5741] [attachment=5742] [attachment=5743] [attachment=5744] BEST! SlideRule |
|||
03-11-2018, 09:40 PM
Post: #15
|
|||
|
|||
RE: Kepler's 2nd. Law
Thanks for sharing this article, will study it closely!
Best, ÁM "To live or die by your own sword one must first learn to wield it aptly." |
|||
03-12-2018, 09:41 AM
Post: #16
|
|||
|
|||
RE: Kepler's 2nd. Law
(03-11-2018 04:06 PM)twdeckard Wrote:(03-11-2018 03:37 PM)Ángel Martin Wrote: BTW would you rather have your program in a ROM format? I can transfer it to ROM if that makes any sense to you... Cool. BTW looking at the code a couple of things caught my attention:
Best, ÁM "To live or die by your own sword one must first learn to wield it aptly." |
|||
03-12-2018, 10:23 PM
Post: #17
|
|||
|
|||
RE: Kepler's 2nd. Law
Greetings Ángel
Thank you for the kind words, remember, the program doesn't work yet. Candidly the best effort would be to scrap it and weld the TLE parser on the article that SlideRule posted. The SATREG ASCII file is a list of variable mnemonics prefixed with a numerical type. Its a common pattern I used so that I can revisit an old program and have some hope of deciphering it. It is also why I squander precious registers on six character labels. I invariably have to scavenge those as I get to the limit of memory. Here is the SATREG contents: Code: 4^TMP The ISS ASCII file contains the two-line element (sometimes slang'd as a Kepler although it is not). They can be had from Celestrak or one of the other providers although NORAD is the source. Code: 1 25544U 98067A 18071.70991576 .00002716 00000-0 48084-4 0 9995 The MMDOT refers to the decay rate. There certainly isn't any MCODE in my vocabulary. I mixed in comments from the original BASIC program that inspired this effort. Maybe the comments looked like assembly. If it hurts my credibility, at one point, I was comparing output from a Commodore 64 to error check my '41. Take care if hoping for some sensible output from the github repository. I had an ESD catastrophe during development and I am not sure it is even up to date. I only now have reconstituted all the keystrokes in the calculator and it does not even parse the TLE correctly. Most likely due to typos. Even when working I only got as far as a correct ECF to ENU transformation. Everything else was wrong. Rather than simply "port" the BASIC I tried to go back to the actual coordinate transformations but it has gotten the better of me. I bought a "backup" HP41CX off of ebay and it had an Advantage module so I was looking for an excuse to do some matrix operations. I will post something if I make any forward progress. Best Todd |
|||
03-13-2018, 05:53 AM
(This post was last modified: 03-13-2018 05:56 AM by Ángel Martin.)
Post: #18
|
|||
|
|||
RE: Kepler's 2nd. Law
(03-12-2018 10:23 PM)twdeckard Wrote: Greetings Ángel Thanks for the clarification, it'll stop me from chasing a red herring ;-) BTW you're not alone having used the C64 as an "advanced" parallel development tool. Many moons ago I did the same for the synchronous machine swing equation... aah those good times! My module was completed but then I decided to add formulas for the velocity increments for coaxial elliptical orbit transfers... and I'm now polishing a couple of rough edges. Best, ÁM "To live or die by your own sword one must first learn to wield it aptly." |
|||
03-14-2018, 05:54 PM
Post: #19
|
|||
|
|||
RE: Kepler's 2nd. Law | |||
03-15-2018, 06:06 AM
Post: #20
|
|||
|
|||
RE: Kepler's 2nd. Law
(03-14-2018 05:54 PM)SlideRule Wrote:(02-12-2018 09:53 AM)Ángel Martin Wrote: … calculate the value of the swept area between two instants, as determined by the azimuth angles (a1, a2) of the segments linking the focus of the ellipse … Absolutely. "To live or die by your own sword one must first learn to wield it aptly." |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 6 Guest(s)