Skip to content

Enable the usage of the NRLMSIS00 atmospheric model.#941

Merged
bcoconni merged 1 commit intoJSBSim-Team:masterfrom
bcoconni:NRLMSIS00
Jul 26, 2023
Merged

Enable the usage of the NRLMSIS00 atmospheric model.#941
bcoconni merged 1 commit intoJSBSim-Team:masterfrom
bcoconni:NRLMSIS00

Conversation

@bcoconni
Copy link
Member

This PR is the last step to enable the MSIS atmospheric model in JSBSim (the previous PRs were #902, #908 and #916).

After this PR will be merged, the usage of the MSIS atmosphere will be triggered by the following XML code:

<planet name="Earth">
  <atmosphere model="MSIS">
    <day>172</day>    <!--  Jun 21st  -->
    <utc>29000</utc>  <!-- 08:03:20AM -->
  </atmosphere>
</planet>

The XML can either be embedded in an aircraft definition file or supplied to JSBSim.exe via the --planet option or loaded with the C++ method FGFDMExec::LoadPlanet() or the Python method FGFDMExec.load_planet().

At the moment the date shall be supplied as the day of the year, counting from Jan 1st which is day 1 to Dec 31st which is day 365. The time zone is UTC+00:00 and the time is supplied as the number of seconds elapsed since 00:00 (12:00AM).

This PR adds a test to TestPlanet.py to check that the pressure, density and temperature are computed by the MSIS model when the XML file above is supplied.

@codecov
Copy link

codecov bot commented Jul 22, 2023

Codecov Report

Merging #941 (7fd1f33) into master (81e590c) will decrease coverage by 0.02%.
The diff coverage is 15.78%.

@@            Coverage Diff             @@
##           master     #941      +/-   ##
==========================================
- Coverage   24.90%   24.89%   -0.02%     
==========================================
  Files         168      168              
  Lines       18870    18887      +17     
==========================================
+ Hits         4699     4701       +2     
- Misses      14171    14186      +15     
Impacted Files Coverage Δ
src/FGFDMExec.cpp 39.16% <15.78%> (-0.62%) ⬇️

@seanmcleod
Copy link
Member

Looks good.

@agodemar
Copy link
Contributor

Sounds good. Please go ahead with the merge step

@bcoconni bcoconni merged commit 3ffbeaa into JSBSim-Team:master Jul 26, 2023
@bcoconni
Copy link
Member Author

Thanks @seanmcleod and @agodemar.
The PR is merged.

@bcoconni bcoconni deleted the NRLMSIS00 branch July 26, 2023 13:45
@rickechler
Copy link

Hi, after these changes were merged, I was unable to build JSBSimForUnreal.sln. Got the error that FGMSISData.cpp was missing from src/models/atmosphere/. When I reverted, I was able to build. Thanks!
image

@bcoconni
Copy link
Member Author

@rickechler, this should now be fixed by the commit 8a807a7.

bcoconni added a commit to bcoconni/jsbsim that referenced this pull request Aug 26, 2023
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

Successfully merging this pull request may close these issues.

4 participants