Transformer
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:
| v1 | | L1 M | | i1' |
| | = | | | |
| v2 | | M L2 | | i2' |
L1, L2, and M are the primary, secondary, and coupling inductances respectively.
Parameters

| Name | Label | Description | Data Type | Valid Values |
|---|---|---|---|---|
mo_L1 | L1 | Primary inductance | Scalar | |
mo_L2 | L2 | Secondary inductance | Scalar | |
mo_M | M | Coupling inductance | Scalar |

| Name | Label | Description | Data Type | Valid Values |
|---|---|---|---|---|
mo_v1 | v1 | v1 | Structure | |
mo_v1/fixed | fixed | Cell of scalars | true | |
mo_v1/start | start | Cell of scalars | ||
mo_v2 | v2 | v2 | Structure | |
mo_v2/fixed | fixed | Cell of scalars | true | |
mo_v2/start | start | Cell of scalars | ||
mo_i1 | i1 | i1 | Structure | |
mo_i1/fixed | fixed | Cell of scalars | true | |
mo_i1/start | start | Cell of scalars | ||
mo_i2 | i2 | i2 | Structure | |
mo_i2/fixed | fixed | Cell of scalars | true | |
mo_i2/start | start | Cell of scalars | ||
mo_dv | dv | dv | Structure | |
mo_dv/fixed | fixed | Cell of scalars | true | |
mo_dv/start | start | Cell of scalars |
Ports
| Name | Type | Description | IO Type | Number |
|---|---|---|---|---|
p1 | implicit | Positive electrical pin of port 1 | input | 1 |
n1 | implicit | Negative electrical pin of port 1 | output | 1 |
p2 | implicit | Positive electrical pin of port 2 | input | 2 |
n2 | implicit | Negative electrical pin of port 2 | output | 2 |