I am simulating the IEEE 6-bus system in Simulink with two DGs, but after adding breakers and CTs, the synchronous machine ports (E_pu, R, C)
12 views (last 30 days)
Show older comments
Prosper Diyani
on 26 Nov 2025 at 8:32
Commented: Prosper Diyani
on 19 Dec 2025 at 1:26
I am trying to simulate the IEEE 6-bus system in Simulink with two integrated DGs. I used simplified machines to model a diesel generator and a microturbine. When I run the load flow without connecting the ports (E_pu, R, C), the load flow converges. But after adding circuit breakers and a built-in CT found on the MathWorks website, I now get errors. When I remove the synchronous machines everything works, but with them included, I have problems.
I think I need to correctly configure these ports, but I am struggling to do it.
you can find the pdf of my model . I would appreciate help understanding how to correctly configure these ports. Thanks

0 Comments
Accepted Answer
Sabin
on 18 Dec 2025 at 15:11
Synchronous machines require proper initialization and electrical connections for the load flow to converge. For synchronous machine blocks specify the bus type and beginning values using the Initial Conditions settings. The available parameter targets depend on whether the block is configured for a swing, PV, or PQ bus. In the Initial Conditions settings:
- Set the Initialization option parameter to Set targets for load flow variables.
- Select a bus for the Source type parameter.
- Specify values for the related bus parameter.
- To avoid a simulation issue due to a nonoptimal minimum, in the Expected ranges settings, specify minimum and maximum values for the Internal source phase search range parameter.
For more information about how to perform a load flow analysis using Simscape electrical check this page:
More Answers (0)
See Also
Categories
Find more on Variable Initialization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!