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.
- package/README.md +196 -6
- package/lib/cjs/index.js +7 -434
- package/lib/cjs/models/a_pmv.js +140 -0
- package/lib/cjs/models/adaptive_ashrae.js +290 -0
- package/lib/cjs/models/adaptive_en.js +300 -0
- package/lib/cjs/models/ankle_draft.js +82 -0
- package/lib/cjs/models/at.js +52 -0
- package/lib/cjs/models/athb.js +135 -0
- package/lib/cjs/models/clo_tout.js +58 -0
- package/lib/cjs/models/cooling_effect.js +164 -0
- package/lib/cjs/models/discomfort_index.js +115 -0
- package/lib/cjs/models/e_pmv.js +154 -0
- package/lib/cjs/models/heat_index.js +60 -0
- package/lib/cjs/models/humidex.js +63 -0
- package/lib/cjs/models/index.js +71 -0
- package/lib/cjs/models/net.js +50 -0
- package/lib/cjs/models/pet_steady.js +443 -0
- package/lib/cjs/models/phs.js +458 -0
- package/lib/cjs/models/pmv.js +200 -0
- package/lib/cjs/models/pmv_ppd.js +404 -0
- package/lib/cjs/models/set_tmp.js +203 -0
- package/lib/cjs/models/solar_gain.js +163 -0
- package/lib/cjs/models/two_nodes.js +790 -0
- package/lib/cjs/models/use_fans_heatwave.js +203 -0
- package/lib/cjs/models/utci.js +609 -0
- package/lib/cjs/models/vertical_tmp_grad_ppd.js +95 -0
- package/lib/cjs/models/wbgt.js +72 -0
- package/lib/cjs/models/wc.js +37 -0
- package/lib/cjs/psychrometrics/enthalpy.js +24 -0
- package/lib/cjs/psychrometrics/index.js +28 -0
- package/lib/cjs/psychrometrics/p_sat.js +46 -0
- package/lib/cjs/psychrometrics/p_sat_torr.js +34 -0
- package/lib/cjs/psychrometrics/psy_ta_rh.js +51 -0
- package/lib/cjs/psychrometrics/t_dp.js +19 -0
- package/lib/cjs/psychrometrics/t_mrt.js +117 -0
- package/lib/cjs/psychrometrics/t_o.js +82 -0
- package/lib/cjs/psychrometrics/t_wb.js +23 -0
- package/lib/cjs/types/index.d.ts +7 -79
- package/lib/cjs/types/index.d.ts.map +1 -1
- package/lib/cjs/types/models/a_pmv.d.ts +133 -0
- package/lib/cjs/types/models/a_pmv.d.ts.map +1 -0
- package/lib/cjs/types/models/adaptive_ashrae.d.ts +211 -0
- package/lib/cjs/types/models/adaptive_ashrae.d.ts.map +1 -0
- package/lib/cjs/types/models/adaptive_en.d.ts +217 -0
- package/lib/cjs/types/models/adaptive_en.d.ts.map +1 -0
- package/lib/cjs/types/models/ankle_draft.d.ts +60 -0
- package/lib/cjs/types/models/ankle_draft.d.ts.map +1 -0
- package/lib/cjs/types/models/at.d.ts +34 -0
- package/lib/cjs/types/models/at.d.ts.map +1 -0
- package/lib/cjs/types/models/athb.d.ts +96 -0
- package/lib/cjs/types/models/athb.d.ts.map +1 -0
- package/lib/cjs/types/models/clo_tout.d.ts +45 -0
- package/lib/cjs/types/models/clo_tout.d.ts.map +1 -0
- package/lib/cjs/types/models/cooling_effect.d.ts +49 -0
- package/lib/cjs/types/models/cooling_effect.d.ts.map +1 -0
- package/lib/cjs/types/models/discomfort_index.d.ts +91 -0
- package/lib/cjs/types/models/discomfort_index.d.ts.map +1 -0
- package/lib/cjs/types/models/e_pmv.d.ts +139 -0
- package/lib/cjs/types/models/e_pmv.d.ts.map +1 -0
- package/lib/cjs/types/models/heat_index.d.ts +27 -0
- package/lib/cjs/types/models/heat_index.d.ts.map +1 -0
- package/lib/cjs/types/models/humidex.d.ts +54 -0
- package/lib/cjs/types/models/humidex.d.ts.map +1 -0
- package/lib/cjs/types/models/index.d.ts +78 -0
- package/lib/cjs/types/models/index.d.ts.map +1 -0
- package/lib/cjs/types/models/net.d.ts +39 -0
- package/lib/cjs/types/models/net.d.ts.map +1 -0
- package/lib/cjs/types/models/pet_steady.d.ts +59 -0
- package/lib/cjs/types/models/pet_steady.d.ts.map +1 -0
- package/lib/cjs/types/models/phs.d.ts +242 -0
- package/lib/cjs/types/models/phs.d.ts.map +1 -0
- package/lib/cjs/types/models/pmv.d.ts +198 -0
- package/lib/cjs/types/models/pmv.d.ts.map +1 -0
- package/lib/cjs/types/models/pmv_ppd.d.ts +246 -0
- package/lib/cjs/types/models/pmv_ppd.d.ts.map +1 -0
- package/lib/cjs/types/models/set_tmp.d.ts +124 -0
- package/lib/cjs/types/models/set_tmp.d.ts.map +1 -0
- package/lib/cjs/types/models/solar_gain.d.ts +76 -0
- package/lib/cjs/types/models/solar_gain.d.ts.map +1 -0
- package/lib/cjs/types/models/two_nodes.d.ts +412 -0
- package/lib/cjs/types/models/two_nodes.d.ts.map +1 -0
- package/lib/cjs/types/models/use_fans_heatwave.d.ts +188 -0
- package/lib/cjs/types/models/use_fans_heatwave.d.ts.map +1 -0
- package/lib/cjs/types/models/utci.d.ts +79 -0
- package/lib/cjs/types/models/utci.d.ts.map +1 -0
- package/lib/cjs/types/models/vertical_tmp_grad_ppd.d.ts +58 -0
- package/lib/cjs/types/models/vertical_tmp_grad_ppd.d.ts.map +1 -0
- package/lib/cjs/types/models/wbgt.d.ts +51 -0
- package/lib/cjs/types/models/wbgt.d.ts.map +1 -0
- package/lib/cjs/types/models/wc.d.ts +29 -0
- package/lib/cjs/types/models/wc.d.ts.map +1 -0
- package/lib/cjs/types/psychrometrics/enthalpy.d.ts +12 -0
- package/lib/cjs/types/psychrometrics/enthalpy.d.ts.map +1 -0
- package/lib/cjs/types/psychrometrics/index.d.ts +26 -0
- package/lib/cjs/types/psychrometrics/index.d.ts.map +1 -0
- package/lib/cjs/types/psychrometrics/p_sat.d.ts +13 -0
- package/lib/cjs/types/psychrometrics/p_sat.d.ts.map +1 -0
- package/lib/cjs/types/psychrometrics/p_sat_torr.d.ts +26 -0
- package/lib/cjs/types/psychrometrics/p_sat_torr.d.ts.map +1 -0
- package/lib/cjs/types/psychrometrics/psy_ta_rh.d.ts +51 -0
- package/lib/cjs/types/psychrometrics/psy_ta_rh.d.ts.map +1 -0
- package/lib/cjs/types/psychrometrics/t_dp.d.ts +9 -0
- package/lib/cjs/types/psychrometrics/t_dp.d.ts.map +1 -0
- package/lib/cjs/types/psychrometrics/t_mrt.d.ts +43 -0
- package/lib/cjs/types/psychrometrics/t_mrt.d.ts.map +1 -0
- package/lib/cjs/types/psychrometrics/t_o.d.ts +31 -0
- package/lib/cjs/types/psychrometrics/t_o.d.ts.map +1 -0
- package/lib/cjs/types/psychrometrics/t_wb.d.ts +12 -0
- package/lib/cjs/types/psychrometrics/t_wb.d.ts.map +1 -0
- package/lib/cjs/types/utilities/index.d.ts +28 -0
- package/lib/cjs/types/utilities/index.d.ts.map +1 -0
- package/lib/cjs/types/utilities/utilities.d.ts +377 -0
- package/lib/cjs/types/utilities/utilities.d.ts.map +1 -0
- package/lib/cjs/utilities/index.js +27 -0
- package/lib/cjs/utilities/utilities.js +903 -0
- package/lib/esm/index.js +4 -0
- package/lib/esm/models/a_pmv.js +135 -0
- package/lib/esm/models/adaptive_ashrae.js +285 -0
- package/lib/esm/models/adaptive_en.js +294 -0
- package/lib/esm/models/ankle_draft.js +78 -0
- package/lib/esm/models/at.js +48 -0
- package/lib/esm/models/athb.js +130 -0
- package/lib/esm/models/clo_tout.js +53 -0
- package/lib/esm/models/cooling_effect.js +159 -0
- package/lib/esm/models/discomfort_index.js +110 -0
- package/lib/esm/models/e_pmv.js +149 -0
- package/lib/esm/models/heat_index.js +56 -0
- package/lib/esm/models/humidex.js +59 -0
- package/lib/esm/models/index.js +69 -0
- package/lib/esm/models/net.js +46 -0
- package/lib/esm/models/pet_steady.js +439 -0
- package/lib/esm/models/phs.js +454 -0
- package/lib/esm/models/pmv.js +195 -0
- package/lib/esm/models/pmv_ppd.js +398 -0
- package/lib/esm/models/set_tmp.js +198 -0
- package/lib/esm/models/solar_gain.js +158 -0
- package/lib/esm/models/two_nodes.js +784 -0
- package/lib/esm/models/use_fans_heatwave.js +199 -0
- package/lib/esm/models/utci.js +604 -0
- package/lib/esm/models/wbgt.js +68 -0
- package/lib/esm/models/wc.js +33 -0
- package/lib/esm/psychrometrics/enthalpy.js +20 -0
- package/lib/esm/psychrometrics/index.js +26 -0
- package/lib/esm/psychrometrics/p_sat.js +42 -0
- package/lib/esm/psychrometrics/p_sat_torr.js +29 -0
- package/lib/esm/psychrometrics/psy_ta_rh.js +47 -0
- package/lib/esm/psychrometrics/t_dp.js +15 -0
- package/lib/esm/psychrometrics/t_mrt.js +112 -0
- package/lib/esm/psychrometrics/t_o.js +77 -0
- package/lib/esm/psychrometrics/t_wb.js +19 -0
- package/lib/esm/types/index.d.ts +7 -79
- package/lib/esm/types/index.d.ts.map +1 -1
- package/lib/esm/types/models/a_pmv.d.ts +133 -0
- package/lib/esm/types/models/a_pmv.d.ts.map +1 -0
- package/lib/esm/types/models/adaptive_ashrae.d.ts +211 -0
- package/lib/esm/types/models/adaptive_ashrae.d.ts.map +1 -0
- package/lib/esm/types/models/adaptive_en.d.ts +217 -0
- package/lib/esm/types/models/adaptive_en.d.ts.map +1 -0
- package/lib/esm/types/models/ankle_draft.d.ts +60 -0
- package/lib/esm/types/models/ankle_draft.d.ts.map +1 -0
- package/lib/esm/types/models/at.d.ts +34 -0
- package/lib/esm/types/models/at.d.ts.map +1 -0
- package/lib/esm/types/models/athb.d.ts +96 -0
- package/lib/esm/types/models/athb.d.ts.map +1 -0
- package/lib/esm/types/models/clo_tout.d.ts +45 -0
- package/lib/esm/types/models/clo_tout.d.ts.map +1 -0
- package/lib/esm/types/models/cooling_effect.d.ts +49 -0
- package/lib/esm/types/models/cooling_effect.d.ts.map +1 -0
- package/lib/esm/types/models/discomfort_index.d.ts +91 -0
- package/lib/esm/types/models/discomfort_index.d.ts.map +1 -0
- package/lib/esm/types/models/e_pmv.d.ts +139 -0
- package/lib/esm/types/models/e_pmv.d.ts.map +1 -0
- package/lib/esm/types/models/heat_index.d.ts +27 -0
- package/lib/esm/types/models/heat_index.d.ts.map +1 -0
- package/lib/esm/types/models/humidex.d.ts +54 -0
- package/lib/esm/types/models/humidex.d.ts.map +1 -0
- package/lib/esm/types/models/index.d.ts +77 -0
- package/lib/esm/types/models/index.d.ts.map +1 -0
- package/lib/esm/types/models/net.d.ts +39 -0
- package/lib/esm/types/models/net.d.ts.map +1 -0
- package/lib/esm/types/models/pet_steady.d.ts +59 -0
- package/lib/esm/types/models/pet_steady.d.ts.map +1 -0
- package/lib/esm/types/models/phs.d.ts +242 -0
- package/lib/esm/types/models/phs.d.ts.map +1 -0
- package/lib/esm/types/models/pmv.d.ts +198 -0
- package/lib/esm/types/models/pmv.d.ts.map +1 -0
- package/lib/esm/types/models/pmv_ppd.d.ts +246 -0
- package/lib/esm/types/models/pmv_ppd.d.ts.map +1 -0
- package/lib/esm/types/models/set_tmp.d.ts +124 -0
- package/lib/esm/types/models/set_tmp.d.ts.map +1 -0
- package/lib/esm/types/models/solar_gain.d.ts +76 -0
- package/lib/esm/types/models/solar_gain.d.ts.map +1 -0
- package/lib/esm/types/models/two_nodes.d.ts +412 -0
- package/lib/esm/types/models/two_nodes.d.ts.map +1 -0
- package/lib/esm/types/models/use_fans_heatwave.d.ts +188 -0
- package/lib/esm/types/models/use_fans_heatwave.d.ts.map +1 -0
- package/lib/esm/types/models/utci.d.ts +79 -0
- package/lib/esm/types/models/utci.d.ts.map +1 -0
- package/lib/esm/types/models/wbgt.d.ts +51 -0
- package/lib/esm/types/models/wbgt.d.ts.map +1 -0
- package/lib/esm/types/models/wc.d.ts +29 -0
- package/lib/esm/types/models/wc.d.ts.map +1 -0
- package/lib/esm/types/psychrometrics/enthalpy.d.ts +12 -0
- package/lib/esm/types/psychrometrics/enthalpy.d.ts.map +1 -0
- package/lib/esm/types/psychrometrics/index.d.ts +26 -0
- package/lib/esm/types/psychrometrics/index.d.ts.map +1 -0
- package/lib/esm/types/psychrometrics/p_sat.d.ts +13 -0
- package/lib/esm/types/psychrometrics/p_sat.d.ts.map +1 -0
- package/lib/esm/types/psychrometrics/p_sat_torr.d.ts +26 -0
- package/lib/esm/types/psychrometrics/p_sat_torr.d.ts.map +1 -0
- package/lib/esm/types/psychrometrics/psy_ta_rh.d.ts +51 -0
- package/lib/esm/types/psychrometrics/psy_ta_rh.d.ts.map +1 -0
- package/lib/esm/types/psychrometrics/t_dp.d.ts +9 -0
- package/lib/esm/types/psychrometrics/t_dp.d.ts.map +1 -0
- package/lib/esm/types/psychrometrics/t_mrt.d.ts +43 -0
- package/lib/esm/types/psychrometrics/t_mrt.d.ts.map +1 -0
- package/lib/esm/types/psychrometrics/t_o.d.ts +31 -0
- package/lib/esm/types/psychrometrics/t_o.d.ts.map +1 -0
- package/lib/esm/types/psychrometrics/t_wb.d.ts +12 -0
- package/lib/esm/types/psychrometrics/t_wb.d.ts.map +1 -0
- package/lib/esm/types/utilities/index.d.ts +28 -0
- package/lib/esm/types/utilities/index.d.ts.map +1 -0
- package/lib/esm/types/utilities/utilities.d.ts +377 -0
- package/lib/esm/types/utilities/utilities.d.ts.map +1 -0
- package/lib/esm/utilities/index.js +25 -0
- package/lib/esm/utilities/utilities.js +885 -0
- package/package.json +22 -15
- package/lib/esm/index.mjs +0 -430
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {Object} TwoNodesReturnType
|
|
3
|
+
* @property {number} e_skin – Total rate of evaporative heat loss from skin, [W/m2]. Equal to e_rsw + e_diff
|
|
4
|
+
* @property {number} e_rsw – Rate of evaporative heat loss from sweat evaporation, [W/m2]
|
|
5
|
+
* @property {number} e_max – Maximum rate of evaporative heat loss from skin, [W/m2]
|
|
6
|
+
* @property {number} q_sensible – Sensible heat loss from skin, [W/m2]
|
|
7
|
+
* @property {number} q_skin – Total rate of heat loss from skin, [W/m2]. Equal to q_sensible + e_skin
|
|
8
|
+
* @property {number} q_res – Total rate of heat loss through respiration, [W/m2]
|
|
9
|
+
* @property {number} t_core – Core temperature, [°C]
|
|
10
|
+
* @property {number} t_skin – Skin temperature, [°C]
|
|
11
|
+
* @property {number} m_bl – Skin blood flow, [kg/h/m2]
|
|
12
|
+
* @property {number} m_rsw – Rate at which regulatory sweat is generated, [kg/h/m2]
|
|
13
|
+
* @property {number} w – Skin wettedness, adimensional. Ranges from 0 and 1.
|
|
14
|
+
* @property {number} w_max – Skin wettedness (w) practical upper limit, adimensional. Ranges from 0 and 1.
|
|
15
|
+
* @property {number} set – Standard Effective Temperature (SET)
|
|
16
|
+
* @property {number} et – New Effective Temperature (ET)
|
|
17
|
+
* @property {number} pmv_gagge – PMV Gagge
|
|
18
|
+
* @property {number} pmv_set – PMV SET
|
|
19
|
+
* @property {number} disc – Thermal discomfort
|
|
20
|
+
* @property {number} t_sens – Predicted Thermal Sensation
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
/**
|
|
24
|
+
* @typedef {Object} TwoNodesKwargs - a keywords argument set containing the additional arguments for Two nodes model calculation
|
|
25
|
+
* @property {boolean} [round=true] - round the result of two nodes model
|
|
26
|
+
* @property {boolean} [calculate_ce=false] - select if SET is used to calculate Cooling Effect
|
|
27
|
+
* @property {number} [max_sweating] - maximum rate at which regulatory sweat is generated, [kg/h/m2]
|
|
28
|
+
* @property {number} [w_max] – maximum skin wettedness (w) adimensional. Ranges from 0 and 1
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* @typedef {Object} TwoNodesKwargsRequired
|
|
33
|
+
* @property {boolean} round
|
|
34
|
+
* @property {boolean} calculate_ce
|
|
35
|
+
* @property {number} max_sweating
|
|
36
|
+
* @property {number} w_max
|
|
37
|
+
*/
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* Two-node model of human temperature regulation Gagge et al. (1986).
|
|
41
|
+
*
|
|
42
|
+
* {@link #ref_10|[10]} This model can be used to calculate a variety of indices, including:
|
|
43
|
+
*
|
|
44
|
+
* - Gagge’s version of Fanger’s Predicted Mean Vote (PMV). This function uses
|
|
45
|
+
* the Fanger’s PMV equations but it replaces the heat loss and gain terms
|
|
46
|
+
* with those calculated by the two node model developed by Gagge et al. (1986) {@link #ref_10|[10]}.
|
|
47
|
+
* - PMV SET and the predicted thermal sensation based on SET {@link #ref_10|[10]}. This function is
|
|
48
|
+
* similar in all aspects to the pythermalcomfort.models.pmv_gagge(). However, it uses the
|
|
49
|
+
* pythermalcomfort.models.set() equation to calculate the dry heat loss by convection.
|
|
50
|
+
* - Thermal discomfort (DISC) as the relative thermoregulatory strain necessary
|
|
51
|
+
* to restore a state of comfort and thermal equilibrium by sweating {@link #ref_10|[10]}. DISC is
|
|
52
|
+
* described numerically as: comfortable and pleasant (0), slightly uncomfortable but acceptable (1),
|
|
53
|
+
* uncomfortable and unpleasant (2), very uncomfortable (3), limited tolerance (4), and intolerable (S).
|
|
54
|
+
* The range of each category is ± 0.5 numerically. In the cold, the classical negative category
|
|
55
|
+
* descriptions used for Fanger’s PMV apply {@link #ref_10|[10]}.
|
|
56
|
+
* - Heat gains and losses via convection, radiation and conduction.
|
|
57
|
+
* - The Standard Effective Temperature (SET)
|
|
58
|
+
* - The New Effective Temperature (ET)
|
|
59
|
+
* - The Predicted Thermal Sensation (TSENS)
|
|
60
|
+
* - The Predicted Percent Dissatisfied Due to Draft (PD)
|
|
61
|
+
* - Predicted Percent Satisfied With the Level of Air Movement” (PS)
|
|
62
|
+
*
|
|
63
|
+
* @public
|
|
64
|
+
* @memberof models
|
|
65
|
+
* @docname Gagge et al. two-node model
|
|
66
|
+
*
|
|
67
|
+
* @see {@link two_nodes_array} for a version that supports arrays
|
|
68
|
+
*
|
|
69
|
+
* @param {number} tdb Dry bulb air temperature, default in [°C] in [°F] if `units` = 'IP'.
|
|
70
|
+
* @param {number} tr Mean radiant temperature, default in [°C]
|
|
71
|
+
* @param {number} v Air speed, default in [m/s]
|
|
72
|
+
* @param {number} rh Relative humidity, [%].
|
|
73
|
+
* @param {number} met Metabolic rate, [W/(m2)]
|
|
74
|
+
* @param {number} clo Clothing insulation, [clo]
|
|
75
|
+
* @param {number} [wme=0] External work, [W/(m2)] default 0
|
|
76
|
+
* @param {number} [body_surface_area=1.8258] Body surface area, default value 1.8258 [m2] in [ft2] if units = ‘IP’
|
|
77
|
+
* @param {number} [p_atmospheric=101325] Atmospheric pressure, default value 101325 [Pa] in [atm] if units = ‘IP’
|
|
78
|
+
* @param {"standing" | "sitting"} [body_position="standing"] Select either “sitting” or “standing”
|
|
79
|
+
* @param {number} [max_skin_blood_flow=90] Maximum blood flow from the core to the skin, [kg/h/m2] default 90
|
|
80
|
+
* @param {TwoNodesKwargs} [kwargs]
|
|
81
|
+
*
|
|
82
|
+
* @returns {TwoNodesReturnType} object with results of two_nodes
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* const results = two_nodes(25, 25, 0.3, 50, 1.2, 0.5);
|
|
86
|
+
* console.log(results); // {
|
|
87
|
+
e_skin: 16.2,
|
|
88
|
+
e_rsw: 7,
|
|
89
|
+
e_max: 159.9,
|
|
90
|
+
q_sensible: 47.6,
|
|
91
|
+
q_skin: 63.8,
|
|
92
|
+
q_res: 5.2,
|
|
93
|
+
t_core: 36.9,
|
|
94
|
+
t_skin: 33.7,
|
|
95
|
+
m_bl: 12.9,
|
|
96
|
+
m_rsw: 10.3,
|
|
97
|
+
w: 0.1,
|
|
98
|
+
w_max: 0.6,
|
|
99
|
+
set: 23.6,
|
|
100
|
+
et: 25,
|
|
101
|
+
pmv_gagge: 0.1,
|
|
102
|
+
pmv_set: -0,
|
|
103
|
+
disc: 0.1,
|
|
104
|
+
t_sens: 0.1
|
|
105
|
+
}
|
|
106
|
+
*
|
|
107
|
+
*/
|
|
108
|
+
export function two_nodes(tdb: number, tr: number, v: number, rh: number, met: number, clo: number, wme?: number, body_surface_area?: number, p_atmospheric?: number, body_position?: "standing" | "sitting", max_skin_blood_flow?: number, kwargs?: TwoNodesKwargs): TwoNodesReturnType;
|
|
109
|
+
/**
|
|
110
|
+
* @typedef {Object} TwoNodesArrayReturnType
|
|
111
|
+
* @property {number[]} e_skin – Array of total rate of evaporative heat loss from skin, [W/m2]. Equal to e_rsw + e_diff
|
|
112
|
+
* @property {number[]} e_rsw – Array of rate of evaporative heat loss from sweat evaporation, [W/m2]
|
|
113
|
+
* @property {number[]} e_max – Array of maximum rate of evaporative heat loss from skin, [W/m2]
|
|
114
|
+
* @property {number[]} q_sensible – Array of sensible heat loss from skin, [W/m2]
|
|
115
|
+
* @property {number[]} q_skin – Array of total rate of heat loss from skin, [W/m2]. Equal to q_sensible + e_skin
|
|
116
|
+
* @property {number[]} q_res – Array of total rate of heat loss through respiration, [W/m2]
|
|
117
|
+
* @property {number[]} t_core – Array of core temperature, [°C]
|
|
118
|
+
* @property {number[]} t_skin – Array of skin temperature, [°C]
|
|
119
|
+
* @property {number[]} m_bl – Array of skin blood flow, [kg/h/m2]
|
|
120
|
+
* @property {number[]} m_rsw – Array of rate at which regulatory sweat is generated, [kg/h/m2]
|
|
121
|
+
* @property {number[]} w – Array of skin wettedness, adimensional. Ranges from 0 and 1.
|
|
122
|
+
* @property {number[]} w_max – Array of skin wettedness (w) practical upper limit, adimensional. Ranges from 0 and 1.
|
|
123
|
+
* @property {number[]} set – Array of standard Effective Temperature (SET)
|
|
124
|
+
* @property {number[]} et – Array of new Effective Temperature (ET)
|
|
125
|
+
* @property {number[]} pmv_gagge – Array of PMV Gagge
|
|
126
|
+
* @property {number[]} pmv_set – Array of PMV SET
|
|
127
|
+
* @property {number[]} disc – Array of Thermal discomfort
|
|
128
|
+
* @property {number[]} t_sens – Array of Predicted Thermal Sensation
|
|
129
|
+
* @public
|
|
130
|
+
*/
|
|
131
|
+
/**
|
|
132
|
+
* @typedef {Object} TwoNodesArrayKwargs
|
|
133
|
+
* @property {boolean} [round=true]
|
|
134
|
+
* @property {boolean} [calculate_ce=false]
|
|
135
|
+
* @property {number[]} [max_sweating]
|
|
136
|
+
* @property {number[]} [w_max]
|
|
137
|
+
* @public
|
|
138
|
+
*/
|
|
139
|
+
/**
|
|
140
|
+
* @typedef {Object} TwoNodesArrayKwargsRequired
|
|
141
|
+
* @property {boolean} round
|
|
142
|
+
* @property {boolean} calculate_ce
|
|
143
|
+
* @property {number[]} max_sweating
|
|
144
|
+
* @property {number[]} w_max
|
|
145
|
+
*/
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* Two nodes model of human temperature regulation Gagge et al. when the input parameters are arrays.
|
|
149
|
+
*
|
|
150
|
+
* {@link #ref_10|[10]} This model can be used to calculate a variety of indices, including:
|
|
151
|
+
*
|
|
152
|
+
* - Gagge’s version of Fanger’s Predicted Mean Vote (PMV). This function uses
|
|
153
|
+
* the Fanger’s PMV equations but it replaces the heat loss and gain terms
|
|
154
|
+
* with those calculated by the two node model developed by Gagge et al. (1986) {@link #ref_10|[10]}.
|
|
155
|
+
* - PMV SET and the predicted thermal sensation based on SET {@link #ref_10|[10]}. This function is
|
|
156
|
+
* similar in all aspects to the pythermalcomfort.models.pmv_gagge(). However, it uses the
|
|
157
|
+
* pythermalcomfort.models.set() equation to calculate the dry heat loss by convection.
|
|
158
|
+
* - Thermal discomfort (DISC) as the relative thermoregulatory strain necessary
|
|
159
|
+
* to restore a state of comfort and thermal equilibrium by sweating {@link #ref_10|[10]}. DISC is
|
|
160
|
+
* described numerically as: comfortable and pleasant (0), slightly uncomfortable but acceptable (1),
|
|
161
|
+
* uncomfortable and unpleasant (2), very uncomfortable (3), limited tolerance (4), and intolerable (S).
|
|
162
|
+
* The range of each category is ± 0.5 numerically. In the cold, the classical negative category
|
|
163
|
+
* descriptions used for Fanger’s PMV apply {@link #ref_10|[10]}.
|
|
164
|
+
* - Heat gains and losses via convection, radiation and conduction.
|
|
165
|
+
* - The Standard Effective Temperature (SET)
|
|
166
|
+
* - The New Effective Temperature (ET)
|
|
167
|
+
* - The Predicted Thermal Sensation (TSENS)
|
|
168
|
+
* - The Predicted Percent Dissatisfied Due to Draft (PD)
|
|
169
|
+
* - Predicted Percent Satisfied With the Level of Air Movement” (PS)
|
|
170
|
+
*
|
|
171
|
+
* @public
|
|
172
|
+
* @memberof models
|
|
173
|
+
* @docname Gagge et al. two-node model (array version)
|
|
174
|
+
*
|
|
175
|
+
* @see {@link two_nodes} for a version that supports scalar arguments
|
|
176
|
+
*
|
|
177
|
+
* @param {number[]} tdbArray Dry bulb air temperature, default in [°C] in [°F] if `units` = 'IP'.
|
|
178
|
+
* @param {number[]} trArray Mean radiant temperature, default in [°C]
|
|
179
|
+
* @param {number[]} vArray Air speed, default in [m/s]
|
|
180
|
+
* @param {number[]} rhArray Relative humidity, [%].
|
|
181
|
+
* @param {number[]} metArray Metabolic rate, [W/(m2)]
|
|
182
|
+
* @param {number[]} cloArray Clothing insulation, [clo]
|
|
183
|
+
* @param {number[]} wmeArray External work, [W/(m2)] default 0
|
|
184
|
+
* @param {number[]} bodySurfaceArray Body surface area, default value 1.8258 [m2] in [ft2] if units = ‘IP’
|
|
185
|
+
* @param {number[]} pAtmArray Atmospheric pressure, default value 101325 [Pa] in [atm] if units = ‘IP’
|
|
186
|
+
* @param {"standing" | "sitting"} bodyPositionArray Select either “sitting” or “standing”
|
|
187
|
+
* @param {number[]} maxSkinBloodFlowArray Maximum blood flow from the core to the skin, [kg/h/m2] default 90
|
|
188
|
+
* @param {TwoNodesKwargs} [kwargs]
|
|
189
|
+
*
|
|
190
|
+
* @returns {TwoNodesArrayReturnType} object with results of two_nodes_array
|
|
191
|
+
*
|
|
192
|
+
* @example
|
|
193
|
+
* const results = two_nodes_array([25,30], [25,35], [0.3,0.5], [50,60], [1.2,1.5], [0.5, 0.3], [0,0], [1.8258,1.8258], [101325,101325], ["standing","standing"], [90,90])
|
|
194
|
+
* console.log(results); // {
|
|
195
|
+
e_skin: [ 16.2, 60.4 ],
|
|
196
|
+
e_rsw: [ 7, 51.9 ],
|
|
197
|
+
e_max: [ 159.9, 193.8 ],
|
|
198
|
+
q_sensible: [ 47.6, 21.1 ],
|
|
199
|
+
q_skin: [ 63.8, 81.5 ],
|
|
200
|
+
q_res: [ 5.2, 5 ],
|
|
201
|
+
t_core: [ 36.9, 37 ],
|
|
202
|
+
t_skin: [ 33.7, 35.1 ],
|
|
203
|
+
m_bl: [ 12.9, 31.6 ],
|
|
204
|
+
m_rsw: [ 10.3, 76.3 ],
|
|
205
|
+
w: [ 0.1, 0.3 ],
|
|
206
|
+
w_max: [ 0.6, 0.6 ],
|
|
207
|
+
set: [ 23.6, 29.3 ],
|
|
208
|
+
et: [ 25, 32.5 ],
|
|
209
|
+
pmv_gagge: [ 0.1, 1.6 ],
|
|
210
|
+
pmv_set: [ -0, 1.1 ],
|
|
211
|
+
disc: [ 0.1, 1.9 ],
|
|
212
|
+
t_sens: [ 0.1, 1.4 ]
|
|
213
|
+
}
|
|
214
|
+
*
|
|
215
|
+
*/
|
|
216
|
+
export function two_nodes_array(tdbArray: number[], trArray: number[], vArray: number[], rhArray: number[], metArray: number[], cloArray: number[], wmeArray: number[], bodySurfaceArray: number[], pAtmArray: number[], bodyPositionArray: "standing" | "sitting", maxSkinBloodFlowArray: number[], kwargs?: TwoNodesKwargs): TwoNodesArrayReturnType;
|
|
217
|
+
/**
|
|
218
|
+
* Round all elments in a given array to the given precision.
|
|
219
|
+
*
|
|
220
|
+
* @param {number[]} array - the array to round
|
|
221
|
+
* @param {number} precision - the number of decimal places to round to
|
|
222
|
+
* @returns the rounded result
|
|
223
|
+
*/
|
|
224
|
+
export function roundArray(array: number[], precision: number): number[];
|
|
225
|
+
export type TwoNodesReturnType = {
|
|
226
|
+
/**
|
|
227
|
+
* – Total rate of evaporative heat loss from skin, [W/m2]. Equal to e_rsw + e_diff
|
|
228
|
+
*/
|
|
229
|
+
e_skin: number;
|
|
230
|
+
/**
|
|
231
|
+
* – Rate of evaporative heat loss from sweat evaporation, [W/m2]
|
|
232
|
+
*/
|
|
233
|
+
e_rsw: number;
|
|
234
|
+
/**
|
|
235
|
+
* – Maximum rate of evaporative heat loss from skin, [W/m2]
|
|
236
|
+
*/
|
|
237
|
+
e_max: number;
|
|
238
|
+
/**
|
|
239
|
+
* – Sensible heat loss from skin, [W/m2]
|
|
240
|
+
*/
|
|
241
|
+
q_sensible: number;
|
|
242
|
+
/**
|
|
243
|
+
* – Total rate of heat loss from skin, [W/m2]. Equal to q_sensible + e_skin
|
|
244
|
+
*/
|
|
245
|
+
q_skin: number;
|
|
246
|
+
/**
|
|
247
|
+
* – Total rate of heat loss through respiration, [W/m2]
|
|
248
|
+
*/
|
|
249
|
+
q_res: number;
|
|
250
|
+
/**
|
|
251
|
+
* – Core temperature, [°C]
|
|
252
|
+
*/
|
|
253
|
+
t_core: number;
|
|
254
|
+
/**
|
|
255
|
+
* – Skin temperature, [°C]
|
|
256
|
+
*/
|
|
257
|
+
t_skin: number;
|
|
258
|
+
/**
|
|
259
|
+
* – Skin blood flow, [kg/h/m2]
|
|
260
|
+
*/
|
|
261
|
+
m_bl: number;
|
|
262
|
+
/**
|
|
263
|
+
* – Rate at which regulatory sweat is generated, [kg/h/m2]
|
|
264
|
+
*/
|
|
265
|
+
m_rsw: number;
|
|
266
|
+
/**
|
|
267
|
+
* – Skin wettedness, adimensional. Ranges from 0 and 1.
|
|
268
|
+
*/
|
|
269
|
+
w: number;
|
|
270
|
+
/**
|
|
271
|
+
* – Skin wettedness (w) practical upper limit, adimensional. Ranges from 0 and 1.
|
|
272
|
+
*/
|
|
273
|
+
w_max: number;
|
|
274
|
+
/**
|
|
275
|
+
* – Standard Effective Temperature (SET)
|
|
276
|
+
*/
|
|
277
|
+
set: number;
|
|
278
|
+
/**
|
|
279
|
+
* – New Effective Temperature (ET)
|
|
280
|
+
*/
|
|
281
|
+
et: number;
|
|
282
|
+
/**
|
|
283
|
+
* – PMV Gagge
|
|
284
|
+
*/
|
|
285
|
+
pmv_gagge: number;
|
|
286
|
+
/**
|
|
287
|
+
* – PMV SET
|
|
288
|
+
*/
|
|
289
|
+
pmv_set: number;
|
|
290
|
+
/**
|
|
291
|
+
* – Thermal discomfort
|
|
292
|
+
*/
|
|
293
|
+
disc: number;
|
|
294
|
+
/**
|
|
295
|
+
* – Predicted Thermal Sensation
|
|
296
|
+
*/
|
|
297
|
+
t_sens: number;
|
|
298
|
+
};
|
|
299
|
+
/**
|
|
300
|
+
* - a keywords argument set containing the additional arguments for Two nodes model calculation
|
|
301
|
+
*/
|
|
302
|
+
export type TwoNodesKwargs = {
|
|
303
|
+
/**
|
|
304
|
+
* - round the result of two nodes model
|
|
305
|
+
*/
|
|
306
|
+
round?: boolean;
|
|
307
|
+
/**
|
|
308
|
+
* - select if SET is used to calculate Cooling Effect
|
|
309
|
+
*/
|
|
310
|
+
calculate_ce?: boolean;
|
|
311
|
+
/**
|
|
312
|
+
* - maximum rate at which regulatory sweat is generated, [kg/h/m2]
|
|
313
|
+
*/
|
|
314
|
+
max_sweating?: number;
|
|
315
|
+
/**
|
|
316
|
+
* – maximum skin wettedness (w) adimensional. Ranges from 0 and 1
|
|
317
|
+
*/
|
|
318
|
+
w_max?: number;
|
|
319
|
+
};
|
|
320
|
+
export type TwoNodesKwargsRequired = {
|
|
321
|
+
round: boolean;
|
|
322
|
+
calculate_ce: boolean;
|
|
323
|
+
max_sweating: number;
|
|
324
|
+
w_max: number;
|
|
325
|
+
};
|
|
326
|
+
export type TwoNodesArrayReturnType = {
|
|
327
|
+
/**
|
|
328
|
+
* – Array of total rate of evaporative heat loss from skin, [W/m2]. Equal to e_rsw + e_diff
|
|
329
|
+
*/
|
|
330
|
+
e_skin: number[];
|
|
331
|
+
/**
|
|
332
|
+
* – Array of rate of evaporative heat loss from sweat evaporation, [W/m2]
|
|
333
|
+
*/
|
|
334
|
+
e_rsw: number[];
|
|
335
|
+
/**
|
|
336
|
+
* – Array of maximum rate of evaporative heat loss from skin, [W/m2]
|
|
337
|
+
*/
|
|
338
|
+
e_max: number[];
|
|
339
|
+
/**
|
|
340
|
+
* – Array of sensible heat loss from skin, [W/m2]
|
|
341
|
+
*/
|
|
342
|
+
q_sensible: number[];
|
|
343
|
+
/**
|
|
344
|
+
* – Array of total rate of heat loss from skin, [W/m2]. Equal to q_sensible + e_skin
|
|
345
|
+
*/
|
|
346
|
+
q_skin: number[];
|
|
347
|
+
/**
|
|
348
|
+
* – Array of total rate of heat loss through respiration, [W/m2]
|
|
349
|
+
*/
|
|
350
|
+
q_res: number[];
|
|
351
|
+
/**
|
|
352
|
+
* – Array of core temperature, [°C]
|
|
353
|
+
*/
|
|
354
|
+
t_core: number[];
|
|
355
|
+
/**
|
|
356
|
+
* – Array of skin temperature, [°C]
|
|
357
|
+
*/
|
|
358
|
+
t_skin: number[];
|
|
359
|
+
/**
|
|
360
|
+
* – Array of skin blood flow, [kg/h/m2]
|
|
361
|
+
*/
|
|
362
|
+
m_bl: number[];
|
|
363
|
+
/**
|
|
364
|
+
* – Array of rate at which regulatory sweat is generated, [kg/h/m2]
|
|
365
|
+
*/
|
|
366
|
+
m_rsw: number[];
|
|
367
|
+
/**
|
|
368
|
+
* – Array of skin wettedness, adimensional. Ranges from 0 and 1.
|
|
369
|
+
*/
|
|
370
|
+
w: number[];
|
|
371
|
+
/**
|
|
372
|
+
* – Array of skin wettedness (w) practical upper limit, adimensional. Ranges from 0 and 1.
|
|
373
|
+
*/
|
|
374
|
+
w_max: number[];
|
|
375
|
+
/**
|
|
376
|
+
* – Array of standard Effective Temperature (SET)
|
|
377
|
+
*/
|
|
378
|
+
set: number[];
|
|
379
|
+
/**
|
|
380
|
+
* – Array of new Effective Temperature (ET)
|
|
381
|
+
*/
|
|
382
|
+
et: number[];
|
|
383
|
+
/**
|
|
384
|
+
* – Array of PMV Gagge
|
|
385
|
+
*/
|
|
386
|
+
pmv_gagge: number[];
|
|
387
|
+
/**
|
|
388
|
+
* – Array of PMV SET
|
|
389
|
+
*/
|
|
390
|
+
pmv_set: number[];
|
|
391
|
+
/**
|
|
392
|
+
* – Array of Thermal discomfort
|
|
393
|
+
*/
|
|
394
|
+
disc: number[];
|
|
395
|
+
/**
|
|
396
|
+
* – Array of Predicted Thermal Sensation
|
|
397
|
+
*/
|
|
398
|
+
t_sens: number[];
|
|
399
|
+
};
|
|
400
|
+
export type TwoNodesArrayKwargs = {
|
|
401
|
+
round?: boolean;
|
|
402
|
+
calculate_ce?: boolean;
|
|
403
|
+
max_sweating?: number[];
|
|
404
|
+
w_max?: number[];
|
|
405
|
+
};
|
|
406
|
+
export type TwoNodesArrayKwargsRequired = {
|
|
407
|
+
round: boolean;
|
|
408
|
+
calculate_ce: boolean;
|
|
409
|
+
max_sweating: number[];
|
|
410
|
+
w_max: number[];
|
|
411
|
+
};
|
|
412
|
+
//# sourceMappingURL=two_nodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"two_nodes.d.ts","sourceRoot":"","sources":["../../../../src/models/two_nodes.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;;;;;;;GAOG;AAEH;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,+BAvCW,MAAM,MACN,MAAM,KACN,MAAM,MACN,MAAM,OACN,MAAM,OACN,MAAM,QACN,MAAM,sBACN,MAAM,kBACN,MAAM,kBACN,UAAU,GAAG,SAAS,wBACtB,MAAM,WACN,cAAc,GAEZ,kBAAkB,CA6G9B;AAaD;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;;;;;;;GAOG;AAEH;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,0CAvCW,MAAM,EAAE,WACR,MAAM,EAAE,UACR,MAAM,EAAE,WACR,MAAM,EAAE,YACR,MAAM,EAAE,YACR,MAAM,EAAE,YACR,MAAM,EAAE,oBACR,MAAM,EAAE,aACR,MAAM,EAAE,qBACR,UAAU,GAAG,SAAS,yBACtB,MAAM,EAAE,WACR,cAAc,GAEZ,uBAAuB,CAkMnC;AAED;;;;;;GAMG;AACH,kCAJW,MAAM,EAAE,aACR,MAAM,YAQhB;;;;;YAhfa,MAAM;;;;WACN,MAAM;;;;WACN,MAAM;;;;gBACN,MAAM;;;;YACN,MAAM;;;;WACN,MAAM;;;;YACN,MAAM;;;;YACN,MAAM;;;;UACN,MAAM;;;;WACN,MAAM;;;;OACN,MAAM;;;;WACN,MAAM;;;;SACN,MAAM;;;;QACN,MAAM;;;;eACN,MAAM;;;;aACN,MAAM;;;;UACN,MAAM;;;;YACN,MAAM;;;;;;;;;YAMN,OAAO;;;;mBACP,OAAO;;;;mBACP,MAAM;;;;YACN,MAAM;;;WAMN,OAAO;kBACP,OAAO;kBACP,MAAM;WACN,MAAM;;;;;;YA2KN,MAAM,EAAE;;;;WACR,MAAM,EAAE;;;;WACR,MAAM,EAAE;;;;gBACR,MAAM,EAAE;;;;YACR,MAAM,EAAE;;;;WACR,MAAM,EAAE;;;;YACR,MAAM,EAAE;;;;YACR,MAAM,EAAE;;;;UACR,MAAM,EAAE;;;;WACR,MAAM,EAAE;;;;OACR,MAAM,EAAE;;;;WACR,MAAM,EAAE;;;;SACR,MAAM,EAAE;;;;QACR,MAAM,EAAE;;;;eACR,MAAM,EAAE;;;;aACR,MAAM,EAAE;;;;UACR,MAAM,EAAE;;;;YACR,MAAM,EAAE;;;YAMR,OAAO;mBACP,OAAO;mBACP,MAAM,EAAE;YACR,MAAM,EAAE;;;WAMR,OAAO;kBACP,OAAO;kBACP,MAAM,EAAE;WACR,MAAM,EAAE"}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {Object} HeatwaveReturnType
|
|
3
|
+
* @property {number} e_skin – Total rate of evaporative heat loss from skin, [W/m2]. Equal to e_rsw + e_diff
|
|
4
|
+
* @property {number} e_rsw – Rate of evaporative heat loss from sweat evaporation, [W/m2]
|
|
5
|
+
* @property {number} e_diff – Rate of evaporative heat loss from moisture diffused through the skin [W/m2]
|
|
6
|
+
* @property {number} e_max – Maximum rate of evaporative heat loss from skin, [W/m2]
|
|
7
|
+
* @property {number} q_sensible – Sensible heat loss from skin, [W/m2]
|
|
8
|
+
* @property {number} q_skin – Total rate of heat loss from skin, [W/m2]. Equal to q_sensible + e_skin
|
|
9
|
+
* @property {number} q_res – Total rate of heat loss through respiration, [W/m2]
|
|
10
|
+
* @property {number} t_core – Core temperature, [°C]
|
|
11
|
+
* @property {number} t_skin – Skin temperature, [°C]
|
|
12
|
+
* @property {number} m_bl – Skin blood flow, [kg/h/m2]
|
|
13
|
+
* @property {number} m_rsw – Rate at which regulatory sweat is generated, [kg/h/m2]
|
|
14
|
+
* @property {number} w – Skin wettedness, adimensional. Ranges from 0 and 1
|
|
15
|
+
* @property {number} w_max – Skin wettedness (w) practical upper limit, adimensional. Ranges from 0 and 1
|
|
16
|
+
* @property {boolean | undefined} heat_strain – True if the model predict that the person may be experiencing heat strain, undefined if the result of two nodes model is not a number
|
|
17
|
+
* @property {boolean | undefined} heat_strain_blood_flow – True if heat strain is caused by skin blood flow (m_bl) reaching its maximum value, undefined if the result of two nodes model is not a number
|
|
18
|
+
* @property {boolean | undefined} heat_strain_w – True if heat strain is caused by skin wettedness (w) reaching its maximum value, undefined if the result of two nodes model is not a number
|
|
19
|
+
* @property {boolean | undefined} heat_strain_sweating – True if heat strain is caused by regulatory sweating (m_rsw) reaching its maximum value, undefined if the result of two nodes model is not a number
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* @typedef {Object} HeatwaveKwargs - a keywords argument set containing the additional arguments for use fans heatwave
|
|
24
|
+
* @property {number} [max_sweating] - max sweating, [mL/h/m2] default 500
|
|
25
|
+
* @property {boolean} [round=true] - if True rounds output value, if False it does not round it, default True
|
|
26
|
+
* @property {boolean} [limit_inputs=true] – By default, if the inputs are outsude the following limits the function returns nan. If
|
|
27
|
+
* False returns values regardless of the input values, default True
|
|
28
|
+
*
|
|
29
|
+
* The applicability limits are 20 < tdb [°C] < 50, 20 < tr [°C] < 50, 0.1 < v [m/s] < 4.5, 0.7 < met [met] < 2, and 0 < clo [clo] < 1.
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* @typedef {Object} HeatwaveKwargsRequired
|
|
34
|
+
* @property {boolean} round
|
|
35
|
+
* @property {number} max_sweating
|
|
36
|
+
* @property {boolean} limit_inputs
|
|
37
|
+
*/
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* It helps you to estimate if the conditions you have selected would cause heat strain.
|
|
41
|
+
* This occurs when either the following variables reaches its maximum value:
|
|
42
|
+
*
|
|
43
|
+
* - m_rsw Rate at which regulatory sweat is generated, [mL/h/m2].
|
|
44
|
+
* - w : Skin wettedness, adimensional. Ranges from 0 and 1.
|
|
45
|
+
* - m_bl : Skin blood flow [kg/h/m2].
|
|
46
|
+
*
|
|
47
|
+
* @public
|
|
48
|
+
* @memberof models
|
|
49
|
+
* @docname Use Fans During Heatwaves
|
|
50
|
+
*
|
|
51
|
+
* @param {number} tdb dry bulb air temperature, default in [°C] in [°F] if units = ‘IP’
|
|
52
|
+
* @param {number} tr mean radiant temperature, default in [°C] in [°F] if units = ‘IP’
|
|
53
|
+
* @param {number} v air speed, default in [m/s] in [fps] if units = ‘IP’
|
|
54
|
+
* @param {number} rh relative humidity, [%]
|
|
55
|
+
* @param {number} met metabolic rate, [met]
|
|
56
|
+
* @param {number} clo clothing insulation, [clo]
|
|
57
|
+
* @param {number} [wme=0] external work, [met] default 0
|
|
58
|
+
* @param {number} [body_surface_area] body surface area, default value 1.8258 [m2] in [ft2] if units = ‘IP’
|
|
59
|
+
*
|
|
60
|
+
* The body surface area can be calculated using the function pythermalcomfort.utilities.body_surface_area().
|
|
61
|
+
* @param {number} [p_atm] atmospheric pressure, default value 101325 [Pa] in [atm] if units = ‘IP’
|
|
62
|
+
* @param {"standing" | "sitting"} [body_position="standing"] select either “sitting” or “standing”
|
|
63
|
+
* @param {"SI" | "IP"} [units="SI"] select the SI (International System of Units) or the IP (Imperial Units) system.
|
|
64
|
+
* @param {number} [max_skin_blood_flow=80] maximum blood flow from the core to the skin
|
|
65
|
+
* @param {HeatwaveKwargs} [kwargs]
|
|
66
|
+
*
|
|
67
|
+
* @returns {HeatwaveReturnType} object with results of use fans during heatwave
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* const results = use_fans_heatwaves(25, 25, 0.1, 50, 1.2, 0.5);
|
|
71
|
+
* console.log(results); //
|
|
72
|
+
* {
|
|
73
|
+
e_skin: 18.1,
|
|
74
|
+
e_rsw: 10.0,
|
|
75
|
+
e_max: 145.0,
|
|
76
|
+
q_sensible: 45.7,
|
|
77
|
+
q_skin: 63.8,
|
|
78
|
+
q_res: 5.2,
|
|
79
|
+
t_core: 36.9,
|
|
80
|
+
t_skin: 33.8,
|
|
81
|
+
m_bl: 13.6,
|
|
82
|
+
m_rsw: 14.6,
|
|
83
|
+
w: 0.1,
|
|
84
|
+
w_max: 0.7,
|
|
85
|
+
heat_strain_blood_flow: 0.0,
|
|
86
|
+
heat_strain_w: 0.0,
|
|
87
|
+
heat_strain_sweating: 0.0,
|
|
88
|
+
heat_strain: 0.0
|
|
89
|
+
}
|
|
90
|
+
*
|
|
91
|
+
*/
|
|
92
|
+
export function use_fans_heatwaves(tdb: number, tr: number, v: number, rh: number, met: number, clo: number, wme?: number, body_surface_area?: number, p_atm?: number, body_position?: "standing" | "sitting", units?: "SI" | "IP", max_skin_blood_flow?: number, kwargs?: HeatwaveKwargs): HeatwaveReturnType;
|
|
93
|
+
export type HeatwaveReturnType = {
|
|
94
|
+
/**
|
|
95
|
+
* – Total rate of evaporative heat loss from skin, [W/m2]. Equal to e_rsw + e_diff
|
|
96
|
+
*/
|
|
97
|
+
e_skin: number;
|
|
98
|
+
/**
|
|
99
|
+
* – Rate of evaporative heat loss from sweat evaporation, [W/m2]
|
|
100
|
+
*/
|
|
101
|
+
e_rsw: number;
|
|
102
|
+
/**
|
|
103
|
+
* – Rate of evaporative heat loss from moisture diffused through the skin [W/m2]
|
|
104
|
+
*/
|
|
105
|
+
e_diff: number;
|
|
106
|
+
/**
|
|
107
|
+
* – Maximum rate of evaporative heat loss from skin, [W/m2]
|
|
108
|
+
*/
|
|
109
|
+
e_max: number;
|
|
110
|
+
/**
|
|
111
|
+
* – Sensible heat loss from skin, [W/m2]
|
|
112
|
+
*/
|
|
113
|
+
q_sensible: number;
|
|
114
|
+
/**
|
|
115
|
+
* – Total rate of heat loss from skin, [W/m2]. Equal to q_sensible + e_skin
|
|
116
|
+
*/
|
|
117
|
+
q_skin: number;
|
|
118
|
+
/**
|
|
119
|
+
* – Total rate of heat loss through respiration, [W/m2]
|
|
120
|
+
*/
|
|
121
|
+
q_res: number;
|
|
122
|
+
/**
|
|
123
|
+
* – Core temperature, [°C]
|
|
124
|
+
*/
|
|
125
|
+
t_core: number;
|
|
126
|
+
/**
|
|
127
|
+
* – Skin temperature, [°C]
|
|
128
|
+
*/
|
|
129
|
+
t_skin: number;
|
|
130
|
+
/**
|
|
131
|
+
* – Skin blood flow, [kg/h/m2]
|
|
132
|
+
*/
|
|
133
|
+
m_bl: number;
|
|
134
|
+
/**
|
|
135
|
+
* – Rate at which regulatory sweat is generated, [kg/h/m2]
|
|
136
|
+
*/
|
|
137
|
+
m_rsw: number;
|
|
138
|
+
/**
|
|
139
|
+
* – Skin wettedness, adimensional. Ranges from 0 and 1
|
|
140
|
+
*/
|
|
141
|
+
w: number;
|
|
142
|
+
/**
|
|
143
|
+
* – Skin wettedness (w) practical upper limit, adimensional. Ranges from 0 and 1
|
|
144
|
+
*/
|
|
145
|
+
w_max: number;
|
|
146
|
+
/**
|
|
147
|
+
* – True if the model predict that the person may be experiencing heat strain, undefined if the result of two nodes model is not a number
|
|
148
|
+
*/
|
|
149
|
+
heat_strain: boolean | undefined;
|
|
150
|
+
/**
|
|
151
|
+
* – True if heat strain is caused by skin blood flow (m_bl) reaching its maximum value, undefined if the result of two nodes model is not a number
|
|
152
|
+
*/
|
|
153
|
+
heat_strain_blood_flow: boolean | undefined;
|
|
154
|
+
/**
|
|
155
|
+
* – True if heat strain is caused by skin wettedness (w) reaching its maximum value, undefined if the result of two nodes model is not a number
|
|
156
|
+
*/
|
|
157
|
+
heat_strain_w: boolean | undefined;
|
|
158
|
+
/**
|
|
159
|
+
* – True if heat strain is caused by regulatory sweating (m_rsw) reaching its maximum value, undefined if the result of two nodes model is not a number
|
|
160
|
+
*/
|
|
161
|
+
heat_strain_sweating: boolean | undefined;
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* - a keywords argument set containing the additional arguments for use fans heatwave
|
|
165
|
+
*/
|
|
166
|
+
export type HeatwaveKwargs = {
|
|
167
|
+
/**
|
|
168
|
+
* - max sweating, [mL/h/m2] default 500
|
|
169
|
+
*/
|
|
170
|
+
max_sweating?: number;
|
|
171
|
+
/**
|
|
172
|
+
* - if True rounds output value, if False it does not round it, default True
|
|
173
|
+
*/
|
|
174
|
+
round?: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* – By default, if the inputs are outsude the following limits the function returns nan. If
|
|
177
|
+
* False returns values regardless of the input values, default True
|
|
178
|
+
*
|
|
179
|
+
* The applicability limits are 20 < tdb [°C] < 50, 20 < tr [°C] < 50, 0.1 < v [m/s] < 4.5, 0.7 < met [met] < 2, and 0 < clo [clo] < 1.
|
|
180
|
+
*/
|
|
181
|
+
limit_inputs?: boolean;
|
|
182
|
+
};
|
|
183
|
+
export type HeatwaveKwargsRequired = {
|
|
184
|
+
round: boolean;
|
|
185
|
+
max_sweating: number;
|
|
186
|
+
limit_inputs: boolean;
|
|
187
|
+
};
|
|
188
|
+
//# sourceMappingURL=use_fans_heatwave.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use_fans_heatwave.d.ts","sourceRoot":"","sources":["../../../../src/models/use_fans_heatwave.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;;;;GASG;AAEH;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,wCAzCW,MAAM,MACN,MAAM,KACN,MAAM,MACN,MAAM,OACN,MAAM,OACN,MAAM,QACN,MAAM,sBACN,MAAM,UAGN,MAAM,kBACN,UAAU,GAAG,SAAS,UACtB,IAAI,GAAG,IAAI,wBACX,MAAM,WACN,cAAc,GAEZ,kBAAkB,CA2J9B;;;;;YA9Na,MAAM;;;;WACN,MAAM;;;;YACN,MAAM;;;;WACN,MAAM;;;;gBACN,MAAM;;;;YACN,MAAM;;;;WACN,MAAM;;;;YACN,MAAM;;;;YACN,MAAM;;;;UACN,MAAM;;;;WACN,MAAM;;;;OACN,MAAM;;;;WACN,MAAM;;;;iBACN,OAAO,GAAG,SAAS;;;;4BACnB,OAAO,GAAG,SAAS;;;;mBACnB,OAAO,GAAG,SAAS;;;;0BACnB,OAAO,GAAG,SAAS;;;;;;;;;mBAMnB,MAAM;;;;YACN,OAAO;;;;;;;mBACP,OAAO;;;WASP,OAAO;kBACP,MAAM;kBACN,OAAO"}
|