Skip to content

Commit

Permalink
Merge pull request #57 from giovannifacchinetti99/main
Browse files Browse the repository at this point in the history
Correction to the note in the SRP and adding of the J4 term in the doc files
  • Loading branch information
bluescarni authored Nov 17, 2023
2 parents 8806dc7 + 23e4da3 commit d06707e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions cascade.py/dynamics/_simple_earth.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ def simple_earth(
.. note::
If *drag* is active, the BSTAR coefficient (SI units) of the object must be passed as a first
simulation parameter in :class:`~cascade.sim`, if *SRP* is active, the object area (SI units) must be also passed as a
simulation parameter (after BSTAR if present).
simulation parameter in :class:`~cascade.sim`, if *SRP* is active, the term Cr*AOM (SI units) must be also passed as a
simulation parameter (after BSTAR if present), being Cr the coefficient of reflectivity of the spacecraft and AOM the
area-to-mass-ratio.
Args:
Expand Down Expand Up @@ -254,6 +255,7 @@ def simple_earth(
Fm = phi_mp + phi_ma + phi_ms + (np.pi / 180) * 93.27283
Dm = phi_mp + phi_ma - phi_m + (np.pi / 180) * 297.85027

# Careful, here we multiply by 1000 as the units are meters and not km as in the original paper where the eqs were presented.
rm = (
385000
- 20905 * hy.cos(lm)
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/20yearsofLEO_coll.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
"metadata": {},
"outputs": [],
"source": [
"dyn = csc.dynamics.simple_earth(J2=True, J3=False, C22S22=True,sun=False,moon=False,SRP=False,drag=True)"
"dyn = csc.dynamics.simple_earth(J2=True, J3=False, J4=False, C22S22=True,sun=False,moon=False,SRP=False,drag=True)"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/oneweekofLEO_conj.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"metadata": {},
"outputs": [],
"source": [
"dyn = csc.dynamics.simple_earth(J2=True, J3 = False, C22S22=True, sun=False,moon=False,SRP=False,drag=True)"
"dyn = csc.dynamics.simple_earth(J2=True, J3 = False, J4=False, C22S22=True, sun=False,moon=False,SRP=False,drag=True)"
]
},
{
Expand Down

0 comments on commit d06707e

Please sign in to comment.