physics module
Define useful relations.
- powers_to_reflection(forward_power, reflected_power, name, warn_reflected_higher_than_forward=True, warn_gamma_too_close_to_unity=True, tol=0.05)[source]
Compute the reflection coefficient \(R\).
We use the definition:
\[R = \frac{V_r}{V_f} = \sqrt{\frac{P_r}{P_f}}\]
- diff(data, name)[source]
Return
datadifferential. Add a nan at the start.Currently used for
DiffPenningcreation.
- reflection_to_swr(reflection_coefficient, name='')[source]
- Overloads:
reflection_coefficient (NDArray[np.float64]), name (str) → pd.Series
reflection_coefficient (float), name (str) → float
Compute the \(SWR\).
We use the definition:
\[SWR = \frac{1 + R}{1 - R}\]where \(R\) is the reflection coefficient.