Main Content

Load-Flow Analyzer

Determine the steady-state voltage magnitudes and angles and real and reactive power flows for a three-phase AC network

Description

The Load-Flow Analyzer app performs a load-flow, or power-flow, analysis for a three-phase AC electrical power transmission system that you model and configure for analysis using Simscape™ Electrical™. The app generates two tables. One of the tables contains data for the network nodes, as represented by busbar, load flow source, synchronous machine, induction machine, and three-phase load blocks. The other table contains data for the network connections, as represented by transmission line and transformer blocks.

The Load-Flow Analyzer app allows you to:

  • Run a load-flow analysis.

  • Highlight and update load-flow input block parameter values for busbar, load flow source, synchronous machine, induction machine, and three-phase load blocks.

  • Change the bus type of load flow source, synchronous machine, and induction machine blocks.

  • Select and highlight node and connection blocks in the model.

  • Sort columns in the tables by increasing or decreasing values.

  • Export the data to a spreadsheet, a MAT-file, or comma-separated variable (CSV) files.

This table shows the available Simscape Electrical blocks that you can use to model the network nodes and connections:

Load-Flow Analyzer app

Open the Load-Flow Analyzer App

Simulink® Toolstrip: On the Apps tab, under Simscape, click the Load-Flow Analyzer icon.

MATLAB® Command Window: To prepare to perform a power-flow analysis on the current model, which is the open model that you most recently interacted with, enter ee_loadFlowApp. To prepare for an analysis on an open model that is not the current model, you must pass the model name as an input argument to the command.

When you open the app, the tables are preloaded with node and connection blocks and with specified parameter values for the blocks in the current or specified model that are inputs to the load-flow analysis. If the simulation has not yet been executed to generate the corresponding Simscape Simulation Data object in the MATLAB base workspace, then the fields for load-flow analysis output data contain NaN.

After you run the load-flow analysis, the tables also display the load-flow analysis output values, including the steady-state voltage magnitudes, voltage phase angles, active power, and reactive power for the node and connection blocks.

Examples

expand all

Open the model. At the MATLAB command prompt, enter:

ee_loadflow_ieee9bus
The ee_loadflow_ieee9bus model is the current model.

Open the Load-Flow Analyzer app.

ee_loadFlowApp

The Load-Flow Analyzer app opens and is preloaded with load-flow input parameter values for applicable node and connection blocks in the ee_loadflow_ieee9bus model.

Open the model. At the MATLAB command prompt, enter:

modelName = 'ee_loadflow_ieee9bus'
open_system(modelName)

Open the Load-Flow Analyzer app by passing the name of the model as an input argument.

ee_loadFlowApp(modelName)

The Load-Flow Analyzer app opens and is preloaded with load-flow input parameter values for applicable node and connection blocks in the specified model.

To identify load-flow analysis inputs that you can tune by updating values in the Load-Flow Analyzer app or block parameter settings, select Highlight Table.

To change the Bus Type for Load-Flow Source, wye-connected load, synchronous machine, or induction machine blocks, double-click the field for the bus type, and select an applicable type. Options are:

Load-Flow SourceSynchronous MachineInduction MachineWye-Connected Load
TimeSwingPVZ
SwingPV
PVPQPQ
PQ

To change a load-flow analysis input, update the applicable values in the Load-Flow Analyzer app or in the block parameter settings.

Note

If you update input values in the table, the values displayed in the block settings update immediately. However, if you update input values in the block settings or rewire the diagram, the values displayed in the table reflect the change only if you click the Refresh button in the Load-Flow Analyzer app.

If a parameter value is NaN, then you might not be able to set a value for that specific parameter, or you haven't run a simulation on that specific model yet.

To set the solver configuration type for the model, click the Settings button and change the value of the Simscape Solver Configuration parameter in the Load-Flow Analyzer app. Options are:

  • Frequency and time (phasor) — Sets the Equation formulation parameter of all Solver Configuration blocks in the model to Frequency and time.

  • Time and steady state — Sets the Equation formulation parameter of all Solver Configuration blocks in the model to Time and selects the Start simulation from steady state check box.

  • Use local settings — Allows for different Solver Configuration settings on multiple networks inside the same model.

For more information on solver configurations, see Solver Configuration.

To run a load-flow analysis, click the Run button in the Load-Flow Analyzer app or in the model.

Sorting the data allows you to check that your model is configured correctly.

To sort the data for block parameter settings or load-flow components in ascending or descending order, click the arrow icon in the column heading of the data you want to sort.

To identify individual blocks or groups of blocks in the model, select Highlight model. Then you can sort the column data to:

  • Discover over-voltage or under-voltage magnitudes.

  • Discover large voltage angle differences.

  • Review differences between specified and actual values.

  • Discover which connections are consuming the most real power and sourcing or sinking the most reactive power.

To export the tables' data to a spreadsheet, a MAT-file, or two comma-separated variable (CSV) files, click the Export button.

Related Examples

Programmatic Use

expand all

ee_loadFlowApp

Open the Load-Flow Analyzer app preloaded with load-flow input parameter values for applicable node and connection blocks in the current model.

ee_loadFlowApp(modelName)

Open the Load-Flow Analyzer app preloaded with load-flow input parameter values for applicable node and connection blocks in the specified model.

Limitations

  • You cannot perform a load-flow analysis on a model if the model is not configured for such an analysis. For more information, see Perform a Load-Flow Analysis Using Simscape Electrical.

  • You cannot perform a load-flow analysis using the Load-Flow Analyzer app if the three-phase ports on relevant node or connection blocks in the model are expanded into separate phases. For more information, see Comparison of Three-Phase Port Types.

  • To obtain all the load-flow analysis results, you must put a Busbar block in the connection lines between each block.

  • You cannot alter the RLC structure of a constant impedance load from the app. To alter the structure, change the dropdown on the block mask.

  • If you parameterize your load-flow model using variables in the MATLAB base or model workspaces, the Load Flow Analyzer app evaluates these variables and provides the associated numeric values. If you then update the values of these variables inside the app, the numeric values replace the respective variable names in the block mask.

Introduced in R2020a