필터 지우기
필터 지우기

How can I get the mathematical equation of the system constructed by simulink models automatically?

조회 수: 74 (최근 30일)
The simulink models in a dynamic system are simulated in the way of solving the differential or algebraic equations. Is there any commands that can generate the mathematical equations of the dynamic system? For example, when the wind generation system is simulated in simulink, can I get the mathematical eqtuations of the transimission line, induction generator and the AC system?
Hoping to have your reply,
Best regards.

채택된 답변

Tony Lennon
Tony Lennon 2019년 5월 29일
Sorry, but Simulink does not work that way. In some cases, you can look within a block to see equations, mainly with the Simscape blocks.
  댓글 수: 4
Talia Sari
Talia Sari 2020년 7월 27일
Hello, I am new to Simulink. Could you please tell me how does it work? I already put solver configuration and powergui block, but the state space values are still empty.
Hanyang Dai
Hanyang Dai 2020년 7월 29일
You are almost succee. The desired mathematical equations of the Simulink system can be derived in different ways:
(1) use commands “power_analyze” or “power_statespace” to generate eqs, you can find demos and introductions in the help doc of MATLAB.
(2) use power_gui module to generate eqs, 1) open the “configuration parameters” of power_gui module, 2) set the solver of simulation type as “continuous ”, 3) enable use of ideal switching devices, 4) display circuit differential equations, and finally run the simulation and you will find the eqs in the MATLAB workspace waiting for you.
Tips 1: my current MATLAB version is 2012a, your case may be a little different but worth a shot.
Tips 2: Limitations: The derived eqs are accurate when the dynamic system constructed with SimPowerSystems module is LTI system, otherwise, the result may not be reliable.d, but there are some tips you should procede

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

추가 답변 (1개)

Dino
Dino 2021년 3월 30일
There's a tool called simscape2casadi that, though in alpha stage, claims to be able to do what you want. A description can be found in this paper and the code can be found in this git repository. Please note that it requires Simulink Coder to generate C code from your model.
  댓글 수: 1
Meme Young
Meme Young 2021년 6월 30일
Hello, I have tried this but there are some error reports. Could you please help me with it? It is in the issue.

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

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

Help CenterFile Exchange에서 Simulation and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by