rizer.electrical_model.components.cable#

Classes#

IdealCable

Ideal transmission line.

Functions#

get_cable_from_input(→ IdealCable)

Create an IdealCable object from the input dictionary.

Module Contents#

class rizer.electrical_model.components.cable.IdealCable(L: float, Z_c: float, c: float)#

Ideal transmission line.

The transmission line is defined by its length, impedance and wave velocity.

The transmission line is assumed to be ideal, meaning that there is no loss in the line and that the wave velocity is constant.

Parameters:
  • L (float) – Length of the transmission line in meters.

  • Z_c (float) – Characteristic impedance of the transmission line in Ohm.

  • c (float) – Wave velocity in the transmission line in m/s.

Notes

For an ideal transmission line, the voltage and current satisfy the wave equation (or telegrapher’s equation without loss):

\[\begin{split}\begin{align} \frac{\partial^2 V}{\partial t^2}(x, t) & = c^2 \frac{\partial^2 V}{\partial x^2}(x, t) \\ \frac{\partial^2 I}{\partial t^2}(x, t) & = c^2 \frac{\partial^2 I}{\partial x^2}(x, t) \end{align}\end{split}\]

where:

  • \(V\) is the voltage in Volt,

  • \(I\) is the current in Ampere,

  • \(c\) is the wave velocity in m/s,

  • \(x\) is the position along the transmission line in meter,

  • \(t\) is the time in second.

L: float#

Length of the transmission line in meters.

Z_c: float#

Characteristic impedance of the transmission line in Ohm.

c: float#

Wave velocity in the transmission line in m/s.

rizer.electrical_model.components.cable.get_cable_from_input(cable_input: dict[str, str | float]) → IdealCable#

Create an IdealCable object from the input dictionary.

Parameters:

cable_input (dict) –

A dictionary containing the parameters of the cable. Expected keys are:

  • ”length”: Length of the cable in meters.

  • ”impedance”: Characteristic impedance of the cable in Ohms.

  • ”wave_propagation_speed”: Wave propagation speed in the cable in m/s.

Returns:

An instance of the IdealCable class initialized with the parameters from the input dictionary.

Return type:

IdealCable