Does this example from 2015 work on 2023b Simscape?
1 次查看(过去 30 天)
显示 更早的评论
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
2024-1-29
Check out possible solutions in the Review and Discussion tabs of the File Exchange page
回答(1 个)
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!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simscape Electrical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!