Does anyone have the idea about inverting .p file into a readable .m file? powericon.p

15 views (last 30 days)
The initialization command in the mask of simulink library model will run automatically to set the preset parameter for corresponding model.
Synchronous machine use a powericon function to realize this initialization process. I want to know how these preset parameters are caculated by powericon, so i searched it under matlab file. However powericon function is stored in a encrypted p file, is there any methods to invert this .p file to a readable .m file.
Or is there any other way to understand how these preset parameters are calculated?
Thanks for ur help.

Accepted Answer

Meme Young
Meme Young on 12 Aug 2020
Edited: Voss on 30 Oct 2024 at 15:45
Nice try man, but I will tell you there is [nothing] in powericon() because it is just calling other functions to calculate the parameters for use under the synchronous machine mask, and you cant find these functions at all. Actually, all standard parameters will be converted to fundemental parameters for simulink simulation, but there is no explicit way in Simulink help to calculate, say, the fundemental parameters, using the standard parameters. Kundur's book 'power system stability and control' example 4.1 mentioned the conversion between funemental and standard parameters. I have tried it myself in Simulink and we can see the two synchronous machines using the two kinds of paramters in this book differ a little, but the conversion only stands for round stators. Kundur's book didnt mention the conversion of salient pole machines.
If you are not talking about the conversion between fundemental and standard paramters, there is one simulink example helping you understand the calculation of the parameters. "Interfacing Simulink Models with Simscape Electrical Specialized Power Systems" (power_SLmodeling) has a customed current-source-modeled synchronous machine with identical characteristics as synchronous machine models in the library. The parameters of the current source block is in power_SLmodeling_data and you can open it because it is a .m file. The composition of the parameters under the mask, like SM.R, SM.Linv, SM.RLinv, are all in this file. However the model is just a fundemental salient pole machine, so there is no parameter conversion, and there are some parameters missing compared with round stator machine ( Rkq2 and Lkq2 for salient pole doesnt have this 1 branch )
  5 Comments
Yang Xu
Yang Xu on 30 Aug 2020
Moved: Walter Roberson on 30 Oct 2024 at 16:31
1)open the block in another window or tab
2)copy and paste the matrix (constant values blocks) u want to know from the model
3)connect this matrix to block "To workspace"
4)and run this model for 3-4 simulation step size and u will find the value in workspace of matlab.
It is an indirect way to get the result of pu matrix and the conversion principle between fundamental and pu values still unknown.
Meme Young
Meme Young on 30 Aug 2020
Moved: Walter Roberson on 30 Oct 2024 at 16:31
Thank you bro but the description is a bit confusing because it is in English. I think both of us come from China right? Could you please add my qq 980182570? If it is inconvenient for you, you can send me emails via 980182570@qq.com. Thank you.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!