How do i solve the following simulation error??

When i run a physical model of half wave rectifier in simulink it shows the error for the solver block...
'Calculation for differential and algebraic state derivatives failed.'
How do i solve this??

 Respuesta aceptada

Zack Peters
Zack Peters el 24 de Oct. de 2013

0 votos

Hi Paranshu,
It is hard to say based on the information that is provided but it may be due to several reasons. Internally, the Simscape blocks have differential equations that represent each of them. If the equations were not strongly written in the case of a custom block then this error can appear sometimes. Additionally, the solver may be limited to being unable to solve these type of equations. Try reducing changing the solver to either ODE15s or ODE23t and reducing the Absolute/Relative tolerances in the configuration parameters to 1e-6.
Does this model use any custom Simscape components and does it error out immediately or somewhere midway through the simulation?
~Zack

4 comentarios

Paranshu
Paranshu el 25 de Oct. de 2013
Hi Zack
The model does not contain any custom components and the error occurs short after I start the simulation. Thanks
~Paranshu
Zack Peters
Zack Peters el 25 de Oct. de 2013
Would you be able to attach the model so that someone can have a better look at the error?
Paranshu
Paranshu el 4 de Nov. de 2013
Thanks for ur help zack..i was able to solve it.
MANNIKA GARG
MANNIKA GARG el 2 de Feb. de 2017
Hi Paranshu, How did you solve this. I am observing the same problem with my simulations. No custom block have been used.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Productos

Etiquetas

Preguntada:

el 24 de Oct. de 2013

Comentada:

el 2 de Feb. de 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by