jsthermalcomfort 0.0.2 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/README.md +196 -6
  2. package/lib/cjs/index.js +7 -434
  3. package/lib/cjs/models/a_pmv.js +140 -0
  4. package/lib/cjs/models/adaptive_ashrae.js +290 -0
  5. package/lib/cjs/models/adaptive_en.js +300 -0
  6. package/lib/cjs/models/ankle_draft.js +82 -0
  7. package/lib/cjs/models/at.js +52 -0
  8. package/lib/cjs/models/athb.js +135 -0
  9. package/lib/cjs/models/clo_tout.js +58 -0
  10. package/lib/cjs/models/cooling_effect.js +164 -0
  11. package/lib/cjs/models/discomfort_index.js +115 -0
  12. package/lib/cjs/models/e_pmv.js +154 -0
  13. package/lib/cjs/models/heat_index.js +60 -0
  14. package/lib/cjs/models/humidex.js +63 -0
  15. package/lib/cjs/models/index.js +71 -0
  16. package/lib/cjs/models/net.js +50 -0
  17. package/lib/cjs/models/pet_steady.js +443 -0
  18. package/lib/cjs/models/phs.js +458 -0
  19. package/lib/cjs/models/pmv.js +200 -0
  20. package/lib/cjs/models/pmv_ppd.js +404 -0
  21. package/lib/cjs/models/set_tmp.js +203 -0
  22. package/lib/cjs/models/solar_gain.js +163 -0
  23. package/lib/cjs/models/two_nodes.js +790 -0
  24. package/lib/cjs/models/use_fans_heatwave.js +203 -0
  25. package/lib/cjs/models/utci.js +609 -0
  26. package/lib/cjs/models/vertical_tmp_grad_ppd.js +95 -0
  27. package/lib/cjs/models/wbgt.js +72 -0
  28. package/lib/cjs/models/wc.js +37 -0
  29. package/lib/cjs/psychrometrics/enthalpy.js +24 -0
  30. package/lib/cjs/psychrometrics/index.js +28 -0
  31. package/lib/cjs/psychrometrics/p_sat.js +46 -0
  32. package/lib/cjs/psychrometrics/p_sat_torr.js +34 -0
  33. package/lib/cjs/psychrometrics/psy_ta_rh.js +51 -0
  34. package/lib/cjs/psychrometrics/t_dp.js +19 -0
  35. package/lib/cjs/psychrometrics/t_mrt.js +117 -0
  36. package/lib/cjs/psychrometrics/t_o.js +82 -0
  37. package/lib/cjs/psychrometrics/t_wb.js +23 -0
  38. package/lib/cjs/types/index.d.ts +7 -79
  39. package/lib/cjs/types/index.d.ts.map +1 -1
  40. package/lib/cjs/types/models/a_pmv.d.ts +133 -0
  41. package/lib/cjs/types/models/a_pmv.d.ts.map +1 -0
  42. package/lib/cjs/types/models/adaptive_ashrae.d.ts +211 -0
  43. package/lib/cjs/types/models/adaptive_ashrae.d.ts.map +1 -0
  44. package/lib/cjs/types/models/adaptive_en.d.ts +217 -0
  45. package/lib/cjs/types/models/adaptive_en.d.ts.map +1 -0
  46. package/lib/cjs/types/models/ankle_draft.d.ts +60 -0
  47. package/lib/cjs/types/models/ankle_draft.d.ts.map +1 -0
  48. package/lib/cjs/types/models/at.d.ts +34 -0
  49. package/lib/cjs/types/models/at.d.ts.map +1 -0
  50. package/lib/cjs/types/models/athb.d.ts +96 -0
  51. package/lib/cjs/types/models/athb.d.ts.map +1 -0
  52. package/lib/cjs/types/models/clo_tout.d.ts +45 -0
  53. package/lib/cjs/types/models/clo_tout.d.ts.map +1 -0
  54. package/lib/cjs/types/models/cooling_effect.d.ts +49 -0
  55. package/lib/cjs/types/models/cooling_effect.d.ts.map +1 -0
  56. package/lib/cjs/types/models/discomfort_index.d.ts +91 -0
  57. package/lib/cjs/types/models/discomfort_index.d.ts.map +1 -0
  58. package/lib/cjs/types/models/e_pmv.d.ts +139 -0
  59. package/lib/cjs/types/models/e_pmv.d.ts.map +1 -0
  60. package/lib/cjs/types/models/heat_index.d.ts +27 -0
  61. package/lib/cjs/types/models/heat_index.d.ts.map +1 -0
  62. package/lib/cjs/types/models/humidex.d.ts +54 -0
  63. package/lib/cjs/types/models/humidex.d.ts.map +1 -0
  64. package/lib/cjs/types/models/index.d.ts +78 -0
  65. package/lib/cjs/types/models/index.d.ts.map +1 -0
  66. package/lib/cjs/types/models/net.d.ts +39 -0
  67. package/lib/cjs/types/models/net.d.ts.map +1 -0
  68. package/lib/cjs/types/models/pet_steady.d.ts +59 -0
  69. package/lib/cjs/types/models/pet_steady.d.ts.map +1 -0
  70. package/lib/cjs/types/models/phs.d.ts +242 -0
  71. package/lib/cjs/types/models/phs.d.ts.map +1 -0
  72. package/lib/cjs/types/models/pmv.d.ts +198 -0
  73. package/lib/cjs/types/models/pmv.d.ts.map +1 -0
  74. package/lib/cjs/types/models/pmv_ppd.d.ts +246 -0
  75. package/lib/cjs/types/models/pmv_ppd.d.ts.map +1 -0
  76. package/lib/cjs/types/models/set_tmp.d.ts +124 -0
  77. package/lib/cjs/types/models/set_tmp.d.ts.map +1 -0
  78. package/lib/cjs/types/models/solar_gain.d.ts +76 -0
  79. package/lib/cjs/types/models/solar_gain.d.ts.map +1 -0
  80. package/lib/cjs/types/models/two_nodes.d.ts +412 -0
  81. package/lib/cjs/types/models/two_nodes.d.ts.map +1 -0
  82. package/lib/cjs/types/models/use_fans_heatwave.d.ts +188 -0
  83. package/lib/cjs/types/models/use_fans_heatwave.d.ts.map +1 -0
  84. package/lib/cjs/types/models/utci.d.ts +79 -0
  85. package/lib/cjs/types/models/utci.d.ts.map +1 -0
  86. package/lib/cjs/types/models/vertical_tmp_grad_ppd.d.ts +58 -0
  87. package/lib/cjs/types/models/vertical_tmp_grad_ppd.d.ts.map +1 -0
  88. package/lib/cjs/types/models/wbgt.d.ts +51 -0
  89. package/lib/cjs/types/models/wbgt.d.ts.map +1 -0
  90. package/lib/cjs/types/models/wc.d.ts +29 -0
  91. package/lib/cjs/types/models/wc.d.ts.map +1 -0
  92. package/lib/cjs/types/psychrometrics/enthalpy.d.ts +12 -0
  93. package/lib/cjs/types/psychrometrics/enthalpy.d.ts.map +1 -0
  94. package/lib/cjs/types/psychrometrics/index.d.ts +26 -0
  95. package/lib/cjs/types/psychrometrics/index.d.ts.map +1 -0
  96. package/lib/cjs/types/psychrometrics/p_sat.d.ts +13 -0
  97. package/lib/cjs/types/psychrometrics/p_sat.d.ts.map +1 -0
  98. package/lib/cjs/types/psychrometrics/p_sat_torr.d.ts +26 -0
  99. package/lib/cjs/types/psychrometrics/p_sat_torr.d.ts.map +1 -0
  100. package/lib/cjs/types/psychrometrics/psy_ta_rh.d.ts +51 -0
  101. package/lib/cjs/types/psychrometrics/psy_ta_rh.d.ts.map +1 -0
  102. package/lib/cjs/types/psychrometrics/t_dp.d.ts +9 -0
  103. package/lib/cjs/types/psychrometrics/t_dp.d.ts.map +1 -0
  104. package/lib/cjs/types/psychrometrics/t_mrt.d.ts +43 -0
  105. package/lib/cjs/types/psychrometrics/t_mrt.d.ts.map +1 -0
  106. package/lib/cjs/types/psychrometrics/t_o.d.ts +31 -0
  107. package/lib/cjs/types/psychrometrics/t_o.d.ts.map +1 -0
  108. package/lib/cjs/types/psychrometrics/t_wb.d.ts +12 -0
  109. package/lib/cjs/types/psychrometrics/t_wb.d.ts.map +1 -0
  110. package/lib/cjs/types/utilities/index.d.ts +28 -0
  111. package/lib/cjs/types/utilities/index.d.ts.map +1 -0
  112. package/lib/cjs/types/utilities/utilities.d.ts +377 -0
  113. package/lib/cjs/types/utilities/utilities.d.ts.map +1 -0
  114. package/lib/cjs/utilities/index.js +27 -0
  115. package/lib/cjs/utilities/utilities.js +903 -0
  116. package/lib/esm/index.js +4 -0
  117. package/lib/esm/models/a_pmv.js +135 -0
  118. package/lib/esm/models/adaptive_ashrae.js +285 -0
  119. package/lib/esm/models/adaptive_en.js +294 -0
  120. package/lib/esm/models/ankle_draft.js +78 -0
  121. package/lib/esm/models/at.js +48 -0
  122. package/lib/esm/models/athb.js +130 -0
  123. package/lib/esm/models/clo_tout.js +53 -0
  124. package/lib/esm/models/cooling_effect.js +159 -0
  125. package/lib/esm/models/discomfort_index.js +110 -0
  126. package/lib/esm/models/e_pmv.js +149 -0
  127. package/lib/esm/models/heat_index.js +56 -0
  128. package/lib/esm/models/humidex.js +59 -0
  129. package/lib/esm/models/index.js +69 -0
  130. package/lib/esm/models/net.js +46 -0
  131. package/lib/esm/models/pet_steady.js +439 -0
  132. package/lib/esm/models/phs.js +454 -0
  133. package/lib/esm/models/pmv.js +195 -0
  134. package/lib/esm/models/pmv_ppd.js +398 -0
  135. package/lib/esm/models/set_tmp.js +198 -0
  136. package/lib/esm/models/solar_gain.js +158 -0
  137. package/lib/esm/models/two_nodes.js +784 -0
  138. package/lib/esm/models/use_fans_heatwave.js +199 -0
  139. package/lib/esm/models/utci.js +604 -0
  140. package/lib/esm/models/wbgt.js +68 -0
  141. package/lib/esm/models/wc.js +33 -0
  142. package/lib/esm/psychrometrics/enthalpy.js +20 -0
  143. package/lib/esm/psychrometrics/index.js +26 -0
  144. package/lib/esm/psychrometrics/p_sat.js +42 -0
  145. package/lib/esm/psychrometrics/p_sat_torr.js +29 -0
  146. package/lib/esm/psychrometrics/psy_ta_rh.js +47 -0
  147. package/lib/esm/psychrometrics/t_dp.js +15 -0
  148. package/lib/esm/psychrometrics/t_mrt.js +112 -0
  149. package/lib/esm/psychrometrics/t_o.js +77 -0
  150. package/lib/esm/psychrometrics/t_wb.js +19 -0
  151. package/lib/esm/types/index.d.ts +7 -79
  152. package/lib/esm/types/index.d.ts.map +1 -1
  153. package/lib/esm/types/models/a_pmv.d.ts +133 -0
  154. package/lib/esm/types/models/a_pmv.d.ts.map +1 -0
  155. package/lib/esm/types/models/adaptive_ashrae.d.ts +211 -0
  156. package/lib/esm/types/models/adaptive_ashrae.d.ts.map +1 -0
  157. package/lib/esm/types/models/adaptive_en.d.ts +217 -0
  158. package/lib/esm/types/models/adaptive_en.d.ts.map +1 -0
  159. package/lib/esm/types/models/ankle_draft.d.ts +60 -0
  160. package/lib/esm/types/models/ankle_draft.d.ts.map +1 -0
  161. package/lib/esm/types/models/at.d.ts +34 -0
  162. package/lib/esm/types/models/at.d.ts.map +1 -0
  163. package/lib/esm/types/models/athb.d.ts +96 -0
  164. package/lib/esm/types/models/athb.d.ts.map +1 -0
  165. package/lib/esm/types/models/clo_tout.d.ts +45 -0
  166. package/lib/esm/types/models/clo_tout.d.ts.map +1 -0
  167. package/lib/esm/types/models/cooling_effect.d.ts +49 -0
  168. package/lib/esm/types/models/cooling_effect.d.ts.map +1 -0
  169. package/lib/esm/types/models/discomfort_index.d.ts +91 -0
  170. package/lib/esm/types/models/discomfort_index.d.ts.map +1 -0
  171. package/lib/esm/types/models/e_pmv.d.ts +139 -0
  172. package/lib/esm/types/models/e_pmv.d.ts.map +1 -0
  173. package/lib/esm/types/models/heat_index.d.ts +27 -0
  174. package/lib/esm/types/models/heat_index.d.ts.map +1 -0
  175. package/lib/esm/types/models/humidex.d.ts +54 -0
  176. package/lib/esm/types/models/humidex.d.ts.map +1 -0
  177. package/lib/esm/types/models/index.d.ts +77 -0
  178. package/lib/esm/types/models/index.d.ts.map +1 -0
  179. package/lib/esm/types/models/net.d.ts +39 -0
  180. package/lib/esm/types/models/net.d.ts.map +1 -0
  181. package/lib/esm/types/models/pet_steady.d.ts +59 -0
  182. package/lib/esm/types/models/pet_steady.d.ts.map +1 -0
  183. package/lib/esm/types/models/phs.d.ts +242 -0
  184. package/lib/esm/types/models/phs.d.ts.map +1 -0
  185. package/lib/esm/types/models/pmv.d.ts +198 -0
  186. package/lib/esm/types/models/pmv.d.ts.map +1 -0
  187. package/lib/esm/types/models/pmv_ppd.d.ts +246 -0
  188. package/lib/esm/types/models/pmv_ppd.d.ts.map +1 -0
  189. package/lib/esm/types/models/set_tmp.d.ts +124 -0
  190. package/lib/esm/types/models/set_tmp.d.ts.map +1 -0
  191. package/lib/esm/types/models/solar_gain.d.ts +76 -0
  192. package/lib/esm/types/models/solar_gain.d.ts.map +1 -0
  193. package/lib/esm/types/models/two_nodes.d.ts +412 -0
  194. package/lib/esm/types/models/two_nodes.d.ts.map +1 -0
  195. package/lib/esm/types/models/use_fans_heatwave.d.ts +188 -0
  196. package/lib/esm/types/models/use_fans_heatwave.d.ts.map +1 -0
  197. package/lib/esm/types/models/utci.d.ts +79 -0
  198. package/lib/esm/types/models/utci.d.ts.map +1 -0
  199. package/lib/esm/types/models/wbgt.d.ts +51 -0
  200. package/lib/esm/types/models/wbgt.d.ts.map +1 -0
  201. package/lib/esm/types/models/wc.d.ts +29 -0
  202. package/lib/esm/types/models/wc.d.ts.map +1 -0
  203. package/lib/esm/types/psychrometrics/enthalpy.d.ts +12 -0
  204. package/lib/esm/types/psychrometrics/enthalpy.d.ts.map +1 -0
  205. package/lib/esm/types/psychrometrics/index.d.ts +26 -0
  206. package/lib/esm/types/psychrometrics/index.d.ts.map +1 -0
  207. package/lib/esm/types/psychrometrics/p_sat.d.ts +13 -0
  208. package/lib/esm/types/psychrometrics/p_sat.d.ts.map +1 -0
  209. package/lib/esm/types/psychrometrics/p_sat_torr.d.ts +26 -0
  210. package/lib/esm/types/psychrometrics/p_sat_torr.d.ts.map +1 -0
  211. package/lib/esm/types/psychrometrics/psy_ta_rh.d.ts +51 -0
  212. package/lib/esm/types/psychrometrics/psy_ta_rh.d.ts.map +1 -0
  213. package/lib/esm/types/psychrometrics/t_dp.d.ts +9 -0
  214. package/lib/esm/types/psychrometrics/t_dp.d.ts.map +1 -0
  215. package/lib/esm/types/psychrometrics/t_mrt.d.ts +43 -0
  216. package/lib/esm/types/psychrometrics/t_mrt.d.ts.map +1 -0
  217. package/lib/esm/types/psychrometrics/t_o.d.ts +31 -0
  218. package/lib/esm/types/psychrometrics/t_o.d.ts.map +1 -0
  219. package/lib/esm/types/psychrometrics/t_wb.d.ts +12 -0
  220. package/lib/esm/types/psychrometrics/t_wb.d.ts.map +1 -0
  221. package/lib/esm/types/utilities/index.d.ts +28 -0
  222. package/lib/esm/types/utilities/index.d.ts.map +1 -0
  223. package/lib/esm/types/utilities/utilities.d.ts +377 -0
  224. package/lib/esm/types/utilities/utilities.d.ts.map +1 -0
  225. package/lib/esm/utilities/index.js +25 -0
  226. package/lib/esm/utilities/utilities.js +885 -0
  227. package/package.json +22 -15
  228. package/lib/esm/index.mjs +0 -430
@@ -0,0 +1,79 @@
1
+ /**
2
+ * Determines the Universal Thermal Climate Index (UTCI). The UTCI is the
3
+ equivalent temperature for the environment derived from a reference
4
+ environment. It is defined as the air temperature of the reference
5
+ environment which produces the same strain index value in comparison with
6
+ the reference individual's response to the real environment. It is regarded
7
+ as one of the most comprehensive indices for calculating heat stress in
8
+ outdoor spaces. The parameters that are taken into account for calculating
9
+ UTCI involve dry bulb temperature, mean radiation temperature, the pressure
10
+ of water vapor or relative humidity, and wind speed (at the elevation of 10
11
+ m above the ground). {@link #ref_7|[7]}
12
+ * - Note: You can use this function to calculate the Universal Thermal Climate Index (UTCI) The applicability wind speed value must be between 0.5 and 17 m/s.
13
+ * @see {@link utci_array} for a version that supports arrays
14
+ *
15
+ * @public
16
+ * @memberof models
17
+ * @docname Universal Thermal Climate Index (UTCI)
18
+ *
19
+ * @param {number} tdb - dry bulb air temperature, default in [°C] in [°F] if `units` = 'IP'
20
+ * @param {number} tr - mean radiant temperature, default in [°C] in [°F] if `units` = 'IP'
21
+ * @param {number} v - wind speed 10m above ground level, default in [m/s] in [fps] if `units` = 'IP'
22
+ * @param {number} rh - relative humidity, [%]
23
+ * @param {"SI"|"IP"} units - select the SI (International System of Units) or the IP (Imperial Units) system.
24
+ * @param {boolean} return_stress_category - default False if True returns the UTCI categorized in terms of thermal stress.
25
+ * @param {boolean} limit_inputs - default True. By default, if the inputs are outsude the standard applicability limits the
26
+ function returns nan. If False returns UTCI values even if input values are
27
+ outside the applicability limits of the model. The valid input ranges are
28
+ -50 < tdb [°C] < 50, tdb - 70 < tr [°C] < tdb + 30, and for 0.5 < v [m/s] < 17.0.
29
+ * @example
30
+ * console.log(utci(25, 25, 1.0, 50)) // will print 24.6
31
+ * console.log(utci(77, 77, 3.28, 50, 'ip')) // will print 76.4
32
+ * console.log(utci(25, 25, 1.0, 50, 'si', true))
33
+ * // will print {utci: 24.6, stress_category: "no thermal stress"}
34
+ */
35
+ export function utci(tdb: number, tr: number, v: number, rh: number, units?: "SI" | "IP", return_stress_category?: boolean, limit_inputs?: boolean): number | {
36
+ utci: number;
37
+ stress_category: string;
38
+ };
39
+ /**
40
+ * Determines the Universal Thermal Climate Index (UTCI) (Supports array type). The UTCI is the
41
+ equivalent temperature for the environment derived from a reference
42
+ environment. It is defined as the air temperature of the reference
43
+ environment which produces the same strain index value in comparison with
44
+ the reference individual's response to the real environment. It is regarded
45
+ as one of the most comprehensive indices for calculating heat stress in
46
+ outdoor spaces. The parameters that are taken into account for calculating
47
+ UTCI involve dry bulb temperature, mean radiation temperature, the pressure
48
+ of water vapor or relative humidity, and wind speed (at the elevation of 10
49
+ m above the ground). {@link #ref_7|[7]}
50
+ * - Note: You can use this function to calculate the Universal Thermal Climate Index (UTCI) The applicability wind speed value must be between 0.5 and 17 m/s.
51
+ * @see {@link utci} for scalar arguments.
52
+
53
+ * @public
54
+ * @memberof models
55
+ * @docname Universal Thermal Climate Index (array version)
56
+ *
57
+ * @param {number[]} tdb - dry bulb air temperature, default in [°C] in [°F] if `units` = 'IP'
58
+ * @param {number[]} tr - mean radiant temperature, default in [°C] in [°F] if `units` = 'IP'
59
+ * @param {number[]} v - wind speed 10m above ground level, default in [m/s] in [fps] if `units` = 'IP'
60
+ * @param {number[]} rh - relative humidity, [%]
61
+ * @param {"SI"|"IP"} units - select the SI (International System of Units) or the IP (Imperial Units) system.
62
+ * @param {boolean} return_stress_category - default False, if True returns the UTCI categorized in terms of thermal stress.
63
+ * @param {boolean} limit_inputs - default True. By default, if the inputs are outsude the standard applicability limits the
64
+ function returns nan. If False returns UTCI values even if input values are
65
+ outside the applicability limits of the model. The valid input ranges are
66
+ -50 < tdb [°C] < 50, tdb - 70 < tr [°C] < tdb + 30, and for 0.5 < v [m/s] < 17.0.
67
+ * @example
68
+ * console.log(utci_array([25, 25], [27, 25], [1, 1], [50, 50])) // will print [25.2, 24.6]
69
+ * console.log(utci_array([25, 25], [27, 25], [1, 1], [50, 50], "si", true))
70
+ * // will print {
71
+ // utci: [25.2, 24.6],
72
+ // stress_category: ["no thermal stress", "no thermal stress"],
73
+ // }
74
+ */
75
+ export function utci_array(tdb: number[], tr: number[], v: number[], rh: number[], units?: "SI" | "IP", return_stress_category?: boolean, limit_inputs?: boolean): number[] | {
76
+ utci: number[];
77
+ stress_category: string[];
78
+ };
79
+ //# sourceMappingURL=utci.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utci.d.ts","sourceRoot":"","sources":["../../../../src/models/utci.js"],"names":[],"mappings":"AAkCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,0BAhBW,MAAM,MACN,MAAM,KACN,MAAM,MACN,MAAM,UACN,IAAI,GAAC,IAAI,2BACT,OAAO,iBACP,OAAO;;;EAmEjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,gCAnBW,MAAM,EAAE,MACR,MAAM,EAAE,KACR,MAAM,EAAE,MACR,MAAM,EAAE,UACR,IAAI,GAAC,IAAI,2BACT,OAAO,iBACP,OAAO;;;EA8EjB"}
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Calculates the Wet Bulb Globe Temperature (WBGT) index calculated in
3
+ * compliance with the ISO 7243 {@link #ref_11|[11]}. The WBGT is a heat stress index that
4
+ * measures the thermal environment to which a person is exposed. In most
5
+ * situations, this index is simple to calculate. It should be used as a
6
+ * screening tool to determine whether heat stress is present. The PHS model
7
+ * allows a more accurate estimation of stress. PHS can be calculated using
8
+ * the function `jsthermalcomfort.models.phs`.
9
+ *
10
+ * The WBGT determines the impact of heat on a person throughout the course of
11
+ * a working day (up to 8 h). It does not apply to very brief heat exposures.
12
+ * It pertains to the evaluation of male and female people who are fit for work
13
+ * in both indoor and outdoor occupational environments, as well as other sorts
14
+ * of surroundings {@link #ref_11|[11]}.
15
+ *
16
+ * The WBGT is defined as a function of only twb and tg if the person is not
17
+ * exposed to direct radiant heat from the sun. When a person is exposed to
18
+ * direct radiant heat, tdb must also be specified.
19
+ *
20
+ * @public
21
+ * @memberof models
22
+ * @docname Wet Bulb Globe Temperature Index (WBGT)
23
+ *
24
+ * @param {number} twb - natural (no forced air flow) wet bulb temperature, [°C]
25
+ * @param {number} tg - globe temperature, [°C]
26
+ * @param {object} [options] - configuration options for the function.
27
+ * @param {boolean} [options.round = true] - If true rounds output value. If
28
+ * false it does not round it.
29
+ * @param {number} [options.tdb = undefined] - Dry bulb air temperature, [°C].
30
+ * This value is needed as input if the person is exposed to direct solar
31
+ * radiation.
32
+ * @param {boolean} [options.with_solar_load = false] - If the globe sensor is
33
+ * exposed to direct solar radiation. If this is set to true without also
34
+ * setting `options.tdb` then an error will be thrown.
35
+ *
36
+ * @returns {number} Wet Bulb Globe Temperature Index, [°C]
37
+ *
38
+ * @example
39
+ * const result = wbgt(25, 32);
40
+ * console.log(result); // -> 27.1
41
+ *
42
+ * @example
43
+ * const result = wbgt(25, 32, { tdb: 20, with_solar_radiation: true });
44
+ * console.log(result); // -> 25.9
45
+ */
46
+ export function wbgt(twb: number, tg: number, options?: {
47
+ round?: boolean;
48
+ tdb?: number;
49
+ with_solar_load?: boolean;
50
+ }): number;
51
+ //# sourceMappingURL=wbgt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wbgt.d.ts","sourceRoot":"","sources":["../../../../src/models/wbgt.js"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,0BAtBW,MAAM,MACN,MAAM;IAEY,KAAK,GAAvB,OAAO;IAEU,GAAG,GAApB,MAAM;IAGY,eAAe,GAAjC,OAAO;IAIL,MAAM,CA8BlB"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Calculates the Wind Chill Index (WCI) in accordance with the ASHRAE 2017 Handbook Fundamentals - Chapter 9 {@link #ref_18|[18]}.
3
+ *
4
+ * The wind chill index (WCI) is an empirical index based on cooling measurements taken on a cylindrical flask partially
5
+ * filled with water in Antarctica (Siple and Passel 1945). For a surface temperature of 33°C, the index describes the
6
+ * rate of heat loss from the cylinder via radiation and convection as a function of ambient temperature and wind velocity.
7
+ *
8
+ * This formulation has been met with some valid criticism. WCI is unlikely to be an accurate measure of heat loss from
9
+ * exposed flesh, which differs from plastic in terms of curvature, roughness, and radiation exchange qualities, and is
10
+ * always below 33°C in a cold environment. Furthermore, the equation’s values peak at 90 km/h and then decline as velocity
11
+ * increases. Nonetheless, this score reliably represents the combined effects of temperature and wind on subjective discomfort
12
+ * for velocities below 80 km/h {@link #ref_18|[18]}.
13
+ *
14
+ * @public
15
+ * @memberof models
16
+ * @docname Wind chill index
17
+ *
18
+ * @param {number} tdb - dry bulb air temperature,[°C]
19
+ * @param {number} v - wind speed 10m above ground level, [m/s]
20
+ * @param {object} [kwargs] (Optional) Other parameters.
21
+ * @param {boolean} [kwargs.round=true] - If True rounds output value, if False it does not round it.
22
+ * @returns {{wci: number}} wind chill index, [W/m2]
23
+ */
24
+ export function wc(tdb: number, v: number, kwargs?: {
25
+ round?: boolean;
26
+ }): {
27
+ wci: number;
28
+ };
29
+ //# sourceMappingURL=wc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wc.d.ts","sourceRoot":"","sources":["../../../../src/models/wc.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBANW,MAAM,KACN,MAAM;IAEW,KAAK,GAAtB,OAAO;;SACC,MAAM;EAUxB"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Calculates air enthalpy
3
+ *
4
+ * @public
5
+ * @memberof psychrometrics
6
+ *
7
+ * @param {number} tdb air temperature [C]
8
+ * @param {number} hr - humidity ratio [kg water/kg dry air]
9
+ * @returns {number} enthalpy [J/kg dry air]
10
+ */
11
+ export function enthalpy(tdb: number, hr: number): number;
12
+ //# sourceMappingURL=enthalpy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enthalpy.d.ts","sourceRoot":"","sources":["../../../../src/psychrometrics/enthalpy.js"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,8BAJW,MAAM,MACN,MAAM,GACJ,MAAM,CAYlB"}
@@ -0,0 +1,26 @@
1
+ declare namespace _default {
2
+ export { p_sat };
3
+ export { p_sat_torr };
4
+ export { p_sat_torr_array };
5
+ export { psy_ta_rh };
6
+ export { t_o };
7
+ export { t_o_array };
8
+ export { enthalpy };
9
+ export { t_wb };
10
+ export { t_dp };
11
+ export { t_mrt };
12
+ export { t_mrt_array };
13
+ }
14
+ export default _default;
15
+ import { p_sat } from "./p_sat.js";
16
+ import { p_sat_torr } from "./p_sat_torr.js";
17
+ import { p_sat_torr_array } from "./p_sat_torr.js";
18
+ import { psy_ta_rh } from "./psy_ta_rh.js";
19
+ import { t_o } from "./t_o.js";
20
+ import { t_o_array } from "./t_o.js";
21
+ import { enthalpy } from "./enthalpy.js";
22
+ import { t_wb } from "./t_wb.js";
23
+ import { t_dp } from "./t_dp.js";
24
+ import { t_mrt } from "./t_mrt.js";
25
+ import { t_mrt_array } from "./t_mrt.js";
26
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/psychrometrics/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;sBAAsB,YAAY;2BACW,iBAAiB;iCAAjB,iBAAiB;0BAMpC,gBAAgB;oBALX,UAAU;0BAAV,UAAU;yBAChB,eAAe;qBACnB,WAAW;qBACX,WAAW;sBACG,YAAY;4BAAZ,YAAY"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Calculates vapour pressure of water at different temperatures
3
+ *
4
+ * @public
5
+ * @memberof psychrometrics
6
+ *
7
+ * @param {number} tdb - air temperature, [°C]
8
+ * @returns {number} - vapour pressure of water, [Pa]
9
+ *
10
+ * @category Psychrometrics
11
+ */
12
+ export function p_sat(tdb: number): number;
13
+ //# sourceMappingURL=p_sat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"p_sat.d.ts","sourceRoot":"","sources":["../../../../src/psychrometrics/p_sat.js"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,2BALW,MAAM,GACJ,MAAM,CAyClB"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Estimates the saturation vapour pressure in [torr].
3
+ *
4
+ * @public
5
+ * @memberof psychrometrics
6
+ *
7
+ * @see {@link p_sat_torr_array} for a version that supports arrays
8
+ *
9
+ * @param {number} tdb - dry bulb air temperature [C]
10
+ * @returns {number} saturation vapour pressure [torr]
11
+ */
12
+ export function p_sat_torr(tdb: number): number;
13
+ /**
14
+ * Estimates the saturation vapour pressure in [torr].
15
+ *
16
+ *
17
+ * @public
18
+ * @memberof psychrometrics
19
+ *
20
+ * @see {@link p_sat_torr} for a version that supports scalar arguments
21
+ *
22
+ * @param {number[]} tdb - dry bulb air temperature [C]
23
+ * @returns {number[]} saturation vapour pressure [torr]
24
+ */
25
+ export function p_sat_torr_array(tdb: number[]): number[];
26
+ //# sourceMappingURL=p_sat_torr.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"p_sat_torr.d.ts","sourceRoot":"","sources":["../../../../src/psychrometrics/p_sat_torr.js"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,gCAHW,MAAM,GACJ,MAAM,CAIlB;AAED;;;;;;;;;;;GAWG;AACH,sCAHW,MAAM,EAAE,GACN,MAAM,EAAE,CAIpB"}
@@ -0,0 +1,51 @@
1
+ /**
2
+ * @typedef {object} PsyTaRhReturnType
3
+ * @property {number} p_vap - partial pressure of water vapor in moist air, [Pa]
4
+ * @property {number} hr - humidity ratio, [kg water/kg dry air]
5
+ * @property {number} t_wb - wet bulb temperature, [°C]
6
+ * @property {number} t_dp - dew point temperature, [°C]
7
+ * @property {number} h - enthalpy [J/kg dry air]
8
+ * @public
9
+ */
10
+ /**
11
+ * Calculates psychrometric values of air based on dry bulb air temperature and
12
+ * relative humidity.
13
+ *
14
+ * @public
15
+ * @memberof psychrometrics
16
+ *
17
+ * @param {number} tdb - air temperature, [°C]
18
+ * @param {number} rh - relative humidity, [%]
19
+ * @param {number} [p_atm = 101325] - atmospheric pressure, [Pa]
20
+ *
21
+ * @returns {PsyTaRhReturnType} object with calculated psychrometrics values
22
+ *
23
+ * @example
24
+ * import { psy_ta_rh } from "jsthermalcomfort";
25
+ * const results = psy_ta_rh(21, 56);
26
+ * console.log(results); // { p_sat: 2487.7, p_vap: 1393.112, hr: -2.2041754048718936, t_wb: 15.4, t_dp: 11.9, h: -5575107.96 }
27
+ */
28
+ export function psy_ta_rh(tdb: number, rh: number, p_atm?: number): PsyTaRhReturnType;
29
+ export type PsyTaRhReturnType = {
30
+ /**
31
+ * - partial pressure of water vapor in moist air, [Pa]
32
+ */
33
+ p_vap: number;
34
+ /**
35
+ * - humidity ratio, [kg water/kg dry air]
36
+ */
37
+ hr: number;
38
+ /**
39
+ * - wet bulb temperature, [°C]
40
+ */
41
+ t_wb: number;
42
+ /**
43
+ * - dew point temperature, [°C]
44
+ */
45
+ t_dp: number;
46
+ /**
47
+ * - enthalpy [J/kg dry air]
48
+ */
49
+ h: number;
50
+ };
51
+ //# sourceMappingURL=psy_ta_rh.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"psy_ta_rh.d.ts","sourceRoot":"","sources":["../../../../src/psychrometrics/psy_ta_rh.js"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH,+BAXW,MAAM,MACN,MAAM,UACN,MAAM,GAEJ,iBAAiB,CAuB7B;;;;;WA1Ca,MAAM;;;;QACN,MAAM;;;;UACN,MAAM;;;;UACN,MAAM;;;;OACN,MAAM"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Calculates the dew point temperature.
3
+ *
4
+ * @param {number} tdb - dry bulb air temperature, [°C]
5
+ * @param {number} rh - relative humidity, [%]
6
+ * @returns {number} - dew point temperature, [°C]
7
+ */
8
+ export function t_dp(tdb: number, rh: number): number;
9
+ //# sourceMappingURL=t_dp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"t_dp.d.ts","sourceRoot":"","sources":["../../../../src/psychrometrics/t_dp.js"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,0BAJW,MAAM,MACN,MAAM,GACJ,MAAM,CAYlB"}
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Converts globe temperature reading into mean radiant temperature in accordance with either the Mixed Convection
3
+ * developed by Teitelbaum E. et al. (2022) or the ISO 7726:1998 Standard {@link #ref_5|[5]}.
4
+ *
5
+ * @public
6
+ * @memberof psychrometrics
7
+ *
8
+ * @see {@link t_mrt_array} for a version that supports arrays
9
+ *
10
+ * @param {number} tg - globe temperature, [°C]
11
+ * @param {number} tdb - air temperature, [°C]
12
+ * @param {number} v - air speed, [m/s]
13
+ * @param {number} d - diameter of the globe, [m] default 0.15 m
14
+ * @param {number} emissivity - emissivity of the globe temperature sensor, default 0.95
15
+ * @param {"Mixed Convection" | "ISO"} standard - either choose between the Mixed Convection and ISO formulations.
16
+ * The Mixed Convection formulation has been proposed by Teitelbaum E. et al. (2022)
17
+ * to better determine the free and forced convection coefficient used in the
18
+ * calculation of the mean radiant temperature. They also showed that mean radiant
19
+ * temperature measured with ping-pong ball-sized globe thermometers is not reliable
20
+ * due to a stochastic convective bias {@link #ref_22|[22]}. The Mixed Convection model has only
21
+ * been validated for globe sensors with a diameter between 0.04 and 0.15 m.
22
+ * @returns {number}
23
+ */
24
+ export function t_mrt(tg: number, tdb: number, v: number, d?: number, emissivity?: number, standard?: "Mixed Convection" | "ISO"): number;
25
+ /**
26
+ * Converts globe temperature reading into mean radiant temperature in accordance with either the Mixed Convection
27
+ * developed by Teitelbaum E. et al. (2022) or the ISO 7726:1998 Standard {@link #ref_5|[5]}.
28
+ *
29
+ * @public
30
+ * @memberof psychrometrics
31
+ *
32
+ * @see {@link t_mrt} for scalar arguments. Accepts array arguments.
33
+ *
34
+ * @param {number[]} tg - globe temperature, [°C]
35
+ * @param {number[]} tdb - air temperature, [°C]
36
+ * @param {number[]} v - air speed, [m/s]
37
+ * @param {number[]} d - diameter of the globe, [m] default 0.15 m
38
+ * @param {number[]} emissivity - emissivity of the globe temperature sensor, default 0.95
39
+ * @param {"Mixed Convection" | "ISO"} standard - either choose between the Mixed Convection and ISO formulations. Refer to the {@link #t_mrt|t_mrt} function for more information
40
+ * @returns {number[]}
41
+ */
42
+ export function t_mrt_array(tg: number[], tdb: number[], v: number[], d: number[], emissivity: number[], standard?: "Mixed Convection" | "ISO"): number[];
43
+ //# sourceMappingURL=t_mrt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"t_mrt.d.ts","sourceRoot":"","sources":["../../../../src/psychrometrics/t_mrt.js"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,0BAdW,MAAM,OACN,MAAM,KACN,MAAM,MACN,MAAM,eACN,MAAM,aACN,kBAAkB,GAAG,KAAK,GAOxB,MAAM,CAuBlB;AAED;;;;;;;;;;;;;;;;GAgBG;AAEH,gCATW,MAAM,EAAE,OACR,MAAM,EAAE,KACR,MAAM,EAAE,KACR,MAAM,EAAE,cACR,MAAM,EAAE,aACR,kBAAkB,GAAG,KAAK,GACxB,MAAM,EAAE,CAkCpB"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Calculates operative temperature in accordance with ISO 7726:1998 {@link #ref_5|[5]}.
3
+ *
4
+ * @public
5
+ * @memberof psychrometrics
6
+ *
7
+ * @see {@link t_o_array} for a version that supports arrays
8
+ *
9
+ * @param {number} tdb - air temperature [C]
10
+ * @param {number} tr - mean radiant temperature [C]
11
+ * @param {number} v - air speed [m/s]
12
+ * @param {("ISO" | "ASHRAE")} standard - the standard to use
13
+ * @returns {number} operative temperature [C]
14
+ */
15
+ export function t_o(tdb: number, tr: number, v: number, standard?: ("ISO" | "ASHRAE")): number;
16
+ /**
17
+ * Calculates operative temperature in accordance with ISO 7726:1998 {@link #ref_5|[5]}.
18
+ *
19
+ * @public
20
+ * @memberof psychrometrics
21
+ *
22
+ * @see {@link t_o} for a version that supports scalar arguments
23
+ *
24
+ * @param {number[]} tdb - air temperature [C]
25
+ * @param {number[]} tr - mean radiant temperature [C]
26
+ * @param {number[]} v - air speed [m/s]
27
+ * @param {("ISO" | "ASHRAE")} standard - the standard to use
28
+ * @returns {number[]} operative temperature [C]
29
+ */
30
+ export function t_o_array(tdb: number[], tr: number[], v: number[], standard?: ("ISO" | "ASHRAE")): number[];
31
+ //# sourceMappingURL=t_o.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"t_o.d.ts","sourceRoot":"","sources":["../../../../src/psychrometrics/t_o.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,yBANW,MAAM,MACN,MAAM,KACN,MAAM,aACN,CAAC,KAAK,GAAG,QAAQ,CAAC,GAChB,MAAM,CAelB;AAED;;;;;;;;;;;;;GAaG;AACH,+BANW,MAAM,EAAE,MACR,MAAM,EAAE,KACR,MAAM,EAAE,aACR,CAAC,KAAK,GAAG,QAAQ,CAAC,GAChB,MAAM,EAAE,CAgBpB"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Calculates the wet-bulb temperature using the Stull equation {@link #ref_6|[6]}.
3
+ *
4
+ * @public
5
+ * @memberof psychrometrics
6
+ *
7
+ * @param {number} tdb - air temperature, [°C]
8
+ * @param {number} rh - relative humidity, [%]
9
+ * @returns {number} - wet-bulb temperature, [°C]
10
+ */
11
+ export function t_wb(tdb: number, rh: number): number;
12
+ //# sourceMappingURL=t_wb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"t_wb.d.ts","sourceRoot":"","sources":["../../../../src/psychrometrics/t_wb.js"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,0BAJW,MAAM,MACN,MAAM,GACJ,MAAM,CAclB"}
@@ -0,0 +1,28 @@
1
+ declare namespace _default {
2
+ export { body_surface_area };
3
+ export { v_relative };
4
+ export { v_relative_array };
5
+ export { clo_dynamic };
6
+ export { clo_dynamic_array };
7
+ export { units_converter };
8
+ export { units_converter_array };
9
+ export { running_mean_outdoor_temperature };
10
+ export { f_svv };
11
+ export { met_typical_tasks };
12
+ export { clo_typical_ensembles };
13
+ export { clo_individual_garments };
14
+ }
15
+ export default _default;
16
+ import { body_surface_area } from "./utilities.js";
17
+ import { v_relative } from "./utilities.js";
18
+ import { v_relative_array } from "./utilities.js";
19
+ import { clo_dynamic } from "./utilities.js";
20
+ import { clo_dynamic_array } from "./utilities.js";
21
+ import { units_converter } from "./utilities.js";
22
+ import { units_converter_array } from "./utilities.js";
23
+ import { running_mean_outdoor_temperature } from "./utilities.js";
24
+ import { f_svv } from "./utilities.js";
25
+ import { met_typical_tasks } from "./utilities.js";
26
+ import { clo_typical_ensembles } from "./utilities.js";
27
+ import { clo_individual_garments } from "./utilities.js";
28
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utilities/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;kCAaO,gBAAgB;2BAAhB,gBAAgB;iCAAhB,gBAAgB;4BAAhB,gBAAgB;kCAAhB,gBAAgB;gCAAhB,gBAAgB;sCAAhB,gBAAgB;iDAAhB,gBAAgB;sBAAhB,gBAAgB;kCAAhB,gBAAgB;sCAAhB,gBAAgB;wCAAhB,gBAAgB"}