Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SET calculation #101

Open
FedericoTartarini opened this issue Mar 12, 2024 · 0 comments
Open

SET calculation #101

FedericoTartarini opened this issue Mar 12, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@FedericoTartarini
Copy link
Collaborator

Email from Charlie

I'm looking at the pythermalcomfort SET model and have a question. When I used input parameters of Clo=0.6, Met=1, RH=50%, Vel=0.1, and Tair=MRT, I thought I should get the result of SET=Tair. This is true when Tair=30, but above 30, SET is a bit higher and as Tair drops, SET diverges below Tair.

Some preliminary results

I run the following code and this is what I get. I am not sure what it causing the anomaly around 37.5C.

for t in range(22, t_max, 1):
# calculate the SET
two_nodes(tdb=t, tr=t, v=0.1, rh=50, met=1, clo=0.6)

image

Full Python code

from pythermalcomfort.models import two_nodes
import pandas as pd
import matplotlib.pyplot as plt

t_max = 44
array_results = []
for t in range(22, t_max, 1):
    # calculate the SET
    results = two_nodes(tdb=t, tr=t, v=0.1, rh=50, met=1, clo=0.6)
    results['t'] = t
    array_results.append(results)

df = pd.DataFrame(array_results)

df.plot(x="t", y="_set", c="k", lw=2)
plt.plot(range(22, t_max, 1), range(22, t_max, 1), c="r", lw=2)
plt.xlabel("Temperature (°C)")
plt.ylabel("SET (°C)")
plt.title("SET vs Temperature")
plt.grid(True)
# remove the legend
plt.legend().remove()
plt.show()
@FedericoTartarini FedericoTartarini self-assigned this Mar 12, 2024
@FedericoTartarini FedericoTartarini added the bug Something isn't working label Mar 12, 2024
@FedericoTartarini FedericoTartarini added this to the v3 milestone Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant