jsthermalcomfort 1.1.2 → 1.4.0

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 (73) hide show
  1. package/lib/cjs/models/adaptive_ashrae.js +18 -13
  2. package/lib/cjs/models/adaptive_en.js +28 -9
  3. package/lib/cjs/models/heat_index.js +25 -2
  4. package/lib/cjs/models/humidex.js +8 -0
  5. package/lib/cjs/models/index.js +4 -1
  6. package/lib/cjs/models/phs.js +32 -14
  7. package/lib/cjs/models/pmv_ppd.js +9 -16
  8. package/lib/cjs/models/set_tmp.js +7 -11
  9. package/lib/cjs/models/two_nodes.js +10 -4
  10. package/lib/cjs/models/use_fans_heatwave.js +7 -11
  11. package/lib/cjs/models/wind_chill_temperature.js +42 -0
  12. package/lib/cjs/psychrometrics/t_o.js +0 -25
  13. package/lib/cjs/types/models/adaptive_ashrae.d.ts +1 -1
  14. package/lib/cjs/types/models/adaptive_ashrae.d.ts.map +1 -1
  15. package/lib/cjs/types/models/adaptive_en.d.ts +1 -1
  16. package/lib/cjs/types/models/adaptive_en.d.ts.map +1 -1
  17. package/lib/cjs/types/models/heat_index.d.ts.map +1 -1
  18. package/lib/cjs/types/models/humidex.d.ts.map +1 -1
  19. package/lib/cjs/types/models/index.d.ts +3 -1
  20. package/lib/cjs/types/models/index.d.ts.map +1 -1
  21. package/lib/cjs/types/models/phs.d.ts +13 -1
  22. package/lib/cjs/types/models/phs.d.ts.map +1 -1
  23. package/lib/cjs/types/models/pmv_ppd.d.ts.map +1 -1
  24. package/lib/cjs/types/models/set_tmp.d.ts.map +1 -1
  25. package/lib/cjs/types/models/two_nodes.d.ts.map +1 -1
  26. package/lib/cjs/types/models/use_fans_heatwave.d.ts.map +1 -1
  27. package/lib/cjs/types/models/wind_chill_temperature.d.ts +4 -0
  28. package/lib/cjs/types/models/wind_chill_temperature.d.ts.map +1 -0
  29. package/lib/cjs/types/psychrometrics/t_o.d.ts +0 -15
  30. package/lib/cjs/types/psychrometrics/t_o.d.ts.map +1 -1
  31. package/lib/cjs/types/utilities/index.d.ts +3 -2
  32. package/lib/cjs/types/utilities/index.d.ts.map +1 -1
  33. package/lib/cjs/types/utilities/utilities.d.ts +28 -35
  34. package/lib/cjs/types/utilities/utilities.d.ts.map +1 -1
  35. package/lib/cjs/utilities/index.js +3 -2
  36. package/lib/cjs/utilities/utilities.js +138 -125
  37. package/lib/esm/models/adaptive_ashrae.js +19 -14
  38. package/lib/esm/models/adaptive_en.js +28 -9
  39. package/lib/esm/models/heat_index.js +24 -2
  40. package/lib/esm/models/humidex.js +8 -0
  41. package/lib/esm/models/index.js +3 -1
  42. package/lib/esm/models/phs.js +32 -14
  43. package/lib/esm/models/pmv_ppd.js +10 -17
  44. package/lib/esm/models/set_tmp.js +8 -12
  45. package/lib/esm/models/two_nodes.js +10 -4
  46. package/lib/esm/models/use_fans_heatwave.js +8 -12
  47. package/lib/esm/models/wind_chill_temperature.js +39 -0
  48. package/lib/esm/psychrometrics/t_o.js +0 -24
  49. package/lib/esm/types/models/adaptive_ashrae.d.ts +1 -1
  50. package/lib/esm/types/models/adaptive_ashrae.d.ts.map +1 -1
  51. package/lib/esm/types/models/adaptive_en.d.ts +1 -1
  52. package/lib/esm/types/models/adaptive_en.d.ts.map +1 -1
  53. package/lib/esm/types/models/heat_index.d.ts.map +1 -1
  54. package/lib/esm/types/models/humidex.d.ts.map +1 -1
  55. package/lib/esm/types/models/index.d.ts +3 -1
  56. package/lib/esm/types/models/index.d.ts.map +1 -1
  57. package/lib/esm/types/models/phs.d.ts +13 -1
  58. package/lib/esm/types/models/phs.d.ts.map +1 -1
  59. package/lib/esm/types/models/pmv_ppd.d.ts.map +1 -1
  60. package/lib/esm/types/models/set_tmp.d.ts.map +1 -1
  61. package/lib/esm/types/models/two_nodes.d.ts.map +1 -1
  62. package/lib/esm/types/models/use_fans_heatwave.d.ts.map +1 -1
  63. package/lib/esm/types/models/wind_chill_temperature.d.ts +4 -0
  64. package/lib/esm/types/models/wind_chill_temperature.d.ts.map +1 -0
  65. package/lib/esm/types/psychrometrics/t_o.d.ts +0 -15
  66. package/lib/esm/types/psychrometrics/t_o.d.ts.map +1 -1
  67. package/lib/esm/types/utilities/index.d.ts +3 -2
  68. package/lib/esm/types/utilities/index.d.ts.map +1 -1
  69. package/lib/esm/types/utilities/utilities.d.ts +28 -35
  70. package/lib/esm/types/utilities/utilities.d.ts.map +1 -1
  71. package/lib/esm/utilities/index.js +3 -2
  72. package/lib/esm/utilities/utilities.js +138 -124
  73. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wind_chill_temperature.d.ts","sourceRoot":"","sources":["../../../../src/models/wind_chill_temperature.js"],"names":[],"mappings":"AA8BA;;EAaC"}
@@ -12,19 +12,4 @@
12
12
  * @returns {number} operative temperature [C]
13
13
  */
14
14
  export function t_o(tdb: number, tr: number, v: number, standard?: ("ISO" | "ASHRAE")): number;
15
- /**
16
- * Calculates operative temperature in accordance with ISO 7726:1998 {@link #ref_5|[5]}.
17
- *
18
- * @public
19
- * @memberof psychrometrics
20
- *
21
- * @see {@link t_o} for a version that supports scalar arguments
22
- *
23
- * @param {number[]} tdb - air temperature [C]
24
- * @param {number[]} tr - mean radiant temperature [C]
25
- * @param {number[]} v - air speed [m/s]
26
- * @param {("ISO" | "ASHRAE")} standard - the standard to use
27
- * @returns {number[]} operative temperature [C]
28
- */
29
- export function t_o_array(tdb: number[], tr: number[], v: number[], standard?: ("ISO" | "ASHRAE")): number[];
30
15
  //# sourceMappingURL=t_o.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"t_o.d.ts","sourceRoot":"","sources":["../../../../src/psychrometrics/t_o.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,yBANW,MAAM,MACN,MAAM,KACN,MAAM,aACN,CAAC,KAAK,GAAG,QAAQ,CAAC,GAChB,MAAM,CAelB;AAED;;;;;;;;;;;;;GAaG;AACH,+BANW,MAAM,EAAE,MACR,MAAM,EAAE,KACR,MAAM,EAAE,aACR,CAAC,KAAK,GAAG,QAAQ,CAAC,GAChB,MAAM,EAAE,CAgBpB"}
1
+ {"version":3,"file":"t_o.d.ts","sourceRoot":"","sources":["../../../../src/psychrometrics/t_o.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,yBANW,MAAM,MACN,MAAM,KACN,MAAM,aACN,CAAC,KAAK,GAAG,QAAQ,CAAC,GAChB,MAAM,CAelB"}
@@ -8,6 +8,7 @@ declare namespace _default {
8
8
  export { met_typical_tasks };
9
9
  export { clo_typical_ensembles };
10
10
  export { clo_individual_garments };
11
+ export { check_standard_compliance };
11
12
  }
12
13
  export default _default;
13
14
  import { body_surface_area } from "./utilities.js";
@@ -19,6 +20,6 @@ import { f_svv } from "./utilities.js";
19
20
  import { met_typical_tasks } from "./utilities.js";
20
21
  import { clo_typical_ensembles } from "./utilities.js";
21
22
  import { clo_individual_garments } from "./utilities.js";
22
- import { check_standard_compliance_array } from "./utilities.js";
23
- export { body_surface_area, v_relative, clo_dynamic, units_converter, running_mean_outdoor_temperature, f_svv, met_typical_tasks, clo_typical_ensembles, clo_individual_garments, check_standard_compliance_array };
23
+ import { check_standard_compliance } from "./utilities.js";
24
+ export { body_surface_area, v_relative, clo_dynamic, units_converter, running_mean_outdoor_temperature, f_svv, met_typical_tasks, clo_typical_ensembles, clo_individual_garments, check_standard_compliance };
24
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utilities/index.js"],"names":[],"mappings":";;;;;;;;;;;;kCAWO,gBAAgB;2BAAhB,gBAAgB;4BAAhB,gBAAgB;gCAAhB,gBAAgB;iDAAhB,gBAAgB;sBAAhB,gBAAgB;kCAAhB,gBAAgB;sCAAhB,gBAAgB;wCAAhB,gBAAgB;gDAAhB,gBAAgB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utilities/index.js"],"names":[],"mappings":";;;;;;;;;;;;;kCAWO,gBAAgB;2BAAhB,gBAAgB;4BAAhB,gBAAgB;gCAAhB,gBAAgB;iDAAhB,gBAAgB;sBAAhB,gBAAgB;kCAAhB,gBAAgB;sCAAhB,gBAAgB;wCAAhB,gBAAgB;0CAAhB,gBAAgB"}
@@ -13,6 +13,9 @@ export function round(number: number, precision: number): number;
13
13
  * @returns {[number, number]}
14
14
  */
15
15
  export function transpose_sharp_altitude(sharp: number, altitude: number): [number, number];
16
+ /**
17
+ * @typedef {(typeof Standard)[keyof typeof Standard]} Standard
18
+ */
16
19
  /**
17
20
  * Check that the values comply with the standard provided
18
21
  *
@@ -22,28 +25,6 @@ export function transpose_sharp_altitude(sharp: number, altitude: number): [numb
22
25
  * @returns {string[]} strings with warnings emitted
23
26
  */
24
27
  export function check_standard_compliance(standard: Standard, kwargs: ComplianceKwargs): string[];
25
- /**
26
- * @typedef {Object.<string, number[]>} CheckStandardComplianceResult
27
- * @property {number[]} tdb
28
- * @property {number[]} tr
29
- * @property {number[]} v
30
- * @property {number[]} [met]
31
- * @property {number[]} [clo]
32
- * @property {number[]} [rh]
33
- */
34
- /**
35
- * Check that the values as an array comply with the standard provided and returns arrays where
36
- * the values that do not comply are NaN
37
- * @see {@link check_standard_compliance} for scalar variant that returns warnings
38
- *
39
- * @param {Standard | "FAN_HEATWAVES"} standard - standard to check compliance with
40
- * @param {ComplianceKwargsArray & {airspeed_control?: boolean}} kwargs - values to check compliance against
41
- *
42
- * @returns {CheckStandardComplianceResult} filtered arrays based on compliance limits
43
- */
44
- export function check_standard_compliance_array(standard: Standard | "FAN_HEATWAVES", kwargs: ComplianceKwargsArray & {
45
- airspeed_control?: boolean;
46
- }): CheckStandardComplianceResult;
47
28
  /**
48
29
  * Returns the body surface area in square meters
49
30
  *
@@ -179,6 +160,30 @@ export function valid_range(range?: number[], [min, max]: [number, number]): num
179
160
  * const result = clo_typical_ensembles("Trousers, long-sleeve shirt"); // returns 0.61
180
161
  */
181
162
  export function clo_typical_ensembles(ensembles: "Walking shorts, short-sleeve shirt" | "Typical summer indoor clothing" | "Knee-length skirt, short-sleeve shirt, sandals, underwear" | "Trousers, long-sleeve shirt" | "Knee-length skirt, long-sleeve shirt, full slip" | "Sweat pants, long-sleeve sweatshirt" | "Jacket, Trousers, long-sleeve shirt" | "Typical winter indoor clothing"): number;
163
+ export type Standard = (typeof Standard)[keyof typeof Standard];
164
+ /**
165
+ * @typedef {Object} ComplianceKwargs
166
+ * @property {number} [met]
167
+ * @property {number} [clo]
168
+ * @property {number} [tdb]
169
+ * @property {number} [tr]
170
+ * @property {number} [v]
171
+ * @property {number} [vr]
172
+ * @property {number} [v_limited]
173
+ * @property {number} [rh]
174
+ * @property {boolean} [airspeed_control]
175
+ */
176
+ /**
177
+ * Standard names accepted by {@link check_standard_compliance}.
178
+ */
179
+ export const Standard: Readonly<{
180
+ ANKLE_DRAFT: "ANKLE_DRAFT";
181
+ ASHRAE: "ASHRAE";
182
+ FAN_HEATWAVES: "FAN_HEATWAVES";
183
+ ISO: "ISO";
184
+ ISO_7933_2004: "7933-2004";
185
+ ISO_7933_2023: "7933-2023";
186
+ }>;
182
187
  /**
183
188
  * Met values of typical tasks.
184
189
  * @public
@@ -303,18 +308,6 @@ export type ComplianceKwargs = {
303
308
  vr?: number;
304
309
  v_limited?: number;
305
310
  rh?: number;
306
- };
307
- export type ComplianceKwargsArray = {
308
- met?: number[];
309
- clo?: number[];
310
- tdb?: number[];
311
- tr?: number[];
312
- v?: number[];
313
- v_limited?: number[];
314
- rh?: number[];
315
- };
316
- export type Standard = "ANKLE_DRAFT" | "ASHRAE" | "ISO" | "ISO7933";
317
- export type CheckStandardComplianceResult = {
318
- [x: string]: number[];
311
+ airspeed_control?: boolean;
319
312
  };
320
313
  //# sourceMappingURL=utilities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../../../src/utilities/utilities.js"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,8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_compliance_array = exports.clo_individual_garments = exports.clo_typical_ensembles = exports.met_typical_tasks = exports.f_svv = exports.running_mean_outdoor_temperature = exports.units_converter = exports.clo_dynamic = exports.v_relative = exports.body_surface_area = void 0;
3
+ exports.check_standard_compliance = exports.clo_individual_garments = exports.clo_typical_ensembles = exports.met_typical_tasks = exports.f_svv = exports.running_mean_outdoor_temperature = exports.units_converter = exports.clo_dynamic = exports.v_relative = exports.body_surface_area = void 0;
4
4
  const utilities_js_1 = require("./utilities.js");
5
5
  Object.defineProperty(exports, "body_surface_area", { enumerable: true, get: function () { return utilities_js_1.body_surface_area; } });
6
6
  Object.defineProperty(exports, "v_relative", { enumerable: true, get: function () { return utilities_js_1.v_relative; } });
@@ -11,7 +11,7 @@ Object.defineProperty(exports, "f_svv", { enumerable: true, get: function () { r
11
11
  Object.defineProperty(exports, "met_typical_tasks", { enumerable: true, get: function () { return utilities_js_1.met_typical_tasks; } });
12
12
  Object.defineProperty(exports, "clo_typical_ensembles", { enumerable: true, get: function () { return utilities_js_1.clo_typical_ensembles; } });
13
13
  Object.defineProperty(exports, "clo_individual_garments", { enumerable: true, get: function () { return utilities_js_1.clo_individual_garments; } });
14
- Object.defineProperty(exports, "check_standard_compliance_array", { enumerable: true, get: function () { return utilities_js_1.check_standard_compliance_array; } });
14
+ Object.defineProperty(exports, "check_standard_compliance", { enumerable: true, get: function () { return utilities_js_1.check_standard_compliance; } });
15
15
  exports.default = {
16
16
  body_surface_area: utilities_js_1.body_surface_area,
17
17
  v_relative: utilities_js_1.v_relative,
@@ -22,6 +22,7 @@ exports.default = {
22
22
  met_typical_tasks: utilities_js_1.met_typical_tasks,
23
23
  clo_typical_ensembles: utilities_js_1.clo_typical_ensembles,
24
24
  clo_individual_garments: utilities_js_1.clo_individual_garments,
25
+ check_standard_compliance: utilities_js_1.check_standard_compliance,
25
26
  };
26
27
  /**
27
28
  * @public
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateInputs = exports.assertNumber = exports.clo_individual_garments = exports.met_typical_tasks = void 0;
3
+ exports.validateInputs = exports.assertNumber = exports.clo_individual_garments = exports.met_typical_tasks = exports.Standard = void 0;
4
4
  exports.round = round;
5
5
  exports.transpose_sharp_altitude = transpose_sharp_altitude;
6
6
  exports.check_standard_compliance = check_standard_compliance;
7
- exports.check_standard_compliance_array = check_standard_compliance_array;
8
7
  exports.body_surface_area = body_surface_area;
9
8
  exports.v_relative = v_relative;
10
9
  exports.clo_dynamic = clo_dynamic;
@@ -26,30 +25,6 @@ function round(number, precision) {
26
25
  const smudge = Math.pow(10, precision);
27
26
  return Math.round(number * smudge) / smudge;
28
27
  }
29
- /**
30
- * @typedef {Object} ComplianceKwargs
31
- * @property {number} [met]
32
- * @property {number} [clo]
33
- * @property {number} [tdb]
34
- * @property {number} [tr]
35
- * @property {number} [v]
36
- * @property {number} [vr]
37
- * @property {number} [v_limited]
38
- * @property {number} [rh]
39
- */
40
- /**
41
- * @typedef {Object} ComplianceKwargsArray
42
- * @property {number[]} [met]
43
- * @property {number[]} [clo]
44
- * @property {number[]} [tdb]
45
- * @property {number[]} [tr]
46
- * @property {number[]} [v]
47
- * @property {number[]} [v_limited]
48
- * @property {number[]} [rh]
49
- */
50
- /**
51
- * @typedef {"ANKLE_DRAFT" | "ASHRAE" | "ISO" | "ISO7933"} Standard
52
- */
53
28
  /**
54
29
  * Converts degrees to radians
55
30
  *
@@ -83,6 +58,32 @@ function transpose_sharp_altitude(sharp, altitude) {
83
58
  Math.tan(degrees_to_radians(90 - altitude))));
84
59
  return [round(sharp, 3), round(altitude_new, 3)];
85
60
  }
61
+ /**
62
+ * @typedef {Object} ComplianceKwargs
63
+ * @property {number} [met]
64
+ * @property {number} [clo]
65
+ * @property {number} [tdb]
66
+ * @property {number} [tr]
67
+ * @property {number} [v]
68
+ * @property {number} [vr]
69
+ * @property {number} [v_limited]
70
+ * @property {number} [rh]
71
+ * @property {boolean} [airspeed_control]
72
+ */
73
+ /**
74
+ * Standard names accepted by {@link check_standard_compliance}.
75
+ */
76
+ exports.Standard = Object.freeze({
77
+ ANKLE_DRAFT: "ANKLE_DRAFT",
78
+ ASHRAE: "ASHRAE",
79
+ FAN_HEATWAVES: "FAN_HEATWAVES",
80
+ ISO: "ISO",
81
+ ISO_7933_2004: "7933-2004",
82
+ ISO_7933_2023: "7933-2023",
83
+ });
84
+ /**
85
+ * @typedef {(typeof Standard)[keyof typeof Standard]} Standard
86
+ */
86
87
  /**
87
88
  * Check that the values comply with the standard provided
88
89
  *
@@ -93,101 +94,22 @@ function transpose_sharp_altitude(sharp, altitude) {
93
94
  */
94
95
  function check_standard_compliance(standard, kwargs) {
95
96
  switch (standard) {
96
- case "ANKLE_DRAFT":
97
+ case exports.Standard.ANKLE_DRAFT:
97
98
  return _ankle_draft_compliance(kwargs);
98
- case "ASHRAE":
99
+ case exports.Standard.ASHRAE:
99
100
  return _ashrae_compliance(kwargs);
100
- case "ISO":
101
+ case exports.Standard.FAN_HEATWAVES:
102
+ return _fan_heatwaves_compliance(kwargs);
103
+ case exports.Standard.ISO:
101
104
  return _iso_compliance(kwargs);
102
- case "ISO7933":
103
- return _iso7933_compliance(kwargs);
105
+ case exports.Standard.ISO_7933_2004:
106
+ return _iso7933_2004_compliance(kwargs);
107
+ case exports.Standard.ISO_7933_2023:
108
+ return _iso7933_2023_compliance(kwargs);
104
109
  default:
105
110
  throw new Error("Unknown standard");
106
111
  }
107
112
  }
108
- /**
109
- * @typedef {Object.<string, number[]>} CheckStandardComplianceResult
110
- * @property {number[]} tdb
111
- * @property {number[]} tr
112
- * @property {number[]} v
113
- * @property {number[]} [met]
114
- * @property {number[]} [clo]
115
- * @property {number[]} [rh]
116
- */
117
- /**
118
- * Check that the values as an array comply with the standard provided and returns arrays where
119
- * the values that do not comply are NaN
120
- * @see {@link check_standard_compliance} for scalar variant that returns warnings
121
- *
122
- * @param {Standard | "FAN_HEATWAVES"} standard - standard to check compliance with
123
- * @param {ComplianceKwargsArray & {airspeed_control?: boolean}} kwargs - values to check compliance against
124
- *
125
- * @returns {CheckStandardComplianceResult} filtered arrays based on compliance limits
126
- */
127
- function check_standard_compliance_array(standard, kwargs) {
128
- const default_kwargs = { airspeed_control: true };
129
- kwargs = Object.assign(default_kwargs, kwargs);
130
- switch (standard) {
131
- case "ISO7933":
132
- case "ANKLE_DRAFT":
133
- throw new Error(`Unsupported standard ${standard}`);
134
- case "ASHRAE": {
135
- // based on table 7.3.4 ashrae 55 2020
136
- const tdb = valid_range(kwargs.tdb, [10.0, 40.0]);
137
- const tr = valid_range(kwargs.tr, [10.0, 40.0]);
138
- let original_v = kwargs.v || [];
139
- let v = valid_range(kwargs.v, [0.0, 2.0]);
140
- if (!kwargs.airspeed_control) {
141
- const met_aux = kwargs.met || [];
142
- const clo_aux = kwargs.clo || [];
143
- v = v.map((_v, index) => original_v[index] > 0.8 &&
144
- clo_aux[index] < 0.7 &&
145
- met_aux[index] < 1.3
146
- ? NaN
147
- : _v);
148
- const to = (0, t_o_js_1.t_o_array)(tdb, tr, original_v);
149
- v = v.map((_v, index) => {
150
- const limit = 50.49 - 4.4047 * to[index] + 0.096425 * to[index] * to[index];
151
- return (23 < to[index] &&
152
- to[index] < 25.5 &&
153
- original_v[index] > limit &&
154
- clo_aux[index] < 0.7 &&
155
- met_aux[index] < 1.3) ||
156
- (to[index] <= 23 &&
157
- original_v[index] > 0.2 &&
158
- clo_aux[index] < 0.7 &&
159
- met_aux[index] < 1.3)
160
- ? NaN
161
- : _v;
162
- });
163
- }
164
- if (kwargs.met !== undefined) {
165
- const met = valid_range(kwargs.met, [1.0, 4.0]);
166
- const clo = valid_range(kwargs.clo, [0.0, 1.5]);
167
- return { tdb, tr, v, met, clo };
168
- }
169
- return { tdb, tr, v };
170
- }
171
- case "FAN_HEATWAVES": {
172
- const tdb = valid_range(kwargs.tdb, [20.0, 50.0]);
173
- const tr = valid_range(kwargs.tr, [20.0, 50.0]);
174
- const v = valid_range(kwargs.v, [0.1, 4.5]);
175
- const rh = valid_range(kwargs.rh, [0, 100]);
176
- const met = valid_range(kwargs.met, [0.7, 2]);
177
- const clo = valid_range(kwargs.clo, [0.0, 1]);
178
- return { tdb, tr, v, rh, met, clo };
179
- }
180
- case "ISO": {
181
- // based on ISO 7730:2005 page 3
182
- const tdb = valid_range(kwargs.tdb, [10.0, 30.0]);
183
- const tr = valid_range(kwargs.tr, [10.0, 40.0]);
184
- const v = valid_range(kwargs.v, [0.0, 1.0]);
185
- const met = valid_range(kwargs.met, [0.8, 4.0]);
186
- const clo = valid_range(kwargs.clo, [0.0, 2]);
187
- return { tdb, tr, v, met, clo };
188
- }
189
- }
190
- }
191
113
  /**
192
114
  * @param {ComplianceKwargs} kwargs
193
115
  *
@@ -243,6 +165,64 @@ function _ashrae_compliance(kwargs) {
243
165
  break;
244
166
  }
245
167
  }
168
+ // Cross-field check (ASHRAE 55 table 7.3.4): when the occupant cannot
169
+ // control the airspeed, v has additional upper limits that depend on the
170
+ // operative temperature, clo and met.
171
+ if (kwargs.airspeed_control === false &&
172
+ kwargs.v !== undefined &&
173
+ kwargs.met !== undefined &&
174
+ kwargs.clo !== undefined &&
175
+ kwargs.tdb !== undefined &&
176
+ kwargs.tr !== undefined) {
177
+ const v = kwargs.v;
178
+ const met = kwargs.met;
179
+ const clo = kwargs.clo;
180
+ const to = (0, t_o_js_1.t_o)(kwargs.tdb, kwargs.tr, v);
181
+ const v_limit = 50.49 - 4.4047 * to + 0.096425 * to * to;
182
+ const violates = (v > 0.8 && clo < 0.7 && met < 1.3) ||
183
+ (to > 23 && to < 25.5 && v > v_limit && clo < 0.7 && met < 1.3) ||
184
+ (to <= 23 && v > 0.2 && clo < 0.7 && met < 1.3);
185
+ if (violates)
186
+ warnings.push("ASHRAE air speed applicability limits when the occupant does not control the airspeed");
187
+ }
188
+ return warnings;
189
+ }
190
+ /**
191
+ * @param {ComplianceKwargs} kwargs
192
+ *
193
+ * @returns {string[]} strings with warnings emitted
194
+ */
195
+ function _fan_heatwaves_compliance(kwargs) {
196
+ /** @type {string[]} */
197
+ let warnings = [];
198
+ for (const [key, value] of Object.entries(kwargs)) {
199
+ if (value === undefined)
200
+ continue;
201
+ switch (key) {
202
+ case "tdb":
203
+ case "tr":
204
+ let parameter = key === "tdb" ? "dry-bulb" : "mean radiant";
205
+ if (value > 50 || value < 20)
206
+ warnings.push(`Fan use during heatwaves ${parameter} temperature applicability limits between 20 and 50 ºC`);
207
+ break;
208
+ case "v":
209
+ if (value > 4.5 || value < 0.1)
210
+ warnings.push("Fan use during heatwaves air speed applicability limits between 0.1 and 4.5 m/s");
211
+ break;
212
+ case "rh":
213
+ if (value > 100 || value < 0)
214
+ warnings.push("Fan use during heatwaves rh applicability limits between 0 and 100 %");
215
+ break;
216
+ case "met":
217
+ if (value > 2 || value < 0.7)
218
+ warnings.push("Fan use during heatwaves met applicability limits between 0.7 and 2 met");
219
+ break;
220
+ case "clo":
221
+ if (value > 1 || value < 0)
222
+ warnings.push("Fan use during heatwaves clo applicability limits between 0 and 1 clo");
223
+ break;
224
+ }
225
+ }
246
226
  return warnings;
247
227
  }
248
228
  /**
@@ -260,7 +240,7 @@ function _iso_compliance(kwargs) {
260
240
  warnings.push("ISO air temperature applicability limits between 10 and 30 ºC");
261
241
  if (key === "tr" && (value > 40 || value < 10))
262
242
  warnings.push("ISO mean radiant temperature applicability limits between 10 and 40 ºC");
263
- if (key === "v" || (key === "vr" && (value > 1 || value < 0)))
243
+ if ((key === "v" || key === "vr") && (value > 1 || value < 0))
264
244
  warnings.push("ISO air speed applicability limits between 0 and 1 m/s");
265
245
  if (key === "met" && (value > 4 || value < 0))
266
246
  warnings.push("ISO met applicability limits between 0.8 and 4.0 met");
@@ -274,26 +254,24 @@ function _iso_compliance(kwargs) {
274
254
  *
275
255
  * @returns {string[]} strings with warnings emitted
276
256
  */
277
- function _iso7933_compliance(kwargs) {
257
+ function _iso7933_2004_compliance(kwargs) {
258
+ // based on ISO 7933:2004 Annex A
278
259
  if (kwargs.tdb === undefined ||
279
- kwargs.rh === undefined ||
260
+ kwargs.p_a === undefined ||
280
261
  kwargs.tr === undefined ||
281
262
  kwargs.v === undefined ||
282
263
  kwargs.met === undefined ||
283
264
  kwargs.clo === undefined) {
284
- throw new Error(`Missing arguments for ISO7933 compliance check, got: ${kwargs} and requires tdb, rh, tr, v, met and clo`);
265
+ throw new Error(`Missing arguments for ISO 7933:2004 compliance check, got: ${kwargs} and requires tdb, p_a, tr, v, met and clo`);
285
266
  }
286
267
  /** @type {string[]} */
287
268
  let warnings = [];
288
269
  if (kwargs.tdb > 50 || kwargs.tdb < 15)
289
270
  warnings.push("ISO 7933:2004 air temperature applicability limits between 15 and 50 ºC");
290
- const p_sat_result = (0, p_sat_js_1.p_sat)(kwargs.tdb);
291
- const p_a = ((p_sat_result / 1000) * kwargs.rh) / 100;
292
- const rh_max = (4.5 * 100 * 1000) / p_sat_result;
293
- if (p_a > rh_max || p_a < 0)
294
- warnings.push(`ISO 7933:2004 rh applicability limits between 0 and ${rh_max} %`);
295
- if (kwargs.tr - kwargs.tdb > 60 || kwargs.tr - kwargs.tdb < 0)
296
- warnings.push("ISO 7933:2004 t_r - t_db applicability limits between 0 and 60 ºC");
271
+ if (kwargs.p_a > 4.5 || kwargs.p_a < 0)
272
+ warnings.push("ISO 7933:2004 p_a applicability limits between 0 and 4.5 kPa");
273
+ if (kwargs.tr > 60 || kwargs.tr < 0)
274
+ warnings.push("ISO 7933:2004 tr applicability limits between 0 and 60 ºC");
297
275
  if (kwargs.v > 3 || kwargs.v < 0)
298
276
  warnings.push("ISO 7933:2004 air speed applicability limits between 0 and 3 m/s");
299
277
  if (kwargs.met > 450 || kwargs.met < 100)
@@ -302,6 +280,32 @@ function _iso7933_compliance(kwargs) {
302
280
  warnings.push("ISO 7933:2004 clo applicability limits between 0.1 and 1 clo");
303
281
  return warnings;
304
282
  }
283
+ function _iso7933_2023_compliance(kwargs) {
284
+ // based on ISO 7933:2023 Annex A
285
+ if (kwargs.tdb === undefined ||
286
+ kwargs.p_a === undefined ||
287
+ kwargs.tr === undefined ||
288
+ kwargs.v === undefined ||
289
+ kwargs.met === undefined ||
290
+ kwargs.clo === undefined) {
291
+ throw new Error(`Missing arguments for ISO 7933:2023 compliance check, got: ${kwargs} and requires tdb, p_a, tr, v, met and clo`);
292
+ }
293
+ /** @type {string[]} */
294
+ let warnings = [];
295
+ if (kwargs.tdb > 50 || kwargs.tdb < 15)
296
+ warnings.push("ISO 7933:2023 air temperature applicability limits between 15 and 50 ºC");
297
+ if (kwargs.p_a > 4.5 || kwargs.p_a < 0.5)
298
+ warnings.push("ISO 7933:2023 p_a applicability limits between 0.5 and 4.5 kPa");
299
+ if (kwargs.tr > 60 || kwargs.tr < 0)
300
+ warnings.push("ISO 7933:2023 tr applicability limits between 0 and 60 ºC");
301
+ if (kwargs.v > 3 || kwargs.v < 0)
302
+ warnings.push("ISO 7933:2023 air speed applicability limits between 0 and 3 m/s");
303
+ if (kwargs.met > 450 || kwargs.met < 100)
304
+ warnings.push("ISO 7933:2023 met applicability limits between 100 and 450 met");
305
+ if (kwargs.clo > 1 || kwargs.clo < 0.1)
306
+ warnings.push("ISO 7933:2023 clo applicability limits between 0.1 and 1 clo");
307
+ return warnings;
308
+ }
305
309
  /**
306
310
  * Returns the body surface area in square meters
307
311
  *
@@ -855,6 +859,15 @@ const validateInputs = (params, schema) => {
855
859
  throw new Error(`"${key}" must be one of: ${rules.enum.map((v) => `'${v}'`).join(", ")}`);
856
860
  }
857
861
  }
862
+ if (rules.min !== undefined && value < rules.min) {
863
+ throw new RangeError(`Parameter "${key}" must be >= ${rules.min}, got ${value}`);
864
+ }
865
+ if (rules.max !== undefined && value > rules.max) {
866
+ throw new RangeError(`Parameter "${key}" must be <= ${rules.max}, got ${value}`);
867
+ }
868
+ if (rules.exclusiveMin !== undefined && value <= rules.exclusiveMin) {
869
+ throw new RangeError(`Parameter "${key}" must be > ${rules.exclusiveMin}, got ${value}`);
870
+ }
858
871
  }
859
872
  };
860
873
  exports.validateInputs = validateInputs;
@@ -1,5 +1,5 @@
1
1
  import { t_o } from "../psychrometrics/t_o.js";
2
- import { check_standard_compliance_array, round, units_converter, validateInputs, } from "../utilities/utilities.js";
2
+ import { check_standard_compliance, round, units_converter, validateInputs, } from "../utilities/utilities.js";
3
3
  import { get_ce } from "./adaptive_en.js";
4
4
  /**
5
5
  * @typedef {object} AdaptiveAshraeResult
@@ -38,6 +38,7 @@ import { get_ce } from "./adaptive_en.js";
38
38
  * @param {boolean} limit_inputs - By default, if the inputs are outsude the standard applicability limits the
39
39
  * function returns nan. If False returns pmv and ppd values even if input values are
40
40
  * outside the applicability limits of the model.
41
+ * @param {boolean} [round_output=true] - if true, rounds `t_cmf` to one decimal place in SI before bounds are derived; if false, returns the unrounded values. Under `units = 'IP'` the rounded SI value is then converted to °F, so IP outputs carry the additional decimals from the °C-to-°F conversion.
41
42
  *
42
43
  * @returns {AdaptiveAshraeResult} set containing results for the model
43
44
  *
@@ -81,9 +82,18 @@ const ADAPTIVE_ASHRAE_SCHEMA = {
81
82
  v: { type: "number" },
82
83
  units: { enum: ["SI", "IP"] },
83
84
  limit_inputs: { type: "boolean" },
85
+ round_output: { type: "boolean", required: false },
84
86
  };
85
- export function adaptive_ashrae(tdb, tr, t_running_mean, v, units = "SI", limit_inputs = true) {
86
- validateInputs({ tdb, tr, t_running_mean, v, units: units.toUpperCase(), limit_inputs }, ADAPTIVE_ASHRAE_SCHEMA);
87
+ export function adaptive_ashrae(tdb, tr, t_running_mean, v, units = "SI", limit_inputs = true, round_output = true) {
88
+ validateInputs({
89
+ tdb,
90
+ tr,
91
+ t_running_mean,
92
+ v,
93
+ units: units.toUpperCase(),
94
+ limit_inputs,
95
+ round_output,
96
+ }, ADAPTIVE_ASHRAE_SCHEMA);
87
97
  const standard = "ASHRAE";
88
98
  if (units.toUpperCase() === "IP") {
89
99
  ({
@@ -104,19 +114,14 @@ export function adaptive_ashrae(tdb, tr, t_running_mean, v, units = "SI", limit_
104
114
  // Relation between comfort and outdoor temperature
105
115
  let t_cmf = 0.31 * t_running_mean + 17.8;
106
116
  if (limit_inputs) {
107
- const { tdb: tdb_valid, tr: tr_valid, v: v_valid, } = check_standard_compliance_array(standard, {
108
- tdb: [tdb],
109
- tr: [tr],
110
- v: [v],
111
- });
112
- const trm_valid = t_running_mean >= 10.0 && t_running_mean <= 33.5 ? t_running_mean : NaN;
113
- if (isNaN(tdb_valid[0]) ||
114
- isNaN(tr_valid[0]) ||
115
- isNaN(v_valid[0]) ||
116
- isNaN(trm_valid))
117
+ const warnings = check_standard_compliance(standard, { tdb, tr, v });
118
+ const trm_valid = t_running_mean >= 10.0 && t_running_mean <= 33.5;
119
+ if (warnings.length > 0 || !trm_valid)
117
120
  t_cmf = NaN;
118
121
  }
119
- t_cmf = round(t_cmf, 1);
122
+ if (round_output) {
123
+ t_cmf = round(t_cmf, 1);
124
+ }
120
125
  let tmp_cmf_80_low = t_cmf - 3.5;
121
126
  let tmp_cmf_90_low = t_cmf - 2.5;
122
127
  let tmp_cmf_80_up = t_cmf + 3.5 + ce;
@@ -42,6 +42,7 @@ import { units_converter, round, validateInputs, } from "../utilities/utilities.
42
42
  * @param {boolean} [limit_inputs=true] - By default, if the inputs are outsude the standard applicability limits the
43
43
  * function returns nan. If False returns pmv and ppd values even if input values are
44
44
  * outside the applicability limits of the model.
45
+ * @param {boolean} [round_output=true] - if true, rounds the returned comfort temperature and bounds to one decimal place in the output unit (rounding is applied after any IP unit conversion); if false, returns the unrounded values.
45
46
  *
46
47
  * @returns {AdaptiveEnResult} result set
47
48
  *
@@ -69,9 +70,18 @@ const ADAPTIVE_EN_SCHEMA = {
69
70
  v: { type: "number" },
70
71
  units: { enum: ["SI", "IP"] },
71
72
  limit_inputs: { type: "boolean" },
73
+ round_output: { type: "boolean", required: false },
72
74
  };
73
- export function adaptive_en(tdb, tr, t_running_mean, v, units = "SI", limit_inputs = true) {
74
- validateInputs({ tdb, tr, t_running_mean, v, units: units.toUpperCase(), limit_inputs }, ADAPTIVE_EN_SCHEMA);
75
+ export function adaptive_en(tdb, tr, t_running_mean, v, units = "SI", limit_inputs = true, round_output = true) {
76
+ validateInputs({
77
+ tdb,
78
+ tr,
79
+ t_running_mean,
80
+ v,
81
+ units: units.toUpperCase(),
82
+ limit_inputs,
83
+ round_output,
84
+ }, ADAPTIVE_EN_SCHEMA);
75
85
  const standard = "ISO";
76
86
  if (units.toLowerCase() == "ip") {
77
87
  ({
@@ -120,17 +130,26 @@ export function adaptive_en(tdb, tr, t_running_mean, v, units = "SI", limit_inpu
120
130
  tmp_cmf_cat_iii_low: t_cmf_iii_lower,
121
131
  }, "SI"));
122
132
  }
133
+ if (round_output) {
134
+ t_cmf = round(t_cmf, 1);
135
+ t_cmf_i_lower = round(t_cmf_i_lower, 1);
136
+ t_cmf_ii_lower = round(t_cmf_ii_lower, 1);
137
+ t_cmf_iii_lower = round(t_cmf_iii_lower, 1);
138
+ t_cmf_i_upper = round(t_cmf_i_upper, 1);
139
+ t_cmf_ii_upper = round(t_cmf_ii_upper, 1);
140
+ t_cmf_iii_upper = round(t_cmf_iii_upper, 1);
141
+ }
123
142
  return {
124
- tmp_cmf: round(t_cmf, 1),
143
+ tmp_cmf: t_cmf,
125
144
  acceptability_cat_i: acceptability_i,
126
145
  acceptability_cat_ii: acceptability_ii,
127
146
  acceptability_cat_iii: acceptability_iii,
128
- tmp_cmf_cat_i_up: round(t_cmf_i_upper, 1),
129
- tmp_cmf_cat_ii_up: round(t_cmf_ii_upper, 1),
130
- tmp_cmf_cat_iii_up: round(t_cmf_iii_upper, 1),
131
- tmp_cmf_cat_i_low: round(t_cmf_i_lower, 1),
132
- tmp_cmf_cat_ii_low: round(t_cmf_ii_lower, 1),
133
- tmp_cmf_cat_iii_low: round(t_cmf_iii_lower, 1),
147
+ tmp_cmf_cat_i_up: t_cmf_i_upper,
148
+ tmp_cmf_cat_ii_up: t_cmf_ii_upper,
149
+ tmp_cmf_cat_iii_up: t_cmf_iii_upper,
150
+ tmp_cmf_cat_i_low: t_cmf_i_lower,
151
+ tmp_cmf_cat_ii_low: t_cmf_ii_lower,
152
+ tmp_cmf_cat_iii_low: t_cmf_iii_lower,
134
153
  };
135
154
  }
136
155
  /**