Sub-hourly modeling and 'hourly' DC loss adjustments

3 posts / 0 new
Last post
Sub-hourly modeling and 'hourly' DC loss adjustments

According to the SAM help docs:
"The SAM CSV format supports hourly and sub-hourly data with up to a one-minute resolution. SAM recognizes the weather file's time resolution based on the number of data rows in the weather file. For example, SAM recognizes a file with 8,670 data rows as an hourly data file, and a file with 35,040 rows as 15-minute data."

Given the ability to handle sub-hourly input data, how does SAM handle the dc_adjust:hourly variable? The sdktool indicates that it is an array constrained to be 8760 elements in length, so is it applied on an hourly basis regardless of the time-resolution of the simulation? Or is it just required to be the same length as the input data such that each element is applied to a single time-step of the simulation (which is 1 hr for the standard TMY use case)?



The SDKtool is correct, the dc_adjust:hourly is always an 8760 array that is applied on an hourly basis to the kWh output of the array regardless of the time resolution of the simulation.

Ther relevant code for the computations is at line 1727 for setup and application at line 2627 and 2628 (search for "dc_haf").

The setup of the adjust factors is at line 336 with the default for nsteps being 8760 used for dc_haf.

Let us know if you have further questions...


No that answers my question and thank you for pointing me to the pertinent spots in the source code

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer