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,45 @@
1
+ /**
2
+ * Representative clothing insulation Icl as a function of outdoor air
3
+ * temperature at 06:00 a.m {@link #ref_4|[4]}.
4
+ *
5
+ * Note: The ASHRAE 55 2020 states that it is acceptable to determine the
6
+ * clothing insulation Icl using this equation in mechanically conditioned
7
+ * buildings {@link #ref_1|[1]}.
8
+ *
9
+ * @public
10
+ * @memberof models
11
+ * @docname Clothing prediction
12
+ *
13
+ * @see {@link clo_tout_array} for a version that supports arrays
14
+ *
15
+ * @param {number} tout - outdoor air temperature at 06:00 a.m., default in
16
+ * [°C] in [°F] if `units` = 'IP'
17
+ * @param {("IP" | "SI")} units - select the SI (International System of Units)
18
+ * or the IP (Imperial Units) system.
19
+ *
20
+ * @returns {number} Representative clothing insulation Icl, [clo]
21
+ */
22
+ export function clo_tout(tout: number, units?: ("IP" | "SI")): number;
23
+ /**
24
+ * Representative clothing insulation Icl as a function of outdoor air
25
+ * temperature at 06:00 a.m {@link #ref_4|[4]}.
26
+ *
27
+ * Note: The ASHRAE 55 2020 states that it is acceptable to determine the
28
+ * clothing insulation Icl using this equation in mechanically conditioned
29
+ * buildings {@link #ref_1|[1]}.
30
+ *
31
+ * @public
32
+ * @memberof models
33
+ * @docname Clothing prediction (array version)
34
+ *
35
+ * @see {@link clo_tout} for a version that supports scalar arguments
36
+ *
37
+ * @param {number[]} tout - outdoor air temperatures at 06:00 a.m., default in
38
+ * [°C] in [°F] if `units` = 'IP'
39
+ * @param {("IP" | "SI")} units - select the SI (International System of Units)
40
+ * or the IP (Imperial Units) system.
41
+ *
42
+ * @returns {number[]} Representative clothing insulation Icl, [clo]
43
+ */
44
+ export function clo_tout_array(tout: number[], units?: ("IP" | "SI")): number[];
45
+ //# sourceMappingURL=clo_tout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clo_tout.d.ts","sourceRoot":"","sources":["../../../../src/models/clo_tout.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,+BAPW,MAAM,UAEN,CAAC,IAAI,GAAG,IAAI,CAAC,GAGX,MAAM,CAUlB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qCAPW,MAAM,EAAE,UAER,CAAC,IAAI,GAAG,IAAI,CAAC,GAGX,MAAM,EAAE,CAIpB"}
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Returns the value of the Cooling Effect ( {@link https://en.wikipedia.org/wiki/Thermal_comfort#Cooling_Effect|CE} )
3
+ * calculated in compliance with the ASHRAE 55 2020 Standard {@link #ref_1|[1]}.
4
+ * The {@link https://en.wikipedia.org/wiki/Thermal_comfort#Cooling_Effect|CE} of the elevated air speed
5
+ * is the value that, when subtracted equally from both the average air temperature and the mean radiant temperature,
6
+ * the same {@link https://en.wikipedia.org/wiki/Thermal_comfort#Standard_effective_temperature|SET} under still air
7
+ * as in the first {@link https://en.wikipedia.org/wiki/Thermal_comfort#Standard_effective_temperature|SET} calculation
8
+ * under elevated air speed. The cooling effect is calculated only for air speed higher than 0.1 m/s.
9
+ *
10
+ * @public
11
+ * @memberof models
12
+ * @docname Cooling Effect (CE)
13
+ *
14
+ * @param {number} tdb - dry bulb air temperature, default in [°C] in [°F] if `units` = 'IP'
15
+ * @param {number} tr - mean radiant temperature, default in [°C] in [°F] if `units` = 'IP'
16
+ * @param {number} vr - relative air speed, default in [m/s] in [fps] if `units` = 'IP'
17
+ *
18
+ * Note: vr is the relative air speed caused by body movement and not the air
19
+ * speed measured by the air speed sensor. The relative air speed is the sum of the
20
+ * average air speed measured by the sensor plus the activity-generated air speed
21
+ * (Vag). Where Vag is the activity-generated air speed caused by motion of individual body parts.
22
+ * vr can be calculated using the function `v_relative` which is in .utilities.js.
23
+ *
24
+ * @param {number} rh - relative humidity, [%]
25
+ * @param {number} met - metabolic rate, [met]
26
+ * @param {number} clo - clothing insulation, [clo]
27
+ *
28
+ * Note: The activity as well as the air speed modify the insulation characteristics
29
+ * of the clothing and the adjacent air layer. Consequently, the ISO 7730 states that
30
+ * the clothing insulation shall be corrected {@link #ref_2|[2]}. The ASHRAE 55 Standard corrects
31
+ * for the effect of the body movement for met equal or higher than 1.2 met using
32
+ * the equation clo = Icl × (0.6 + 0.4/met) The dynamic clothing insulation, clo,
33
+ * can be calculated using the function `clo_dynamic` which is in .utilities.js.
34
+ *
35
+ * @param {number} [wme=0] - external work
36
+ * @param {'SI'|'IP'} [units= "SI"] - select the SI (International System of Units) or the IP (Imperial Units) system.
37
+ * @returns {number} ce - Cooling Effect, default in [°C] in [°F] if `units` = 'IP'
38
+ *
39
+ * @example
40
+ * const CE = cooling_effect(25, 25, 0.3, 50, 1.2, 0.5);
41
+ * console.log(CE); // Output: 1.64
42
+ *
43
+ * // For users who want to use the IP system
44
+ * const CE_IP = cooling_effect(77, 77, 1.64, 50, 1, 0.6, "IP");
45
+ * console.log(CE_IP); // Output: 3.74
46
+ */
47
+ export function cooling_effect(tdb: number, tr: number, vr: number, rh: number, met: number, clo: number, wme?: number, units?: 'SI' | 'IP'): number;
48
+ export function brent(f: any, lowerBound: any, upperBound: any, tolerance?: number, maxIterations?: number): any;
49
+ //# sourceMappingURL=cooling_effect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cooling_effect.d.ts","sourceRoot":"","sources":["../../../../src/models/cooling_effect.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,oCAjCW,MAAM,MACN,MAAM,MACN,MAAM,MAQN,MAAM,OACN,MAAM,OACN,MAAM,QASN,MAAM,UACN,IAAI,GAAC,IAAI,GACP,MAAM,CA8FlB;AAOD,iHAoFC"}
@@ -0,0 +1,91 @@
1
+ /**
2
+ * @typedef {Object} DiscomfortIndexReturnType - a result set containing the discomfort index and the classification of the
3
+ * thermal comfort conditions
4
+ * @property {number} di – Discomfort Index(DI)
5
+ * @property {string} discomfort_condition Classification of the thermal comfort conditions according to the discomfort index
6
+ * @public
7
+ */
8
+ /**
9
+ * Calculates the Discomfort Index (DI). The index is essentially an effective temperature based on air temperature and humidity.
10
+ * The discomfort index is usuallly divided in 6 dicomfort categories and it only applies to warm environments. {@link #ref_24|[24]}
11
+ *
12
+ * - class 1 - DI < 21 °C - No discomfort
13
+ * - class 2 - 21 <= DI < 24 °C - Less than 50% feels discomfort
14
+ * - class 3 - 24 <= DI < 27 °C - More than 50% feels discomfort
15
+ * - class 4 - 27 <= DI < 29 °C - Most of the population feels discomfort
16
+ * - class 5 - 29 <= DI < 32 °C - Everyone feels severe stress
17
+ * - class 6 - DI >= 32 °C - State of medical emergency
18
+ *
19
+ * @see {@link discomfort_index_array} for a version that supports arrays
20
+ *
21
+ * @public
22
+ * @memberof models
23
+ * @docname Discomfort Index (DI)
24
+ *
25
+ * @param {number} tdb - air temperature [C]
26
+ * @param {number} rh - relative humidity [%]
27
+ *
28
+ * @returns {DiscomfortIndexReturnType} object with results of DI
29
+ * @example
30
+ * const DI = discomfort_index(25, 50); // returns { di: 22.1, discomfort_condition: 'Less than 50% feels discomfort' }
31
+ */
32
+ export function discomfort_index(tdb: number, rh: number): DiscomfortIndexReturnType;
33
+ /**
34
+ * @typedef {Object} DiscomfortIndexArrayReturnType - a result set containing an array of discomfort index and an array
35
+ * of classification of the thermal comfort conditions
36
+ * @property {number[]} di – Discomfort Index(DI) Array
37
+ * @property {string[]} discomfort_condition Classification of the thermal comfort conditions in array
38
+ * @public
39
+ */
40
+ /**
41
+ * Calculates the Discomfort Index (DI). The index is essentially an effective temperature based on air temperature and humidity.
42
+ * The discomfort index is usuallly divided in 6 dicomfort categories and it only applies to warm environments. {@link #ref_24|[24]}
43
+ *
44
+ * - class 1 - DI < 21 °C - No discomfort
45
+ * - class 2 - 21 <= DI < 24 °C - Less than 50% feels discomfort
46
+ * - class 3 - 24 <= DI < 27 °C - More than 50% feels discomfort
47
+ * - class 4 - 27 <= DI < 29 °C - Most of the population feels discomfort
48
+ * - class 5 - 29 <= DI < 32 °C - Everyone feels severe stress
49
+ * - class 6 - DI >= 32 °C - State of medical emergency
50
+ *
51
+ * @see {@link discomfort_index} for a version that supports scalar arguments
52
+ *
53
+ * @public
54
+ * @memberof models
55
+ * @docname Discomfort Index (DI) (array version)
56
+ *
57
+ * @param {number[]} tdb - air temperature [C]
58
+ * @param {number[]} rh - relative humidity [%]
59
+ *
60
+ * @returns {DiscomfortIndexArrayReturnType} object with results of DI
61
+ */
62
+ export function discomfort_index_array(tdb: number[], rh: number[]): DiscomfortIndexArrayReturnType;
63
+ /**
64
+ * - a result set containing the discomfort index and the classification of the
65
+ * thermal comfort conditions
66
+ */
67
+ export type DiscomfortIndexReturnType = {
68
+ /**
69
+ * – Discomfort Index(DI)
70
+ */
71
+ di: number;
72
+ /**
73
+ * Classification of the thermal comfort conditions according to the discomfort index
74
+ */
75
+ discomfort_condition: string;
76
+ };
77
+ /**
78
+ * - a result set containing an array of discomfort index and an array
79
+ * of classification of the thermal comfort conditions
80
+ */
81
+ export type DiscomfortIndexArrayReturnType = {
82
+ /**
83
+ * – Discomfort Index(DI) Array
84
+ */
85
+ di: number[];
86
+ /**
87
+ * Classification of the thermal comfort conditions in array
88
+ */
89
+ discomfort_condition: string[];
90
+ };
91
+ //# sourceMappingURL=discomfort_index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discomfort_index.d.ts","sourceRoot":"","sources":["../../../../src/models/discomfort_index.js"],"names":[],"mappings":"AAEA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,sCAPW,MAAM,MACN,MAAM,GAEJ,yBAAyB,CAYrC;AAED;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,4CALW,MAAM,EAAE,MACR,MAAM,EAAE,GAEN,8BAA8B,CAa1C;;;;;;;;;QAhFa,MAAM;;;;0BACN,MAAM;;;;;;;;;;QAyCN,MAAM,EAAE;;;;0BACR,MAAM,EAAE"}
@@ -0,0 +1,139 @@
1
+ /**
2
+ * @typedef {Object} E_pmvKwargs
3
+ * @property {'SI'|'IP'} units - select the SI (International System of Units) or the IP (Imperial Units) system.
4
+ * @property { boolean } limit_inputs - Default is True. By default, if the inputs are outside the standard
5
+ * applicability limits the function returns NaN. If false, returns pmv and ppd values even if input values
6
+ * are outside the applicability limits of the model.
7
+ *
8
+ * The ISO 7730 2005 limits are 10 < tdb [°C] < 30, 10 < tr [°C] < 40,
9
+ * 0 < vr [m/s] < 1, 0.8 < met [met] < 4, 0 < clo [clo] < 2, and -2 < PMV < 2.
10
+ * @public
11
+ */
12
+ /**
13
+ * Returns Adjusted Predicted Mean Votes with Expectancy Factor (ePMV). This index was developed by
14
+ * Fanger, P. O. et al. (2002). In non-air-conditioned buildings in warm climates, occupants may sense
15
+ * the warmth as being less severe than the PMV predicts. The main reason is low expectations, but a
16
+ * metabolic rate that is estimated too high can also contribute to explaining the difference. An extension
17
+ * of the PMV model that includes an expectancy factor is introduced for use in non-air-conditioned buildings
18
+ * in warm climates {@link #ref_26|[26]}.
19
+ *
20
+ * This is a version that supports scalar arguments.
21
+ * @see {@link e_pmv_array} for a version that supports arrays.
22
+ *
23
+ * @public
24
+ * @memberof models
25
+ * @docname Adjusted Predicted Mean Votes with Expectancy Factor (ePMV)
26
+ *
27
+ * @param {number} tdb - Dry bulb air temperature, default in [°C] in [°F] if `units` = 'IP'
28
+ * @param {number} tr - Mean radiant temperature, default in [°C] in [°F] if `units` = 'IP'
29
+ * @param {number} vr - Relative air speed, default in [m/s] in [fps] if `units` = 'IP'
30
+ *
31
+ * Note: vr is the relative air speed caused by body movement and not the air
32
+ * speed measured by the air speed sensor. The relative air speed is the sum of the
33
+ * average air speed measured by the sensor plus the activity-generated air speed
34
+ * (Vag). Where Vag is the activity-generated air speed caused by motion of
35
+ * individual body parts. vr can be calculated using the function v_relative in utilities.js.
36
+ * @param {number} rh - Relative humidity, [%]
37
+ * @param {number} met - Metabolic rate, [met]
38
+ * @param {number} clo - Clothing insulation, [clo]
39
+ *
40
+ * Note: The activity as well as the air speed modify the insulation characteristics
41
+ * of the clothing and the adjacent air layer. Consequently, the ISO 7730 states that
42
+ * the clothing insulation shall be corrected {@link #ref_2|[2]}. The ASHRAE 55 Standard corrects
43
+ * for the effect of the body movement for met equal or higher than 1.2 met using
44
+ * the equation clo = Icl × (0.6 + 0.4/met) The dynamic clothing insulation, clo,
45
+ * can be calculated using the function clo_dynamic in utilities.js.
46
+ * @param {number} e_coefficient - expectancy factor
47
+ * @param {number} [wme=0] - External work
48
+ * @param {E_pmvKwargs} [kwargs] - additional arguments
49
+ *
50
+ * @returns {number} pmv - Predicted Mean Vote
51
+ *
52
+ * @example
53
+ * const tdb = 28;
54
+ * const tr = 28;
55
+ * const v = 0.1;
56
+ * const met = 1.4;
57
+ * const clo = 0.5;
58
+ * // Calculate relative air speed
59
+ * const v_r = v_relative(v, met);
60
+ * // Calculate dynamic clothing
61
+ * const clo_d = clo_dynamic(clo, met);
62
+ * const e_coefficient = 0.6;
63
+ *
64
+ * const result = e_pmv(tdb, tr, v_r, rh, met, clo_d, e_coefficient);
65
+ * console.log(result) // output 0.51
66
+ */
67
+ export function e_pmv(tdb: number, tr: number, vr: number, rh: number, met: number, clo: number, e_coefficient: number, wme?: number, kwargs?: E_pmvKwargs): number;
68
+ /**
69
+ * Returns Adjusted Predicted Mean Votes with Expectancy Factor (ePMV). This index was developed by
70
+ * Fanger, P. O. et al. (2002). In non-air-conditioned buildings in warm climates, occupants may sense
71
+ * the warmth as being less severe than the PMV predicts. The main reason is low expectations, but a
72
+ * metabolic rate that is estimated too high can also contribute to explaining the difference. An extension
73
+ * of the PMV model that includes an expectancy factor is introduced for use in non-air-conditioned buildings
74
+ * in warm climates {@link #ref_26|[26]}.
75
+ *
76
+ * This is a version that supports arrays.
77
+ * @see {@link a_pmv} for a version that supports scalar arguments.
78
+ *
79
+ * @public
80
+ * @memberof models
81
+ * @docname Adjusted Predicted Mean Votes with Expectancy Factor (ePMV) (array version)
82
+ *
83
+ * @param {number[]} tdb - Dry bulb air temperature, default in [°C] in [°F] if `units` = 'IP'
84
+ * @param {number[]} tr - Mean radiant temperature, default in [°C] in [°F] if `units` = 'IP'
85
+ * @param {number[]} vr - Relative air speed, default in [m/s] in [fps] if `units` = 'IP'
86
+ *
87
+ * Note: vr is the relative air speed caused by body movement and not the air
88
+ * speed measured by the air speed sensor. The relative air speed is the sum of the
89
+ * average air speed measured by the sensor plus the activity-generated air speed
90
+ * (Vag). Where Vag is the activity-generated air speed caused by motion of
91
+ * individual body parts. vr can be calculated using the function v_relative_array in utilities.js.
92
+ * @param {number[]} rh - Relative humidity, [%]
93
+ * @param {number[]} met - Metabolic rate, [met]
94
+ * @param {number[]} clo - Clothing insulation, [clo]
95
+ *
96
+ * Note: The activity as well as the air speed modify the insulation characteristics
97
+ * of the clothing and the adjacent air layer. Consequently, the ISO 7730 states that
98
+ * the clothing insulation shall be corrected {@link #ref_2|[2]}. The ASHRAE 55 Standard corrects
99
+ * for the effect of the body movement for met equal or higher than 1.2 met using
100
+ * the equation clo = Icl × (0.6 + 0.4/met) The dynamic clothing insulation, clo,
101
+ * can be calculated using the function clo_dynamic_array in utilities.js.
102
+ * @param {number[]} e_coefficient - expectancy factor
103
+ * @param {number[]} wme - External work, default is array of 0
104
+ * @param {E_pmvKwargs} [kwargs] - additional arguments
105
+ *
106
+ * @returns {number[]} pmv - Predicted Mean Vote
107
+ *
108
+ * @example
109
+ * const tdb = [24, 30];
110
+ * const tr = [30, 30];
111
+ * const v = [0.22, 0.22];
112
+ * const met = [1.4, 1.4];
113
+ * const clo = [0.5, 0.5];
114
+ * // Calculate relative air speed
115
+ * const v_r = v_relative_array(v, met);
116
+ * // Calculate dynamic clothing
117
+ * const clo_d = clo_dynamic_array(clo, met);
118
+ * const e_coefficient = [0.6, 0.6];
119
+ *
120
+ * const result = e_pmv_array(tdb, tr, v_r, rh, met, clo_d, e_coefficient);
121
+ * console.log(result) // output [0.29, 0.91]
122
+ */
123
+ export function e_pmv_array(tdb: number[], tr: number[], vr: number[], rh: number[], met: number[], clo: number[], e_coefficient: number[], wme: number[], kwargs?: E_pmvKwargs): number[];
124
+ export type E_pmvKwargs = {
125
+ /**
126
+ * - select the SI (International System of Units) or the IP (Imperial Units) system.
127
+ */
128
+ units: 'SI' | 'IP';
129
+ /**
130
+ * - Default is True. By default, if the inputs are outside the standard
131
+ * applicability limits the function returns NaN. If false, returns pmv and ppd values even if input values
132
+ * are outside the applicability limits of the model.
133
+ *
134
+ * The ISO 7730 2005 limits are 10 < tdb [°C] < 30, 10 < tr [°C] < 40,
135
+ * 0 < vr [m/s] < 1, 0.8 < met [met] < 4, 0 < clo [clo] < 2, and -2 < PMV < 2.
136
+ */
137
+ limit_inputs: boolean;
138
+ };
139
+ //# sourceMappingURL=e_pmv.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"e_pmv.d.ts","sourceRoot":"","sources":["../../../../src/models/e_pmv.js"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,2BAxCW,MAAM,MACN,MAAM,MACN,MAAM,MAON,MAAM,OACN,MAAM,OACN,MAAM,iBAQN,MAAM,QACN,MAAM,WACN,WAAW,GAET,MAAM,CAwClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,iCAxCW,MAAM,EAAE,MACR,MAAM,EAAE,MACR,MAAM,EAAE,MAOR,MAAM,EAAE,OACR,MAAM,EAAE,OACR,MAAM,EAAE,iBAQR,MAAM,EAAE,OACR,MAAM,EAAE,WACR,WAAW,GAET,MAAM,EAAE,CA4CpB;;;;;WA5Ka,IAAI,GAAC,IAAI;;;;;;;;;kBACR,OAAO"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Calculates the Heat Index (HI). It combines air temperature and relative humidity to determine an apparent temperature.
3
+ * The HI equation {@link #ref_12|[12]} is derived by multiple regression analysis in temperature and relative humidity from the first version
4
+ * of Steadman’s (1979) apparent temperature (AT) {@link #ref_13|[13]}.
5
+ *
6
+ * @public
7
+ * @memberof models
8
+ * @docname Heat Index
9
+ *
10
+ * @param {number} tdb Dry bulb air temperature, default in [°C] in [°F] if `units` = 'IP'.
11
+ * @param {number} rh Relative humidity, [%].
12
+ * @param {Object} [options] (Optional) Other parameters.
13
+ * @param {boolean} [options.round=true] - If True rounds output value, if False it does not round it.
14
+ * @param {"SI" | "IP"} [options.units="SI"] - Select the SI (International System of Units) or the IP (Imperial Units) system.
15
+ *
16
+ * @returns {number} Heat Index, default in [°C] in [°F] if `units` = 'IP'.
17
+ *
18
+ * @example
19
+ * const hi = heat_index(25, 50); // returns 25.9
20
+ *
21
+ * @category Thermophysiological models
22
+ */
23
+ export function heat_index(tdb: number, rh: number, options?: {
24
+ round?: boolean;
25
+ units?: "SI" | "IP";
26
+ }): number;
27
+ //# sourceMappingURL=heat_index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heat_index.d.ts","sourceRoot":"","sources":["../../../../src/models/heat_index.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,gCAbW,MAAM,MACN,MAAM;IAEY,KAAK,GAAvB,OAAO;IACe,KAAK,GAA3B,IAAI,GAAG,IAAI;IAET,MAAM,CAwClB"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * @typedef {object} HumidexResult - a result set containing the humidex and
3
+ * discomfort level.
4
+ * @property {number} humidex - the humdidex given the provided dry bulb
5
+ * air temperature and relative humidity.
6
+ * @property {string} discomfort - a human description of how the weather
7
+ * would be felt by the average person.
8
+ * @public
9
+ */
10
+ /**
11
+ * Calculates the humidex (short for "humidity index"). It has been
12
+ * developed by the Canadian Meteorological service. It was introduced in 1965
13
+ * and then it was revised by Masterson and Richardson (1979) {@link #ref_14|[14]}. It aims
14
+ * to describe how hot, humid weather is felt by the average person. The
15
+ * Humidex differs from the heat index in being related to the dew point
16
+ * rather than relative humidity {@link #ref_15|[15]}.
17
+ *
18
+ * @public
19
+ * @memberof models
20
+ * @docname Humidex
21
+ *
22
+ * @param {number} tdb - dry bulb air temperature, [°C]
23
+ * @param {number} rh - relative humidity, [%]
24
+ * @param {object} [options] - configuration options for the function.
25
+ * @param {boolean} [options.round = true] - If true, rounds output value. If
26
+ * false, it does not.
27
+ *
28
+ * @returns {HumidexResult} the result given the provided temperature and
29
+ * relative humidity.
30
+ *
31
+ * @example
32
+ * const result = humidex(25, 50);
33
+ * console.log(result); // -> { humidex: 28.2, discomfort: "Little or no discomfort" }
34
+ */
35
+ export function humidex(tdb: number, rh: number, options?: {
36
+ round?: boolean;
37
+ }): HumidexResult;
38
+ /**
39
+ * - a result set containing the humidex and
40
+ * discomfort level.
41
+ */
42
+ export type HumidexResult = {
43
+ /**
44
+ * - the humdidex given the provided dry bulb
45
+ * air temperature and relative humidity.
46
+ */
47
+ humidex: number;
48
+ /**
49
+ * - a human description of how the weather
50
+ * would be felt by the average person.
51
+ */
52
+ discomfort: string;
53
+ };
54
+ //# sourceMappingURL=humidex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"humidex.d.ts","sourceRoot":"","sources":["../../../../src/models/humidex.js"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,6BAbW,MAAM,MACN,MAAM;IAEY,KAAK,GAAvB,OAAO;IAGL,aAAa,CA+BzB;;;;;;;;;;aAxDa,MAAM;;;;;gBAEN,MAAM"}
@@ -0,0 +1,77 @@
1
+ declare namespace _default {
2
+ export { heat_index };
3
+ export { phs };
4
+ export { humidex };
5
+ export { net };
6
+ export { wbgt };
7
+ export { clo_tout };
8
+ export { clo_tout_array };
9
+ export { discomfort_index };
10
+ export { discomfort_index_array };
11
+ export { two_nodes };
12
+ export { two_nodes_array };
13
+ export { wc };
14
+ export { adaptive_en };
15
+ export { adaptive_en_array };
16
+ export { at };
17
+ export { vertical_tmp_grad_ppd };
18
+ export { set_tmp };
19
+ export { set_tmp_array };
20
+ export { adaptive_ashrae };
21
+ export { adaptive_ashrae_array };
22
+ export { solar_gain };
23
+ export { cooling_effect };
24
+ export { pmv_ppd };
25
+ export { pmv_ppd_array };
26
+ export { pmv };
27
+ export { pmv_array };
28
+ export { athb };
29
+ export { athb_array };
30
+ export { a_pmv };
31
+ export { a_pmv_array };
32
+ export { ankle_draft };
33
+ export { e_pmv };
34
+ export { e_pmv_array };
35
+ export { use_fans_heatwaves };
36
+ export { utci };
37
+ export { utci_array };
38
+ export { pet_steady };
39
+ }
40
+ export default _default;
41
+ import { heat_index } from "./heat_index.js";
42
+ import { phs } from "./phs.js";
43
+ import { humidex } from "./humidex.js";
44
+ import { net } from "./net.js";
45
+ import { wbgt } from "./wbgt.js";
46
+ import { clo_tout } from "./clo_tout.js";
47
+ import { clo_tout_array } from "./clo_tout.js";
48
+ import { discomfort_index } from "./discomfort_index.js";
49
+ import { discomfort_index_array } from "./discomfort_index.js";
50
+ import { two_nodes } from "./two_nodes.js";
51
+ import { two_nodes_array } from "./two_nodes.js";
52
+ import { wc } from "./wc.js";
53
+ import { adaptive_en } from "./adaptive_en.js";
54
+ import { adaptive_en_array } from "./adaptive_en.js";
55
+ import { at } from "./at.js";
56
+ import { set_tmp } from "./set_tmp.js";
57
+ import { set_tmp_array } from "./set_tmp.js";
58
+ import { adaptive_ashrae } from "./adaptive_ashrae.js";
59
+ import { adaptive_ashrae_array } from "./adaptive_ashrae.js";
60
+ import { solar_gain } from "./solar_gain.js";
61
+ import { cooling_effect } from "./cooling_effect.js";
62
+ import { pmv_ppd } from "./pmv_ppd.js";
63
+ import { pmv_ppd_array } from "./pmv_ppd.js";
64
+ import { pmv } from "./pmv.js";
65
+ import { pmv_array } from "./pmv.js";
66
+ import { athb } from "./athb.js";
67
+ import { athb_array } from "./athb.js";
68
+ import { a_pmv } from "./a_pmv.js";
69
+ import { a_pmv_array } from "./a_pmv.js";
70
+ import { ankle_draft } from "./ankle_draft.js";
71
+ import { e_pmv } from "./e_pmv.js";
72
+ import { e_pmv_array } from "./e_pmv.js";
73
+ import { use_fans_heatwaves } from "./use_fans_heatwave.js";
74
+ import { utci } from "./utci.js";
75
+ import { utci_array } from "./utci.js";
76
+ import { pet_steady } from "./pet_steady.js";
77
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAA2B,iBAAiB;oBACxB,UAAU;wBACN,cAAc;oBAClB,UAAU;qBACT,WAAW;yBAqBS,eAAe;+BAAf,eAAe;iCAjBjD,uBAAuB;uCAAvB,uBAAuB;0BACa,gBAAgB;gCAAhB,gBAAgB;mBAExC,SAAS;4BACmB,kBAAkB;kCAAlB,kBAAkB;mBAC9C,SAAS;wBAHW,cAAc;8BAAd,cAAc;gCAKE,sBAAsB;sCAAtB,sBAAsB;2BAClD,iBAAiB;+BACb,qBAAqB;wBAHb,cAAc;8BAAd,cAAc;oBAKtB,UAAU;0BAAV,UAAU;qBADR,WAAW;2BAAX,WAAW;sBAET,YAAY;4BAAZ,YAAY;4BACnB,kBAAkB;sBACX,YAAY;4BAAZ,YAAY;mCAEZ,wBAAwB;qBAE1B,WAAW;2BAAX,WAAW;2BACjB,iBAAiB"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Calculates the Normal Effective Temperature (NET). Missenard (1933)
3
+ * devised a formula for calculating effective temperature. The index
4
+ * establishes a link between the same condition of the organism's
5
+ * thermoregulatory capability (warm and cold perception) and the surrounding
6
+ * environment's temperature and humidity. The index is calculated as a
7
+ * function of three meteorological factors: air temperature, relative
8
+ * humidity of air, and wind speed. This index allows to calculate the
9
+ * effective temperature felt by a person. Missenard original equation was
10
+ * then used to calculate the Normal Effective Temperature (NET), by
11
+ * considering normal atmospheric pressure and a normal human body temperature
12
+ * (37°C). The NET is still in use in Germany, where medical check-ups for
13
+ * subjects working in the heat are decided on by prevailing levels of ET,
14
+ * depending on metabolic rates. The NET is also constantly monitored by the
15
+ * Hong Kong Observatory {@link #ref_16|[16]}. In central Europe the following thresholds are
16
+ * in use: <1°C = very cold; 1–9 = cold; 9–17 = cool; 17–21 = fresh;
17
+ * 21–23 = comfortable; 23–27 = warm; >27°C = hot [1].
18
+ *
19
+ * @public
20
+ * @memberof models
21
+ * @docname Normal Effective Temperature (NET)
22
+ *
23
+ * @param {number} tdb - dry bulb air temperature, [°C]
24
+ * @param {number} rh - relative humidity, [%]
25
+ * @param {number} v - wind speed [m/s] at 1.2 m above the ground
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.
29
+ *
30
+ * @returns {number} Normal Effective Temperature, [°C]
31
+ *
32
+ * @example
33
+ * const result = net(37, 100, 0.1);
34
+ * console.log(result); // -> 37
35
+ */
36
+ export function net(tdb: number, rh: number, v: number, options?: {
37
+ round?: boolean;
38
+ }): number;
39
+ //# sourceMappingURL=net.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"net.d.ts","sourceRoot":"","sources":["../../../../src/models/net.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,yBAbW,MAAM,MACN,MAAM,KACN,MAAM;IAEY,KAAK,GAAvB,OAAO;IAGL,MAAM,CAkBlB"}
@@ -0,0 +1,59 @@
1
+ /**
2
+ * The steady physiological equivalent temperature (PET) is calculated using the Munich
3
+ * Energy-balance Model for Individuals (MEMI), which simulates the human body's thermal
4
+ * circumstances in a medically realistic manner. PET is defined as the air temperature
5
+ * at which, in a typical indoor setting the heat budget of the human body is balanced
6
+ * with the same core and skin temperature as under the complex outdoor conditions to be
7
+ * assessed {@link #ref_20|[20]}.
8
+ *
9
+ * The following assumptions are made for the indoor reference climate: tdb = tr, v = 0.1
10
+ * m/s, water vapour pressure = 12 hPa, clo = 0.9 clo, and met = 1.37 met + basic
11
+ * metabolism.
12
+ *
13
+ * PET allows a layperson to compare the total effects of complex thermal circumstances
14
+ * outside with his or her own personal experience indoors in this way. This function
15
+ * solves the heat balances without accounting for heat storage in the human body.
16
+ *
17
+ * The PET was originally proposed by Hoppe {@link #ref_20|[20]}. In 2018, Walther and Goestchel {@link #ref_21|[21]}
18
+ * proposed a correction of the original model, purging the errors in the
19
+ * PET calculation routine, and implementing a state-of-the-art vapour diffusion model.
20
+ * Walther and Goestchel (2018) model is therefore used to calculate the PET.
21
+ *
22
+ * @public
23
+ * @memberof models
24
+ * @docname Physiological Equivalent Temperature (PET)
25
+ *
26
+ * @param {number} tdb - dry bulb air temperature, [°C]
27
+ * @param {number} tr - mean radiant temperature, [°C]
28
+ * @param {number} v - air speed, [m/s]
29
+ * @param {number} rh - relative humidity, [%]
30
+ * @param {number} met - metabolic rate, [met]
31
+ * @param {number} clo - clothing insulation, [clo]
32
+ * @param {number} [p_atm=1013.25] - atmospheric pressure, default value 1013.25 [hPa]
33
+ * @param {1 | 2 | 3} [position=1] - position of the individual (1=sitting, 2=standing, 3=standing, forced convection)
34
+ * @param {number} [age=23] - age in years
35
+ * @param {1 | 2} [sex=1] - male (1) or female (2).
36
+ * @param {number} [weight=75] - body mass, [kg]
37
+ * @param {number} [height=1.8] - height, [m]
38
+ * @param {number} [wme=0] - external work, [W/(m2)]
39
+ *
40
+ * @returns {number} Steady-state PET under the given ambient conditions
41
+ *
42
+ * @example
43
+ * const result = pet_steady(20, 20, 50, 0.15, 1.37, 0.5);
44
+ * console.log(result); // 18.85
45
+ */
46
+ export function pet_steady(tdb: number, tr: number, v: number, rh: number, met: number, clo: number, p_atm?: number, position?: 1 | 2 | 3, age?: number, sex?: 1 | 2, weight?: number, height?: number, wme?: number): number;
47
+ export type NewtonRaphsonFunction = (: [number, number, number]) => [number, number, number];
48
+ export type NewtonRaphsonSingleFunction = (: [number]) => [number];
49
+ export type VasomotricitytRet = {
50
+ /**
51
+ * - Blood flow rate, [kg/m2/h]
52
+ */
53
+ m_blood: number;
54
+ /**
55
+ * - repartition of body mass between core and skin [].
56
+ */
57
+ alpha: number;
58
+ };
59
+ //# sourceMappingURL=pet_steady.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pet_steady.d.ts","sourceRoot":"","sources":["../../../../src/models/pet_steady.js"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,gCApBW,MAAM,MACN,MAAM,KACN,MAAM,MACN,MAAM,OACN,MAAM,OACN,MAAM,UACN,MAAM,aACN,CAAC,GAAG,CAAC,GAAG,CAAC,QACT,MAAM,QACN,CAAC,GAAG,CAAC,WACL,MAAM,WACN,MAAM,QACN,MAAM,GAEJ,MAAM,CAiDlB;uCAkcU,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,KACtB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;6CAK1B,CAAC,MAAM,CAAC,KACN,CAAC,MAAM,CAAC;;;;;aAxaP,MAAM;;;;WACN,MAAM"}