Hi Avery,
The SSC input and output variables are not very well documented. Here are a few suggestions for learning about what the variables represent:
1. Use the SDKtool as described on the
SDK webpage
.
2. Use the variable documentation functions described in Section 3.4 of the SSC Guide (see link under Documentation on the
SDK webpage
.
3. Use the SAM desktop application to run simulations and explore the variables on the input pages and results page.
All of that said, the variable 'gen' is a time series array of the electrical output in kW of the power system you are modeling. Its value may be negative for some time steps. For example, a PV system's inverter may consume power at night, resulting in a negative value of gen for night-time time steps.
Best regards,
Paul.