Describe the bug
Hourly adjustment factors are applied in the initial setup of gen (
|
enet[idx] = (ssc_number_t)(output*haf(ihour)) * sys_degradation[iyear]; // kW |
or
|
enet[idx] = enet_in[ihour* steps_per_hour_gen + ihourstep] * (ssc_number_t)(derate* haf(ihour))* sys_degradation[iyear]; |
)
and later as annual metrics are calculated:
To Reproduce
Steps to reproduce the behavior:
-
Open attached SAM file
custom_generation_profile_haf.zip
-
Run the file
-
Input is constant 1 kW generation with a 5% hourly adjustment. Generation should be 0.95 kW, but is 0.9025.
Expected behavior
The above file should generate 0.95 kW (losses should only apply once).
Desktop (please complete the following information):
- Version 2024.12.12, 2025.4.16, develop, maybe others
Describe the bug
Hourly adjustment factors are applied in the initial setup of gen (
ssc/ssc/cmod_custom_generation.cpp
Line 164 in af536ea
ssc/ssc/cmod_custom_generation.cpp
Line 195 in af536ea
and later as annual metrics are calculated:
ssc/ssc/cmod_custom_generation.cpp
Line 216 in af536ea
To Reproduce
Steps to reproduce the behavior:
Open attached SAM file
custom_generation_profile_haf.zip
Run the file
Input is constant 1 kW generation with a 5% hourly adjustment. Generation should be 0.95 kW, but is 0.9025.
Expected behavior
The above file should generate 0.95 kW (losses should only apply once).
Desktop (please complete the following information):