Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add drilling cost curves to geothermal cost cmod #1191

Merged
merged 7 commits into from
Aug 1, 2024

Conversation

mjprilliman
Copy link
Collaborator

-Add drilling cost curves to cmod for use in reV calculations
-Optional inputs to model, not used by default
-Re-evaluate for release

@mjprilliman mjprilliman added this to the 2023 Release Patch 2 milestone Jul 26, 2024
@mjprilliman mjprilliman requested review from sjanzou and dguittet July 26, 2024 21:45
@mjprilliman mjprilliman self-assigned this Jul 26, 2024
Copy link
Collaborator

@sjanzou sjanzou left a comment

Choose a reason for hiding this comment

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

What do we need to re-evaluate before the release?

@@ -1567,6 +1567,7 @@ double CGeothermalAnalyzer::GetNumberOfWells(void)
}

if (mp_geo_out->md_NumberOfWellsInj < 0) mp_geo_out->md_NumberOfWellsInj = 0;
if (mp_geo_out->md_NumberOfWells < 0) mp_geo_out->md_NumberOfWells = 0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Both injection and regular wells drilled - good catch!

{ SSC_INPUT, SSC_NUMBER, "resource_depth", "Resource Depth", "m", "", "GeoHourly", "", "", "" },
{ SSC_INPUT, SSC_NUMBER, "geotherm.cost.prod_wells_drilled", "Number of drilled production wells", "0/1", "0=LargerDiameter,1=SmallerDiameter", "GeoHourly", "", "", "" },
{ SSC_INPUT, SSC_NUMBER, "geotherm.cost.inj_wells_drilled", "Number of drilled injection wells", "0/1", "0=LargerDiameter,1=SmallerDiameter", "GeoHourly", "", "", "" },
{ SSC_INPUT, SSC_NUMBER, "calc_drill_costs", "Calculate drill costs", "0/1", "0=LargerDiameter,1=SmallerDiameter", "GeoHourly", "?=0", "", "" },
Copy link
Collaborator

Choose a reason for hiding this comment

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

curious why you are using "." instead of "_"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We've just been working off what was there before. It's probably worth changing this in the future.


int calc_drill_costs = as_integer("calc_drill_costs");
if (calc_drill_costs == 1) {
int inj_cost_curve_welldiam = as_integer("geotherm.cost.inj_cost_curve_welldiam");
Copy link
Collaborator

Choose a reason for hiding this comment

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

shouldn't these inputs be required if "calc_drill_costs"==1?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I will update this.

@mjprilliman mjprilliman merged commit caf06c3 into patch Aug 1, 2024
8 checks passed
@mjprilliman mjprilliman deleted the drilling-cost-ssc-equation branch August 1, 2024 01:34
@cpaulgilman
Copy link
Collaborator

NREL/SAM#1824

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.

4 participants