A density curve that defines the density of the atmosphere at a given altitude along a curve, which is configurable for making replicas, unique atmospheric properties, and so on. This could actually be made by repurposing the current curve editor used by curve-remaps and craters, and making some smaller tweaks to it - as an example as to what i mean, here's an earthlike atmosphere i quickly put together in the curve editor, with the values on the side being the height in kilometres and the values on the bottom being the atmosphere density in kg/m^3:
This would also make it possible for the player to precisely set both the maximum height and density of the atmosphere from this due to the two end points, so maybe have some sort of "advanced atmosphere editor" where this and some other features would be available, while the current features (i.e. max height is determined by the set molar mass and temperature) would be in the "simpler" atmosphere editor.
However, i suspect this is a fairly difficult feature to add, but hey, i'm sure it's possible.
(i also haven't seen any other suggestions like this, though i only searched "atmosphere" and stuff like that, so i guess i'm the first?)
Suggestion
Submitted
2 Comments
- Log in to leave a comment
-
26.8k Zenithspeed
@sacr3dbac0n0 i'm not an expert on stuff like this but it's a handy equation for sure
4 Upvotes
Log in in to upvote this post.
In this game, the maximum height of an atmosphere is determined by a variation of the barometric equation:
h = -(((8.314 * ((Tday + Tnight) / 2))/(M * 0.001 * g0)) / 1000) * LN((C * rho0) / rho0)
Where,
h = atmospheric height (km)
Tday = average day temperature (K)
Tnight = average night temperature (K)
M = mean molecular weight (gram/mol)
g0 = ASL gravitation acceleration of planet (m/s^2)
C = cutoff density value (default 0.001)
rho0 = ASL air density (kg/m^3)
However, this function is asymptotic. The air density approaches, but never actually hits zero. For this reason, you must determine a cutoff point. In Juno: New Origins, the default value is 0.1% of sea level density. That is a value of 0.001.
In real life, when you exclude the wind and storm turbulence of the more active gas giants, all atmospheric bodies in the solar system follow this natural logarithmic curve. So, gravitational acceleration, mean molecular weight, temperature, and of course, the cutoff value, are all factors that affect atmospheric height.
https://i.imgur.com/Uz6xjDi.png