Skip to content

Custom Generation Profile Double Counts Availability Losses #1378

@brtietz

Description

@brtietz

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:

enet[idx] *= haf(hour);

To Reproduce
Steps to reproduce the behavior:

  1. Open attached SAM file
    custom_generation_profile_haf.zip

  2. Run the file

  3. 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions