Here's how I script a first-approximation. It ain't pretty, but it's something. I have more complicated code for better guesstimates.
1. Assume density = 1.
1a. Alternately, 0.1 + (atm + flux())/10, but meh.
2. Gravity = density * siz / 8
3. Orbital radius is based on some generic star assumptions and an orbital temperature gradient:
3a. temperature subdivision (call it Ts) = 1 - (star subdivision / 30).
3b. mass-squared = star's sqrt mass * Ts
3c. orbit = star's AU * Ts
3d. year = 365 * sqrt( orbit^3 ) / mass-squared, in standard days
3e. mass = star mass * Ts
3f. day = mass / orbit
4. Insolation ( = Analbedo * Greenhouse Effect )
= atm / 20
5. Average Temperature
5a. gradient = orbital temperature gradient[ star's "r" value ]
5b. heat = star's heat index * Ts
5c. tbb = heat * gradient
5d. average temp = tbb * insolation - 273
5e. latitude = srqt( day / siz ) * sqrt( sqrt( tbb/29 ) )
5f. "term1" = sqrt( heat * gradient )
5g. "term2" = mass / orbit
5h. latitude2 = 21.5 * sqrt( term1 * term2 ) / sqrt( siz )
"Density" is in Earths.
"Gravity" is in Gs.
"term1" is the Hadley Cell.
"term2" is the Hadley2 Cell.
1. Assume density = 1.
1a. Alternately, 0.1 + (atm + flux())/10, but meh.
2. Gravity = density * siz / 8
3. Orbital radius is based on some generic star assumptions and an orbital temperature gradient:
Code:
Star Assumptions:
'A' => { r => 5, mass => 2.6, sqrtmass => 1.6, au => 2.4, heat => 2250 },
'F' => { r => 4, mass => 1.6, sqrtmass => 1.3, au => 1.6, heat => 1500 },
'G' => { r => 3, mass => 1.08, sqrtmass => 1.04, au => 1.0, heat => 950 },
'K' => { r => 2, mass => 0.83, sqrtmass => 0.91, au => 0.7, heat => 680 },
'M' => { r => 1, mass => 0.47, sqrtmass => 0.68, au => 0.4, heat => 450 },
The Orbital Temperature Gradient is an array with 17 elements, numbered 0 thru 16:
[1, 0.5, 0.4, 0.33, 0.25, 0.2, 0.16, 0.1, 0.07, 0.05, 0.04, 0.03, 0.02, 0.015, 0.012, 0.01, 0.009]
3a. temperature subdivision (call it Ts) = 1 - (star subdivision / 30).
3b. mass-squared = star's sqrt mass * Ts
3c. orbit = star's AU * Ts
3d. year = 365 * sqrt( orbit^3 ) / mass-squared, in standard days
3e. mass = star mass * Ts
3f. day = mass / orbit
4. Insolation ( = Analbedo * Greenhouse Effect )
= atm / 20
5. Average Temperature
5a. gradient = orbital temperature gradient[ star's "r" value ]
5b. heat = star's heat index * Ts
5c. tbb = heat * gradient
5d. average temp = tbb * insolation - 273
5e. latitude = srqt( day / siz ) * sqrt( sqrt( tbb/29 ) )
5f. "term1" = sqrt( heat * gradient )
5g. "term2" = mass / orbit
5h. latitude2 = 21.5 * sqrt( term1 * term2 ) / sqrt( siz )
"Density" is in Earths.
"Gravity" is in Gs.
"term1" is the Hadley Cell.
"term2" is the Hadley2 Cell.