Skip to content

Commit

Permalink
Merge pull request #9 from bigladder/top-level-inputs
Browse files Browse the repository at this point in the history
Flesh out top level input schema
  • Loading branch information
nealkruis authored Jan 17, 2025
2 parents a1be5a6 + aa27681 commit 04b233d
Show file tree
Hide file tree
Showing 15 changed files with 7,162 additions and 612 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and Test

on:
push:
schedule:
- cron: "0 9 * * SUN"
workflow_dispatch:

jobs:
build:
name: Build
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12", "3.13"]
defaults:
run:
shell: bash
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: bigladder/github-actions/setup-python-poetry@main
with:
python-version: ${{ matrix.python-version }}
- name: Build and test
run: poetry run doit
298 changes: 144 additions & 154 deletions examples/AOSmithHPTS50.yaml
Original file line number Diff line number Diff line change
@@ -1,159 +1,149 @@
---
metadata:
data_model: ASHRAE205
schema_version: 1.0.0
schema: RSINTEGRATEDWATERHEATER
description: AOSmith 50-gallon integrated heat-pump water heater
id: 6998e64f-7824-414c-9d48-57e43ee47071
data_timestamp: 2022-11-23T11:45Z
data_version: 1
data_source:
disclaimer:
notes:

description:
product_information:
manufacturer: Rheem
model: AOSmithHPTS50
schema: HPWHSimInput

metadata:
schema: RSINTEGRATEDWATERHEATER
performance:
heat_source_configurations:
- companion_heat_source_id: compressor
followed_by_heat_source_id: compressor
heat_distribution:
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
heat_source:
metadata:
schema: RSRESISTANCEWATERHEATSOURCE
performance:
input_power: 4500
heat_source_type: RESISTANCE
id: resistiveElementTop
turn_on_logic:
- comparison_type: LESS_THAN
heating_logic:
differential_temperature: 6.594444444444444
temperature_weight_distribution:
- 0
- 0
- 1
heating_logic_type: TEMPERATURE_BASED
- backup_heat_source_id: compressor
followed_by_heat_source_id: compressor
heat_distribution:
- 1
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
heat_source:
metadata:
schema: RSRESISTANCEWATERHEATSOURCE
performance:
input_power: 4500
heat_source_type: RESISTANCE
id: resistiveElementBottom
- backup_heat_source_id: resistiveElementBottom
heat_distribution:
- 0
- 0.2
- 0.2
- 0.2
- 0.2
- 0.2
- 0
- 0
- 0
- 0
- 0
- 0
heat_source:
depresses_temperature: false
fixed_volume: true
integrated_system:
metadata:
schema: RSINTEGRATEDWATERHEATER
performance:
heat_source_configurations:
- companion_heat_source_id: compressor
followed_by_heat_source_id: compressor
heat_distribution:
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
heat_source:
metadata:
schema: RSRESISTANCEWATERHEATSOURCE
performance:
input_power: 4500
heat_source_type: RESISTANCE
id: resistiveElementTop
turn_on_logic:
- comparison_type: LESS_THAN
heating_logic:
differential_temperature: 6.594444444444444
temperature_weight_distribution:
- 0
- 0
- 1
heating_logic_type: TEMPERATURE_BASED
- backup_heat_source_id: compressor
followed_by_heat_source_id: compressor
heat_distribution:
- 1
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
heat_source:
metadata:
schema: RSRESISTANCEWATERHEATSOURCE
performance:
input_power: 4500
heat_source_type: RESISTANCE
id: resistiveElementBottom
- backup_heat_source_id: resistiveElementBottom
heat_distribution:
- 0
- 0.2
- 0.2
- 0.2
- 0.2
- 0.2
- 0
- 0
- 0
- 0
- 0
- 0
heat_source:
metadata:
schema: RSCONDENSERWATERHEATSOURCE
performance:
coil_configuration: WRAPPED
compressor_lockout_temperature_hysteresis: 0.5555555555555556
maximum_refrigerant_temperature: 344.26111111111106
maximum_temperature: 322.0388888888889
minimum_temperature: 275.92777777777775
performance_map:
grid_variables:
evaporator_environment_dry_bulb_temperature:
- 275.92777777777775
- 283.15
- 292.8722222222222
- 308.15
- 322.0388888888889
heat_source_temperature:
- 273.15
- 344.26111111111106
lookup_variables:
heating_capacity:
- 799.4886411755099
- 655.9118269387769
- 1061.3632
- 774.1260800000014
- 1460.4995680000004
- 933.6636000000017
- 1868.607808
- 2020.603200000001
- 2274.8743891570252
- 3153.5009851239693
input_power:
- 135.53542857142855
- 464.7148571428571
- 146.5
- 465.2199999999999
- 161.26
- 465.8999999999999
- 172.84
- 508.1999999999999
- 183.36727272727273
- 546.6545454545454
heat_source_type: CONDENSER
id: compressor
turn_on_logic:
- comparison_type: LESS_THAN
heating_logic:
differential_temperature: 16.77777777777778
temperature_weight_distribution:
- 1
- 0
- 0
heating_logic_type: TEMPERATURE_BASED
- comparison_type: LESS_THAN
heating_logic:
differential_temperature: 5
standby_temperature_location: TOP_OF_TANK
heating_logic_type: TEMPERATURE_BASED
primary_heat_source_id: resistiveElementTop
tank:
metadata:
schema: RSCONDENSERWATERHEATSOURCE
schema: RSTANK
performance:
coil_configuration: WRAPPED
compressor_lockout_temperature_hysteresis: 0.5555555555555556
maximum_refrigerant_temperature: 344.26111111111106
maximum_temperature: 322.0388888888889
minimum_temperature: 275.92777777777775
performance_map:
grid_variables:
evaporator_environment_dry_bulb_temperature:
- 275.92777777777775
- 283.15
- 292.8722222222222
- 308.15
- 322.0388888888889
heat_source_temperature:
- 273.15
- 344.26111111111106
lookup_variables:
heating_capacity:
- 799.4886411755099
- 655.9118269387769
- 1061.3632
- 774.1260800000014
- 1460.4995680000004
- 933.6636000000017
- 1868.607808
- 2020.603200000001
- 2274.8743891570252
- 3153.5009851239693
input_power:
- 135.53542857142855
- 464.7148571428571
- 146.5
- 465.2199999999999
- 161.26
- 465.8999999999999
- 172.84
- 508.1999999999999
- 183.36727272727273
- 546.6545454545454
heat_source_type: CONDENSER
id: compressor
turn_on_logic:
- comparison_type: LESS_THAN
heating_logic:
differential_temperature: 16.77777777777778
temperature_weight_distribution:
- 1
- 0
- 0
heating_logic_type: TEMPERATURE_BASED
- comparison_type: LESS_THAN
heating_logic:
differential_temperature: 5
standby_temperature_location: TOP_OF_TANK
heating_logic_type: TEMPERATURE_BASED
primary_heat_source_id: resistiveElementTop
tank:
metadata:
schema: RSTANK
performance:
bottom_fraction_of_tank_mixing_on_draw: 0.3333333333333333
fittings_ua: 0
fixed_volume: true
number_of_nodes: 12
ua: 1.7786111111111111
volume: 0.172614696
bottom_fraction_of_tank_mixing_on_draw: 0.3333333333333333
fittings_ua: 0
ua: 1.7786111111111111
volume: 0.172614696
number_of_nodes: 12
standard_setpoint: 325.92777777777775
system_type: INTEGRATED
Loading

0 comments on commit 04b233d

Please sign in to comment.