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,211 @@
1
+ /**
2
+ * @typedef {object} AdaptiveAshraeResult
3
+ * @property {number} tmp_cmf - Comfort temperature a that specific running mean temperature, default in [°C] or in [°F]
4
+ * @property {number} tmp_cmf_80_low - Lower acceptable comfort temperature for 80% occupants, default in [°C] or in [°F]
5
+ * @property {number} tmp_cmf_80_up - Upper acceptable comfort temperature for 80% occupants, default in [°C] or in [°F]
6
+ * @property {number} tmp_cmf_90_low - Lower acceptable comfort temperature for 90% occupants, default in [°C] or in [°F]
7
+ * @property {number} tmp_cmf_90_up - Upper acceptable comfort temperature for 90% occupants, default in [°C] or in [°F]
8
+ * @property {boolean} acceptability_80 - Acceptability for 80% occupants
9
+ * @property {boolean} acceptability_90 - Acceptability for 90% occupants
10
+ * @public
11
+ */
12
+ /**
13
+ * Determines the adaptive thermal comfort based on ASHRAE 55. The adaptive
14
+ * model relates indoor design temperatures or acceptable temperature ranges
15
+ * to outdoor meteorological or climatological parameters. The adaptive model
16
+ * can only be used in occupant-controlled naturally conditioned spaces that
17
+ * meet all the following criteria:
18
+ *
19
+ * - There is no mechianical cooling or heating system in operation
20
+ * - Occupants have a metabolic rate between 1.0 and 1.5 met
21
+ * - Occupants are free to adapt their clothing within a range as wide as 0.5 and 1.0 clo
22
+ * - The prevailing mean (runnin mean) outdoor temperature is between 10 and 33.5 °C
23
+ *
24
+ * @see {@link adaptive_ashrae_array} for a version that supports array arguments
25
+ *
26
+ * @public
27
+ * @memberof models
28
+ * @docname Adaptive ASHRAE
29
+ *
30
+ * @param {number} tdb - dry bulb air temperature, default in [°C] in [°F] if `units` = 'IP'
31
+ * @param {number} tr - mean radiant temperature, default in [°C] in [°F] if `units` = 'IP'
32
+ * @param {number} t_running_mean - running mean temperature, default in [°C] in [°C] in [°F] if `units` = 'IP'
33
+ * The running mean temperature can be calculated using the function {@link #running_mean_outdoor_temperature|running_mean_outdoor_temperature}
34
+ * @param {number} v - air speed, default in [m/s] in [fps] if `units` = 'IP'
35
+ * @param {"SI" | "IP"} units - select the SI (International System of Units) or the IP (Imperial Units) system.
36
+ * @param {boolean} limit_inputs - By default, if the inputs are outsude the standard applicability limits the
37
+ * function returns nan. If False returns pmv and ppd values even if input values are
38
+ * outside the applicability limits of the model.
39
+ *
40
+ * @returns {AdaptiveAshraeResult} set containing results for the model
41
+ *
42
+ * The ASHRAE 55 2020 limits are 10 < tdb [°C] < 40, 10 < tr [°C] < 40,
43
+ * 0 < vr [m/s] < 2, 10 < t running mean [°C] < 33.5
44
+ *
45
+ * You can use this function to calculate if your conditions are within the `adaptive thermal comfort region`.
46
+ * Calculations with comply with the ASHRAE 55 2020 Standard {@link #ref_1|[1]}.
47
+ *
48
+ * @example
49
+ * import { adaptive_ashrae } from "jsthermalcomfort/models";
50
+ * const results = adaptive_ashrae(25, 25, 20, 0.1);
51
+ * console.log(results);
52
+ * // {tmp_cmf: 24.0, tmp_cmf_80_low: 20.5, tmp_cmf_80_up: 27.5,
53
+ * // tmp_cmf_90_low: 21.5, tmp_cmf_90_up: 26.5, acceptability_80: true,
54
+ * // acceptability_90: true}
55
+ * console.log(results.acceptability_80);
56
+ * // true
57
+ *
58
+ * @example
59
+ * import { adaptive_ashrae } from "jsthermalcomfort/models";
60
+ * // For users who want to use the IP system
61
+ * const results = adaptive_ashrae(77, 77, 68, 0.3, 'IP');
62
+ * console.log(results);
63
+ * // {tmp_cmf: 75.2, tmp_cmf_80_low: 68.9, tmp_cmf_80_up: 81.5,
64
+ * // tmp_cmf_90_low: 70.7, tmp_cmf_90_up: 79.7, acceptability_80: true,
65
+ * // acceptability_90: true}
66
+ *
67
+ * @example
68
+ * import { adaptive_ashrae } from "jsthermalcomfort/models";
69
+ * const results = adaptive_ashrae(25, 25, 9, 0.1);
70
+ * console.log(results);
71
+ * // {tmp_cmf: NaN, tmp_cmf_80_low: NaN, ...}
72
+ * // The adaptive thermal comfort model can only be used
73
+ * // if the running mean temperature is higher than 10°C
74
+ */
75
+ export function adaptive_ashrae(tdb: number, tr: number, t_running_mean: number, v: number, units?: "SI" | "IP", limit_inputs?: boolean): AdaptiveAshraeResult;
76
+ /**
77
+ * @typedef {object} AdaptiveAshraeArrayResult
78
+ * @property {number[]} tmp_cmf - Comfort temperature a that specific running mean temperature, default in [°C] or in [°F]
79
+ * @property {number[]} tmp_cmf_80_low - Lower acceptable comfort temperature for 80% occupants, default in [°C] or in [°F]
80
+ * @property {number[]} tmp_cmf_80_up - Upper acceptable comfort temperature for 80% occupants, default in [°C] or in [°F]
81
+ * @property {number[]} tmp_cmf_90_low - Lower acceptable comfort temperature for 90% occupants, default in [°C] or in [°F]
82
+ * @property {number[]} tmp_cmf_90_up - Upper acceptable comfort temperature for 90% occupants, default in [°C] or in [°F]
83
+ * @property {boolean[]} acceptability_80 - Acceptability for 80% occupants
84
+ * @property {boolean[]} acceptability_90 - Acceptability for 90% occupants
85
+ * @public
86
+ */
87
+ /**
88
+ * Determines the adaptive thermal comfort based on ASHRAE 55. The adaptive
89
+ * model relates indoor design temperatures or acceptable temperature ranges
90
+ * to outdoor meteorological or climatological parameters. The adaptive model
91
+ * can only be used in occupant-controlled naturally conditioned spaces that
92
+ * meet all the following criteria:
93
+ *
94
+ * - There is no mechianical cooling or heating system in operation
95
+ * - Occupants have a metabolic rate between 1.0 and 1.5 met
96
+ * - Occupants are free to adapt their clothing within a range as wide as 0.5 and 1.0 clo
97
+ * - The prevailing mean (runnin mean) outdoor temperature is between 10 and 33.5 °C
98
+ *
99
+ * @see {@link adaptive_ashrae} for a version that supports scalar arguments
100
+ *
101
+ * @public
102
+ * @memberof models
103
+ * @docname Adaptive ASHRAE (array version)
104
+ *
105
+ * @param {number[]} tdb - dry bulb air temperature, default in [°C] in [°F] if `units` = 'IP'
106
+ * @param {number[]} tr - mean radiant temperature, default in [°C] in [°F] if `units` = 'IP'
107
+ * @param {number[]} t_running_mean - running mean temperature, default in [°C] in [°C] in [°F] if `units` = 'IP'
108
+ * The running mean temperature can be calculated using the function {@link #running_mean_outdoor_temperature|running_mean_outdoor_temperature}
109
+ * @param {number[]} v - air speed, default in [m/s] in [fps] if `units` = 'IP'
110
+ * @param {"SI" | "IP"} units - select the SI (International System of Units) or the IP (Imperial Units) system.
111
+ * @param {boolean} limit_inputs - By default, if the inputs are outsude the standard applicability limits the
112
+ * function returns nan. If False returns pmv and ppd values even if input values are
113
+ * outside the applicability limits of the model.
114
+ *
115
+ * @returns {AdaptiveAshraeArrayResult} set containing results for the model
116
+ *
117
+ * The ASHRAE 55 2020 limits are 10 < tdb [°C] < 40, 10 < tr [°C] < 40,
118
+ * 0 < vr [m/s] < 2, 10 < t running mean [°C] < 33.5
119
+ *
120
+ * You can use this function to calculate if your conditions are within the `adaptive thermal comfort region`.
121
+ * Calculations with comply with the ASHRAE 55 2020 Standard {@link #ref_1|[1]}.
122
+ *
123
+ * @example
124
+ * import { adaptive_ashrae_array } from "jsthermalcomfort/models";
125
+ * const results = adaptive_ashrae_array([25], [25], [20], [0.1]);
126
+ * console.log(results);
127
+ * // {tmp_cmf: [24.0], tmp_cmf_80_low: [20.5], tmp_cmf_80_up: [27.5],
128
+ * // tmp_cmf_90_low: [21.5], tmp_cmf_90_up: [26.5], acceptability_80: [true],
129
+ * // acceptability_90: [true]}
130
+ * console.log(results.acceptability_80);
131
+ * // [true]
132
+ *
133
+ * @example
134
+ * import { adaptive_ashrae_array } from "jsthermalcomfort/models";
135
+ * // For users who want to use the IP system
136
+ * const results = adaptive_ashrae_array([77], [77], [68], [0.3], 'IP');
137
+ * console.log(results);
138
+ * // {tmp_cmf: [75.2], tmp_cmf_80_low: [68.9], tmp_cmf_80_up: [81.5],
139
+ * // tmp_cmf_90_low: [70.7], tmp_cmf_90_up: [79.7], acceptability_80: [true],
140
+ * // acceptability_90: [true]}
141
+ *
142
+ * @example
143
+ * import { adaptive_ashrae_array } from "jsthermalcomfort/models";
144
+ * const results = adaptive_ashrae_array([25], [25], [9], [0.1]);
145
+ * console.log(results);
146
+ * // {tmp_cmf: [NaN], tmp_cmf_80_low: [NaN], ...}
147
+ * // The adaptive thermal comfort model can only be used
148
+ * // if the running mean temperature is higher than 10°C
149
+ */
150
+ export function adaptive_ashrae_array(tdb: number[], tr: number[], t_running_mean: number[], v: number[], units?: "SI" | "IP", limit_inputs?: boolean): AdaptiveAshraeArrayResult;
151
+ export type AdaptiveAshraeResult = {
152
+ /**
153
+ * - Comfort temperature a that specific running mean temperature, default in [°C] or in [°F]
154
+ */
155
+ tmp_cmf: number;
156
+ /**
157
+ * - Lower acceptable comfort temperature for 80% occupants, default in [°C] or in [°F]
158
+ */
159
+ tmp_cmf_80_low: number;
160
+ /**
161
+ * - Upper acceptable comfort temperature for 80% occupants, default in [°C] or in [°F]
162
+ */
163
+ tmp_cmf_80_up: number;
164
+ /**
165
+ * - Lower acceptable comfort temperature for 90% occupants, default in [°C] or in [°F]
166
+ */
167
+ tmp_cmf_90_low: number;
168
+ /**
169
+ * - Upper acceptable comfort temperature for 90% occupants, default in [°C] or in [°F]
170
+ */
171
+ tmp_cmf_90_up: number;
172
+ /**
173
+ * - Acceptability for 80% occupants
174
+ */
175
+ acceptability_80: boolean;
176
+ /**
177
+ * - Acceptability for 90% occupants
178
+ */
179
+ acceptability_90: boolean;
180
+ };
181
+ export type AdaptiveAshraeArrayResult = {
182
+ /**
183
+ * - Comfort temperature a that specific running mean temperature, default in [°C] or in [°F]
184
+ */
185
+ tmp_cmf: number[];
186
+ /**
187
+ * - Lower acceptable comfort temperature for 80% occupants, default in [°C] or in [°F]
188
+ */
189
+ tmp_cmf_80_low: number[];
190
+ /**
191
+ * - Upper acceptable comfort temperature for 80% occupants, default in [°C] or in [°F]
192
+ */
193
+ tmp_cmf_80_up: number[];
194
+ /**
195
+ * - Lower acceptable comfort temperature for 90% occupants, default in [°C] or in [°F]
196
+ */
197
+ tmp_cmf_90_low: number[];
198
+ /**
199
+ * - Upper acceptable comfort temperature for 90% occupants, default in [°C] or in [°F]
200
+ */
201
+ tmp_cmf_90_up: number[];
202
+ /**
203
+ * - Acceptability for 80% occupants
204
+ */
205
+ acceptability_80: boolean[];
206
+ /**
207
+ * - Acceptability for 90% occupants
208
+ */
209
+ acceptability_90: boolean[];
210
+ };
211
+ //# sourceMappingURL=adaptive_ashrae.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adaptive_ashrae.d.ts","sourceRoot":"","sources":["../../../../src/models/adaptive_ashrae.js"],"names":[],"mappings":"AAUA;;;;;;;;;;GAUG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,qCA7CW,MAAM,MACN,MAAM,kBACN,MAAM,KAEN,MAAM,UACN,IAAI,GAAG,IAAI,iBACX,OAAO,GAIL,oBAAoB,CA0HhC;AAED;;;;;;;;;;GAUG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,2CA7CW,MAAM,EAAE,MACR,MAAM,EAAE,kBACR,MAAM,EAAE,KAER,MAAM,EAAE,UACR,IAAI,GAAG,IAAI,iBACX,OAAO,GAIL,yBAAyB,CAiIrC;;;;;aA3Ua,MAAM;;;;oBACN,MAAM;;;;mBACN,MAAM;;;;oBACN,MAAM;;;;mBACN,MAAM;;;;sBACN,OAAO;;;;sBACP,OAAO;;;;;;aA8JP,MAAM,EAAE;;;;oBACR,MAAM,EAAE;;;;mBACR,MAAM,EAAE;;;;oBACR,MAAM,EAAE;;;;mBACR,MAAM,EAAE;;;;sBACR,OAAO,EAAE;;;;sBACT,OAAO,EAAE"}
@@ -0,0 +1,217 @@
1
+ /**
2
+ * @typedef {object} AdaptiveEnResult - a result set containing the results for {@link #adative_en|adaptive_en}
3
+ * @property {number} tmp_cmf - Comfort temperature at that specific running mean temperature, default in [°C] or in [°F]
4
+ * @property {boolean} acceptability_cat_i - If the indoor conditions comply with comfort category I
5
+ * @property {boolean} acceptability_cat_ii - If the indoor conditions comply with comfort category II
6
+ * @property {boolean} acceptability_cat_iii - If the indoor conditions comply with comfort category III
7
+ * @property {number} tmp_cmf_cat_i_up - Upper acceptable comfort temperature for category I, default in [°C] or in [°F]
8
+ * @property {number} tmp_cmf_cat_ii_up - Upper acceptable comfort temperature for category II, default in [°C] or in [°F]
9
+ * @property {number} tmp_cmf_cat_iii_up - Upper acceptable comfort temperature for category III, default in [°C] or in [°F]
10
+ * @property {number} tmp_cmf_cat_i_low - Lower acceptable comfort temperature for category I, default in [°C] or in [°F]
11
+ * @property {number} tmp_cmf_cat_ii_low - Lower acceptable comfort temperature for category II, default in [°C] or in [°F]
12
+ * @property {number} tmp_cmf_cat_iii_low - Lower acceptable comfort temperature for category III, default in [°C] or in [°F]
13
+ * @public
14
+ */
15
+ /**
16
+ * Determines the adaptive thermal comfort based on EN 16798-1 2019 {@link #ref_3|[3]}
17
+ *
18
+ * Note: You can use this function to calculate if your conditions are within the EN
19
+ * adaptive thermal comfort region. Calculations with comply with the EN 16798-1 2019 {@link #ref_3|[3]}.
20
+ *
21
+ * @see {@link adaptive_en_array} for a version that supports array arguments
22
+ *
23
+ * @public
24
+ * @memberof models
25
+ * @docname Adaptive EN
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} t_running_mean - running mean temperature, default in [°C] in [°C] in [°F] if `units` = 'IP'
30
+ * The running mean temperature can be calculated using the function {@link #running_mean_outdoor_temperature|running_mean_outdoor_temperature}
31
+ *
32
+ * @param {number} v - air speed, default in [m/s] in [fps] if `units` = 'IP'
33
+ *
34
+ * Note: Indoor operative temperature correction is applicable for buildings equipped
35
+ * with fans or personal systems providing building occupants with personal
36
+ * control over air speed at occupant level.
37
+ * For operative temperatures above 25°C the comfort zone upper limit can be
38
+ * increased by 1.2 °C (0.6 < v < 0.9 m/s), 1.8 °C (0.9 < v < 1.2 m/s), 2.2 °C (v > 1.2 m/s)
39
+ *
40
+ * @param {"IP" | "SI"} [units="SI"] - select the SI (International System of Units) or the IP (Imperial Units) system.
41
+ * @param {boolean} [limit_inputs=true] - By default, if the inputs are outsude the standard applicability limits the
42
+ * function returns nan. If False returns pmv and ppd values even if input values are
43
+ * outside the applicability limits of the model.
44
+ *
45
+ * @returns {AdaptiveEnResult} result set
46
+ *
47
+ * @example
48
+ * const results = adaptive_en(25, 25, 20, 0.1);
49
+ * console.log(results); // {tmp_cmf: 25.4, acceptability_cat_i: true, acceptability_cat_ii: true, ... }
50
+ * console.log(results.acceptability_cat_i); // true
51
+ * // The conditions you entered are considered to comply with Category I
52
+ *
53
+ * @example
54
+ * // for users who wants to use the IP system
55
+ * const results = adaptive_en(77, 77, 68, 0.3, 'IP');
56
+ * console.log(results); // {tmp_cmf: 77.7, acceptability_cat_i: true, acceptability_cat_ii: true, ... }
57
+ *
58
+ * @example
59
+ * const results = adaptive_en(25, 25, 9, 0.1);
60
+ * console.log(results); // {tmp_cmf: NaN, acceptability_cat_i: true, acceptability_cat_ii: true, ... }
61
+ * // The adaptive thermal comfort model can only be used
62
+ * // if the running mean temperature is between 10 °C and 30 °C
63
+ */
64
+ export function adaptive_en(tdb: number, tr: number, t_running_mean: number, v: number, units?: "IP" | "SI", limit_inputs?: boolean): AdaptiveEnResult;
65
+ /**
66
+ * @typedef {object} AdaptiveEnArrayResult - a result set containing the results for {@link #adative_en_array|adaptive_en_array}
67
+ * @property {number[]} tmp_cmf - Comfort temperature at that specific running mean temperature, default in [°C] or in [°F]
68
+ * @property {boolean[]} acceptability_cat_i - If the indoor conditions comply with comfort category I
69
+ * @property {boolean[]} acceptability_cat_ii - If the indoor conditions comply with comfort category II
70
+ * @property {boolean[]} acceptability_cat_iii - If the indoor conditions comply with comfort category III
71
+ * @property {number[]} tmp_cmf_cat_i_up - Upper acceptable comfort temperature for category I, default in [°C] or in [°F]
72
+ * @property {number[]} tmp_cmf_cat_ii_up - Upper acceptable comfort temperature for category II, default in [°C] or in [°F]
73
+ * @property {number[]} tmp_cmf_cat_iii_up - Upper acceptable comfort temperature for category III, default in [°C] or in [°F]
74
+ * @property {number[]} tmp_cmf_cat_i_low - Lower acceptable comfort temperature for category I, default in [°C] or in [°F]
75
+ * @property {number[]} tmp_cmf_cat_ii_low - Lower acceptable comfort temperature for category II, default in [°C] or in [°F]
76
+ * @property {number[]} tmp_cmf_cat_iii_low - Lower acceptable comfort temperature for category III, default in [°C] or in [°F]
77
+ * @public
78
+ */
79
+ /**
80
+ * Determines the adaptive thermal comfort based on EN 16798-1 2019 {@link #ref_3|[3]}
81
+ *
82
+ * Note: You can use this function to calculate if your conditions are within the EN
83
+ * adaptive thermal comfort region. Calculations with comply with the EN 16798-1 2019 {@link #ref_3|[3]}.
84
+ *
85
+ * @public
86
+ * @memberof models
87
+ * @docname Adaptive EN (array version)
88
+ *
89
+ * @see {@link adaptive_en} for a version that supports scalar arguments
90
+ *
91
+ * @param {number[]} tdb - dry bulb air temperature, default in [°C] in [°F] if `units` = 'IP'
92
+ * @param {number[]} tr - mean radiant temperature, default in [°C] in [°F] if `units` = 'IP'
93
+ * @param {number[]} t_running_mean - running mean temperature, default in [°C] in [°C] in [°F] if `units` = 'IP'
94
+ * The running mean temperature can be calculated using the function {@link #running_mean_outdoor_temperature|running_mean_outdoor_temperature}
95
+ *
96
+ * @param {number[]} v - air speed, default in [m/s] in [fps] if `units` = 'IP'
97
+ *
98
+ * Note: Indoor operative temperature correction is applicable for buildings equipped
99
+ * with fans or personal systems providing building occupants with personal
100
+ * control over air speed at occupant level.
101
+ * For operative temperatures above 25°C the comfort zone upper limit can be
102
+ * increased by 1.2 °C (0.6 < v < 0.9 m/s), 1.8 °C (0.9 < v < 1.2 m/s), 2.2 °C (v> 1.2 m/s)
103
+ *
104
+ * @param {"IP" | "SI"} [units="SI"] - select the SI (International System of Units) or the IP (Imperial Units) system.
105
+ * @param {boolean} [limit_inputs=true] - By default, if the inputs are outsude the standard applicability limits the
106
+ * function returns nan. If False returns pmv and ppd values even if input values are
107
+ * outside the applicability limits of the model.
108
+ *
109
+ * @returns {AdaptiveEnArrayResult} result set
110
+ *
111
+ * @example
112
+ * const results = adaptive_en([25,25], [25,25], [20,9], [0.1,0.1]);
113
+ * console.log(results); // {tmp_cmf: [25.4, NaN], acceptability_cat_i: [true, true], acceptability_cat_ii: [true, true], ... }
114
+ * console.log(results.acceptability_cat_i); // [true, true]
115
+ * // The conditions you entered are considered to comply with Category I
116
+ * // The adaptive thermal comfort model can only be used
117
+ * // if the running mean temperature is between 10 °C and 30 °C
118
+ */
119
+ export function adaptive_en_array(tdb: number[], tr: number[], t_running_mean: number[], v: number[], units?: "IP" | "SI", limit_inputs?: boolean): AdaptiveEnArrayResult;
120
+ /**
121
+ *
122
+ * @param {number} v
123
+ * @param {number} to
124
+ * @returns {number}
125
+ */
126
+ export function get_ce(v: number, to: number): number;
127
+ /**
128
+ * - a result set containing the results for {@link #adative_en|adaptive_en}
129
+ */
130
+ export type AdaptiveEnResult = {
131
+ /**
132
+ * - Comfort temperature at that specific running mean temperature, default in [°C] or in [°F]
133
+ */
134
+ tmp_cmf: number;
135
+ /**
136
+ * - If the indoor conditions comply with comfort category I
137
+ */
138
+ acceptability_cat_i: boolean;
139
+ /**
140
+ * - If the indoor conditions comply with comfort category II
141
+ */
142
+ acceptability_cat_ii: boolean;
143
+ /**
144
+ * - If the indoor conditions comply with comfort category III
145
+ */
146
+ acceptability_cat_iii: boolean;
147
+ /**
148
+ * - Upper acceptable comfort temperature for category I, default in [°C] or in [°F]
149
+ */
150
+ tmp_cmf_cat_i_up: number;
151
+ /**
152
+ * - Upper acceptable comfort temperature for category II, default in [°C] or in [°F]
153
+ */
154
+ tmp_cmf_cat_ii_up: number;
155
+ /**
156
+ * - Upper acceptable comfort temperature for category III, default in [°C] or in [°F]
157
+ */
158
+ tmp_cmf_cat_iii_up: number;
159
+ /**
160
+ * - Lower acceptable comfort temperature for category I, default in [°C] or in [°F]
161
+ */
162
+ tmp_cmf_cat_i_low: number;
163
+ /**
164
+ * - Lower acceptable comfort temperature for category II, default in [°C] or in [°F]
165
+ */
166
+ tmp_cmf_cat_ii_low: number;
167
+ /**
168
+ * - Lower acceptable comfort temperature for category III, default in [°C] or in [°F]
169
+ */
170
+ tmp_cmf_cat_iii_low: number;
171
+ };
172
+ /**
173
+ * - a result set containing the results for {@link #adative_en_array|adaptive_en_array}
174
+ */
175
+ export type AdaptiveEnArrayResult = {
176
+ /**
177
+ * - Comfort temperature at that specific running mean temperature, default in [°C] or in [°F]
178
+ */
179
+ tmp_cmf: number[];
180
+ /**
181
+ * - If the indoor conditions comply with comfort category I
182
+ */
183
+ acceptability_cat_i: boolean[];
184
+ /**
185
+ * - If the indoor conditions comply with comfort category II
186
+ */
187
+ acceptability_cat_ii: boolean[];
188
+ /**
189
+ * - If the indoor conditions comply with comfort category III
190
+ */
191
+ acceptability_cat_iii: boolean[];
192
+ /**
193
+ * - Upper acceptable comfort temperature for category I, default in [°C] or in [°F]
194
+ */
195
+ tmp_cmf_cat_i_up: number[];
196
+ /**
197
+ * - Upper acceptable comfort temperature for category II, default in [°C] or in [°F]
198
+ */
199
+ tmp_cmf_cat_ii_up: number[];
200
+ /**
201
+ * - Upper acceptable comfort temperature for category III, default in [°C] or in [°F]
202
+ */
203
+ tmp_cmf_cat_iii_up: number[];
204
+ /**
205
+ * - Lower acceptable comfort temperature for category I, default in [°C] or in [°F]
206
+ */
207
+ tmp_cmf_cat_i_low: number[];
208
+ /**
209
+ * - Lower acceptable comfort temperature for category II, default in [°C] or in [°F]
210
+ */
211
+ tmp_cmf_cat_ii_low: number[];
212
+ /**
213
+ * - Lower acceptable comfort temperature for category III, default in [°C] or in [°F]
214
+ */
215
+ tmp_cmf_cat_iii_low: number[];
216
+ };
217
+ //# sourceMappingURL=adaptive_en.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adaptive_en.d.ts","sourceRoot":"","sources":["../../../../src/models/adaptive_en.js"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,iCArCW,MAAM,MACN,MAAM,kBACN,MAAM,KAGN,MAAM,UAQN,IAAI,GAAG,IAAI,iBACX,OAAO,GAIL,gBAAgB,CAqG5B;AAED;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,uCA5BW,MAAM,EAAE,MACR,MAAM,EAAE,kBACR,MAAM,EAAE,KAGR,MAAM,EAAE,UAQR,IAAI,GAAG,IAAI,iBACX,OAAO,GAIL,qBAAqB,CAoIjC;AAED;;;;;GAKG;AACH,0BAJW,MAAM,MACN,MAAM,GACJ,MAAM,CAclB;;;;;;;;aAvVa,MAAM;;;;yBACN,OAAO;;;;0BACP,OAAO;;;;2BACP,OAAO;;;;sBACP,MAAM;;;;uBACN,MAAM;;;;wBACN,MAAM;;;;uBACN,MAAM;;;;wBACN,MAAM;;;;yBACN,MAAM;;;;;;;;;aA2IN,MAAM,EAAE;;;;yBACR,OAAO,EAAE;;;;0BACT,OAAO,EAAE;;;;2BACT,OAAO,EAAE;;;;sBACT,MAAM,EAAE;;;;uBACR,MAAM,EAAE;;;;wBACR,MAAM,EAAE;;;;uBACR,MAAM,EAAE;;;;wBACR,MAAM,EAAE;;;;yBACR,MAAM,EAAE"}
@@ -0,0 +1,60 @@
1
+ /**
2
+ * @public
3
+ * @typedef {Object} AnkleDraftRet
4
+ * @property {number} PPD_ad - redicted Percentage of Dissatisfied occupants with ankle draft, [%]
5
+ * @property {boolean} Acceptability - The ASHRAE 55 2020 standard defines that the value of air speed at the ankle level is acceptable if PPD_ad is lower or equal than 20%
6
+ */
7
+ /**
8
+ * Calculates the percentage of thermally dissatisfied people with the ankle draft (0.1 m) above floor level {@link #ref_23|[23]}.
9
+ This equation is only applicable for vr < 0.2 m/s (40 fps).
10
+ * @public
11
+ * @memberof models
12
+ * @docname Ankle draft
13
+ *
14
+ * @param {number} tdb - dry bulb air temperature, default in [°C] in [°F] if `units` = 'IP'
15
+ *
16
+ Note: The air temperature is the average value over two heights: 0.6 m (24 in.)
17
+ and 1.1 m (43 in.) for seated occupants
18
+ and 1.1 m (43 in.) and 1.7 m (67 in.) for standing occupants.
19
+
20
+ * @param {number} tr - mean radiant temperature, default in [°C] in [°F] if `units` = 'IP'
21
+ * @param {number} vr - relative air speed, default in [m/s] in [fps] if `units` = 'IP'
22
+
23
+ Note: vr is the relative air speed caused by body movement and not the air
24
+ speed measured by the air speed sensor. The relative air speed is the sum of the
25
+ average air speed measured by the sensor plus the activity-generated air speed
26
+ (Vag). Where Vag is the activity-generated air speed caused by motion of
27
+ individual body parts. vr can be calculated using the function v_relative in utilities.js.
28
+
29
+ * @param {number} rh - relative humidity, [%]
30
+ * @param {number} met - metabolic rate, [met]
31
+ * @param {number} clo - clothing insulation, [clo]
32
+
33
+ Note: The activity as well as the air speed modify the insulation characteristics
34
+ of the clothing and the adjacent air layer. Consequently, the ISO 7730 states that
35
+ the clothing insulation shall be corrected {@link #ref_2|[2]}. The ASHRAE 55 Standard corrects
36
+ for the effect of the body movement for met equal or higher than 1.2 met using
37
+ the equation clo = Icl × (0.6 + 0.4/met) The dynamic clothing insulation, clo,
38
+ can be calculated using the function clo_dynamic in utilities.js.
39
+ * @param {number} v_ankle - air speed at the 0.1 m (4 in.) above the floor, default in [m/s] in [fps] if
40
+ `units` = 'IP'
41
+ * @param {"IP"|"SI"} [units="SI"] - select the SI (International System of Units) or the IP (Imperial Units) system.
42
+ * @returns {AnkleDraftRet} - Returns {"PPD_ad": ppd_val, "Acceptability": acceptability}
43
+ *
44
+ * @example
45
+ * results = ankle_draft(25, 25, 0.2, 50, 1.2, 0.5, 0.3, "SI")
46
+ * console.log(results) // expected result is {PPD_ad: 18.5, Acceptability: true}
47
+ *
48
+ */
49
+ export function ankle_draft(tdb: number, tr: number, vr: number, rh: number, met: number, clo: number, v_ankle: number, units?: "IP" | "SI"): AnkleDraftRet;
50
+ export type AnkleDraftRet = {
51
+ /**
52
+ * - redicted Percentage of Dissatisfied occupants with ankle draft, [%]
53
+ */
54
+ PPD_ad: number;
55
+ /**
56
+ * - The ASHRAE 55 2020 standard defines that the value of air speed at the ankle level is acceptable if PPD_ad is lower or equal than 20%
57
+ */
58
+ Acceptability: boolean;
59
+ };
60
+ //# sourceMappingURL=ankle_draft.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ankle_draft.d.ts","sourceRoot":"","sources":["../../../../src/models/ankle_draft.js"],"names":[],"mappings":"AAOA;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,iCAnCW,MAAM,MAMN,MAAM,MACN,MAAM,MAQN,MAAM,OACN,MAAM,OACN,MAAM,WAQN,MAAM,UAEN,IAAI,GAAC,IAAI,GACP,aAAa,CAwCzB;;;;;YA/Ea,MAAM;;;;mBACN,OAAO"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Calculates the Apparent Temperature (AT). The AT is defined as the temperature at the reference
3
+ * humidity level producing the same amount of discomfort as that experienced under the current ambient
4
+ * temperature, humidity, and solar radiation {@link #ref_17|[17]}. In other words, the AT is an adjustment to the dry
5
+ * bulb temperature based on the relative humidity value. Absolute humidity with a dew point of 14°C
6
+ * is chosen as a reference.
7
+ *
8
+ * {@link #ref_16|[16]}. It includes the chilling effect of the wind at lower temperatures.
9
+ *
10
+ * Two formulas for AT are in use by the Australian Bureau of Meteorology: one includes solar
11
+ * radiation and the other one does not ({@link http://www.bom.gov.au/info/thermal_stress/}, 29 Sep 2021).
12
+ * Please specify q if you want to estimate AT with solar load.
13
+ *
14
+ * @public
15
+ * @memberof models
16
+ * @docname Apparent Temperature (AT)
17
+ *
18
+ * @param {number} tdb - dry bulb air temperature, [°C]
19
+ * @param {number} rh - relative humidity, [%]
20
+ * @param {number} v - wind speed 10m above ground level, [m/s]
21
+ * @param {number | undefined} [q] - Net radiation absorbed per unit area of body surface [W/m2]
22
+ * @param {object} [kwargs] - other parameters
23
+ * @param {boolean} [kwargs.round=true] - if True rounds output value, if False it does not round it
24
+ *
25
+ * @returns {number} apparent temperature, [°C]
26
+ *
27
+ * @example
28
+ * const result = at(25, 30, 0.1);
29
+ * console.log(result); // 24.1
30
+ */
31
+ export function at(tdb: number, rh: number, v: number, q?: number | undefined, kwargs?: {
32
+ round?: boolean;
33
+ }): number;
34
+ //# sourceMappingURL=at.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"at.d.ts","sourceRoot":"","sources":["../../../../src/models/at.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAbW,MAAM,MACN,MAAM,KACN,MAAM,MACN,MAAM,GAAG,SAAS;IAED,KAAK,GAAtB,OAAO;IAEL,MAAM,CAsBlB"}
@@ -0,0 +1,96 @@
1
+ /**
2
+ * Return the PMV value calculated with the Adaptive Thermal Heat Balance
3
+ * Framework {@link #ref_27|[27]}. The adaptive thermal heat balance (ATHB) framework
4
+ * introduced a method to account for the three adaptive principals, namely
5
+ * physiological, behavioral, and psychological adaptation, individually
6
+ * within existing heat balance models. The objective is a predictive model of
7
+ * thermal sensation applicable during the design stage or in international
8
+ * standards without knowing characteristics of future occupants.
9
+ *
10
+ * This is a version that supports scalar arguments.
11
+ * @see {@link athb_array} for a version that supports arrays.
12
+ *
13
+ * @public
14
+ * @memberof models
15
+ * @docname Adaptive Thermal Heat Balance (athb)
16
+ *
17
+ * @param { number } tdb - dry bulb air temperature, in [°C]
18
+ * @param { number } tr - mean radiant temperature, in [°C]
19
+ * @param { number } vr - relative air speed, in [m/s]
20
+ *
21
+ * Note: vr is the relative air speed caused by body movement and not the air
22
+ * speed measured by the air speed sensor. The relative air speed is the sum of the
23
+ * average air speed measured by the sensor plus the activity-generated air speed
24
+ * (Vag). Where Vag is the activity-generated air speed caused by motion of
25
+ * individual body parts. vr can be calculated using the function jsthermalcomfort.utilities.v_relative.
26
+ *
27
+ * @param { number } rh - relative humidity, [%]
28
+ * @param { number } met - metabolic rate, [met]
29
+ * @param { number } t_running_mean - running mean temperature, in [°C]
30
+ *
31
+ * The running mean temperature can be calculated using the function
32
+ * jsthermalcomfort.utilities.running_mean_outdoor_temperature.
33
+ *
34
+ * @returns { number } athb_pmv - Predicted Mean Vote calculated with the Adaptive Thermal Heat Balance framework
35
+ *
36
+ * @example
37
+ * const tdb = 25;
38
+ * const tr = 25;
39
+ * const vr = 0.1;
40
+ * const rh = 50;
41
+ * const met = 1.1;
42
+ * const t_running_mean = 20;
43
+ *
44
+ * const athb_result = athb(tdb, tr, vr, rh, met, t_running_mean);
45
+ * console.log(athb_result); // Output: 0.2
46
+ */
47
+ export function athb(tdb: number, tr: number, vr: number, rh: number, met: number, t_running_mean: number): number;
48
+ /**
49
+ * Return the PMV value calculated with the Adaptive Thermal Heat Balance
50
+ * Framework {@link #ref_27|[27]}. The adaptive thermal heat balance (ATHB) framework
51
+ * introduced a method to account for the three adaptive principals, namely
52
+ * physiological, behavioral, and psychological adaptation, individually
53
+ * within existing heat balance models. The objective is a predictive model of
54
+ * thermal sensation applicable during the design stage or in international
55
+ * standards without knowing characteristics of future occupants.
56
+ *
57
+ * This is a version that supports arrays.
58
+ * @see {@link athb} for a version that supports scalar arguments.
59
+ *
60
+ * @public
61
+ * @memberof models
62
+ * @docname Adaptive Thermal Heat Balance (athb) (array version)
63
+ *
64
+ * @param { number[] } tdb - dry bulb air temperature, in [°C]
65
+ * @param { number[] } tr - mean radiant temperature, in [°C]
66
+ * @param { number[] } vr - relative air speed, in [m/s]
67
+ *
68
+ * Note: vr is the relative air speed caused by body movement and not the air
69
+ * speed measured by the air speed sensor. The relative air speed is the sum of the
70
+ * average air speed measured by the sensor plus the activity-generated air speed
71
+ * (Vag). Where Vag is the activity-generated air speed caused by motion of
72
+ * individual body parts. vr can be calculated using the function
73
+ * jsthermalcomfort.utilities.v_relative.
74
+ *
75
+ * @param { number[] } rh - relative humidity, [%]
76
+ * @param { number[] } met - metabolic rate, [met]
77
+ * @param { number[] } t_running_mean - running mean temperature, in [°C]
78
+ *
79
+ * The running mean temperature can be calculated using the function
80
+ * jsthermalcomfort.utilities.running_mean_outdoor_temperature.
81
+ *
82
+ * @returns { number[] } athb_pmv - Predicted Mean Vote calculated with the Adaptive Thermal Heat Balance framework
83
+ *
84
+ * @example
85
+ * const tdb = [25, 27];
86
+ * const tr = [25, 25];
87
+ * const vr = [0.1, 0.1];
88
+ * const rh = [50, 50];
89
+ * const met = [1.1, 1.1];
90
+ * const t_running_mean = [20, 20];
91
+ *
92
+ * const athb_array_result = athb_array(tdb, tr, vr, rh, met, t_running_mean);
93
+ * console.log(athb_array_result); // Output: [0.2, 0.209]
94
+ */
95
+ export function athb_array(tdb: number[], tr: number[], vr: number[], rh: number[], met: number[], t_running_mean: number[]): number[];
96
+ //# sourceMappingURL=athb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"athb.d.ts","sourceRoot":"","sources":["../../../../src/models/athb.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,0BA9BY,MAAM,MACN,MAAM,MACN,MAAM,MAQN,MAAM,OACN,MAAM,kBACN,MAAM,GAKJ,MAAM,CAsCnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,gCA/BY,MAAM,EAAE,MACR,MAAM,EAAE,MACR,MAAM,EAAE,MASR,MAAM,EAAE,OACR,MAAM,EAAE,kBACR,MAAM,EAAE,GAKN,MAAM,EAAE,CA2DrB"}