Output values from the NRLMSISE-00 atmosphere model don't work in the same simulation
5 views (last 30 days)
Show older comments
Jeff Woolfe on 28 Apr 2015
Answered: Meysam Mahooti on 26 May 2021
For the purpose of a satellite orbit simulation I am using the NRLMSISE-00 atmosphere model from the Simulink Aerospace blockset to calculate the general density (output 6 out of 9 is the only output I use, the rest are terminated, including the temperature). The simulation runs fine and I recieve reasonable values when outputted directly to the workspace. The problem starts when I try and use the density value in the same simulation. When I do this the simulation never ends and stops running on the 17th iteration. I see this only when I cancel the simulation (ctrl+c). If I don't cancel the simulation it doesn't finish or show any errors. The output value is a 1X1XN array so I tried to convert the array to a standard 1XN array but it still made no difference. At the moment what I do is run the simulation on the atmosphere and save the output array, then run the rest of the simulation and use the saved values from the previous run, this is very time consuming and inefficient. Any ideas?
Meysam Mahooti on 26 May 2021
Find more on Reference Applications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!