Transformer
The object that describes how to configure a transformer primitive.
Example
flux.on("setup", () => {
flux.simulationModel = {
type: "transformer",
inductance: 4,
ratio: 0.5,
polarity: 0,
couplingCoefficient: 0.99,
map_first_winding_A_to_terminal_uid: "primary_input_A",
map_first_winding_B_to_terminal_uid: "primary_input_B",
map_second_winding_A_to_terminal_uid: "secondary_output_A",
map_second_winding_B_to_terminal_uid: "secondary_output_B"
}
})
Fields
Name | Type | Description |
---|---|---|
type | Readonly | The type of this object, represented by the string literal transformer. |
inductance | number | (H) Mutual inductance of primary and secondary coil. Unit is Henry. |
ratio | number | Ratio is the number of turns of the primary winding divided by the number of turns of the secondary coil. i.e
A value of 0.5 will produce just half the voltage output. This is step-down transformer.
A value of 2 will produce just twice the voltage output. This is step-up transformer. |
polarity | boolean (1 or 0) | The transformer polarity indication: Subtractive polarity (0) Additive polarity (1) |
couplingCoefficient | number | The fraction of magnetic flux produced by the current in primary coil that links with the secondary coil. Default value is 0.99. |
map_first_winding_A_to_terminal_uid | Readonly<string> | The terminal ID corresponding to the primary winding first input. |
map_first_winding_B_to_terminal_uid | Readonly<string> | The terminal ID corresponding to the primary winding second input. |
map_second_winding_A_to_terminal_uid | Readonly<string> | The terminal ID corresponding to the secondary coil first output. |
map_second_winding_B_to_terminal_uid | Readonly<string> | The terminal ID corresponding to the secondary coil first output. |
Was this page helpful?