Closed carlosbislip closed 5 years ago
Hi Carlos,
Could you add a link to the Github repo with the code you are using to generate this?
Hi Carlos,
Could you add a link to the Github repo with the code you are using to generate this?
Done! Added as edit #1. Thanks!
Hi Carlos,
Try removing all accelerations from your list of dependent variables, and run again. I know you want to save them, but this will help to track down the problem,
Dominic
Followed your suggestion. Trying to propagate mass yields the following:
libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: Error when making environment model update settings, could not find ephemeris of body Vehicle Abort trap: 6
Without mass propagation, the simulation runs to completion. Similar to before, it seems as thrust does not occur.
Im not sure why you reach the conclusion that there is no thrust. I think the error is caused by the fact that the total_aerodynamic_g_load_variable dependnet variable does not have a secondary body, see:
Absolutely right! My thrust issue was elsewhere. However, I am still unable to propagate mass.
Thr problem with the mass propagation can be solved (-ish), by turning the throw.... of this error into a std::cerr (printing the error, but not terminating the program). Alternatively, it should also work if you use:
bodyMap[ "Spaceplane" ]->setEphemeris(
std::make_shared< ephemerides::TabulatedCartesianEphemeris< > >(
std::shared_ptr< interpolators::OneDimensionalInterpolator< double, Eigen::Vector6d > >( ), "Earth" ) );
What I think is going on is the following:
Either one of the fixes I give above should work. Let me know if it works out,
Best,
Dominic
I implemented the code snippet you provided. I placed it AFTER setting the global frame.
setGlobalFrameBodyEphemerides( bodyMap, "SSB", "J2000" );
Mass is propagated and I can print out the mass-rate dependent variable.
Thanks!
Great!
For the record, I think I fixed the problem in a 'proper' way, see:
https://github.com/DominicDirkx/tudat/commit/120ad3fcf8e6ce322e2f7e4eda1c65e1cbf4861f
However, I'd suggest leaving well enough alone, and just using the code you have now :)
The following error is produced when using FromFunctionThrustMagnitudeSettings and propagating mass through MultiTypePropagatorSettings.
If mass propagation if obviated, effectively passing only TranslationalStatePropagatorSettings , I am able to identify an additional issue through the declaration of various dependent variables.
I traversed through the code and added some terminal printouts in various places in order to compare the problematic items.
You will see that various items are empty. For instance, the secondaryBody of both _mach_number_dependentvariable and _airspeed_dependentvariable. I am ignorant as to if this is by design within the code. However, I am certain that the accelerations all have to have a body that exerts an acceleration, field for which is empty.
My issues, however, could be due to improper settings. Especially due to the recent TUDAT updates.
EDIT #1: Per Dominic's comment, link to repository that generates this error: HERE