![]() |
|
FM/DM threads Everything about FM/DM in CoD |
|
Thread Tools | Display Modes |
#19
|
||||
|
||||
![]()
I think so.. In that I found and error in your Density Altitude calculation
See the following REVIEW of your Java code. Before we do that, I took the liberty of re-wording the formulas you used from Williams site, i.e. http://williams.best.vwh.net/avform.htm#Altimetry I also added more detailed definitions all in all with the goal of making them easier to read and follow Quote:
Quote:
Code:
Density_Alt = Pressure_Alt + (T_std/TLR) * (1 - Math.Pow((T_std / Z_AmbientAirTemperature),0.2349690)); Code:
T_std = 288.15 - Alt_ind × TLR TLR = 0.0065 Code:
if ( height < tropopause ) then T_std = T_o - Alt_ind × TLR else T_std = T_tropopause Code:
tropopause starts at 11.0km (36089.24ft) and ends at 20km (65,616.78ft) TLR = 6.49(°C/1,000m) = 1.98(°C/1,000ft) = 3.56(°F)/1,000ft T_Topopause = -56.5(°C) = 216.65(°K) ![]() SUMMARY I don't know if I would use Williams formulas.. I have some concerns with how he handles some of the units, but since you were using his formulas I thought it best to review those formulas. Also not sure if you can use Z_AmbientAirTemperature directly in that it is not realitve to I_Altitude.. And as you know small temp differences can have a big effect on Density Altitude calculations, so hopefully these are small differences. Might be better of using the ISA Standard Temp formulas adjusted for temp. Hope this helps! S! PS see attached where I did a quick ROC test and ploted the different altitudes
__________________
Theres a reason for instrumenting a plane for test..
That being a pilots's 'perception' of what is going on can be very different from what is 'actually' going on. Last edited by ACE-OF-ACES; 07-19-2012 at 11:47 PM. |
|
|