irfpy.mars.bowshock
¶
Bow shock model by Vignes et al.
BowshockVignes
provides default bow shock modelBowshockVignesScaled
provides a bow shock model of your own scaling
- class irfpy.mars.bowshock.BowshockVignes[source]¶
Bases:
object
Vignes et al, (TBC) model for bow shock position.
>>> bsx, bsr = BowshockVignes.xr()
Conic curve (hyperbola) model with a formulation of
\[\begin{split}x &= R \cos\theta + x_0 \\ y &= R \sin\theta\end{split}\]with
\[R = \frac{L}{1+\epsilon\cos\theta}\]The parameters are
\[\begin{split}L &= 2.04 \\ \epsilon &= 1.03 \\ x_0 &= 0.64\end{split}\]in the unit of Martian radii.
- L = 2.04¶
- e = 1.03¶
- x0 = 0.64¶
- irfpy.mars.bowshock.BowshockVignesScaled(scale=1)[source]¶
Vignes et al., while scaled by changing the parameter L.
- Parameters:
scale – Default 1.
- Returns:
A Vignes model with scaled by the given scale.
10% bigger model is obtained as follows
>>> vig10 = BowshockVignesScaled(1.1) # 10% bigger model >>> x10, r10 = vig10.xr() >>> plt.plot(x10, r10) >>> vig10.inside(0, 2.7, 0) True
>>> x00, r00 = BowshockVignes.xr() >>> plt.plot(x00, r00) >>> BowshockVignes.inside(0, 2.7, 0) False