Skip to content
Draft
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
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-03-25 17:33

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)]),
),
]
29 changes: 28 additions & 1 deletion reoptjl/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -7992,7 +7992,34 @@ class GHPInputs(BaseModel, models.Model):
blank=True,
null=True,
help_text="Annual GHP incremental operations and maintenance costs in $/ft^2-building/year"
)
)

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"
)

# REQUIRED FOR GHP
building_sqft = models.FloatField(
Expand Down
Loading