Transformer with two ports
Library
Electrical/Analog/Basic
Description
The transformer is a two port. The left port voltage v1, left port current i1, right port voltage v2 and right port current i2 are connected by the following relation:

L1, L2, and M are the primary, secondary, and coupling inductances respectively.
Parameters

- L1 [H] : Primary inductance (L1): Scalar.
- L2 [H] : Secondary inductance (L2): Scalar.
- M [H] : Coupling inductance (M): Scalar.
Ports
- Port 1 at left position: implicit input fixedport numbered 1.
- Port 2 at left position: implicit input fixedport numbered 2.
- Port 1 at right position: implicit output fixedport numbered 1.
- Port 2 at right position: implicit output fixedport numbered 2.