twpasolver.models.transmission_lines module#

Transmission line models.

pydantic model twpasolver.models.transmission_lines.LosslessTL[source]#

Bases: TwoPortModel

Model 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"
   ]
}

Fields:
field name: Literal['LosslessTL'] = 'LosslessTL'#
field l: float [Required]#

Length of the line.

Constraints:
  • ge = 0

field L: float [Required]#

Characteristic inductance of the line.

Constraints:
  • ge = 0

field C: float [Required]#

Characteristic capacitance of the line.

Constraints:
  • ge = 0

classmethod from_z_vp(Z0: float, vp: float, l: float) → LosslessTL[source]#

Build the line from characteristic impedance Z0, phase velocity vp and length l.

property Z0: float#

Characteristic impedance sqrt(L / C).

property vp: float#

Phase velocity 1 / sqrt(L C).

single_abcd(freqs: ndarray) → ABCDArray[source]#

ABCD matrices of the line.