How to access state-space matrices of a power-system simlink model?

3 views (last 30 days)
Hello everyone,
I'm currently working on a project where I need to access the state-space matrices (A, B, C, D) of a synchronous machine model in Simulink. I've built a model of a synchronous machine connected to an RLC branch.
While I can successfully simulate the model and observe the output current, I need to extract the A, B, C, D matrices that define the synchronous machine's internal dynamics.
I've explored the `powergui` block and its functionalities, but I haven't been able to pinpoint the exact steps to obtain these matrices. Could anyone please guide me on how to access and export the A, B, C, D matrices of the synchronous machine model in Simulink?
Any help or suggestions would be greatly appreciated. Thank you!

Accepted Answer

Adhithya S
Adhithya S on 17 Aug 2024
To access the state-space matrices of a power system Simulink model as a function of switch status (such as circuit breakers, MOSFETs, etc.), you can use the following function: power_analyze.
Simply pass your Simulink model name as an argument to this function to obtain the desired state-space matrices.

More Answers (1)

MULI
MULI on 14 Aug 2024
Hi Adhithya,
I understand that you are required to extract the state-space matrices (A, B, C, D) that describe the internal dynamics of the synchronous machine.
To extract the state-space matrices (A, B, C, D) from a synchronous machine model in Simulink, you can use the Linear Analysis Tool provided by Simulink Control Design.
This tool allows you to linearize your model around an operating point and obtain the state-space representation.
For information and examples related to this you may refer the following links
  1 Comment
Adhithya S
Adhithya S on 17 Aug 2024
Edited: Adhithya S on 17 Aug 2024
Thank you for taking the time to respond. Yes, I understand that the linear analysis tool provides the state-space matrices. However, what I am specifically looking for is the information available at this link: power_analyze. Since it pertains to a power system model, I need the state-space matrices that also include the status of the switches.

Sign in to comment.

Categories

Find more on Fuzzy Logic in Simulink in Help Center and File Exchange

Products


Release

R2024a

Community Treasure Hunt

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

Start Hunting!