Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Venus' atmosphere height is incorrect (too low). #216

Open
Katniss218 opened this issue Jul 31, 2020 · 1 comment
Open

Venus' atmosphere height is incorrect (too low). #216

Katniss218 opened this issue Jul 31, 2020 · 1 comment

Comments

@Katniss218
Copy link

Current Venus atmosphere height of 145km doesn't match the results I've calculated. Should be ~333km

The threshold ('e') is set so that the iteration stops when the Earth's atmosphere reaches 144km, otherwise results won't be correct for RSS.

using System;

public class Program
{
public static void Atmo( double scaleHeight, double pressure, double e ){

	double cE = pressure;
	double currentHeight = 0;
	while( cE > e )
	{
		cE /= Math.E;
		currentHeight += scaleHeight;
	}
	
	Console.WriteLine( currentHeight );
}

public static void Main()
{
	Atmo( 8.5, 1, 0.0000001 ); // earth ScaleHeight = 8.5 (wikipedia), pressure = 1 atm
	Atmo( 15.9, 92, 0.0000001 ); // venus ScaleHeight = 15.9 (wikipedia), pressure = 92 atm

// value epsilon = 0.0000001 makes the threshold stop when the Earth's atmosphere reaches 144km - close enough for comparison.
}
}

outputs

144.5
333.9

@Katniss218
Copy link
Author

Katniss218 commented Jul 31, 2020

Edit
333km value is probably incorrect too. Appears that ScaleHeight can change with altitude, and the value of 15.9 only applies to the lower parts of Venusian atmo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant