How do i connect the simscape-converter to the pm-synchronous-motor?

1 view (last 30 days)
Hey, i have some freaky problems with my model. At first, my English is not so good, so i hope you understand me.
To the model: I want to simulate a drivetrain with the components traction battery, inverter and pm-synchronous machine (all objects are from the simscape library). I regulate the machine with a current- and velocity-control. The velocity-control is feeded by an driving-cycle and the source for the engine is a three-phase-2-level-converter. The inverter get the gate-signals from a space vector pwm and is connected to the traction-battery (only a simple battery-model based on 400 V). All the control-objects work fine, because i tested it before.
Now to my problem: My whole model works, but only when i measure the line-to-line voltages at the output of my inverter. The results of it supply the pms-machine. Normally i want to feed the machine directly at the output of the inverter, but this doesn't work, because their is always an algebraic-loop-error. I solved this problem with memory-blocks in the feedbacks for my current- and velocity-control. After that, the model works, but really really slowly.
The simulation-time for a whole driving-cycle (nedc) was around 12 hours, but only for the model with the line-to-line voltages. The corrected model with the memory-blocks takes much more time! So i decided to built a model in simulink and simpower to test, whether their is an error in my model or not. Both models works fine without memory blocks und really quickly. It simulates 500 msec in one second real-time and this is acceptable, because i need only around 40 minutes to simulate a whole driving-cycle (1200 sec). The results of the speed, torque and currents are also correct, so my control and the other things works fine.
So why their is a problem with the simscape-models? I only want to connect the inverter-model of simscape to the pms-machine-model of simscpae. Normally i can live with the extra memory-blocks in the model, but not with this long simulation-time. I also tried the webinars to speed up the simulation time of models im simulink, but without success. Also impossible, i need to build the drivetrain in simscape not in simulink or other model-builder.
Maybe it's easier, when i send my model via email to somebody?! I hope somebody can help me, thanks a lot.
Best ragards,
Costen

Answers (1)

Sabin
Sabin on 20 Dec 2022
It seems that this issue was caused by the way of breaking the algebraic loop using a Memory block. For advice about how to properly break the algebraic loop, please refer to the following post:
Also, this MATLAB answer about algebraic loops in general might be helpful:

Communities

More Answers in the  Power Electronics Control

Categories

Find more on Electrical Systems 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!