- Joined
- Jan 5, 2009
- Messages
- 216
- Reaction score
- 0
- Points
- 16
- Location
- Near Verona
- Website
- orbiteritalia.forumotion.com
I have a problem, I want to simulate the temperature in the empty space above the Earth's atmosphere in degrees Celsius.
Using the function GetAtmTemperature above 100 km altitude the temperature is increased to 500 600 degrees, at an altitude of 2500 km the temperature falls to -273 °C
Using this simple formula I solved the problem with the Earth's orbit
So the temperature in the space reaches -150 ° c
In the other planets atmosphere will have to change the parameter of reductionTMP1a I think....
My question is, how do I tell the code to change a parameter when I get closer to Mars for example?
Using the function GetAtmTemperature above 100 km altitude the temperature is increased to 500 600 degrees, at an altitude of 2500 km the temperature falls to -273 °C
Using this simple formula I solved the problem with the Earth's orbit
Code:
double TMP1 = (GetAtmTemperature()-273.15);// temp in celsius
double ATMP = GetAtmPressure()/100;
double TMP1a ;
if (ATMP<1)
{
TMP1a = TMP1*-0.229;
if (TMP1a < 273)TMP1a = 273;
[FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2][/SIZE][/FONT][/SIZE][/FONT]SetTextColor (hDC, RGB(220,220,220));
sprintf(cbuf,"ET %.0f°C",TMP1a);
TextOut(hDC,10,10,cbuf,strlen(cbuf));
}
if (ATMP>1)
{
SetTextColor (hDC, RGB(220,220,220));
sprintf(cbuf,"ET %.0f°C",TMP1);
TextOut(hDC,10,10,cbuf,strlen(cbuf));
}
In the other planets atmosphere will have to change the parameter of reductionTMP1a I think....
My question is, how do I tell the code to change a parameter when I get closer to Mars for example?
