Skip to content

Commit

Permalink
add heat-load-specific outputs to CHPOutputs
Browse files Browse the repository at this point in the history
  • Loading branch information
zolanaj committed May 8, 2024
1 parent c08c77f commit e961308
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
17 changes: 16 additions & 1 deletion reoptjl/migrations/0059_processheatloadinputs_and_more.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.0.7 on 2024-05-07 16:49
# Generated by Django 4.0.7 on 2024-05-08 18:09

import django.contrib.postgres.fields
import django.core.validators
Expand Down Expand Up @@ -73,6 +73,21 @@ class Migration(migrations.Migration):
name='can_serve_space_heating',
field=models.BooleanField(blank=True, default=True, help_text='Boolean indicator if CHP can serve space heating load', null=True),
),
migrations.AddField(
model_name='chpoutputs',
name='thermal_to_dhw_load_series_mmbtu_per_hour',
field=django.contrib.postgres.fields.ArrayField(base_field=models.FloatField(blank=True, null=True), default=list, size=None),
),
migrations.AddField(
model_name='chpoutputs',
name='thermal_to_process_heat_load_series_mmbtu_per_hour',
field=django.contrib.postgres.fields.ArrayField(base_field=models.FloatField(blank=True, null=True), default=list, size=None),
),
migrations.AddField(
model_name='chpoutputs',
name='thermal_to_space_heating_load_series_mmbtu_per_hour',
field=django.contrib.postgres.fields.ArrayField(base_field=models.FloatField(blank=True, null=True), default=list, size=None),
),
migrations.AddField(
model_name='existingboilerinputs',
name='can_serve_dhw',
Expand Down
12 changes: 12 additions & 0 deletions reoptjl/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4476,6 +4476,18 @@ class CHPOutputs(BaseModel, models.Model):
models.FloatField(null=True, blank=True),
default = list,
)
thermal_to_dhw_load_series_mmbtu_per_hour = ArrayField(
models.FloatField(null=True, blank=True),
default = list,
)
thermal_to_space_heating_load_series_mmbtu_per_hour = ArrayField(
models.FloatField(null=True, blank=True),
default = list,
)
thermal_to_process_heat_load_series_mmbtu_per_hour = ArrayField(
models.FloatField(null=True, blank=True),
default = list,
)

def clean():
pass
Expand Down

0 comments on commit e961308

Please sign in to comment.