twpasolver.models.transmission_lines module#
Module containing models for transmission lines.
This module provides classes and functions to model various types of transmission lines.
- pydantic model twpasolver.models.transmission_lines.LosslessTL[source]#
Bases:
TwoPortModelModel for a lossless transmission line.
Show JSON schema
{ "title": "LosslessTL", "description": "Model for a lossless transmission line.", "type": "object", "properties": { "Z0_ref": { "default": 50.0, "description": "Reference line impedance of the two-port component.", "title": "Z0 Ref", "type": "number" }, "N": { "default": 1, "description": "Number of repetitions of the model in the computed abcd matrix.", "minimum": 0, "title": "N", "type": "integer" }, "name": { "const": "LosslessTL", "default": "LosslessTL", "title": "Name", "type": "string" }, "l": { "description": "Length of the line.", "minimum": 0, "title": "L", "type": "number" }, "L": { "description": "Characteristic inductance of the line.", "minimum": 0, "title": "L", "type": "number" }, "C": { "description": "Characteristic capacitance of the line.", "minimum": 0, "title": "C", "type": "number" } }, "required": [ "l", "L", "C" ] }
- classmethod from_z_vp(Z0: float, vp: float, l: float) LosslessTL[source]#
Initialize the model from impedance and line propagation constant.
- Parameters:
Z0 (NonNegativeFloat) – Characteristic impedance of the line.
vp (NonNegativeFloat) – Phase velocity of the line.
l (NonNegativeFloat) – Length of the transmission line.
- Returns:
An instance of the LosslessTL class.
- Return type:
- property Z0: float#
Compute the characteristic impedance of the line.
- Returns:
The characteristic impedance.
- Return type:
NonNegativeFloat