Skip to content

Addresses ssc issue 992#993

Merged
sjanzou merged 4 commits into
patchfrom
ssc_992
Feb 14, 2023
Merged

Addresses ssc issue 992#993
sjanzou merged 4 commits into
patchfrom
ssc_992

Conversation

@sjanzou

@sjanzou sjanzou commented Feb 13, 2023

Copy link
Copy Markdown
Collaborator

No longer have random NaNs in financial model outputs for single year technology model runs with analysis periods greater than one

Generate and test in PySAM - no longer have random NaNs for output metrics for repeated runs
@sjanzou sjanzou self-assigned this Feb 13, 2023
@sjanzou sjanzou requested a review from brtietz February 13, 2023 11:35
@sjanzou sjanzou linked an issue Feb 13, 2023 that may be closed by this pull request
Comment thread ssc/cmod_singleowner.cpp Outdated
double first_val = fuelcell_discharged[0];
fuelcell_discharged.resize(nyears, first_val);
}
if (fuelcell_discharged.size() != nyears)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ssc test failures appear to be caused by this line. Fuel cell and battery use different length conventions for output variables: battery is nyears, fuel cell is nyears + 1. I believe battery to be correct, but can't find where we wrote down the convention of the financial models pre-pending year 0.

@sjanzou sjanzou Feb 14, 2023

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@brtietz , the convention as far as I know is the the technology models start at year 1 and the financial models start at year zero. The cmod_fuelcell allocations:
image

seem to be due to startup fuel consumption in year 0:
image

I have updated all financial models to expect the fuel cell output arrays to be nyears+1.

@sjanzou sjanzou requested a review from brtietz February 14, 2023 08:32
@sjanzou sjanzou merged commit 1cb1715 into patch Feb 14, 2023
@sjanzou sjanzou deleted the ssc_992 branch February 14, 2023 21:04
@cpaulgilman cpaulgilman added this to the 2022.11.21 Patch 1 milestone Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

O and M production costs sometimes NaN

3 participants