How can I connect a Simulink wind-generator subsystem to the Simscape Electrical IEEE-39 Bus example? (Simulink-PS Converter + Controlled Voltage Source still won’t connect)
35 views (last 30 days)
Show older comments
I’m trying to replace one synchronous generator in MathWorks’ IEEE-39 Bus System (Simscape Electrical Specialized Power Systems, i.e., the blue-line network with powergui) with a simple wind-generator subsystem that I built in Simulink.
What I tried
- Inside the wind subsystem I produce 3-phase voltages/currents (abc).
- I used Three-Phase V-I Measurement to get Vabc/Iabc, then Simulink-PS Converter + Controlled Voltage Source to drive the network.
- I attempted to connect that controlled source to the generator connection port (ConnGen10) / bus block at the corresponding bus (e.g., Bus30) in the 39-bus model.
Issues / errors
- I get “Connection … is invalid because the ports are not compatible” when wiring my controlled source to the bus.
- In other trials I hit a “Solver Configuration … block is in an algebraic loop” error.
- Visually, my source has Simscape Foundation electrical conserving ports, while the IEEE-39 model uses Specialized Power Systems blue connectors and single “group” three-phase ports on generator subsystems.
What I’m trying to achieve
- Replace one generator (e.g., Gen10@Bus30) with a wind source and run the standard 39-bus contingency/fault studies—keeping the rest of the example unchanged.
- I’m happy to generate three-phase voltage/current from Simulink or from Simscape blocks; I just need the correct interface into the SPS network.
Questions
- What is the correct interface block/approach to inject a 3-phase source into the Specialized Power Systems bus from a Simulink/Simscape subsystem?
- Do I need the Specialized Power Systems → Controlled Three-Phase Voltage Source (blue connectors) instead of the Foundation Controlled Voltage Source?
- Or should I use one of the Simscape–SPS interface blocks (Current/Voltage Simscape Interface)?
- Is it possible to connect directly to the single blue “group” port (ConnGen##) used in the example generator subsystems, or should I expose explicit A-B-C ports and connect there?
- Any guidance on avoiding the algebraic-loop error when inserting the interface?
Environment
- Simulink / Simscape Electrical (Specialized Power Systems).
- Power system runs with powergui (Continuous).
- (Release: please see “Release” field.)
I’ve attached screenshots of the generator subsystem, my wind subsystem, and the failing connection. A minimal model that reproduces the error is available if needed.
Thanks in advance for pointing me to the right interface and block set to make this connection work.
0 Comments
Answers (1)
Sabin
on 5 Nov 2025 at 20:33
It is not possible to directly connect blocks from the two technologies. Mixing two different technologies the solver may run into difficulties. Since R2024b, IEEE 39-Bus System example is available in Simscape Electrical and can be used as a starting point.
0 Comments
See Also
Categories
Find more on Magnetic Elements 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!