- Start by using the Load-Flow Analyzer app to perform a load-flow analysis of your power system. This will help you find the steady-state conditions.
- Once the analysis is done, export the initial condition data to a CSV or MAT-file
- Create a MATLAB script to read the exported data and use the ‘set_param’ function to automatically set the initial conditions for each synchronous machine in your model. For more information on this function you can refer to the following documentation link https://www.mathworks.com/help/releases/R2024a/simulink/slref/set_param.html
- To make sure these settings are applied every time you load or start your model, use Simulink model callback like ‘PreLoadFcn’ or ‘InitFcn’ For more information on model callbacks you can refer to below link https://www.mathworks.com/help/releases/R2024a/simulink/ug/model-callbacks.html
Simscape Electrical: access "Display Assosciated Initial Conditions" programmatically
23 ビュー (過去 30 日間)
古いコメントを表示
Hi!
I want to use load flow results to set initial conditions for a number of synchronous machines and their assosciated control systems, i.e apart from initial load angle and voltage I need to set the initial torque and field voltages. In the GUI, there is an option to "Display Assosciated Initial Conditions" which prints the necessary data to the Matlab command prompt.
Is it possible to run this function programmatically (and prefferably get the results returned instead of printed) to be able to automate the process of initializing when updating variables?
0 件のコメント
回答 (1 件)
MULI
2024 年 11 月 13 日 9:37
Hi Fredrik,
To automatically set initial conditions for multiple synchronous machines using load flow results, you can follow these steps with the Load-Flow Analyzer app:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Electrical Sensors についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!