- 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 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
MULI
il 13 Nov 2024 alle 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 Commenti
Vedere anche
Categorie
Scopri di più su Electrical Sensors in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!