-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ca52b5
commit ee993db
Showing
4 changed files
with
33 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
===== | ||
Usage | ||
===== | ||
====================== | ||
Examples and Tutorials | ||
====================== | ||
|
||
`Examples`_ files on how to use some of the functions | ||
|
||
.. _Examples: https://github.com/CenterForTheBuiltEnvironment/pythermalcomfort/tree/master/examples | ||
|
||
YouTube `tutorials`_ playlist | ||
|
||
.. _tutorials: https://www.youtube.com/watch?v=MLQecKYQFvg&list=PL9DCOjERDBeGGVBBlaEWMMDoS_06MZcto | ||
.. _tutorials: https://www.youtube.com/playlist?list=PLY91jl6VVD7zMaJjRVrVkaBtI56U7ztQC | ||
|
||
.. raw:: html | ||
|
||
<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; height: auto;"> | ||
<iframe width="420" height="315" src="https://www.youtube.com/watch?v=Se52OVj4xg0&list=PLY91jl6VVD7zMaJjRVrVkaBtI56U7ztQC"> </iframe> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from pprint import pprint | ||
from pythermalcomfort.models import adaptive_en | ||
from pythermalcomfort.psychrometrics import running_mean_outdoor_temperature | ||
|
||
result = adaptive_en(tdb=25, tr=25, t_running_mean=24, v=0.1) | ||
|
||
pprint(result) | ||
|
||
result = adaptive_en(tdb=22.5, tr=22.5, t_running_mean=24, v=0.1) | ||
|
||
pprint(result) | ||
|
||
comf_tmp = result['tmp_cmf'] | ||
|
||
result = adaptive_en(tdb=72.5, tr=72.5, t_running_mean=75, v=0.1, units='IP') | ||
pprint(result) | ||
|
||
rmt_value = running_mean_outdoor_temperature([29, 28, 30, 29, 28, 30, 27], alpha=0.9) | ||
|
||
result = adaptive_en(tdb=25, tr=25, t_running_mean=rmt_value, v=0.3) | ||
pprint(result) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters