jsthermalcomfort 1.1.0 → 1.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 (197) hide show
  1. package/lib/cjs/index.js +17 -0
  2. package/lib/cjs/models/JOS3.js +5 -6
  3. package/lib/cjs/models/a_pmv.js +26 -1
  4. package/lib/cjs/models/adaptive_ashrae.js +9 -0
  5. package/lib/cjs/models/adaptive_en.js +9 -0
  6. package/lib/cjs/models/ankle_draft.js +12 -1
  7. package/lib/cjs/models/at.js +8 -0
  8. package/lib/cjs/models/athb.js +9 -0
  9. package/lib/cjs/models/clo_tout.js +6 -0
  10. package/lib/cjs/models/cooling_effect.js +11 -0
  11. package/lib/cjs/models/discomfort_index.js +5 -0
  12. package/lib/cjs/models/e_pmv.js +27 -2
  13. package/lib/cjs/models/heat_index.js +9 -0
  14. package/lib/cjs/models/humidex.js +6 -0
  15. package/lib/cjs/models/index.js +28 -5
  16. package/lib/cjs/models/net.js +7 -0
  17. package/lib/cjs/models/pet_steady.js +30 -0
  18. package/lib/cjs/models/phs.js +58 -0
  19. package/lib/cjs/models/pmv.js +34 -2
  20. package/lib/cjs/models/pmv_ppd.js +38 -7
  21. package/lib/cjs/models/pmv_ppd_ashrae.js +29 -0
  22. package/lib/cjs/models/pmv_ppd_iso.js +27 -0
  23. package/lib/cjs/models/set_tmp.js +33 -0
  24. package/lib/cjs/models/solar_gain.js +22 -2
  25. package/lib/cjs/models/two_nodes.js +42 -10
  26. package/lib/cjs/models/use_fans_heatwave.js +35 -0
  27. package/lib/cjs/models/utci.js +41 -27
  28. package/lib/cjs/models/vertical_tmp_grad_ppd.js +13 -1
  29. package/lib/cjs/models/wbgt.js +18 -4
  30. package/lib/cjs/models/wc.js +6 -0
  31. package/lib/cjs/psychrometrics/index.js +9 -5
  32. package/lib/cjs/psychrometrics/t_mrt.js +1 -1
  33. package/lib/cjs/types/index.d.ts +3 -0
  34. package/lib/cjs/types/index.d.ts.map +1 -1
  35. package/lib/cjs/types/models/JOS3.d.ts +3 -3
  36. package/lib/cjs/types/models/JOS3.d.ts.map +1 -1
  37. package/lib/cjs/types/models/a_pmv.d.ts +3 -68
  38. package/lib/cjs/types/models/a_pmv.d.ts.map +1 -1
  39. package/lib/cjs/types/models/adaptive_ashrae.d.ts +9 -74
  40. package/lib/cjs/types/models/adaptive_ashrae.d.ts.map +1 -1
  41. package/lib/cjs/types/models/adaptive_en.d.ts +12 -63
  42. package/lib/cjs/types/models/adaptive_en.d.ts.map +1 -1
  43. package/lib/cjs/types/models/ankle_draft.d.ts +4 -49
  44. package/lib/cjs/types/models/ankle_draft.d.ts.map +1 -1
  45. package/lib/cjs/types/models/at.d.ts +5 -38
  46. package/lib/cjs/types/models/at.d.ts.map +1 -1
  47. package/lib/cjs/types/models/athb.d.ts +3 -51
  48. package/lib/cjs/types/models/athb.d.ts.map +1 -1
  49. package/lib/cjs/types/models/clo_tout.d.ts +3 -26
  50. package/lib/cjs/types/models/clo_tout.d.ts.map +1 -1
  51. package/lib/cjs/types/models/cooling_effect.d.ts +3 -52
  52. package/lib/cjs/types/models/cooling_effect.d.ts.map +1 -1
  53. package/lib/cjs/types/models/discomfort_index.d.ts +4 -31
  54. package/lib/cjs/types/models/discomfort_index.d.ts.map +1 -1
  55. package/lib/cjs/types/models/e_pmv.d.ts +3 -71
  56. package/lib/cjs/types/models/e_pmv.d.ts.map +1 -1
  57. package/lib/cjs/types/models/heat_index.d.ts +6 -31
  58. package/lib/cjs/types/models/heat_index.d.ts.map +1 -1
  59. package/lib/cjs/types/models/humidex.d.ts +6 -37
  60. package/lib/cjs/types/models/humidex.d.ts.map +1 -1
  61. package/lib/cjs/types/models/index.d.ts +1 -0
  62. package/lib/cjs/types/models/net.d.ts +5 -43
  63. package/lib/cjs/types/models/net.d.ts.map +1 -1
  64. package/lib/cjs/types/models/pet_steady.d.ts +5 -56
  65. package/lib/cjs/types/models/pet_steady.d.ts.map +1 -1
  66. package/lib/cjs/types/models/phs.d.ts +28 -121
  67. package/lib/cjs/types/models/phs.d.ts.map +1 -1
  68. package/lib/cjs/types/models/pmv.d.ts +7 -94
  69. package/lib/cjs/types/models/pmv.d.ts.map +1 -1
  70. package/lib/cjs/types/models/pmv_ppd.d.ts +8 -102
  71. package/lib/cjs/types/models/pmv_ppd.d.ts.map +1 -1
  72. package/lib/cjs/types/models/pmv_ppd_ashrae.d.ts +4 -48
  73. package/lib/cjs/types/models/pmv_ppd_ashrae.d.ts.map +1 -1
  74. package/lib/cjs/types/models/pmv_ppd_iso.d.ts +4 -48
  75. package/lib/cjs/types/models/pmv_ppd_iso.d.ts.map +1 -1
  76. package/lib/cjs/types/models/set_tmp.d.ts +3 -48
  77. package/lib/cjs/types/models/set_tmp.d.ts.map +1 -1
  78. package/lib/cjs/types/models/solar_gain.d.ts +4 -56
  79. package/lib/cjs/types/models/solar_gain.d.ts.map +1 -1
  80. package/lib/cjs/types/models/two_nodes.d.ts +58 -110
  81. package/lib/cjs/types/models/two_nodes.d.ts.map +1 -1
  82. package/lib/cjs/types/models/use_fans_heatwave.d.ts +1 -92
  83. package/lib/cjs/types/models/use_fans_heatwave.d.ts.map +1 -1
  84. package/lib/cjs/types/models/utci.d.ts +8 -35
  85. package/lib/cjs/types/models/utci.d.ts.map +1 -1
  86. package/lib/cjs/types/models/vertical_tmp_grad_ppd.d.ts +4 -43
  87. package/lib/cjs/types/models/vertical_tmp_grad_ppd.d.ts.map +1 -1
  88. package/lib/cjs/types/models/wbgt.d.ts +3 -55
  89. package/lib/cjs/types/models/wbgt.d.ts.map +1 -1
  90. package/lib/cjs/types/models/wc.d.ts +2 -25
  91. package/lib/cjs/types/models/wc.d.ts.map +1 -1
  92. package/lib/cjs/types/psychrometrics/index.d.ts +1 -0
  93. package/lib/cjs/types/utilities/index.d.ts +2 -0
  94. package/lib/cjs/types/utilities/index.d.ts.map +1 -1
  95. package/lib/cjs/types/utilities/utilities.d.ts +2 -0
  96. package/lib/cjs/types/utilities/utilities.d.ts.map +1 -1
  97. package/lib/cjs/utilities/index.js +11 -5
  98. package/lib/cjs/utilities/utilities.js +58 -1
  99. package/lib/esm/index.js +3 -0
  100. package/lib/esm/models/JOS3.js +1 -2
  101. package/lib/esm/models/a_pmv.js +26 -2
  102. package/lib/esm/models/adaptive_ashrae.js +10 -1
  103. package/lib/esm/models/adaptive_en.js +10 -1
  104. package/lib/esm/models/ankle_draft.js +13 -2
  105. package/lib/esm/models/at.js +9 -1
  106. package/lib/esm/models/athb.js +10 -1
  107. package/lib/esm/models/clo_tout.js +7 -1
  108. package/lib/esm/models/cooling_effect.js +12 -1
  109. package/lib/esm/models/discomfort_index.js +6 -1
  110. package/lib/esm/models/e_pmv.js +27 -3
  111. package/lib/esm/models/heat_index.js +10 -1
  112. package/lib/esm/models/humidex.js +7 -1
  113. package/lib/esm/models/index.js +1 -0
  114. package/lib/esm/models/net.js +8 -1
  115. package/lib/esm/models/pet_steady.js +31 -1
  116. package/lib/esm/models/phs.js +59 -1
  117. package/lib/esm/models/pmv.js +33 -2
  118. package/lib/esm/models/pmv_ppd.js +38 -8
  119. package/lib/esm/models/pmv_ppd_ashrae.js +28 -0
  120. package/lib/esm/models/pmv_ppd_iso.js +26 -0
  121. package/lib/esm/models/set_tmp.js +34 -1
  122. package/lib/esm/models/solar_gain.js +23 -3
  123. package/lib/esm/models/two_nodes.js +43 -11
  124. package/lib/esm/models/use_fans_heatwave.js +36 -1
  125. package/lib/esm/models/utci.js +42 -29
  126. package/lib/esm/models/vertical_tmp_grad_ppd.js +14 -2
  127. package/lib/esm/models/wbgt.js +19 -5
  128. package/lib/esm/models/wc.js +7 -1
  129. package/lib/esm/psychrometrics/index.js +1 -0
  130. package/lib/esm/psychrometrics/t_mrt.js +1 -1
  131. package/lib/esm/types/index.d.ts +3 -0
  132. package/lib/esm/types/index.d.ts.map +1 -1
  133. package/lib/esm/types/models/JOS3.d.ts +3 -3
  134. package/lib/esm/types/models/JOS3.d.ts.map +1 -1
  135. package/lib/esm/types/models/a_pmv.d.ts +3 -68
  136. package/lib/esm/types/models/a_pmv.d.ts.map +1 -1
  137. package/lib/esm/types/models/adaptive_ashrae.d.ts +9 -74
  138. package/lib/esm/types/models/adaptive_ashrae.d.ts.map +1 -1
  139. package/lib/esm/types/models/adaptive_en.d.ts +12 -63
  140. package/lib/esm/types/models/adaptive_en.d.ts.map +1 -1
  141. package/lib/esm/types/models/ankle_draft.d.ts +4 -49
  142. package/lib/esm/types/models/ankle_draft.d.ts.map +1 -1
  143. package/lib/esm/types/models/at.d.ts +5 -38
  144. package/lib/esm/types/models/at.d.ts.map +1 -1
  145. package/lib/esm/types/models/athb.d.ts +3 -51
  146. package/lib/esm/types/models/athb.d.ts.map +1 -1
  147. package/lib/esm/types/models/clo_tout.d.ts +3 -26
  148. package/lib/esm/types/models/clo_tout.d.ts.map +1 -1
  149. package/lib/esm/types/models/cooling_effect.d.ts +3 -52
  150. package/lib/esm/types/models/cooling_effect.d.ts.map +1 -1
  151. package/lib/esm/types/models/discomfort_index.d.ts +4 -31
  152. package/lib/esm/types/models/discomfort_index.d.ts.map +1 -1
  153. package/lib/esm/types/models/e_pmv.d.ts +3 -71
  154. package/lib/esm/types/models/e_pmv.d.ts.map +1 -1
  155. package/lib/esm/types/models/heat_index.d.ts +6 -31
  156. package/lib/esm/types/models/heat_index.d.ts.map +1 -1
  157. package/lib/esm/types/models/humidex.d.ts +6 -37
  158. package/lib/esm/types/models/humidex.d.ts.map +1 -1
  159. package/lib/esm/types/models/index.d.ts +1 -0
  160. package/lib/esm/types/models/net.d.ts +5 -43
  161. package/lib/esm/types/models/net.d.ts.map +1 -1
  162. package/lib/esm/types/models/pet_steady.d.ts +5 -56
  163. package/lib/esm/types/models/pet_steady.d.ts.map +1 -1
  164. package/lib/esm/types/models/phs.d.ts +28 -121
  165. package/lib/esm/types/models/phs.d.ts.map +1 -1
  166. package/lib/esm/types/models/pmv.d.ts +7 -94
  167. package/lib/esm/types/models/pmv.d.ts.map +1 -1
  168. package/lib/esm/types/models/pmv_ppd.d.ts +8 -102
  169. package/lib/esm/types/models/pmv_ppd.d.ts.map +1 -1
  170. package/lib/esm/types/models/pmv_ppd_ashrae.d.ts +4 -48
  171. package/lib/esm/types/models/pmv_ppd_ashrae.d.ts.map +1 -1
  172. package/lib/esm/types/models/pmv_ppd_iso.d.ts +4 -48
  173. package/lib/esm/types/models/pmv_ppd_iso.d.ts.map +1 -1
  174. package/lib/esm/types/models/set_tmp.d.ts +3 -48
  175. package/lib/esm/types/models/set_tmp.d.ts.map +1 -1
  176. package/lib/esm/types/models/solar_gain.d.ts +4 -56
  177. package/lib/esm/types/models/solar_gain.d.ts.map +1 -1
  178. package/lib/esm/types/models/two_nodes.d.ts +58 -110
  179. package/lib/esm/types/models/two_nodes.d.ts.map +1 -1
  180. package/lib/esm/types/models/use_fans_heatwave.d.ts +1 -92
  181. package/lib/esm/types/models/use_fans_heatwave.d.ts.map +1 -1
  182. package/lib/esm/types/models/utci.d.ts +8 -35
  183. package/lib/esm/types/models/utci.d.ts.map +1 -1
  184. package/lib/esm/types/models/vertical_tmp_grad_ppd.d.ts +4 -43
  185. package/lib/esm/types/models/vertical_tmp_grad_ppd.d.ts.map +1 -1
  186. package/lib/esm/types/models/wbgt.d.ts +3 -55
  187. package/lib/esm/types/models/wbgt.d.ts.map +1 -1
  188. package/lib/esm/types/models/wc.d.ts +2 -25
  189. package/lib/esm/types/models/wc.d.ts.map +1 -1
  190. package/lib/esm/types/psychrometrics/index.d.ts +1 -0
  191. package/lib/esm/types/utilities/index.d.ts +2 -0
  192. package/lib/esm/types/utilities/index.d.ts.map +1 -1
  193. package/lib/esm/types/utilities/utilities.d.ts +2 -0
  194. package/lib/esm/types/utilities/utilities.d.ts.map +1 -1
  195. package/lib/esm/utilities/index.js +2 -1
  196. package/lib/esm/utilities/utilities.js +55 -0
  197. package/package.json +2 -2
package/lib/cjs/index.js CHANGED
@@ -1,8 +1,25 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
17
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
18
  };
5
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
+ __exportStar(require("./utilities/index.js"), exports);
21
+ __exportStar(require("./psychrometrics/index.js"), exports);
22
+ __exportStar(require("./models/index.js"), exports);
6
23
  const index_js_1 = __importDefault(require("./utilities/index.js"));
7
24
  const index_js_2 = __importDefault(require("./psychrometrics/index.js"));
8
25
  const index_js_3 = __importDefault(require("./models/index.js"));
@@ -65,7 +65,6 @@ const local_q_work_js_1 = require("../jos3_functions/thermoregulation/local_q_wo
65
65
  const cr_ms_fat_blood_flow_js_1 = require("../jos3_functions/thermoregulation/cr_ms_fat_blood_flow.js");
66
66
  const resp_heat_loss_js_1 = require("../jos3_functions/thermoregulation/resp_heat_loss.js");
67
67
  const sum_bf_js_1 = require("../jos3_functions/thermoregulation/sum_bf.js");
68
- const object_js_1 = __importDefault(require("lodash/object.js"));
69
68
  /**
70
69
  * Create an array of shape (17,) with the given input.
71
70
  *
@@ -231,7 +230,7 @@ class JOS3 {
231
230
  // Iterate until the PMV (Predicted Mean Vote) value is less than 0.001
232
231
  let vpmv;
233
232
  for (let i = 0; i < 100; i++) {
234
- vpmv = (0, pmv_js_1.pmv)(to, to, va, rh, met, clo);
233
+ vpmv = (0, pmv_js_1.pmv)(to, to, va, rh, met, clo).pmv;
235
234
  // Break the loop if the absolute value of PMV is less than 0.001
236
235
  if (math.abs(vpmv) < 0.001) {
237
236
  break;
@@ -577,7 +576,7 @@ class JOS3 {
577
576
  dict_out = Object.assign(Object.assign({}, dict_out), detail_out);
578
577
  }
579
578
  else if (Array.isArray(this._ex_output)) {
580
- const out_keys = object_js_1.default.keys(detail_out);
579
+ const out_keys = Object.keys(detail_out);
581
580
  for (const key in this._ex_output) {
582
581
  if (out_keys.includes(key)) {
583
582
  dict_out[key] = detail_out[key];
@@ -600,7 +599,7 @@ class JOS3 {
600
599
  return args.some((arg) => word.includes(arg));
601
600
  };
602
601
  let key2keys = {}; // Column keys
603
- for (let [key, value] of object_js_1.default.entries(this._history[0])) {
602
+ for (let [key, value] of Object.entries(this._history[0])) {
604
603
  let keys;
605
604
  if (value.length !== undefined) {
606
605
  if (typeof value === "string") {
@@ -629,7 +628,7 @@ class JOS3 {
629
628
  }
630
629
  let data = this._history.map((dictout) => {
631
630
  let row = {};
632
- for (let [key, value] of object_js_1.default.entries(dictout)) {
631
+ for (let [key, value] of Object.entries(dictout)) {
633
632
  let keys = key2keys[key];
634
633
  let values = keys.length === 1 ? [value] : value;
635
634
  keys.forEach((k, i) => {
@@ -639,7 +638,7 @@ class JOS3 {
639
638
  return row;
640
639
  });
641
640
  let outDict = {};
642
- object_js_1.default.keys(data[0]).forEach((key) => {
641
+ Object.keys(data[0]).forEach((key) => {
643
642
  outDict[key] = data.map((row) => row[key]);
644
643
  });
645
644
  return outDict;
@@ -70,13 +70,38 @@ const pmv_js_1 = require("./pmv.js");
70
70
  * const result = a_pmv(tdb, tr, vr, rh, met, clo, a_coefficient, wme);
71
71
  * console.log(result) //output { a_pmv: 0.48 }
72
72
  */
73
+ const A_PMV_SCHEMA = {
74
+ tdb: { type: "number" },
75
+ tr: { type: "number" },
76
+ vr: { type: "number" },
77
+ rh: { type: "number" },
78
+ met: { type: "number" },
79
+ clo: { type: "number" },
80
+ a_coefficient: { type: "number" },
81
+ wme: { type: "number" },
82
+ units: { enum: ["SI", "IP"] },
83
+ limit_inputs: { type: "boolean", required: false },
84
+ };
73
85
  function a_pmv(tdb, tr, vr, rh, met, clo, a_coefficient, wme = 0, kwargs = {}) {
86
+ var _a;
87
+ (0, utilities_js_1.validateInputs)({
88
+ tdb,
89
+ tr,
90
+ vr,
91
+ rh,
92
+ met,
93
+ clo,
94
+ a_coefficient,
95
+ wme,
96
+ units: ((_a = kwargs.units) !== null && _a !== void 0 ? _a : "SI").toUpperCase(),
97
+ limit_inputs: kwargs.limit_inputs,
98
+ }, A_PMV_SCHEMA);
74
99
  const default_kwargs = {
75
100
  units: "SI",
76
101
  limit_inputs: true,
77
102
  };
78
103
  kwargs = Object.assign(default_kwargs, kwargs);
79
- let _pmv = (0, pmv_js_1.pmv)(tdb, tr, vr, rh, met, clo, wme, "ISO", kwargs);
104
+ let _pmv = (0, pmv_js_1.pmv)(tdb, tr, vr, rh, met, clo, wme, "ISO", kwargs).pmv;
80
105
  _pmv = (0, utilities_js_1.round)(_pmv / (1 + a_coefficient * _pmv), 2);
81
106
  return { a_pmv: _pmv };
82
107
  }
@@ -77,7 +77,16 @@ const adaptive_en_js_1 = require("./adaptive_en.js");
77
77
  * // The adaptive thermal comfort model can only be used
78
78
  * // if the running mean temperature is higher than 10°C
79
79
  */
80
+ const ADAPTIVE_ASHRAE_SCHEMA = {
81
+ tdb: { type: "number" },
82
+ tr: { type: "number" },
83
+ t_running_mean: { type: "number" },
84
+ v: { type: "number" },
85
+ units: { enum: ["SI", "IP"] },
86
+ limit_inputs: { type: "boolean" },
87
+ };
80
88
  function adaptive_ashrae(tdb, tr, t_running_mean, v, units = "SI", limit_inputs = true) {
89
+ (0, utilities_js_1.validateInputs)({ tdb, tr, t_running_mean, v, units: units.toUpperCase(), limit_inputs }, ADAPTIVE_ASHRAE_SCHEMA);
81
90
  const standard = "ASHRAE";
82
91
  if (units.toUpperCase() === "IP") {
83
92
  ({
@@ -66,7 +66,16 @@ const utilities_js_1 = require("../utilities/utilities.js");
66
66
  * // The adaptive thermal comfort model can only be used
67
67
  * // if the running mean temperature is between 10 °C and 30 °C
68
68
  */
69
+ const ADAPTIVE_EN_SCHEMA = {
70
+ tdb: { type: "number" },
71
+ tr: { type: "number" },
72
+ t_running_mean: { type: "number" },
73
+ v: { type: "number" },
74
+ units: { enum: ["SI", "IP"] },
75
+ limit_inputs: { type: "boolean" },
76
+ };
69
77
  function adaptive_en(tdb, tr, t_running_mean, v, units = "SI", limit_inputs = true) {
78
+ (0, utilities_js_1.validateInputs)({ tdb, tr, t_running_mean, v, units: units.toUpperCase(), limit_inputs }, ADAPTIVE_EN_SCHEMA);
70
79
  const standard = "ISO";
71
80
  if (units.toLowerCase() == "ip") {
72
81
  ({
@@ -51,7 +51,18 @@ const pmv_js_1 = require("./pmv.js");
51
51
  * console.log(results) // expected result is {PPD_ad: 18.5, Acceptability: true}
52
52
  *
53
53
  */
54
+ const ANKLE_DRAFT_SCHEMA = {
55
+ tdb: { type: "number" },
56
+ tr: { type: "number" },
57
+ vr: { type: "number" },
58
+ rh: { type: "number" },
59
+ met: { type: "number" },
60
+ clo: { type: "number" },
61
+ v_ankle: { type: "number" },
62
+ units: { enum: ["SI", "IP"] },
63
+ };
54
64
  function ankle_draft(tdb, tr, vr, rh, met, clo, v_ankle, units = "SI") {
65
+ (0, utilities_js_1.validateInputs)({ tdb, tr, vr, rh, met, clo, v_ankle, units: units.toUpperCase() }, ANKLE_DRAFT_SCHEMA);
55
66
  let kwargs = {};
56
67
  let ret = 0;
57
68
  if (units.toLowerCase() == "ip") {
@@ -72,7 +83,7 @@ function ankle_draft(tdb, tr, vr, rh, met, clo, v_ankle, units = "SI") {
72
83
  for (const warn of warns) {
73
84
  console.warn("Warning:", warn);
74
85
  }
75
- const tsv = (0, pmv_js_1.pmv)(tdb, tr, vr, rh, met, clo, 0, "ASHRAE");
86
+ const tsv = (0, pmv_js_1.pmv)(tdb, tr, vr, rh, met, clo, 0, "ASHRAE").pmv;
76
87
  const ppd_val = (0, utilities_js_1.round)((Math.exp(-2.58 + 3.05 * v_ankle - 1.06 * tsv) /
77
88
  (1 + Math.exp(-2.58 + 3.05 * v_ankle - 1.06 * tsv))) *
78
89
  100, 1);
@@ -38,7 +38,15 @@ const utilities_js_1 = require("../utilities/utilities.js");
38
38
  * const result = at(25, 30, 0.1);
39
39
  * console.log(result); // {at: 24.1}
40
40
  */
41
+ const AT_SCHEMA = {
42
+ tdb: { type: "number" },
43
+ rh: { type: "number" },
44
+ v: { type: "number" },
45
+ q: { type: "number", required: false },
46
+ round: { type: "boolean", required: false },
47
+ };
41
48
  function at(tdb, rh, v, q, kwargs = { round: true }) {
49
+ (0, utilities_js_1.validateInputs)({ tdb, rh, v, q, round: kwargs.round }, AT_SCHEMA);
42
50
  // dividing it by 100 since the at eq. requires p_vap to be in hPa
43
51
  const p_vap = (0, psy_ta_rh_js_1.psy_ta_rh)(tdb, rh).p_vap / 100;
44
52
  let t_at;
@@ -53,7 +53,16 @@ const pmv_ppd_js_1 = require("./pmv_ppd.js");
53
53
  * const athb_result = athb(tdb, tr, vr, rh, met, t_running_mean);
54
54
  * console.log(athb_result); // Output: {athb_pmv: 0.2}
55
55
  */
56
+ const ATHB_SCHEMA = {
57
+ tdb: { type: "number" },
58
+ tr: { type: "number" },
59
+ vr: { type: "number" },
60
+ rh: { type: "number" },
61
+ met: { type: "number" },
62
+ t_running_mean: { type: "number" },
63
+ };
56
64
  function athb(tdb, tr, vr, rh, met, t_running_mean) {
65
+ (0, utilities_js_1.validateInputs)({ tdb, tr, vr, rh, met, t_running_mean }, ATHB_SCHEMA);
57
66
  const met_adapted = met - (0.234 * t_running_mean) / 58.2;
58
67
  const clo_adapted = Math.pow(10, -0.17168 -
59
68
  0.000485 * t_running_mean +
@@ -27,7 +27,13 @@ const utilities_js_1 = require("../utilities/utilities.js");
27
27
  *
28
28
  * @returns {CloToutResult} set containing results for the model
29
29
  */
30
+ const CLO_TOUT_SCHEMA = {
31
+ tout: { type: "number" },
32
+ units: { enum: ["SI", "IP"] },
33
+ };
30
34
  function clo_tout(tout, units = "SI") {
35
+ units = units.toUpperCase();
36
+ (0, utilities_js_1.validateInputs)({ tout, units }, CLO_TOUT_SCHEMA);
31
37
  const t = units === "IP" ? (0, utilities_js_1.units_converter)({ tmp: tout }).tmp : tout;
32
38
  let clo = t < 26 ? Math.pow(10, (-0.1635 - 0.0066 * t)) : 0.46;
33
39
  clo = t < 5 ? 0.818 - 0.0364 * t : clo;
@@ -55,7 +55,18 @@ const set_tmp_js_1 = require("./set_tmp.js");
55
55
  * const CE_IP = cooling_effect(77, 77, 1.64, 50, 1, 0.6, "IP");
56
56
  * console.log(CE_IP); // Output: {ce: 3.74}
57
57
  */
58
+ const COOLING_EFFECT_SCHEMA = {
59
+ tdb: { type: "number" },
60
+ tr: { type: "number" },
61
+ vr: { type: "number" },
62
+ rh: { type: "number" },
63
+ met: { type: "number" },
64
+ clo: { type: "number" },
65
+ wme: { type: "number" },
66
+ units: { enum: ["SI", "IP"] },
67
+ };
58
68
  function cooling_effect(tdb, tr, vr, rh, met, clo, wme = 0, units = "SI") {
69
+ (0, utilities_js_1.validateInputs)({ tdb, tr, vr, rh, met, clo, wme, units: units.toUpperCase() }, COOLING_EFFECT_SCHEMA);
59
70
  if (units.toLowerCase() === "ip") {
60
71
  const result = (0, utilities_js_1.units_converter)({ tdb, tr, vr }, "IP");
61
72
  tdb = result.tdb;
@@ -32,7 +32,12 @@ const utilities_js_1 = require("../utilities/utilities.js");
32
32
  * @example
33
33
  * const DI = discomfort_index(25, 50); // returns { di: 22.1, discomfort_condition: 'Less than 50% feels discomfort' }
34
34
  */
35
+ const DISCOMFORT_INDEX_SCHEMA = {
36
+ tdb: { type: "number" },
37
+ rh: { type: "number" },
38
+ };
35
39
  function discomfort_index(tdb, rh) {
40
+ (0, utilities_js_1.validateInputs)({ tdb, rh }, DISCOMFORT_INDEX_SCHEMA);
36
41
  const di = calculate_di(tdb, rh);
37
42
  const condition = check_categories(di);
38
43
  return {
@@ -73,15 +73,40 @@ const pmv_js_1 = require("./pmv.js");
73
73
  * const result = e_pmv(tdb, tr, v_r, rh, met, clo_d, e_coefficient);
74
74
  * console.log(result) // output {e_pmv: 0.51}
75
75
  */
76
+ const E_PMV_SCHEMA = {
77
+ tdb: { type: "number" },
78
+ tr: { type: "number" },
79
+ vr: { type: "number" },
80
+ rh: { type: "number" },
81
+ met: { type: "number" },
82
+ clo: { type: "number" },
83
+ e_coefficient: { type: "number" },
84
+ wme: { type: "number" },
85
+ units: { enum: ["SI", "IP"] },
86
+ limit_inputs: { type: "boolean", required: false },
87
+ };
76
88
  function e_pmv(tdb, tr, vr, rh, met, clo, e_coefficient, wme = 0, kwargs = {}) {
89
+ var _a;
77
90
  const default_kwargs = {
78
91
  units: "SI",
79
92
  limit_inputs: true,
80
93
  };
81
94
  kwargs = Object.assign(default_kwargs, kwargs);
82
- let _pmv = (0, pmv_js_1.pmv)(tdb, tr, vr, rh, met, clo, wme, "ISO", kwargs);
95
+ (0, utilities_js_1.validateInputs)({
96
+ tdb,
97
+ tr,
98
+ vr,
99
+ rh,
100
+ met,
101
+ clo,
102
+ e_coefficient,
103
+ wme,
104
+ units: ((_a = kwargs.units) !== null && _a !== void 0 ? _a : "SI").toUpperCase(),
105
+ limit_inputs: kwargs.limit_inputs,
106
+ }, E_PMV_SCHEMA);
107
+ let _pmv = (0, pmv_js_1.pmv)(tdb, tr, vr, rh, met, clo, wme, "ISO", kwargs).pmv;
83
108
  met = _pmv > 0 ? met * (1 + _pmv * -0.067) : met;
84
- _pmv = (0, pmv_js_1.pmv)(tdb, tr, vr, rh, met, clo, wme, "ISO", kwargs);
109
+ _pmv = (0, pmv_js_1.pmv)(tdb, tr, vr, rh, met, clo, wme, "ISO", kwargs).pmv;
85
110
  _pmv = (0, utilities_js_1.round)(_pmv * e_coefficient, 2);
86
111
  return { e_pmv: _pmv };
87
112
  }
@@ -29,7 +29,16 @@ const utilities_js_1 = require("../utilities/utilities.js");
29
29
  *
30
30
  * @category Thermophysiological models
31
31
  */
32
+ const HEAT_INDEX_SCHEMA = {
33
+ tdb: { type: "number" },
34
+ rh: { type: "number" },
35
+ round: { type: "boolean", required: false },
36
+ units: { enum: ["SI", "IP"], required: false },
37
+ };
32
38
  function heat_index(tdb, rh, options = { round: true, units: "SI" }) {
39
+ if (options.units)
40
+ options.units = options.units.toUpperCase();
41
+ (0, utilities_js_1.validateInputs)({ tdb, rh, round: options.round, units: options.units }, HEAT_INDEX_SCHEMA);
33
42
  let hi;
34
43
  let tdb_squared = Math.pow(tdb, 2);
35
44
  let rh_squared = Math.pow(rh, 2);
@@ -36,7 +36,13 @@ const utilities_js_1 = require("../utilities/utilities.js");
36
36
  * const result = humidex(25, 50);
37
37
  * console.log(result); // -> { humidex: 28.2, discomfort: "Little or no discomfort" }
38
38
  */
39
+ const HUMIDEX_SCHEMA = {
40
+ tdb: { type: "number" },
41
+ rh: { type: "number" },
42
+ round: { type: "boolean", required: false },
43
+ };
39
44
  function humidex(tdb, rh, options = { round: true }) {
45
+ (0, utilities_js_1.validateInputs)({ tdb, rh, round: options.round }, HUMIDEX_SCHEMA);
40
46
  let hi = tdb +
41
47
  (5 / 9) * ((6.112 * Math.pow(10, ((7.5 * tdb) / (237.7 + tdb))) * rh) / 100 - 10);
42
48
  if (options.round) {
@@ -1,38 +1,61 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.wc = exports.wbgt = exports.vertical_tmp_grad_ppd = exports.use_fans_heatwaves = exports.utci = exports.two_nodes = exports.set_tmp = exports.solar_gain = exports.pmv = exports.pmv_ppd_iso = exports.pmv_ppd_ashrae = exports.pmv_ppd = exports.pet_steady = exports.phs = exports.net = exports.humidex = exports.heat_index = exports.discomfort_index = exports.cooling_effect = exports.clo_tout = exports.ankle_draft = exports.at = exports.e_pmv = exports.athb = exports.a_pmv = exports.adaptive_en = exports.adaptive_ashrae = void 0;
3
4
  const heat_index_js_1 = require("./heat_index.js");
5
+ Object.defineProperty(exports, "heat_index", { enumerable: true, get: function () { return heat_index_js_1.heat_index; } });
4
6
  const phs_js_1 = require("./phs.js");
7
+ Object.defineProperty(exports, "phs", { enumerable: true, get: function () { return phs_js_1.phs; } });
5
8
  const humidex_js_1 = require("./humidex.js");
9
+ Object.defineProperty(exports, "humidex", { enumerable: true, get: function () { return humidex_js_1.humidex; } });
6
10
  const net_js_1 = require("./net.js");
11
+ Object.defineProperty(exports, "net", { enumerable: true, get: function () { return net_js_1.net; } });
7
12
  const wbgt_js_1 = require("./wbgt.js");
13
+ Object.defineProperty(exports, "wbgt", { enumerable: true, get: function () { return wbgt_js_1.wbgt; } });
8
14
  const discomfort_index_js_1 = require("./discomfort_index.js");
15
+ Object.defineProperty(exports, "discomfort_index", { enumerable: true, get: function () { return discomfort_index_js_1.discomfort_index; } });
9
16
  const two_nodes_js_1 = require("./two_nodes.js");
17
+ Object.defineProperty(exports, "two_nodes", { enumerable: true, get: function () { return two_nodes_js_1.two_nodes; } });
10
18
  const set_tmp_js_1 = require("./set_tmp.js");
19
+ Object.defineProperty(exports, "set_tmp", { enumerable: true, get: function () { return set_tmp_js_1.set_tmp; } });
11
20
  const wc_js_1 = require("./wc.js");
21
+ Object.defineProperty(exports, "wc", { enumerable: true, get: function () { return wc_js_1.wc; } });
12
22
  const adaptive_en_js_1 = require("./adaptive_en.js");
23
+ Object.defineProperty(exports, "adaptive_en", { enumerable: true, get: function () { return adaptive_en_js_1.adaptive_en; } });
13
24
  const at_js_1 = require("./at.js");
25
+ Object.defineProperty(exports, "at", { enumerable: true, get: function () { return at_js_1.at; } });
14
26
  const pmv_ppd_js_1 = require("./pmv_ppd.js");
27
+ Object.defineProperty(exports, "pmv_ppd", { enumerable: true, get: function () { return pmv_ppd_js_1.pmv_ppd; } });
15
28
  const pmv_ppd_ashrae_js_1 = require("./pmv_ppd_ashrae.js");
29
+ Object.defineProperty(exports, "pmv_ppd_ashrae", { enumerable: true, get: function () { return pmv_ppd_ashrae_js_1.pmv_ppd_ashrae; } });
16
30
  const pmv_ppd_iso_js_1 = require("./pmv_ppd_iso.js");
31
+ Object.defineProperty(exports, "pmv_ppd_iso", { enumerable: true, get: function () { return pmv_ppd_iso_js_1.pmv_ppd_iso; } });
17
32
  const adaptive_ashrae_js_1 = require("./adaptive_ashrae.js");
33
+ Object.defineProperty(exports, "adaptive_ashrae", { enumerable: true, get: function () { return adaptive_ashrae_js_1.adaptive_ashrae; } });
18
34
  const solar_gain_js_1 = require("./solar_gain.js");
35
+ Object.defineProperty(exports, "solar_gain", { enumerable: true, get: function () { return solar_gain_js_1.solar_gain; } });
19
36
  const cooling_effect_js_1 = require("./cooling_effect.js");
37
+ Object.defineProperty(exports, "cooling_effect", { enumerable: true, get: function () { return cooling_effect_js_1.cooling_effect; } });
20
38
  const athb_js_1 = require("./athb.js");
39
+ Object.defineProperty(exports, "athb", { enumerable: true, get: function () { return athb_js_1.athb; } });
21
40
  const pmv_js_1 = require("./pmv.js");
41
+ Object.defineProperty(exports, "pmv", { enumerable: true, get: function () { return pmv_js_1.pmv; } });
22
42
  const a_pmv_js_1 = require("./a_pmv.js");
43
+ Object.defineProperty(exports, "a_pmv", { enumerable: true, get: function () { return a_pmv_js_1.a_pmv; } });
23
44
  const ankle_draft_js_1 = require("./ankle_draft.js");
45
+ Object.defineProperty(exports, "ankle_draft", { enumerable: true, get: function () { return ankle_draft_js_1.ankle_draft; } });
24
46
  const e_pmv_js_1 = require("./e_pmv.js");
47
+ Object.defineProperty(exports, "e_pmv", { enumerable: true, get: function () { return e_pmv_js_1.e_pmv; } });
25
48
  const vertical_tmp_grad_ppd_js_1 = require("./vertical_tmp_grad_ppd.js");
49
+ Object.defineProperty(exports, "vertical_tmp_grad_ppd", { enumerable: true, get: function () { return vertical_tmp_grad_ppd_js_1.vertical_tmp_grad_ppd; } });
26
50
  const use_fans_heatwave_js_1 = require("./use_fans_heatwave.js");
51
+ Object.defineProperty(exports, "use_fans_heatwaves", { enumerable: true, get: function () { return use_fans_heatwave_js_1.use_fans_heatwaves; } });
27
52
  const clo_tout_js_1 = require("./clo_tout.js");
53
+ Object.defineProperty(exports, "clo_tout", { enumerable: true, get: function () { return clo_tout_js_1.clo_tout; } });
28
54
  const utci_js_1 = require("./utci.js");
55
+ Object.defineProperty(exports, "utci", { enumerable: true, get: function () { return utci_js_1.utci; } });
29
56
  const pet_steady_js_1 = require("./pet_steady.js");
57
+ Object.defineProperty(exports, "pet_steady", { enumerable: true, get: function () { return pet_steady_js_1.pet_steady; } });
30
58
  const JOS3_js_1 = require("./JOS3.js");
31
- /**
32
- * @public
33
- * @name models
34
- * @docname Comfort Models
35
- */
36
59
  exports.default = {
37
60
  adaptive_ashrae: adaptive_ashrae_js_1.adaptive_ashrae,
38
61
  adaptive_en: adaptive_en_js_1.adaptive_en,
@@ -42,7 +42,14 @@ const utilities_js_1 = require("../utilities/utilities.js");
42
42
  * const result = net(37, 100, 0.1);
43
43
  * console.log(result); // -> {net: 37}
44
44
  */
45
+ const NET_SCHEMA = {
46
+ tdb: { type: "number" },
47
+ rh: { type: "number" },
48
+ v: { type: "number" },
49
+ round: { type: "boolean", required: false },
50
+ };
45
51
  function net(tdb, rh, v, options = { round: true }) {
52
+ (0, utilities_js_1.validateInputs)({ tdb, rh, v, round: options.round }, NET_SCHEMA);
46
53
  const frac = 1.0 / (1.76 + 1.4 * Math.pow(v, 0.75));
47
54
  let et = 37 -
48
55
  (37 - tdb) / (0.68 - 0.0014 * rh + frac) -
@@ -56,7 +56,37 @@ const utilities_js_1 = require("../utilities/utilities.js");
56
56
  * const result = pet_steady(20, 20, 50, 0.15, 1.37, 0.5);
57
57
  * console.log(result); // {pet: 18.85}
58
58
  */
59
+ const PET_STEADY_SCHEMA = {
60
+ tdb: { type: "number" },
61
+ tr: { type: "number" },
62
+ v: { type: "number" },
63
+ rh: { type: "number" },
64
+ met: { type: "number" },
65
+ clo: { type: "number" },
66
+ p_atm: { type: "number" },
67
+ position: { type: "number" },
68
+ age: { type: "number" },
69
+ sex: { type: "number" },
70
+ weight: { type: "number" },
71
+ height: { type: "number" },
72
+ wme: { type: "number" },
73
+ };
59
74
  function pet_steady(tdb, tr, v, rh, met, clo, p_atm = 1013.25, position = 1, age = 23, sex = 1, weight = 75, height = 1.8, wme = 0) {
75
+ (0, utilities_js_1.validateInputs)({
76
+ tdb,
77
+ tr,
78
+ v,
79
+ rh,
80
+ met,
81
+ clo,
82
+ p_atm,
83
+ position,
84
+ age,
85
+ sex,
86
+ weight,
87
+ height,
88
+ wme,
89
+ }, PET_STEADY_SCHEMA);
60
90
  const met_factor = 58.2; // met conversion factor
61
91
  met = met * met_factor; // metabolic rate
62
92
  // initial guess
@@ -97,6 +97,35 @@ const MET_WATT_PER_MET = 58.15;
97
97
  * const results = phs(40, 40, 0.3, 33.85, 2.5, 0.5, "standing");
98
98
  * console.log(results); // {t_re: 37.5, d_lim_loss_50: 480, d_lim_loss_95: 480, d_lim_t_re: 480, sweat_loss_g: 5847.0, sweat_rate_watt: 252.1, ...}
99
99
  */
100
+ const PHS_SCHEMA = {
101
+ tdb: { type: "number" },
102
+ tr: { type: "number" },
103
+ v: { type: "number" },
104
+ rh: { type: "number" },
105
+ met: { type: "number" },
106
+ clo: { type: "number" },
107
+ wme: { type: "number" },
108
+ posture: { enum: [1, 2, 3] },
109
+ model: { enum: ["7933-2004", "7933-2023"] },
110
+ i_mst: { type: "number" },
111
+ a_p: { type: "number" },
112
+ drink: { enum: [0, 1] },
113
+ weight: { type: "number" },
114
+ height: { type: "number" },
115
+ walk_sp: { type: "number" },
116
+ theta: { type: "number" },
117
+ acclimatized: { type: "number" },
118
+ duration: { type: "number" },
119
+ f_r: { type: "number" },
120
+ t_sk: { type: "number" },
121
+ t_cr: { type: "number" },
122
+ t_re: { type: "number" },
123
+ t_cr_eq: { type: "number" },
124
+ t_sk_t_cr_wg: { type: "number" },
125
+ sweat_rate_watt: { type: "number" },
126
+ evap_load_wm2_min: { type: "number" },
127
+ round: { type: "boolean", required: false },
128
+ };
100
129
  function phs(tdb, tr, v, rh, met, clo, posture, wme = 0, model = "7933-2023", kwargs = {}) {
101
130
  const defaults_kwargs = {
102
131
  i_mst: 0.38,
@@ -131,6 +160,35 @@ function phs(tdb, tr, v, rh, met, clo, posture, wme = 0, model = "7933-2023", kw
131
160
  else if (p === "crouching")
132
161
  posture = 3;
133
162
  }
163
+ (0, utilities_js_1.validateInputs)({
164
+ tdb,
165
+ tr,
166
+ v,
167
+ rh,
168
+ met,
169
+ clo,
170
+ wme,
171
+ posture,
172
+ model,
173
+ i_mst: joint_kwargs.i_mst,
174
+ a_p: joint_kwargs.a_p,
175
+ drink: joint_kwargs.drink,
176
+ weight: joint_kwargs.weight,
177
+ height: joint_kwargs.height,
178
+ walk_sp: joint_kwargs.walk_sp,
179
+ theta: joint_kwargs.theta,
180
+ acclimatized: joint_kwargs.acclimatized,
181
+ duration: joint_kwargs.duration,
182
+ f_r: joint_kwargs.f_r,
183
+ t_sk: joint_kwargs.t_sk,
184
+ t_cr: joint_kwargs.t_cr,
185
+ t_re: joint_kwargs.t_re,
186
+ t_cr_eq: joint_kwargs.t_cr_eq,
187
+ t_sk_t_cr_wg: joint_kwargs.t_sk_t_cr_wg,
188
+ sweat_rate_watt: joint_kwargs.sweat_rate_watt,
189
+ evap_load_wm2_min: joint_kwargs.evap_load_wm2_min,
190
+ round: joint_kwargs.round,
191
+ }, PHS_SCHEMA);
134
192
  const met_watt = met * MET_WATT_PER_MET;
135
193
  const wme_watt = wme * MET_WATT_PER_MET;
136
194
  const warnings = (0, utilities_js_1.check_standard_compliance)("ISO7933", {
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.pmv = pmv;
4
4
  const pmv_ppd_js_1 = require("./pmv_ppd.js");
5
+ const utilities_js_1 = require("../utilities/utilities.js");
5
6
  /**
6
7
  * @typedef {Object} PmvKwargs
7
8
  * @property {'SI'|'IP'} units - select the SI (International System of Units) or the IP (Imperial Units) system.
@@ -20,6 +21,7 @@ const pmv_ppd_js_1 = require("./pmv_ppd.js");
20
21
  * On the other hand, if the occupant has no control over the airspeed,
21
22
  * the ASHRAE 55 imposes an upper limit for v which varies as a function of
22
23
  * the operative temperature, for more information please consult the Standard.
24
+ * @property {boolean} round_output - If true, rounds pmv to 2 decimal places. Defaults to true.
23
25
  * @public
24
26
  */
25
27
  /**
@@ -77,7 +79,7 @@ const pmv_ppd_js_1 = require("./pmv_ppd.js");
77
79
  * {@link https://www.ashrae.org/file%20library/technical%20resources/standards%20and%20guidelines/standards%20addenda/55_2020_c_20210430.pdf|Addendum_C to Standard 55-2020}
78
80
  * @param {PmvKwargs} kwargs - additional arguments
79
81
  *
80
- * @returns {number} pmv - Predicted Mean Vote
82
+ * @returns {{ pmv: number }} result - Object containing the Predicted Mean Vote
81
83
  *
82
84
  * @example
83
85
  * const tdb = 25;
@@ -95,16 +97,46 @@ const pmv_ppd_js_1 = require("./pmv_ppd.js");
95
97
  * const results = pmv(tdb, tr, v_r, rh, met, clo_d);
96
98
  * console.log(results); // 0.06
97
99
  */
100
+ const PMV_SCHEMA = {
101
+ tdb: { type: "number" },
102
+ tr: { type: "number" },
103
+ vr: { type: "number" },
104
+ rh: { type: "number" },
105
+ met: { type: "number" },
106
+ clo: { type: "number" },
107
+ wme: { type: "number" },
108
+ standard: { enum: ["ISO", "ASHRAE"] },
109
+ units: { enum: ["SI", "IP"] },
110
+ limit_inputs: { type: "boolean", required: false },
111
+ airspeed_control: { type: "boolean", required: false },
112
+ round_output: { type: "boolean", required: false },
113
+ };
98
114
  function pmv(tdb, tr, vr, rh, met, clo, wme = 0, standard = "ISO", kwargs = {}) {
115
+ var _a;
99
116
  const default_kwargs = {
100
117
  units: "SI",
101
118
  limit_inputs: true,
102
119
  airspeed_control: true,
120
+ round_output: true,
103
121
  };
104
122
  kwargs = Object.assign(default_kwargs, kwargs);
123
+ (0, utilities_js_1.validateInputs)({
124
+ tdb,
125
+ tr,
126
+ vr,
127
+ rh,
128
+ met,
129
+ clo,
130
+ wme,
131
+ standard,
132
+ units: ((_a = kwargs.units) !== null && _a !== void 0 ? _a : "SI").toUpperCase(),
133
+ limit_inputs: kwargs.limit_inputs,
134
+ airspeed_control: kwargs.airspeed_control,
135
+ round_output: kwargs.round_output,
136
+ }, PMV_SCHEMA);
105
137
  const pmv_ppdValue = (0, pmv_ppd_js_1.pmv_ppd)(tdb, tr, vr, rh, met, clo, wme, standard, kwargs);
106
138
  if (!pmv_ppdValue.hasOwnProperty("pmv")) {
107
139
  throw new Error("pmv property not found in pmv_ppdValue");
108
140
  }
109
- return pmv_ppdValue.pmv;
141
+ return { pmv: pmv_ppdValue.pmv };
110
142
  }