Why does my Simscape fail to solve initial conditions when I enable the 'Start from steady state' option in the Solver Configuration block?
46 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 19 de Mayo de 2020
Respondida: MathWorks Support Team
el 19 de Mayo de 2020
I have a Simscape model in which I have set initial condition target values for several block variables. I have also enabled the 'Start from steady state' check box in the Solver Configuration block. When I try to simulate my model, I see an error message stating "Initial conditions solve failed to converge".
Respuesta aceptada
MathWorks Support Team
el 19 de Mayo de 2020
If you want to set initial condition targets for block variables then you must ensure that the "start from steady state" option is turned off. This is because when "start from steady state" is used, the solver ignores the initial condition targets you set for the variables and tries to find a steady state initial condition solution. In a big nonlinear model, it might not be able to find a steady-state solution. Even if it does, that steady-state solution is simply "a solution" and might not be a solution that you'd expected based on your variable targets (since those targets are ignored).
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Variable Initialization en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!