twpasolver.models package#
Models module.
One-port components (resistors, capacitors, inductors, stubs), transmission lines, TWPA cells and two-port arrays, including the TWPA model.
Imports#
- One-port models:
Resistance
Capacitance
Inductance
Stub
OnePortArray
- TWPA cells:
LCLfBaseCell
StubBaseCell
PORT_IN, PORT_OUT (ports of a nonlinear inductor, for
bloch_nl_elements())
- Two-port arrays and models:
TWPA
TwoPortArray
- Utility functions:
compose
Usage#
Networks are built by composing simpler components and expose impedance and frequency-response calculations. See the Tutorials page for more examples.
Example
import numpy as np
from twpasolver.models.oneport import Resistance, Capacitance
from twpasolver.models.twoportarrays import TwoPortArray
# Resistor and capacitor in series
resistor = Resistance(R=50)
capacitor = Capacitance(C=1e-12)
network = TwoPortArray(cells=[resistor, capacitor])
freqs = np.linspace(1e6, 1e9, 1000)
abcd_params = network.single_abcd(freqs)
Submodules#
- twpasolver.models.compose module
- twpasolver.models.modelarray module
- twpasolver.models.oneport module
- twpasolver.models.rf_functions module
- twpasolver.models.transmission_lines module
- twpasolver.models.twoportarrays module
- twpasolver.models.twpa_cells module