Skip to content

Commit

Permalink
added min and max duration inputs for bess
Browse files Browse the repository at this point in the history
  • Loading branch information
atpham88 committed Jan 27, 2025
1 parent a2091fd commit 9435cc1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Classify the change according to the following categories:
- Truncate the last day of the year instead of the leap day for leap years
##### Added
- Option for ASHP to `force_dispatch` (default = true) which maximizes ASHP thermal output
- Added `min_duration_hours` and `max_duration_hours` for limitting electric storage's energy capacity

## v3.10.2
### Minor Updates
Expand Down
18 changes: 18 additions & 0 deletions reoptjl/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3449,6 +3449,24 @@ class ElectricStorageInputs(BaseModel, models.Model):
blank=True,
help_text="Rebate based on installed energy capacity"
)
min_duration_hours = models.FloatField(
default=0.0,
validators=[
MinValueValidator(0),
MaxValueValidator(1.0e9)
],
blank=True,
help_text="Minimum amount of time storage can discharge at its rated power capacity"
)
max_duration_hours = models.FloatField(
default=100000.0,
validators=[
MinValueValidator(0),
MaxValueValidator(1.0e9)
],
blank=True,
help_text="Maximum amount of time storage can discharge at its rated power capacity"
)


class ElectricStorageOutputs(BaseModel, models.Model):
Expand Down
2 changes: 2 additions & 0 deletions reoptjl/test/posts/all_inputs_test.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@
"max_kw": 100.0,
"min_kwh": 200.0,
"max_kwh": 200.0,
"min_duration_hours": 2.0,
"max_duration_hours": 2.0,
"internal_efficiency_fraction": 0.975,
"inverter_efficiency_fraction": 0.96,
"rectifier_efficiency_fraction": 0.96,
Expand Down

0 comments on commit 9435cc1

Please sign in to comment.