Three-Phase Custom Zigzag Transformer
This example shows two different ways to create a custom transformer component. The first uses built-in library blocks to lay out the magnetic circuit as a masked Simulink® subsystem. The second builds a custom Simscape™ component using the Simscape language.
To view the Simscape language source code, double-click on the Custom Zigzag transformer (Language) block and then click on the hyperlink 'Source code'.
The transformer is implemented with a zigzag primary, 1 o'clock delta secondary and wye secondary winding. The phase offset between the zigzag and wye windings can be specified via a block mask parameter.
Model
Simulation Results from Simscape Logging
The plots below show the results for two different ways to create a custom transformer component. One using built-in library blocks to lay out the magnetic circuit as a masked Simulink® subsystem and other creating a Simscape™ component in Simscape language.