Skip to content

Commit

Permalink
Merge pull request #182 from NREL/getem_costs_eqn
Browse files Browse the repository at this point in the history
Add getem_costs_eqn_calc and test
  • Loading branch information
sjanzou authored Jan 13, 2025
2 parents 0cd67b2 + 496dd8b commit 42af6de
Show file tree
Hide file tree
Showing 14 changed files with 461 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ files/defaults/
.mypy_cache

*.zip

*.dll

*.lib
2 changes: 1 addition & 1 deletion docs/lists/models.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
Geothermal monthly and hourly models using general power block code from TRNSYS Type 224 code by M.Wagner, and some GETEM model code.

:doc:`../modules/GeothermalCosts` (HD)
Geothermal monthly and hourly models using general power block code from TRNSYS Type 224 code by M.Wagner, and some GETEM model code.
Geothermal cost equations.

:doc:`../modules/Grid` (HD)
Grid model
Expand Down
Binary file removed files/SAM_api.dll
Binary file not shown.
Binary file removed files/SAM_api.lib
Binary file not shown.
Binary file removed files/ssc.dll
Binary file not shown.
Binary file removed files/ssc.lib
Binary file not shown.
Binary file removed files/sscd.dll
Binary file not shown.
Binary file removed files/sscd.lib
Binary file not shown.
15 changes: 15 additions & 0 deletions modules/Geothermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,18 @@ GeoHourly_set_stim_success_rate(VarGroupObject *self, PyObject *value, void *clo
return PySAM_double_setter(value, SAM_Geothermal_GeoHourly_stim_success_rate_nset, self->data_ptr);
}

static PyObject *
GeoHourly_get_stimulation_type(VarGroupObject *self, void *closure)
{
return PySAM_double_getter(SAM_Geothermal_GeoHourly_stimulation_type_nget, self->data_ptr);
}

static int
GeoHourly_set_stimulation_type(VarGroupObject *self, PyObject *value, void *closure)
{
return PySAM_double_setter(value, SAM_Geothermal_GeoHourly_stimulation_type_nset, self->data_ptr);
}

static PyObject *
GeoHourly_get_subsurface_water_loss(VarGroupObject *self, void *closure)
{
Expand Down Expand Up @@ -1344,6 +1356,9 @@ static PyGetSetDef GeoHourly_getset[] = {
{"stim_success_rate", (getter)GeoHourly_get_stim_success_rate,(setter)GeoHourly_set_stim_success_rate,
PyDoc_STR("*float*: Stimulation success rate [%]\n\nThe value of the following variables depends on ``stim_success_rate``:\n\n\t - num_wells_getem\n"),
NULL},
{"stimulation_type", (getter)GeoHourly_get_stimulation_type,(setter)GeoHourly_set_stimulation_type,
PyDoc_STR("*float*: Which wells are stimulated [0/1/2/3]\n\n**Options:**\n0=Injection,1=Production,2=Both,3=Neither\n\n**Required:**\nFalse. Automatically set to 3 if not assigned explicitly or loaded from defaults."),
NULL},
{"subsurface_water_loss", (getter)GeoHourly_get_subsurface_water_loss,(setter)GeoHourly_set_subsurface_water_loss,
PyDoc_STR("*float*: Subsurface water loss [%]\n\n**Required:**\nTrue\n\nThe value of the following variables depends on ``subsurface_water_loss``:\n\n\t - num_wells_getem\n"),
NULL},
Expand Down
Loading

0 comments on commit 42af6de

Please sign in to comment.