Skip to content

Commit

Permalink
API updates for GETEM
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanzou committed Jan 16, 2025
1 parent 0840088 commit 73b135c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
10 changes: 10 additions & 0 deletions api/include/SAM_GeothermalCosts.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,14 @@ extern "C"
*/
SAM_EXPORT void SAM_GeothermalCosts_GeoHourly_geotherm_cost_prod_req_nset(SAM_table ptr, double number, SAM_error *err);

/**
* Set geotherm.cost.pump_casing_cost: Pump casing cost per foot [$/ft]
* options: None
* constraints: None
* required if: None
*/
SAM_EXPORT void SAM_GeothermalCosts_GeoHourly_geotherm_cost_pump_casing_cost_nset(SAM_table ptr, double number, SAM_error *err);

/**
* Set geotherm.cost.pump_depth: Pump depth [ft]
* options: None
Expand Down Expand Up @@ -540,6 +548,8 @@ extern "C"

SAM_EXPORT double SAM_GeothermalCosts_GeoHourly_geotherm_cost_prod_req_nget(SAM_table ptr, SAM_error *err);

SAM_EXPORT double SAM_GeothermalCosts_GeoHourly_geotherm_cost_pump_casing_cost_nget(SAM_table ptr, SAM_error *err);

SAM_EXPORT double SAM_GeothermalCosts_GeoHourly_geotherm_cost_pump_depth_nget(SAM_table ptr, SAM_error *err);

SAM_EXPORT double SAM_GeothermalCosts_GeoHourly_geotherm_cost_pump_fixed_nget(SAM_table ptr, SAM_error *err);
Expand Down
15 changes: 15 additions & 0 deletions api/modules/SAM_GeothermalCosts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ SAM_EXPORT void SAM_GeothermalCosts_GeoHourly_geotherm_cost_prod_req_nset(SAM_ta
});
}

SAM_EXPORT void SAM_GeothermalCosts_GeoHourly_geotherm_cost_pump_casing_cost_nset(SAM_table ptr, double number, SAM_error *err){
translateExceptions(err, [&]{
ssc_data_set_number(ptr, "geotherm.cost.pump_casing_cost", number);
});
}

SAM_EXPORT void SAM_GeothermalCosts_GeoHourly_geotherm_cost_pump_depth_nset(SAM_table ptr, double number, SAM_error *err){
translateExceptions(err, [&]{
ssc_data_set_number(ptr, "geotherm.cost.pump_depth", number);
Expand Down Expand Up @@ -572,6 +578,15 @@ SAM_EXPORT double SAM_GeothermalCosts_GeoHourly_geotherm_cost_prod_req_nget(SAM_
return result;
}

SAM_EXPORT double SAM_GeothermalCosts_GeoHourly_geotherm_cost_pump_casing_cost_nget(SAM_table ptr, SAM_error *err){
double result;
translateExceptions(err, [&]{
if (!ssc_data_get_number(ptr, "geotherm.cost.pump_casing_cost", &result))
make_access_error("SAM_GeothermalCosts", "geotherm.cost.pump_casing_cost");
});
return result;
}

SAM_EXPORT double SAM_GeothermalCosts_GeoHourly_geotherm_cost_pump_depth_nget(SAM_table ptr, SAM_error *err){
double result;
translateExceptions(err, [&]{
Expand Down

0 comments on commit 73b135c

Please sign in to comment.