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 (Simscape 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.