Skip to content

Commit

Permalink
minor cleaned up
Browse files Browse the repository at this point in the history
  • Loading branch information
atpham88 committed Oct 19, 2024
1 parent 9394ffd commit 2b364cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Classify the change according to the following categories:

## Develop - 2024-10-11
### Added
- Add new **ElectricStorage**, **ColdThermalStorage**, and **HotThermalStorage** parameters **max_duration_hours** and **min_duration_hours** to bound the energy duration of battery storage
- Add new **ElectricStorage** parameters **max_duration_hours** and **min_duration_hours** to bound the energy duration of battery storage

## Develop degradation-cleanup
### Added
Expand Down
2 changes: 1 addition & 1 deletion src/constraints/storage_constraints.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function add_storage_size_constraints(m, p, b; _n="")
m[Symbol("dvStoragePower"*_n)][b] <= p.s.storage.attr[b].max_kw
)

# Constraint (4c)-3: Limit on Storage Energy Capacity based on Duration Hours
# Constraint (4c)-3: Limit on ElectricStorage Energy Capacity based on Duration Hours
if p.s.storage.attr[b] isa ElectricStorage
@constraint(m,
m[Symbol("dvStorageEnergy"*_n)][b] <= m[Symbol("dvStoragePower"*_n)][b] * p.s.storage.attr[b].max_duration_hours
Expand Down
18 changes: 1 addition & 17 deletions src/core/energy_storage/thermal_storage.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ Cold thermal energy storage sytem; specifically, a chilled water system used to
macrs_itc_reduction::Float64 = 0.5
total_itc_fraction::Float64 = 0.3
total_rebate_per_kwh::Float64 = 0.0
#min_duration_hours::Real = 0.0
#max_duration_hours::Real = 100000.0
```
"""
Base.@kwdef struct ColdThermalStorageDefaults <: AbstractThermalStorageDefaults
Expand All @@ -42,8 +40,6 @@ Base.@kwdef struct ColdThermalStorageDefaults <: AbstractThermalStorageDefaults
macrs_itc_reduction::Float64 = 0.5
total_itc_fraction::Float64 = 0.3
total_rebate_per_kwh::Float64 = 0.0
#min_duration_hours::Real = 0.0
#max_duration_hours::Real = 100000.0
end


Expand All @@ -69,8 +65,6 @@ end
can_serve_dhw::Bool = true
can_serve_space_heating:Bool = true
can_serve_process_heat::Bool = false
#min_duration_hours::Real = 0.0
#max_duration_hours::Real = 100000.0
```
"""
Base.@kwdef struct HotThermalStorageDefaults <: AbstractThermalStorageDefaults
Expand All @@ -92,8 +86,6 @@ Base.@kwdef struct HotThermalStorageDefaults <: AbstractThermalStorageDefaults
can_serve_dhw::Bool = true
can_serve_space_heating::Bool = true
can_serve_process_heat::Bool = false
#min_duration_hours::Real = 0.0
#max_duration_hours::Real = 100000.0
end


Expand Down Expand Up @@ -127,8 +119,6 @@ struct ColdThermalStorage <: AbstractThermalStorage
discharge_efficiency::Float64
net_present_cost_per_kwh::Float64
om_cost_per_kwh::Float64
#min_duration_hours::Real
#max_duration_hours::Real

function ColdThermalStorage(s::AbstractThermalStorageDefaults, f::Financial, time_steps_per_hour::Int)

Expand Down Expand Up @@ -178,8 +168,6 @@ struct ColdThermalStorage <: AbstractThermalStorage
discharge_efficiency,
net_present_cost_per_kwh,
om_cost_per_kwh
#s.min_duration_hours,
#s.max_duration_hours
)
end
end
Expand Down Expand Up @@ -217,8 +205,6 @@ struct HotThermalStorage <: AbstractThermalStorage
can_serve_dhw::Bool
can_serve_space_heating::Bool
can_serve_process_heat::Bool
#min_duration_hours::Real
#max_duration_hours::Real


function HotThermalStorage(s::AbstractThermalStorageDefaults, f::Financial, time_steps_per_hour::Int)
Expand Down Expand Up @@ -271,9 +257,7 @@ struct HotThermalStorage <: AbstractThermalStorage
om_cost_per_kwh,
s.can_serve_dhw,
s.can_serve_space_heating,
s.can_serve_process_heat,
#s.min_duration_hours,
#s.max_duration_hours
s.can_serve_process_heat
)
end
end
Expand Down

0 comments on commit 2b364cb

Please sign in to comment.