IdealTransformer
Ideal transformer
![]()
Library
Modelica/Electrical/QuasiStatic/SinglePhase/Ideal
Description
The ideal transformer is a two-port circuit element without magnetization. Voltages and currents are ideally transformed:
v1 = v2*n;i2 = -i1*n;
where n is a real number called the turns ratio.
Parameters

| Name | Label | Description | Data Type | Valid Values | 
|---|---|---|---|---|
mo_n  | n  | Ratio of primary to secondary voltage  | Scalar  | 

| Name | Label | Description | Data Type | Valid Values | 
|---|---|---|---|---|
mo__nmodifiers  | Number of Modifiers  | Specifies the number of modifiers  | Number  | |
mo__modifiers  | Modifiers  | Add new modifier  | Structure  | |
mo__modifiers/varname  | Variable name  | Cell of strings  | 'abs_v1'  | |
mo__modifiers/attribute  | Attribute  | Cell of strings  | 'start'  | |
mo__modifiers/value  | Value  | 
Ports
| Name | Type | Description | IO Type | Number | 
|---|---|---|---|---|
pin_p1  | implicit  | Primary positive pin  | input  | 1  | 
pin_p2  | implicit  | Secondary positive pin  | input  | 2  | 
pin_n1  | implicit  | Primary negative pin  | output  | 1  | 
pin_n2  | implicit  | Secondary negative pin  | output  | 2  |