Does this example from 2015 work on 2023b Simscape?

1 view (last 30 days)
Roman
Roman on 29 Jan 2024
Answered: ag on 9 Feb 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 Comment
Cris LaPierre
Cris LaPierre on 29 Jan 2024
Check out possible solutions in the Review and Discussion tabs of the File Exchange page

Sign in to comment.

Answers (1)

ag
ag on 9 Feb 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!

Categories

Find more on Simscape Electrical 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!