twpasolver.models.rf_functions module#
Compiled functions for components impedance and abcd matrices.
- twpasolver.models.rf_functions.inductance(freqs: ndarray[Any, dtype[float64]], L: float) ndarray[Any, dtype[complex128]][source]#
Calculate the impedance of an inductance as a function of frequency.
- Parameters:
freqs (FloatArray) – Array of frequencies.
L (float) – Inductance value.
- Returns:
Impedance of the inductance.
- Return type:
np.ndarray
- twpasolver.models.rf_functions.capacitance(freqs: ndarray[Any, dtype[float64]], C: float) ndarray[Any, dtype[complex128]][source]#
Calculate the impedance of a capacitor as a function of frequency.
- Parameters:
freqs (FloatArray) – Array of frequencies.
C (float) – Capacitance value.
- Returns:
Impedance of the capacitor.
- Return type:
np.ndarray
- twpasolver.models.rf_functions.stub(freqs: ndarray[Any, dtype[float64]], L: float, C: complex, length: float, open: bool = True) ndarray[Any, dtype[complex128]][source]#
Calculate the impedance of a stub as a function of frequency.
- twpasolver.models.rf_functions.parallel_admittance_abcd(Y: ndarray[Any, dtype[complex128]]) ndarray[Any, dtype[complex128]][source]#
Calculate the ABCD matrix of a parallel admittance.
- Parameters:
Y (ComplexArray) – Array of admittance values.
- Returns:
ABCD matrix of the parallel admittance.
- Return type:
np.ndarray
- twpasolver.models.rf_functions.series_impedance_abcd(Z: ndarray[Any, dtype[complex128]]) ndarray[Any, dtype[complex128]][source]#
Calculate the ABCD matrix of a series impedance.
- Parameters:
Z (ComplexArray) – Array of impedance values.
- Returns:
ABCD matrix of the series impedance.
- Return type:
np.ndarray
- twpasolver.models.rf_functions.lossless_line_abcd(freqs: ndarray[Any, dtype[float64]], C: float, L: float, l: float) ndarray[Any, dtype[complex128]][source]#
Calculate the ABCD matrix of a lossless transmission line.
- twpasolver.models.rf_functions.LCLf_abcd(freqs: ndarray[Any, dtype[float64]], C: float, L: float, Lf: float) ndarray[Any, dtype[complex128]][source]#
Calculate the ABCD matrix of an LCLf cell model.