Skip to content

Fix Geothermal cases with capacity factor > 1#989

Merged
mjprilliman merged 2 commits into
patchfrom
geothermal_cf_fix
Feb 8, 2023
Merged

Fix Geothermal cases with capacity factor > 1#989
mjprilliman merged 2 commits into
patchfrom
geothermal_cf_fix

Conversation

@mjprilliman

Copy link
Copy Markdown
Collaborator

-Capacity factor calculation was comparing different system capacity and output based on different 2nd law efficiency calculations for resource temperature < 150
-Source of this calculation not found within GETEM or documentation
-Removing this < 150 calculation removes erroneous capacity factor outputs

@mjprilliman mjprilliman added the bug label Feb 7, 2023
@mjprilliman mjprilliman added this to the 2022.11.21 Patch 1 milestone Feb 7, 2023
@mjprilliman mjprilliman requested a review from sjanzou February 7, 2023 17:14
@mjprilliman mjprilliman self-assigned this Feb 7, 2023

@sjanzou sjanzou left a comment

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.

Looks good for CF > 1

Comment thread shared/lib_geothermal.cpp

mp_geo_out->max_secondlaw = (1 - ((geothermal::IMITATE_GETEM) ? GetAEBinaryAtTemp(TamphSiO2) / GetAEBinary() : dAE_At_Exit / GetAE()) - 0.375);
double dMaxBinaryBrineEffectiveness = ((geothermal::IMITATE_GETEM) ? GetAEBinary() : GetAE()) * ((GetTemperaturePlantDesignC() < 150) ? 0.14425 * exp(0.008806 * GetTemperaturePlantDesignC()) : mp_geo_out->max_secondlaw);
//double dMaxBinaryBrineEffectiveness = ((geothermal::IMITATE_GETEM) ? GetAEBinary() : GetAE()) * ((GetTemperaturePlantDesignC() < 150) ? 0.14425 * exp(0.008806 * GetTemperaturePlantDesignC()) : mp_geo_out->max_secondlaw);

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.

Do you want to keep this comment for future reference?

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.

I prefer to leave it to make it easier to revert if need be.

@mjprilliman mjprilliman merged commit 19786e4 into patch Feb 8, 2023
@mjprilliman mjprilliman deleted the geothermal_cf_fix branch February 8, 2023 20:02
@mjprilliman mjprilliman linked an issue Feb 15, 2023 that may be closed by this pull request
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.

GETEM Capacity Factor > 1 for resource temperature < 150C

3 participants