-
Posts
795 -
Joined
-
Last visited
Content Type
Profiles
Forums
Developer Articles
KSP2 Release Notes
Everything posted by mcirish3
-
Hi OhioBob.
Nathankell suggested I contact you about the nature of the atmosphere in KSP...so here I am. I am at this time working on the static pressures (will tackle static temp after and am collecting data for both) on Kerbin using graphotron 2000. I really don't know much since I have only run numbers on one csv data output (though I have several more wait for analysis) at this point but I will give you my best guess on how I expect static pressure on kerbin to work.
I am guessing that all though the planet rotates every 6 hours the Atmosphere behaves as if it only rotates once a year. (which is to say there should be a174 mph wind at the equator but ... there is no wind in ksp) In other words the temp and pressure above the point 0o 0' 0" latitude and 0o 0' 0" longitude at noon each kerbin day has the highest Temp and lowest pressure at the surface of any point on kerbin at that time. I am further guessing that the pressure with altitude follows the following formula Atmospheric Pressure= Caltitude*e-(A)*Altitude(m)
Pressure versus change in longitude with a fixed time and fixed altitude would follow; pressure=Clogitude*cos(beta)and pressure versus change in latitude with a fixed time and fixed altitude would be; pressure=Clatitude*sin(theta/2)
(this should all be in spherical coordinates)
Am I even in the right ball park? Please feel free to correct me or to tell me I am crazy. I really am looking to derive, from experimental data if necessary a three dimensional formula that will yield the static air pressure (and temperature eventually) for any place and time on kerbin and eventually the other planets with atmospheres as well.
I of course don't have a strong need to do all the work myself, no need to reinvent the wheel if the work is already done, so if you have already figured all this out please feel free to share.
Much of my calculus is very rusty so please go easy on me.
Looking forward to your thoughts.and Thank You,
mcirish3
- Show previous comments 50 more
-
I just thought of something... For a planet in an elliptical orbit, the length of the solar day is not constant. This isn't a problem for Kerbin since its orbit is circular, but it will be for the other planets. A planet's angular velocity is greater near perihelion, therefore it should take slightly longer for the Sun to return to the same meridian each day than it does when the planet is near aphelion. (The formula given earlier gives the average length of the solar day.) Therefore, computing the hour angle at a specific location and time requires computing the celestial longitude of the sun, the celestial longitude of the surface site, and taking the difference.
I think the method described in my last post can be used to compute the longitude of the surface site (first half of post), but the part about computing the hour angle I think is useless (second half of post). Once you have the longitude of the prime meridian at 0s UT, you should be able to compute the longitude of any site and any time.
You can use the following method to compute the heliocentric longitude of the planet, getting the orbital elements from the Wiki.
http://www.braeunig.us/space/plntpos.htm#coordinates
-
Thanks for the catch on the elliptical orbit. Also another issue is Moons. These equations modify a lot for them if I am not mistaken I will have to spend some time thinking about them.
Now for some good news. There is a much easier way to find the prime meridian. If you know all the planet and moons orientation of the 0o 0' 0" longitude mark relative to the fixed KSP X axis at t=0 and you know where the X axis is relative to each planet then you can solve for the rest. It just so happens that this information is in a file somewhere in the KSP INI for the planets. The mean anomaly is PI for Kerbin and the initial rotation for Kerbin's initial rotation is 90 degrees relative to this axis (from hyperedit) so that means the x axis points directly from the center of kerbin to cent of the sun. Problem solved. well at least that part is solved now to actually do the math. At least I don't have to spend hours doing this experimentally. Threre where a lot of people that helped me figure this out so the only credit i get is asking enough questions.