-
Notifications
You must be signed in to change notification settings - Fork 467
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
Discrepancy in Air Density and Atmospheric Pressure Calculation for Non-Standard Temperature #1196
Comments
From - https://en.wikipedia.org/wiki/International_Standard_Atmosphere So it looks like jsbsim/src/models/atmosphere/FGStandardAtmosphere.cpp Lines 486 to 488 in 318c804
And instead the jsbsim/src/models/atmosphere/FGStandardAtmosphere.cpp Lines 523 to 528 in 318c804
And also in: jsbsim/src/models/atmosphere/FGStandardAtmosphere.cpp Lines 238 to 242 in 318c804
And:
|
Well, according to ISA 1976 chapter 1.2.2 and its equations (4) and (5), we have: Unfortunately, the ISA document does not explicitly tell how a temperature deviation from standard should be handled. However I would say that our current implementation is making sense because it complies with ISA 1976 chapters 1.2.2 and 1.3.1. Unless proven otherwise. |
@Warning39, if the pressure is independent of the temperature I don't see why the delta gradient should be kept ?
I don't see why standard density breakpoints should depend on
jsbsim/src/models/atmosphere/FGStandardAtmosphere.cpp Lines 248 to 272 in d1bedfb
|
Yep, just glanced through it now. Previously when I did a quick internet search I came across the Wikipedia entry:
From - https://en.wikipedia.org/wiki/International_Standard_Atmosphere and I assumed the description was based on a description in the ISA document. The online ISA calculator - https://aerospaceweb.org/design/scripts/atmosphere/ also appears to implement the description from the Wikipedia entry. Doing a bit more searching now I came across - https://www.pdas.com/atmosnonstd.html
So the initial question I guess is whether JSBSim should follow this same approach. Which seems somewhat common? |
I'm submitting a ...
Describe the issue
There is a discrepancy in the calculation of air density and atmospheric pressure when using the temperature deviation from standard atmosphere (atmosphere/delta-T) parameter, especially at altitudes above sea level. Notably, the atmospheric pressure value should remain constant for a fixed altitude regardless of temperature deviations, but JSBSim produces different pressure values.
What is the expected behavior?
The air density and atmospheric pressure values computed by JSBSim should closely align with standard reference values for the given temperature and altitude conditions, such as those provided by the Atmospheric Calculator.
What is the motivation / use case for changing the behavior?
Correct air density values are critical for accurate aerodynamic and flight dynamics simulations, especially for scenarios where temperature deviations from the standard atmosphere are involved.
code
output
The text was updated successfully, but these errors were encountered: