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 getem_costs_eqn_calc and test #182

Merged
merged 3 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading