Specialized Power Systems to simscape solver
18 views (last 30 days)
Show older comments
Hello,
I am trying to convert a model from Specialized Power Systems Models to Simscape. However, I am having the problem that the old solver was set to "Discrete", but this is no longer possible in Simscape. Old Solver settings:


New Solver settings:

I got this error:
Error:The "FixedStepDiscrete" solver cannot be used to simulate block diagram 'LSC_simscape' because it contains continuous states
The Simulink solver ode1 produces the following error:
Error:An error occurred during simulation and the simulation was stopped
Caused by:
['LSC_simscape/Grid/Solver Configuration']: Failed to satisfy dynamic state constraints.
What can I do to make the simulation work again?
Thanks
0 Comments
Answers (1)
Sabin
7 minutes ago
In Simscape, the Solver Configuration block specifies the solver parameters that your model needs before you can begin simulation. The 'Use local solver' (by default off) checkbox in the Solver Configuration block lets you use a sample-based local solver with a sample time specified by the Sample time parameter. In sample-based simulation, all the physical network states, which are otherwise continuous, become represented to Simulink as discrete states. The solver updates the states once per time step. I hope this helps.
0 Comments
See Also
Categories
Find more on Trimming and Linearization 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!