Skip to content

Commit

Permalink
deploy: b5a2d4f
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanwweber committed Mar 27, 2024
1 parent 1d65c2a commit 8c83ed2
Show file tree
Hide file tree
Showing 10 changed files with 82 additions and 80 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ mu = 3.986004418E5 # km**3/s**2
r_p = 6378 + 500 # km
r_a = 6378 + 5000 # km
R_E = 6378 # km
e = (r_a - r_p) / (r_p + r_a)
a = (r_a + r_p) / 2
T = 2 * np.pi / np.sqrt(mu) * a**(3/2)
Expand Down
6 changes: 3 additions & 3 deletions classical-orbital-elements/classical-orbital-elements.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions interplanetary-maneuvers/planetary-arrival-capture.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion orbital-maneuvers/nonimpulsive-maneuver-example.html
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ <h2>Solution<a class="headerlink" href="#solution" title="Link to this heading">
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[&lt;matplotlib.lines.Line2D at 0x7f90c44ae060&gt;]
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[&lt;matplotlib.lines.Line2D at 0x7f610d2c8ad0&gt;]
</pre></div>
</div>
<img alt="../_images/4a4c7edd0df96fda916598b1598a6bf58f661fd4e6c360268ceeb398e28de359.png" src="../_images/4a4c7edd0df96fda916598b1598a6bf58f661fd4e6c360268ceeb398e28de359.png" />
Expand Down
8 changes: 4 additions & 4 deletions orbital-maneuvers/plane-change-maneuvers.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

46 changes: 23 additions & 23 deletions the-n-body-problem/lagrange-points.html
Original file line number Diff line number Diff line change
Expand Up @@ -800,42 +800,42 @@ <h2>Collinear Lagrange Points<a class="headerlink" href="#collinear-lagrange-poi
</style>

<div class="animation">
<img id="_anim_img5f5f7fbbffc24a16a45b4058278a7482">
<img id="_anim_img62e00e23455f454c80663fb35688be12">
<div class="anim-controls">
<input id="_anim_slider5f5f7fbbffc24a16a45b4058278a7482" type="range" class="anim-slider"
<input id="_anim_slider62e00e23455f454c80663fb35688be12" type="range" class="anim-slider"
name="points" min="0" max="1" step="1" value="0"
oninput="anim5f5f7fbbffc24a16a45b4058278a7482.set_frame(parseInt(this.value));">
oninput="anim62e00e23455f454c80663fb35688be12.set_frame(parseInt(this.value));">
<div class="anim-buttons">
<button title="Decrease speed" aria-label="Decrease speed" onclick="anim5f5f7fbbffc24a16a45b4058278a7482.slower()">
<button title="Decrease speed" aria-label="Decrease speed" onclick="anim62e00e23455f454c80663fb35688be12.slower()">
<i class="fa fa-minus"></i></button>
<button title="First frame" aria-label="First frame" onclick="anim5f5f7fbbffc24a16a45b4058278a7482.first_frame()">
<button title="First frame" aria-label="First frame" onclick="anim62e00e23455f454c80663fb35688be12.first_frame()">
<i class="fa fa-fast-backward"></i></button>
<button title="Previous frame" aria-label="Previous frame" onclick="anim5f5f7fbbffc24a16a45b4058278a7482.previous_frame()">
<button title="Previous frame" aria-label="Previous frame" onclick="anim62e00e23455f454c80663fb35688be12.previous_frame()">
<i class="fa fa-step-backward"></i></button>
<button title="Play backwards" aria-label="Play backwards" onclick="anim5f5f7fbbffc24a16a45b4058278a7482.reverse_animation()">
<button title="Play backwards" aria-label="Play backwards" onclick="anim62e00e23455f454c80663fb35688be12.reverse_animation()">
<i class="fa fa-play fa-flip-horizontal"></i></button>
<button title="Pause" aria-label="Pause" onclick="anim5f5f7fbbffc24a16a45b4058278a7482.pause_animation()">
<button title="Pause" aria-label="Pause" onclick="anim62e00e23455f454c80663fb35688be12.pause_animation()">
<i class="fa fa-pause"></i></button>
<button title="Play" aria-label="Play" onclick="anim5f5f7fbbffc24a16a45b4058278a7482.play_animation()">
<button title="Play" aria-label="Play" onclick="anim62e00e23455f454c80663fb35688be12.play_animation()">
<i class="fa fa-play"></i></button>
<button title="Next frame" aria-label="Next frame" onclick="anim5f5f7fbbffc24a16a45b4058278a7482.next_frame()">
<button title="Next frame" aria-label="Next frame" onclick="anim62e00e23455f454c80663fb35688be12.next_frame()">
<i class="fa fa-step-forward"></i></button>
<button title="Last frame" aria-label="Last frame" onclick="anim5f5f7fbbffc24a16a45b4058278a7482.last_frame()">
<button title="Last frame" aria-label="Last frame" onclick="anim62e00e23455f454c80663fb35688be12.last_frame()">
<i class="fa fa-fast-forward"></i></button>
<button title="Increase speed" aria-label="Increase speed" onclick="anim5f5f7fbbffc24a16a45b4058278a7482.faster()">
<button title="Increase speed" aria-label="Increase speed" onclick="anim62e00e23455f454c80663fb35688be12.faster()">
<i class="fa fa-plus"></i></button>
</div>
<form title="Repetition mode" aria-label="Repetition mode" action="#n" name="_anim_loop_select5f5f7fbbffc24a16a45b4058278a7482"
<form title="Repetition mode" aria-label="Repetition mode" action="#n" name="_anim_loop_select62e00e23455f454c80663fb35688be12"
class="anim-state">
<input type="radio" name="state" value="once" id="_anim_radio1_5f5f7fbbffc24a16a45b4058278a7482"
<input type="radio" name="state" value="once" id="_anim_radio1_62e00e23455f454c80663fb35688be12"
>
<label for="_anim_radio1_5f5f7fbbffc24a16a45b4058278a7482">Once</label>
<input type="radio" name="state" value="loop" id="_anim_radio2_5f5f7fbbffc24a16a45b4058278a7482"
<label for="_anim_radio1_62e00e23455f454c80663fb35688be12">Once</label>
<input type="radio" name="state" value="loop" id="_anim_radio2_62e00e23455f454c80663fb35688be12"
checked>
<label for="_anim_radio2_5f5f7fbbffc24a16a45b4058278a7482">Loop</label>
<input type="radio" name="state" value="reflect" id="_anim_radio3_5f5f7fbbffc24a16a45b4058278a7482"
<label for="_anim_radio2_62e00e23455f454c80663fb35688be12">Loop</label>
<input type="radio" name="state" value="reflect" id="_anim_radio3_62e00e23455f454c80663fb35688be12"
>
<label for="_anim_radio3_5f5f7fbbffc24a16a45b4058278a7482">Reflect</label>
<label for="_anim_radio3_62e00e23455f454c80663fb35688be12">Reflect</label>
</form>
</div>
</div>
Expand All @@ -845,9 +845,9 @@ <h2>Collinear Lagrange Points<a class="headerlink" href="#collinear-lagrange-poi
/* Instantiate the Animation class. */
/* The IDs given should match those used in the template above. */
(function() {
var img_id = "_anim_img5f5f7fbbffc24a16a45b4058278a7482";
var slider_id = "_anim_slider5f5f7fbbffc24a16a45b4058278a7482";
var loop_select_id = "_anim_loop_select5f5f7fbbffc24a16a45b4058278a7482";
var img_id = "_anim_img62e00e23455f454c80663fb35688be12";
var slider_id = "_anim_slider62e00e23455f454c80663fb35688be12";
var loop_select_id = "_anim_loop_select62e00e23455f454c80663fb35688be12";
var frames = new Array(100);

frames[0] = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABLAAAAOECAYAAACxbcj6AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90\
Expand Down Expand Up @@ -140851,7 +140851,7 @@ <h2>Collinear Lagrange Points<a class="headerlink" href="#collinear-lagrange-poi
/* set a timeout to make sure all the above elements are created before
the object is initialized. */
setTimeout(function() {
anim5f5f7fbbffc24a16a45b4058278a7482 = new Animation(frames, img_id, slider_id, 200.0,
anim62e00e23455f454c80663fb35688be12 = new Animation(frames, img_id, slider_id, 200.0,
loop_select_id);
}, 0);
})()
Expand Down
46 changes: 23 additions & 23 deletions the-orbit-equation/hyperbolic-trajectories.html
Original file line number Diff line number Diff line change
Expand Up @@ -698,42 +698,42 @@ <h1>Hyperbolic Trajectories (<span class="math notranslate nohighlight">\(e &gt;
</style>

<div class="animation">
<img id="_anim_imgfcb3084de71542988c2c6130c236bb42">
<img id="_anim_img97932e5bc22044c4bad007a71e3f65fa">
<div class="anim-controls">
<input id="_anim_sliderfcb3084de71542988c2c6130c236bb42" type="range" class="anim-slider"
<input id="_anim_slider97932e5bc22044c4bad007a71e3f65fa" type="range" class="anim-slider"
name="points" min="0" max="1" step="1" value="0"
oninput="animfcb3084de71542988c2c6130c236bb42.set_frame(parseInt(this.value));">
oninput="anim97932e5bc22044c4bad007a71e3f65fa.set_frame(parseInt(this.value));">
<div class="anim-buttons">
<button title="Decrease speed" aria-label="Decrease speed" onclick="animfcb3084de71542988c2c6130c236bb42.slower()">
<button title="Decrease speed" aria-label="Decrease speed" onclick="anim97932e5bc22044c4bad007a71e3f65fa.slower()">
<i class="fa fa-minus"></i></button>
<button title="First frame" aria-label="First frame" onclick="animfcb3084de71542988c2c6130c236bb42.first_frame()">
<button title="First frame" aria-label="First frame" onclick="anim97932e5bc22044c4bad007a71e3f65fa.first_frame()">
<i class="fa fa-fast-backward"></i></button>
<button title="Previous frame" aria-label="Previous frame" onclick="animfcb3084de71542988c2c6130c236bb42.previous_frame()">
<button title="Previous frame" aria-label="Previous frame" onclick="anim97932e5bc22044c4bad007a71e3f65fa.previous_frame()">
<i class="fa fa-step-backward"></i></button>
<button title="Play backwards" aria-label="Play backwards" onclick="animfcb3084de71542988c2c6130c236bb42.reverse_animation()">
<button title="Play backwards" aria-label="Play backwards" onclick="anim97932e5bc22044c4bad007a71e3f65fa.reverse_animation()">
<i class="fa fa-play fa-flip-horizontal"></i></button>
<button title="Pause" aria-label="Pause" onclick="animfcb3084de71542988c2c6130c236bb42.pause_animation()">
<button title="Pause" aria-label="Pause" onclick="anim97932e5bc22044c4bad007a71e3f65fa.pause_animation()">
<i class="fa fa-pause"></i></button>
<button title="Play" aria-label="Play" onclick="animfcb3084de71542988c2c6130c236bb42.play_animation()">
<button title="Play" aria-label="Play" onclick="anim97932e5bc22044c4bad007a71e3f65fa.play_animation()">
<i class="fa fa-play"></i></button>
<button title="Next frame" aria-label="Next frame" onclick="animfcb3084de71542988c2c6130c236bb42.next_frame()">
<button title="Next frame" aria-label="Next frame" onclick="anim97932e5bc22044c4bad007a71e3f65fa.next_frame()">
<i class="fa fa-step-forward"></i></button>
<button title="Last frame" aria-label="Last frame" onclick="animfcb3084de71542988c2c6130c236bb42.last_frame()">
<button title="Last frame" aria-label="Last frame" onclick="anim97932e5bc22044c4bad007a71e3f65fa.last_frame()">
<i class="fa fa-fast-forward"></i></button>
<button title="Increase speed" aria-label="Increase speed" onclick="animfcb3084de71542988c2c6130c236bb42.faster()">
<button title="Increase speed" aria-label="Increase speed" onclick="anim97932e5bc22044c4bad007a71e3f65fa.faster()">
<i class="fa fa-plus"></i></button>
</div>
<form title="Repetition mode" aria-label="Repetition mode" action="#n" name="_anim_loop_selectfcb3084de71542988c2c6130c236bb42"
<form title="Repetition mode" aria-label="Repetition mode" action="#n" name="_anim_loop_select97932e5bc22044c4bad007a71e3f65fa"
class="anim-state">
<input type="radio" name="state" value="once" id="_anim_radio1_fcb3084de71542988c2c6130c236bb42"
<input type="radio" name="state" value="once" id="_anim_radio1_97932e5bc22044c4bad007a71e3f65fa"
>
<label for="_anim_radio1_fcb3084de71542988c2c6130c236bb42">Once</label>
<input type="radio" name="state" value="loop" id="_anim_radio2_fcb3084de71542988c2c6130c236bb42"
<label for="_anim_radio1_97932e5bc22044c4bad007a71e3f65fa">Once</label>
<input type="radio" name="state" value="loop" id="_anim_radio2_97932e5bc22044c4bad007a71e3f65fa"
checked>
<label for="_anim_radio2_fcb3084de71542988c2c6130c236bb42">Loop</label>
<input type="radio" name="state" value="reflect" id="_anim_radio3_fcb3084de71542988c2c6130c236bb42"
<label for="_anim_radio2_97932e5bc22044c4bad007a71e3f65fa">Loop</label>
<input type="radio" name="state" value="reflect" id="_anim_radio3_97932e5bc22044c4bad007a71e3f65fa"
>
<label for="_anim_radio3_fcb3084de71542988c2c6130c236bb42">Reflect</label>
<label for="_anim_radio3_97932e5bc22044c4bad007a71e3f65fa">Reflect</label>
</form>
</div>
</div>
Expand All @@ -743,9 +743,9 @@ <h1>Hyperbolic Trajectories (<span class="math notranslate nohighlight">\(e &gt;
/* Instantiate the Animation class. */
/* The IDs given should match those used in the template above. */
(function() {
var img_id = "_anim_imgfcb3084de71542988c2c6130c236bb42";
var slider_id = "_anim_sliderfcb3084de71542988c2c6130c236bb42";
var loop_select_id = "_anim_loop_selectfcb3084de71542988c2c6130c236bb42";
var img_id = "_anim_img97932e5bc22044c4bad007a71e3f65fa";
var slider_id = "_anim_slider97932e5bc22044c4bad007a71e3f65fa";
var loop_select_id = "_anim_loop_select97932e5bc22044c4bad007a71e3f65fa";
var frames = new Array(200);

frames[0] = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABLAAAAOECAYAAACxbcj6AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90\
Expand Down Expand Up @@ -161828,7 +161828,7 @@ <h1>Hyperbolic Trajectories (<span class="math notranslate nohighlight">\(e &gt;
/* set a timeout to make sure all the above elements are created before
the object is initialized. */
setTimeout(function() {
animfcb3084de71542988c2c6130c236bb42 = new Animation(frames, img_id, slider_id, 200.0,
anim97932e5bc22044c4bad007a71e3f65fa = new Animation(frames, img_id, slider_id, 200.0,
loop_select_id);
}, 0);
})()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ <h2>Solution<a class="headerlink" href="#solution" title="Link to this heading">

<span class="n">r_p</span> <span class="o">=</span> <span class="mi">6378</span> <span class="o">+</span> <span class="mi">500</span> <span class="c1"># km</span>
<span class="n">r_a</span> <span class="o">=</span> <span class="mi">6378</span> <span class="o">+</span> <span class="mi">5000</span> <span class="c1"># km</span>
<span class="n">R_E</span> <span class="o">=</span> <span class="mi">6378</span> <span class="c1"># km</span>
<span class="n">e</span> <span class="o">=</span> <span class="p">(</span><span class="n">r_a</span> <span class="o">-</span> <span class="n">r_p</span><span class="p">)</span> <span class="o">/</span> <span class="p">(</span><span class="n">r_p</span> <span class="o">+</span> <span class="n">r_a</span><span class="p">)</span>
<span class="n">a</span> <span class="o">=</span> <span class="p">(</span><span class="n">r_a</span> <span class="o">+</span> <span class="n">r_p</span><span class="p">)</span> <span class="o">/</span> <span class="mi">2</span>
<span class="n">T</span> <span class="o">=</span> <span class="mi">2</span> <span class="o">*</span> <span class="n">np</span><span class="o">.</span><span class="n">pi</span> <span class="o">/</span> <span class="n">np</span><span class="o">.</span><span class="n">sqrt</span><span class="p">(</span><span class="n">mu</span><span class="p">)</span> <span class="o">*</span> <span class="n">a</span><span class="o">**</span><span class="p">(</span><span class="mi">3</span><span class="o">/</span><span class="mi">2</span><span class="p">)</span>
Expand Down
Loading

0 comments on commit 8c83ed2

Please sign in to comment.