Skip to content
Closed
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
6 changes: 4 additions & 2 deletions julia_src/Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -922,9 +922,11 @@ uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"

[[deps.REopt]]
deps = ["ArchGDAL", "CSV", "CoolProp", "DataFrames", "Dates", "DelimitedFiles", "HTTP", "JLD", "JSON", "JuMP", "LinDistFlow", "LinearAlgebra", "Logging", "MathOptInterface", "Requires", "Roots", "Statistics", "TestEnv"]
git-tree-sha1 = "9946abe774e30d82f786e68296ad1fdf8bb7dba4"
git-tree-sha1 = "37371dea02a25459d46411025a82cad3a3229a3c"
repo-rev = "develop"
repo-url = "https://github.com/NREL/REopt.jl.git"
uuid = "d36ad4e8-d74a-4f7a-ace1-eaea049febf6"
version = "0.51.1"
version = "0.52.0"

[[deps.Random]]
deps = ["SHA"]
Expand Down
29 changes: 29 additions & 0 deletions reoptjl/migrations/0081_ghpinputs_load_served_by_ghp_and_more.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Generated by Django 4.0.7 on 2025-04-22 16:44

import django.core.validators
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('reoptjl', '0080_electricloadoutputs_annual_electric_load_with_thermal_conversions_kwh_and_more'),
]

operations = [
migrations.AddField(
model_name='ghpinputs',
name='load_served_by_ghp',
field=models.TextField(blank=True, default='nonpeak', help_text='How to split between load served by GHP and load served by backup system'),
),
migrations.AddField(
model_name='ghpinputs',
name='max_number_of_boreholes',
field=models.FloatField(blank=True, help_text='Maximum number of boreholes for GHX', null=True, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(100000000.0)]),
),
migrations.AddField(
model_name='ghpinputs',
name='max_ton',
field=models.FloatField(blank=True, help_text='Maximum thermal power size constraint for GHP [ton]', null=True, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(100000000.0)]),
),
]
14 changes: 14 additions & 0 deletions reoptjl/migrations/0084_merge_20250423_2110.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Generated by Django 4.0.7 on 2025-04-23 21:10

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('reoptjl', '0081_ghpinputs_load_served_by_ghp_and_more'),
('reoptjl', '0083_electricutilityoutputs_peak_grid_demand_kw_and_more'),
]

operations = [
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 4.0.7 on 2025-04-24 14:32

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('reoptjl', '0084_merge_20250423_2110'),
]

operations = [
migrations.AddField(
model_name='ghpoutputs',
name='annual_thermal_production_mmbtu',
field=models.FloatField(blank=True, null=True),
),
migrations.AddField(
model_name='ghpoutputs',
name='annual_thermal_production_tonhour',
field=models.FloatField(blank=True, null=True),
),
]
28 changes: 28 additions & 0 deletions reoptjl/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -8366,6 +8366,32 @@ class GHPInputs(BaseModel, models.Model):
blank=True,
help_text="Maximum utility rebate"
)
max_ton = models.FloatField(
validators=[
MinValueValidator(0),
MaxValueValidator(MAX_BIG_NUMBER)
],
null=True,
blank=True,
help_text=("Maximum thermal power size constraint for GHP [ton]")
)

max_number_of_boreholes = models.FloatField(
validators=[
MinValueValidator(0),
MaxValueValidator(MAX_BIG_NUMBER)
],
null=True,
blank=True,
help_text=("Maximum number of boreholes for GHX")
)

load_served_by_ghp = models.TextField(
null=False,
blank=True,
default="nonpeak",
help_text="How to split between load served by GHP and load served by backup system"
)


def clean(self):
Expand Down Expand Up @@ -8409,6 +8435,8 @@ class GHPOutputs(BaseModel, models.Model):
thermal_to_dhw_load_series_mmbtu_per_hour = ArrayField(models.FloatField(null=True, blank=True), default=list, null=True, blank=True)
thermal_to_load_series_ton = ArrayField(models.FloatField(null=True, blank=True), default=list, null=True, blank=True)
avoided_capex_by_ghp_present_value = models.FloatField(null=True, blank=True)
annual_thermal_production_mmbtu = models.FloatField(null=True, blank=True)
annual_thermal_production_tonhour = models.FloatField(null=True, blank=True)

def get_input_dict_from_run_uuid(run_uuid:str):
"""
Expand Down
Empty file added reoptjl/testing.txt
Empty file.
Loading