필터 지우기
필터 지우기

Does this example from 2015 work on 2023b Simscape?

조회 수: 10 (최근 30일)
Roman
Roman 2024년 1월 29일
답변: ag 2024년 2월 9일
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
Cris LaPierre
Cris LaPierre 2024년 1월 29일
Check out possible solutions in the Review and Discussion tabs of the File Exchange page

댓글을 달려면 로그인하십시오.

답변 (1개)

ag
ag 2024년 2월 9일
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!

카테고리

Help CenterFile Exchange에서 Simscape Electrical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by