- qspec.v_el ( u , q , m , v0 = 0 , relativistic = True )[source]
The velocity $v = \begin{cases}c\sqrt{1 - \left[\gamma(v_0) + qU / (mc^2)\right]^{-2}}, & \mathrm{True}\\ \sqrt{v_0^2 + 2qU / m}, & \mathrm{False}\end{cases}$
- Parameters:
-
- uarray_like
The electric potential difference $U$ added to the kinetic energy of a body with velocity
v0
(V).- qarray_like
The electric charge $q$ of the body (e).
- marray_like
The mass $m$ of the body (u).
- v0array_like
The initial velocity $v_0$ of the body (m/s).
- relativisticbool
The calculation is performed either relativistically (
True
) or classically (False
). The default isTrue
.
- Returns:
-
- outndarray
The velocity $v$ of the body with starting velocity
v0
, electric chargeq
and massm
after electrostatic acceleration with the voltageu
(m/s).