vesc_sun_at_R

macro_lightning.parameters.vesc_sun_at_R(R)[source]

Escape velocity from the sun, starting at position R.

The Newtonian escape velocity from a spherical mass distribution, starting at a position r_0, is \(v_0=\sqrt{2gr_0}\). If this value is known at some position r0, than it is known at all R by virtue of ratios. We calculate this value for the sun relative to the known value at the earth – 42.1 km / s.

Parameters
RDistance or |Quantity|

From the sun.

Returns
vesc|Quantity|

Same shape as R

.. |Quantity| replace::class:Quantity