Borrar filtros
Borrar filtros

Does this example from 2015 work on 2023b Simscape?

10 visualizaciones (últimos 30 días)
Roman
Roman el 29 de En. de 2024
Respondida: ag el 9 de Feb. de 2024
Hello, I hope you can help me with this problem.
I am doing my master thesis about mechanical DC circuit breakers and am studying the related arc physics. I found a very good Simulink example:
Should this example work in 2023b?
I implemented it into my library and it is still not working and I start thinking it is because this is a 2015 version. To be honest I am not sure if I implemented it correctly. I can see the block with appropiate appereance but I am not sure if the data behind is correctly.
Thank you in advance
Regards
Roman
  1 comentario
Cris LaPierre
Cris LaPierre el 29 de En. de 2024
Check out possible solutions in the Review and Discussion tabs of the File Exchange page

Iniciar sesión para comentar.

Respuestas (1)

ag
ag el 9 de Feb. de 2024
Hi Roman,
The problem that you are facing is because the simscape code was done with MATLAB 2015, and to use it in the newer versions of MATLAB(2023B), you can modify the below blocks in the simscape file as shown(path - "Matlab Electric Arc Model/Simulink Simscape/+ArcLib/IdealArc.ssc"),
function setup
%Initial conditions
v={ 0.0, 'V' };
i={ 0.0, 'A' };
it={ 0.0, 'A' };
end
equations
v == p.v-n.v;
it == i + TauI*i.der;
v + TauV*v.der == a*Rc*(it)/(Rc*(it)*atan(b*(it)*{1,'1/A'})+a);
end
This fix has been provided in the Discussions tab of the File exchange page.
Hope this helps!

Categorías

Más información sobre Simscape Electrical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by