Skip to content

Commit

Permalink
Merge pull request #246 from NREL/steamturbine_bugfix
Browse files Browse the repository at this point in the history
Fix steamturbine default value input into struct
  • Loading branch information
rathod-b authored Aug 10, 2023
2 parents b36d098 + a9fbb9c commit 588036d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Classify the change according to the following categories:
### Deprecated
### Removed

## Develop 2023-08-08
## Develop 2023-08-09
### Changed
- Updated `get_existing_chiller_cop` function to accept scalar values instead of vectors to allow for faster API transactions.
## v0.32.4
Expand All @@ -38,6 +38,7 @@ Classify the change according to the following categories:
- Issue with using a leap year with a URDB rate - the URDB rate was creating energy_rate of length 8784 instead of intended 8760
- Don't double add adjustments to urdb rates with non-standard units
- Corrected `Generator` **installed_cost_per_kw** from 500 to 650 if **only_runs_during_grid_outage** is _true_ or 800 if _false_
- Corrected `SteamTurbine` defaults population from `get_steam_turbine_defaults_size_class()`

## v0.32.3
### Fixed
Expand Down
4 changes: 3 additions & 1 deletion src/core/steam_turbine.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ function SteamTurbine(d::Dict; avg_boiler_fuel_load_mmbtu_per_hour::Union{Float6
)

# set all missing default values in custom_chp_inputs
defaults = get_steam_turbine_defaults_size_class(;avg_boiler_fuel_load_mmbtu_per_hour=avg_boiler_fuel_load_mmbtu_per_hour,
stm_defaults_response = get_steam_turbine_defaults_size_class(;avg_boiler_fuel_load_mmbtu_per_hour=avg_boiler_fuel_load_mmbtu_per_hour,
size_class=st.size_class)

defaults = stm_defaults_response["default_inputs"]
for (k, v) in custom_st_inputs
if isnan(v)
if !(k == :inlet_steam_temperature_degF && !isnan(st.inlet_steam_superheat_degF))
Expand Down

0 comments on commit 588036d

Please sign in to comment.