Problems with load flow analysis using Simscape Electrical Specialized Technology

6 views (last 30 days)
I am trying to perform a load flow of a simple power system (synchronous machine + load), implemented with Simscape Electrical Specialized Technology blocks.
When I type in the command line of matlab:
power_loadflow('model name','solve');
the “power_loadflow” function operates normally, converges and updates the initial states of the model without problems.
However, when I write the same command in a Model Callbacks (InitFcn or StartFcn), the “power_loadflow” function does not work, indicating that there is no “Load Flow Bus” block in the model that allows performing the load flow analysis.
I need that the function power_loadflow initializes the synchronous machine parameters automatically every time the simulation is started. What should I do?
Grateful
  2 Comments
Joel Van Sickel
Joel Van Sickel on 2 Jun 2023
Hello Julio,
I took the example : LF = power_loadflow('-v2','power_LFnetwork_5bus','solve') and put that in the model's initFcn and it worked on my side. What version are you using and can you share the model that is causing problems?
Regards,
Joel
julio martinez
julio martinez on 5 Jun 2023
Dear Joel
Although the simulation does not show any errors, you can verify that the load flow to initialize the power system does not actually happen. To do so, just call the output argument of the function "power_loadflow" ("LF" in your example) in the command line and check that there is an error "The model contains no Load Flow block".
This can also be checked by changing, for example, the value of the field voltage (Vf block) of the synchronous machine "13.8 kV 150 MVA block" in the example "power_LFnetwork_5bus" you cite. After inputting any value (for example zero) and running the simulation, you can see that the field voltage is not initialized.
The matlab version I'm using is R2022a - academic use.
Grateful
Julio

Sign in to comment.

Answers (0)

Categories

Find more on Electrical Sensors in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!