# Simulation and Analysis

Simulate and analyze the performance of your models using functions and analysis tools.

## Blocks

Powergui | Environment block for Simscape Electrical Specialized Power Systems models |

Load Flow Bus | Identify and parameterize load flow bus |

## Functions

`power_analyze` | Analyze electric circuit |

`power_customize` | Prepare a Simscape Electrical Specialized Power Systems block for customization |

`power_init` | Set initial state values of model built with Simscape Electrical Specialized Power Systems software |

`power_initstates` | Compute and modify initial values of voltages and currents of model |

`power_loadflow` | Perform positive-sequence load flow or unbalanced load flow and initialize models containing load flow blocks |

`power_report` | Generate report of steady state variables, initial states, and machine load flow for model |

`power_statespace` | Compute state-space model of linear electrical circuit |

`power_steadystate` | Compute steady-state values of voltages and currents of model |

## Analysis Tools

FFT Analyzer | Perform Fourier analysis of simulation data signals |

Load Flow Analyzer | Perform positive-sequence load flow or unbalanced load flow and initialize models containing load flow blocks |

Measurements and States Analyzer | Compute initial and steady-state values of voltages and currents of model |

Impedance Measurement Tool | Compute impedance versus frequency of Impedance Measurement blocks in model |

Cable Parameters Tool | Compute RLC parameters of radial copper cables with single screen |

Linear System Analyzer | Create state-space object of model for use with the Linear System Analyzer tool |

Report Generator | Generate report of steady state variables, initial states, and machine load flow for model |

Statistical Flicker Level Analyzer | Perform statistical analysis of instantaneous flicker level signal |

Transformer Hysteresis Design Tool | View and edit hysteresis characteristic for saturable core of Saturable Transformer blocks |

## Topics

Create an electrical subsystem, simulate transients, and discretize simple circuits.

**Simulate Variable Speed Motor Control**

Model and discretize simple motors with specialized blocks. Use the FFT Analysis tool of the Powergui block to perform harmonic analysis.

Modify Simscape™
Electrical™ Specialized Power Systems block parameters and automate simulation
using MATLAB^{®} scripts.

**How Simscape Electrical Specialized Power Systems Software Works**

Learn how Simscape Electrical Specialized Power Systems initializes and runs your models.

**Choosing an Integration Method**

Explore the advantages and disadvantages for continuous, discrete, and phasor simulation of power system models.

**Simulating with Continuous Integration Algorithms**

Learn about methods for continuous simulation of switches and power electronic devices.

**Simulating Discretized Electrical Systems**

Learn about methods for discrete simulation of switches and power electronic devices.

**Introducing the Phasor Simulation Method**

Use the phasor method to analyze magnitudes and phases in linear circuits.

Optimize simulation speed by discretizing your model
or by using Simulink^{®} Accelerator mode.