Skip to content

Commit

Permalink
Add comfort envelope
Browse files Browse the repository at this point in the history
  • Loading branch information
mccalluc committed Dec 3, 2023
1 parent 5253eea commit e4e760f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions my_project/tab_psy_chart/app_psy_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,18 @@ def update_psych_chart(
"extreme cold stress",
]

# Comfort envelope:
fig.add_trace(
go.Scatter(
# Approximate figure 5.3.1 from
# https://www.ashrae.org/file%20library/technical%20resources/standards%20and%20guidelines/standards%20addenda/55_2017_d_20200731.pdf
x=[f if si_ip == "ip" else (f - 32) / 1.8 for f in [71, 67, 75, 79]],
y=[0, 12, 12, 0],
fill="toself",
name="Comfort Envelope",
)
)

fig.add_trace(
go.Scatter(
x=df["DBT"],
Expand Down

0 comments on commit e4e760f

Please sign in to comment.