Simscape opamp not working with common mode dc voltage bias
5 views (last 30 days)
Show older comments
I have built a dc-dc converter using SimPowerSystems. I am trying to construct the controller by using Opamp from the SimScape-->Electrical Systems library. Please see attached snapshot 'CommonModeProb'. When I run the simulation, it shows the error aas shown in attached file 'Error.png'. The error goes away if I run the same simulation bafter deleting the common mode voltage (circled in snapshot). Please advise why realising such a simple/basic circuit is showing error. I feel for an ideal opamp, the magnitude of dc common mode voltage should not matter!
With Regards,
Anubhav
0 Comments
Answers (1)
Sabin
on 24 Dec 2024
This error point to a Simulink-PS Converter block (Simulink-PS Converter2 in the model).
When simulating a model, you may need to provide time derivatives of some of the input signals, especially if you use an explicit solver. One way of providing the necessary input derivatives is by filtering the input through a low-pass filter. Input filtering makes the input signal smoother and generally improves model performance. The additional benefit is that the Simscape engine computes the time derivatives of the filtered input. The first-order filter provides one derivative, while the second-order filter provides the first and second derivatives. If you use input filtering, it is very important to select the appropriate value for the filter time constant.
The filter time constant controls the filtering of the input signal. The filtered input follows the true input but is smoothed, with a lag on the order of the time constant that you choose. Set the time constant to a value no larger than the smallest time interval in the system that interests you. If you choose a very small time constant, the filtered input signal is closer to the true input signal. However, this filtered input signal increases the stiffness of the system and slows the simulation.
Instead of using input filtering, you can provide time derivatives for the input signal directly, as additional Simulink signals. If the provided derivatives are inconsistent with the input signal, then some of the quantities may be incorrect during simulation.
For piecewise-constant signals, you can also explicitly set the input derivatives to zero. Use this option for signals that are truly piecewise-constant, such as step. If you have a continuous input signal sampled with a discrete sample time, setting input derivatives to zero can produce incorrect simulation results. Use one of the other two options: either filter the input or provide time derivatives as separate signals.
0 Comments
Communities
More Answers in the Power Electronics Control
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!