![]() |
2 Attachment(s)
Just got home and thought I would do a quick ROC TTC test..
In this test I set the Altimeter_set to 1025mB.. And note in the TTC you can see the I_Altitude changes (red) as I change mB. Anyway, not a formal test, so don't draw any conclusions from these results. |
Quote:
Rethinking what I said about: if ( 15 - Pressure_Alt_ft*0.0019812 < -56.5) <--- determines the Tropopause altitude { TropAlt = PressureAlt - 56.5/0.0019812 <--- calculates altitude element above Tropopause TempStd = 288.15 - 56.5; Density_Alt_ft = Pressure_Alt_ft + (TempStd/0.0019812 + TropAlt) * (1 - Math.Pow((TempStd / I_AmbientAirTemperature),0.2349690)); else TempLapse= Pressure_Alt_ft*0.0019812; TempStd = 288.15 - Templapse; Density_Alt_ft = Pressure_Alt_ft + (TempStd/0.0019812) * (1 - Math.Pow((TempStd / I_AmbientAirTemperature),0.2349690)); } TempStd = 288.15 - TempLapse; Density_Alt_ft = Pressure_Alt_ft + (TempStd/0.0019812) * (1 - Math.Pow((TempStd / I_AmbientAirTemperature),0.2349690)); I'm not sure about the part: Density_Alt_ft = Pressure_Alt_ft + (TempStd/0.0019812 + TropAlt) * (1 - Math.Pow((TempStd / I_AmbientAirTemperature),0.2349690)); TempStd/0.0019812 is the correction of Pressure_Alt_ft within the Troposphere, beyond which there is no/negligible further Temperature Lapse so no correction seems to be required for that so I think the original formula applies, just Density_Alt_ft = Pressure_Alt_ft + (TempStd/0.0019812) * (1 - Math.Pow((TempStd / I_AmbientAirTemperature),0.2349690)); EDIT 2: OK, regarding I_AmbientAirTemp, as you say it is only present where the gauge is fitted and it isn't in the Spitfire or Hurricane and returns zero. so, how about this to get I_AmbientAirTemperature ? if (I_Altitude / Z_AltitudeMSL_m > 2.5) //is I_Altitude in feet? { Z_TempLapse = (Z_AmbientAirTemp - 288.15) / Z_AltitudeMSL_ft; else Z_TempLapse = (Z_AmbientAirTemp - 288.15) / Z_AltitudeMSL_m; } I_AmbientAirTemperature = I_Altitude * Z_TempLapse; Also, what are you using to create your charts? I tried plotting the Y axis as Altitude (as is often done for these tests) but Excel threw a wobbly when the Level Speeds or ROC reversed with altitude. PS Further apologies to Felipe for turning his Spitfire thread into a general "Aircraft Performance Measurement" thread but I think it is just about On Topic :) |
2 Attachment(s)
Hey klem
Im at work right now.. But Ill take a look at your Java code when I get home tonight.. I don't want to rush it and make a silly mistake like I did with T_slr vs TLR As for the units, The variables that start with 'I_' as in indicated as in the cockpit guages will change betwen IMPERIAL and SI units depending on the country of origin. For example, when test the Spit the I_Altitude will display 'feet' but when testing the 109 it will display 'meters'. Where as the 'Z_' values are allways in SI units. As for what I use to graph, I use matlab. As for excel, you can flip the axis, simply right-mouse-click on the graph and select 'Source Data' at which point it will display the data for the X and Y axis.. You just have to flip the X and Y sources.. You can type it in, which can be messy, or cut-in-paste swap, or simply click on the button and drag-n-drop the columns of data.. Which can be messy if you have alot of data. See attached for excel examples |
Hey klem..
Have not had a chance to work on it yet, got home friday night and the girl friend had 'other ideas' as to how I was going to spend my time this weekend! I am hoping to get some time tonight to work on it! S! |
Hey klem
Sorry this reply took so long.. I have been busy with some of my own stuff.. On that note I still have not writen the C# code for you yet, but wanted to share with you my matlab code, i.e. Code:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Code:
cat = dog + 100; Code:
for (ii=0; ii<dog.Lenght-1;ii++) Code:
cat = dog .* 100; Feel free to contact me if you have any questions PS still debating on wether we can use the ingame temp, or not, ill keep you posted |
You'll understand if I don't take up matlab, C# is enough of a challenge!
Those formulas are generally what I am using. btw I assume our TLR_Cpm is for altitude in feet not metres (TLR_Cpf?). The problem we have for calculating Density Altitude is that there is no OAT indicator. Then there is the question of whether Z_AmbientTemp relates to the cockpit altitude. I did calculate a lapse rate from Z_Temp and Z_AltMSL and assuming 288.15 at SL but that gave daft results. So I have assumed Z_AmbientTemp as OAT. I crashed at SL and it returned 290.1K or ~17C. At 15000ft it gave 260.2, a lapse rate of 0.0019933 for the CoD environment so I guess its OK for our purposes. |
All times are GMT. The time now is 07:53 AM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.