Repository navigation
Improved mass iteration schemes #143
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
Open
WyattGiroux
wants to merge
4
commits into
MIT-LAE:main
Choose a base branch
from
WyattGiroux:improved_mass_iter
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| # Iterating Fuel Mass During Trajectory Simulation | ||
|
|
||
| The v0 implementation of mass iteration in the new AEIC is based on a simple naive correction with a set maximum number of iteration. In this case, the mass residual is specified as the actual fuel burned over the predicted total fuel mass: | ||
|
|
||
| $$ | ||
| \delta = \frac{\text{Actual Fuel Burn} - M_f}{M_f} | ||
| $$ | ||
|
|
||
| This correction can be improved using an approximation from the Breguet range equation. Assuming the aerodynamic and engine properties are negligibly changed by the mass variation, the original `_fly_iteration` call used $\delta$ percent more fuel than was loaded and flew a range, $R$: | ||
|
|
||
| $$ | ||
| R \propto -c^*\ln\bigg(1 - \frac{M_f}{M_0}(1+\delta)\bigg) | ||
| $$ | ||
|
|
||
| We call the initial iteration's fuel-to-initial mass fraction $\lambda$ such that: | ||
|
|
||
| $$ | ||
| R \propto -c^*\ln\bigg(1 - \lambda(1+\delta)\bigg) | ||
| $$ | ||
|
|
||
| We want to fly the same mission (same range) with some additional amount of fuel relative to the initial prediction, $\Delta = \text{Additional Fuel}/M_f$. This would correspond to: | ||
|
|
||
| $$ | ||
| R \propto -c^*\ln\bigg(1 - \frac{1 + \Delta}{1/\lambda + \Delta}\bigg) | ||
| $$ | ||
|
|
||
| Again, we assume the aero and engine properties remain constant such that $c^*\equiv const$. Using this, we set the ranges equal and get: | ||
|
|
||
| $$ | ||
| 1-\lambda(1+\delta) = 1 - \frac{1 +\Delta}{1/\lambda + \Delta} | ||
| $$ | ||
|
|
||
| $$ | ||
| \frac{1 + \Delta}{1/\lambda + \Delta} = \lambda(1+\delta) | ||
| $$ | ||
|
|
||
| $$ | ||
| 1 + \Delta = \bigg(\frac{1}{\lambda} + \Delta\bigg)\lambda(1 + \delta) | ||
| $$ | ||
|
|
||
| $$ | ||
| 1 + \Delta = (1 + \lambda\Delta)(1 + \delta) | ||
| $$ | ||
|
|
||
| $$ | ||
| 1 + \Delta = 1 + \lambda\Delta + \delta + \delta\lambda\Delta | ||
| $$ | ||
|
|
||
| $$ | ||
| \Delta(1 - \lambda - \delta\lambda) = \delta | ||
| $$ | ||
|
|
||
| $$ | ||
| \Delta = \frac{\delta}{1 - \lambda(1 + \delta)} | ||
| $$ | ||
|
|
||
| In the naive approach, we simply set $\Delta = \delta$. The difference between these methods is shown in the figure below: | ||
|
|
||
| ```{image} ../../_static/Naive-vs-rangecorr.png | ||
| :align: center | ||
| ``` | ||
|
|
||
| We see that for cases where additional fuel is needed to complete the mission ($\delta > 0$), we must add more fuel than the naive approach suggests. Conversely, for missions with too much initial fuel ($\delta<0$), we can remove more fuel than predicted by the naive method. | ||
|
|
||
| However, when testing these implementations in `notebooks/mass_iteration.ipynb`, the range-corrected method was found to be overshooting the correction, leading to increased iterations. To address this, a simple arithmetic average of the naive and range-corrected methods is preferred. |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean "lambda".