skrf.tlineFunctions.distance_2_electrical_length

skrf.tlineFunctions.distance_2_electrical_length(gamma, f, d, deg=False)

Calculates the electrical length of a section of transmission line.

\[\theta = \gamma(f) \cdot d\]
Parameters:
  • gamma (function) – propagation constant function, which takes frequency in hz as a sole argument. see Notes.
  • l (number or array-like) – length of line, in meters
  • f (number or array-like) – frequency at which to calculate
  • deg (Boolean) – return in degrees or not.
Returns:

theta – electrical length in radians or degrees, depending on value of deg.

Return type:

number or array-like

See also

electrical_length_2_distance()
opposite conversion

Notes

the convention has been chosen that forward propagation is represented by the positive imaginary part of the value returned by the gamma function