# Solar Power Inverter

This example shows how to determine the efficiency of a single-stage solar inverter. The model simulates one complete AC cycle for a specified level of solar irradiance and corresponding optimal DC voltage and AC RMS current. Using the example model ee_solar_characteristics, the optimal values have been determined as 342V DC and 20.05A AC for an irradiance of 1000W/m^2 and panel temperature of 20 degrees Celsius. Inverter efficiency is determined in two independent ways. The first compares the ratio of AC power out to DC power in over one AC cycle. The second calculates losses by component by making use of Simscape™ logging. The small difference in calculated efficiency value is due to differences between trapezoidal integration used by the script and the greater accuracy achieved by the Simulink® variable-step solver.

### Model ### Simulation Results from Simscape Logging

The plots below show the current output from the inverter and the power dissipated by two of the MOSFETs. The table below shows the power dissipated by individual components in the ee_solar_inverter model. These totals were calculated from simulation results using logged Simscape variables and the losses calculation utility ee_getPowerLossSummary.

```Efficiency = 96.7331% Losses in watts by component are as follows: LoggingNode Power ____________________________ _____ {'ee_solar_inverter.MOS4' } 17.88 {'ee_solar_inverter.MOS2' } 17.58 {'ee_solar_inverter.MOS3' } 14.42 {'ee_solar_inverter.MOS1' } 14.18 {'ee_solar_inverter.Diode2'} 3.22 {'ee_solar_inverter.Diode4'} 3.13 {'ee_solar_inverter.Diode1'} 1.81 {'ee_solar_inverter.Diode3'} 1.73 {'ee_solar_inverter.CL' } 0.4 ```