Models
Heat Index (HI)
Calculates the Heat Index (HI). It combines air temperature and relative humidity to determine an apparent temperature. The HI equation [12] is derived by multiple regression analysis in temperature and relative humidity from the first version of Steadman’s (1979) apparent temperature (AT) [13].
-
tdb
(number)Dry bulb air temperature, default in [°C] in [°F] ifunits= 'IP'. -
rh
(number)Relative humidity, [%]. -
options
(Object? =(Optional) Other parameters.{round:true,units:"SI"})Name Description options.round boolean(defaulttrue)If True rounds output value, if False it does not round it. options.units ((default"SI"|"IP")"SI")Select the SI (International System of Units) or the IP (Imperial Units) system.
HeatIndexResult
:
set containing results for the model
const hi = heat_index(25, 50); // returns {hi: 25.9}
Predicted Heat Strain (PHS)
Calculates the Predicted Heat Strain (PHS) index based in compliance with the ISO 7933:2004 Standard [8] or the ISO 7933:2023 Standard. The ISO 7933 provides a method for the analytical evaluation and interpretation of the thermal stress experienced by a subject in a hot environment. It describes a method for predicting the sweat rate and the internal core temperature that the human body will develop in response to the working conditions.
The PHS model can be used to predict the: heat by respiratory convection, heat flow by respiratory evaporation, steady state mean skin temperature, instantaneous value of skin temperature, heat accumulation associated with the metabolic rate, maximum evaporative heat flow at the skin surface, predicted sweat rate, predicted evaporative heat flow, and rectal temperature.
"sitting" | "standing" | "crouching"), wme: number, model: string, kwargs: PhsKwargs?): PhsReturnType-
tdb
(number)dry bulb air temperature, default in [°C] -
tr
(number)mean radiant temperature, default in [°C] -
v
(number)air speed, default in [m/s] -
rh
(number)relative humidity, [%] -
met
(number)metabolic rate, [met] -
clo
(number)clothing insulation, [clo] -
posture
((number |a numeric or string value presenting posture of person [sitting=1, standing=2, crouching=3]"sitting"|"standing"|"crouching")) -
wme
(number =external work, [met] default 00) -
model
(string =PHS model version ["7933-2004", "7933-2023"]"7933-2023") -
kwargs
(PhsKwargs? =additional arguments{})
PhsReturnType
:
object with results of phs
import { phs } from "jsthermalcomfort";
const results = phs(40, 40, 0.3, 33.85, 2.5, 0.5, "standing");
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, ...}
Humidex
Calculates the humidex (short for "humidity index"). It has been developed by the Canadian Meteorological service. It was introduced in 1965 and then it was revised by Masterson and Richardson (1979) [14]. It aims to describe how hot, humid weather is felt by the average person. The Humidex differs from the heat index in being related to the dew point rather than relative humidity [15].
HumidexResult
:
the result given the provided temperature and
relative humidity.
const result = humidex(25, 50);
console.log(result); // -> { humidex: 28.2, discomfort: "Little or no discomfort" }
Normal Effective Temperature (NET)
Calculates the Normal Effective Temperature (NET). Missenard (1933) devised a formula for calculating effective temperature. The index establishes a link between the same condition of the organism's thermoregulatory capability (warm and cold perception) and the surrounding environment's temperature and humidity. The index is calculated as a function of three meteorological factors: air temperature, relative humidity of air, and wind speed. This index allows to calculate the effective temperature felt by a person. Missenard original equation was then used to calculate the Normal Effective Temperature (NET), by considering normal atmospheric pressure and a normal human body temperature (37°C). The NET is still in use in Germany, where medical check-ups for subjects working in the heat are decided on by prevailing levels of ET, depending on metabolic rates. The NET is also constantly monitored by the Hong Kong Observatory [16]. In central Europe the following thresholds are in use: <1°C = very cold; 1–9 = cold; 9–17 = cool; 17–21 = fresh; 21–23 = comfortable; 23–27 = warm; >27°C = hot [1].
-
tdb
(number)dry bulb air temperature, [°C] -
rh
(number)relative humidity, [%] -
v
(number)wind speed [m/s] at 1.2 m above the ground -
options
(object? =configuration options for the function.{round:true})Name Description options.round boolean(defaulttrue)If true, rounds output value. If false, it does not.
NetResult
:
set containing results for the
const result = net(37, 100, 0.1);
console.log(result); // -> {net: 37}
Wet Bulb Globe Temperature (WBGT)
Calculates the Wet Bulb Globe Temperature (WBGT) index calculated in
compliance with the ISO 7243 [11]. The WBGT is a heat stress index that
measures the thermal environment to which a person is exposed. In most
situations, this index is simple to calculate. It should be used as a
screening tool to determine whether heat stress is present. The PHS model
allows a more accurate estimation of stress. PHS can be calculated using
the function jsthermalcomfort.models.phs.
The WBGT determines the impact of heat on a person throughout the course of a working day (up to 8 h). It does not apply to very brief heat exposures. It pertains to the evaluation of male and female people who are fit for work in both indoor and outdoor occupational environments, as well as other sorts of surroundings [11].
The WBGT is defined as a function of only twb and tg if the person is not exposed to direct radiant heat from the sun. When a person is exposed to direct radiant heat, tdb must also be specified.
-
twb
(number)natural (no forced air flow) wet bulb temperature, [°C] -
tg
(number)globe temperature, [°C] -
options
(object?)configuration options for the function.Name Description options.round boolean(defaulttrue)If true rounds output value. If false it does not round it. options.tdb number(defaultundefined)Dry bulb air temperature, [°C]. This value is needed as input if the person is exposed to direct solar radiation. options.with_solar_load boolean(defaultfalse)If the globe sensor is exposed to direct solar radiation. If this is set to true without also setting options.tdbthen an error will be thrown.
WbgtResult
:
set containing results for the model
const result = wbgt(25, 32);
console.log(result); // -> {"wbgt": 27.1}
const result = wbgt(25, 32, { tdb: 20, with_solar_radiation: true });
console.log(result); // -> {"wbgt": 25.9}
Discomfort Index (DI)
Calculates the Discomfort Index (DI). The index is essentially an effective temperature based on air temperature and humidity. The discomfort index is usuallly divided in 6 dicomfort categories and it only applies to warm environments. [24]
- class 1 - DI < 21 °C - No discomfort
- class 2 - 21 <= DI < 24 °C - Less than 50% feels discomfort
- class 3 - 24 <= DI < 27 °C - More than 50% feels discomfort
- class 4 - 27 <= DI < 29 °C - Most of the population feels discomfort
- class 5 - 29 <= DI < 32 °C - Everyone feels severe stress
- class 6 - DI >= 32 °C - State of medical emergency
DiscomfortIndexReturnType
:
object with results of DI
const DI = discomfort_index(25, 50); // returns { di: 22.1, discomfort_condition: 'Less than 50% feels discomfort' }
Two-Node Model (Gagge)
Two-node model of human temperature regulation Gagge et al. (1986).
[10] This model can be used to calculate a variety of indices, including:
- Gagge’s version of Fanger’s Predicted Mean Vote (PMV). This function uses the Fanger’s PMV equations but it replaces the heat loss and gain terms with those calculated by the two node model developed by Gagge et al. (1986) [10].
- PMV SET and the predicted thermal sensation based on SET [10]. This function is similar in all aspects to the pythermalcomfort.models.pmv_gagge(). However, it uses the pythermalcomfort.models.set() equation to calculate the dry heat loss by convection.
- Thermal discomfort (DISC) as the relative thermoregulatory strain necessary to restore a state of comfort and thermal equilibrium by sweating [10]. DISC is described numerically as: comfortable and pleasant (0), slightly uncomfortable but acceptable (1), uncomfortable and unpleasant (2), very uncomfortable (3), limited tolerance (4), and intolerable (S). The range of each category is ± 0.5 numerically. In the cold, the classical negative category descriptions used for Fanger’s PMV apply [10].
- Heat gains and losses via convection, radiation and conduction.
- The Standard Effective Temperature (SET)
- The New Effective Temperature (ET)
- The Predicted Thermal Sensation (TSENS)
- The Predicted Percent Dissatisfied Due to Draft (PD)
- Predicted Percent Satisfied With the Level of Air Movement” (PS)
Warning: Some tests are currently failing for this function. Please refer to the test suite or the project's issue tracker for more details.
"standing" | "sitting"), max_skin_blood_flow: number, kwargs: TwoNodesKwargs?): TwoNodesReturnType-
tdb
(number)Dry bulb air temperature, default in [°C] in [°F] ifunits= 'IP'. -
tr
(number)Mean radiant temperature, default in [°C] -
v
(number)Air speed, default in [m/s] -
rh
(number)Relative humidity, [%]. -
met
(number)Metabolic rate, [W/(m2)] -
clo
(number)Clothing insulation, [clo] -
wme
(number =External work, [W/(m2)] default 00) -
body_surface_area
(number =Body surface area, default value 1.8258 [m2] in [ft2] if units = ‘IP’1.8258) -
p_atmospheric
(number =Atmospheric pressure, default value 101325 [Pa] in [atm] if units = ‘IP’101325) -
body_position
((Select either “sitting” or “standing”"standing"|"sitting") ="standing") -
max_skin_blood_flow
(number =Maximum blood flow from the core to the skin, [kg/h/m2] default 9090) -
kwargs
(TwoNodesKwargs? ={})
TwoNodesReturnType
:
object with results of two_nodes
const results = two_nodes(25, 25, 0.3, 50, 1.2, 0.5);
console.log(results); // {
e_skin: 16.2,
e_rsw: 7,
e_max: 159.9,
q_sensible: 47.6,
q_skin: 63.8,
q_res: 5.2,
t_core: 36.9,
t_skin: 33.7,
m_bl: 12.9,
m_rsw: 10.3,
w: 0.1,
w_max: 0.6,
set: 23.6,
et: 25,
pmv_gagge: 0.1,
pmv_set: -0,
disc: 0.1,
t_sens: 0.1
}
Standard Effective Temperature (SET)
Calculates the Standard Effective Temperature (SET). The SET is the temperature of a hypothetical isothermal environment at 50% (rh), <0.1 m/s (20 fpm) average air speed (v), and tr = tdb, in which the total heat loss from the skin of an imaginary occupant wearing clothing, standardized for the activity concerned is the same as that from a person in the actual environment with actual clothing and activity level [10].
"standing" | "sitting"), units: ("SI" | "IP"), limit_inputs: boolean, kwargs: SetTmpKwargs?): SetTmpResult-
tdb
(number)Dry bulb air temperature, default in [°C] in [°F] ifunits= 'IP'. -
tr
(number)Mean radiant temperature, default in [°C] -
v
(number)Air speed, default in [m/s] -
rh
(number)Relative humidity, [%]. -
met
(number)Metabolic rate, [W/(m2)] -
clo
(number)Clothing insulation, [clo] -
wme
(number =External work, [W/(m2)] default 00) -
body_surface_area
(number?)Body surface area, default value 1.8258 [m2] in [ft2] if units = ‘IP’ -
p_atm
(number?)Atmospheric pressure, default value 101325 [Pa] in [atm] if units = ‘IP’ -
body_position
((Select either “sitting” or “standing”"standing"|"sitting") ="standing") -
units
((Select the SI (International System of Units) or the IP (Imperial Units) system."SI"|"IP") ="SI") -
limit_inputs
(boolean =By default, if the inputs are outsude the following limits the function returns nan. If False returns values regardless of the input values.true) -
kwargs
(SetTmpKwargs? ={})
SetTmpResult
:
set containing results for the model
const set = set_tmp(25, 25, 0.1, 50, 1.2, 0.5); // returns {set: 24.3}
Wind Chill Index (WCI)
Calculates the Wind Chill Index (WCI) in accordance with the ASHRAE 2017 Handbook Fundamentals - Chapter 9 [18].
The wind chill index (WCI) is an empirical index based on cooling measurements taken on a cylindrical flask partially filled with water in Antarctica (Siple and Passel 1945). For a surface temperature of 33°C, the index describes the rate of heat loss from the cylinder via radiation and convection as a function of ambient temperature and wind velocity.
This formulation has been met with some valid criticism. WCI is unlikely to be an accurate measure of heat loss from exposed flesh, which differs from plastic in terms of curvature, roughness, and radiation exchange qualities, and is always below 33°C in a cold environment. Furthermore, the equation’s values peak at 90 km/h and then decline as velocity increases. Nonetheless, this score reliably represents the combined effects of temperature and wind on subjective discomfort for velocities below 80 km/h [18].
{wci: number}
:
wind chill index, [W/m2]
Adaptive EN-16798
Determines the adaptive thermal comfort based on EN 16798-1 2019 [3]
Note: You can use this function to calculate if your conditions are within the EN adaptive thermal comfort region. Calculations with comply with the EN 16798-1 2019 [3].
"IP" | "SI"), limit_inputs: boolean): AdaptiveEnResult-
tdb
(number)dry bulb air temperature, default in [°C] in [°F] ifunits= 'IP' -
tr
(number)mean radiant temperature, default in [°C] in [°F] ifunits= 'IP' -
t_running_mean
(number)running mean temperature, default in [°C] in [°C] in [°F] ifunits= 'IP' The running mean temperature can be calculated using the function running_mean_outdoor_temperature -
v
(number)air speed, default in [m/s] in [fps] ifunits= 'IP'Note: Indoor operative temperature correction is applicable for buildings equipped with fans or personal systems providing building occupants with personal control over air speed at occupant level. For operative temperatures above 25°C the comfort zone upper limit can be increased by 1.2 °C (0.6 < v < 0.9 m/s), 1.8 °C (0.9 < v < 1.2 m/s), 2.2 °C (v > 1.2 m/s)
-
units
((select the SI (International System of Units) or the IP (Imperial Units) system."IP"|"SI") ="SI") -
limit_inputs
(boolean =By default, if the inputs are outsude the standard applicability limits the function returns nan. If False returns pmv and ppd values even if input values are outside the applicability limits of the model.true)
AdaptiveEnResult
:
result set
const results = adaptive_en(25, 25, 20, 0.1);
console.log(results); // {tmp_cmf: 25.4, acceptability_cat_i: true, acceptability_cat_ii: true, ... }
console.log(results.acceptability_cat_i); // true
// The conditions you entered are considered to comply with Category I
// for users who wants to use the IP system
const results = adaptive_en(77, 77, 68, 0.3, 'IP');
console.log(results); // {tmp_cmf: 77.7, acceptability_cat_i: true, acceptability_cat_ii: true, ... }
const results = adaptive_en(25, 25, 9, 0.1);
console.log(results); // {tmp_cmf: NaN, acceptability_cat_i: true, acceptability_cat_ii: true, ... }
// The adaptive thermal comfort model can only be used
// if the running mean temperature is between 10 °C and 30 °C
Apparent Temperature (AT)
Calculates the Apparent Temperature (AT). The AT is defined as the temperature at the reference humidity level producing the same amount of discomfort as that experienced under the current ambient temperature, humidity, and solar radiation [17]. In other words, the AT is an adjustment to the dry bulb temperature based on the relative humidity value. Absolute humidity with a dew point of 14°C is chosen as a reference.
[16]. It includes the chilling effect of the wind at lower temperatures.
Two formulas for AT are in use by the Australian Bureau of Meteorology: one includes solar radiation and the other one does not ({@link http://www.bom.gov.au/info/thermal_stress/}, 29 Sep 2021). Please specify q if you want to estimate AT with solar load.
-
tdb
(number)dry bulb air temperature, [°C] -
rh
(number)relative humidity, [%] -
v
(number)wind speed 10m above ground level, [m/s] -
q
((number | undefined)?)Net radiation absorbed per unit area of body surface [W/m2] -
kwargs
(object? =other parameters{round:true})Name Description kwargs.round boolean(defaulttrue)if True rounds output value, if False it does not round it
AtResult
:
set containing results for the model
const result = at(25, 30, 0.1);
console.log(result); // {at: 24.1}
PMV-PPD Model
Returns Predicted Mean Vote ( PMV ) and Predicted Percentage of Dissatisfied ( PPD ) calculated in accordance with main thermal comfort Standards. The PMV is an index that predicts the mean value of the thermal sensation votes (self-reported perceptions) of a large group of people on a sensation scale expressed from –3 to +3 corresponding to the categories: cold, cool, slightly cool, neutral, slightly warm, warm, and hot. [1]
While the PMV equation is the same for both the ISO and ASHRAE standards, in the ASHRAE 55 PMV equation, the SET is used to calculate the cooling effect first, this is then subtracted from both the air and mean radiant temperatures, and the differences are used as input to the PMV model, while the airspeed is set to 0.1m/s. Please read more in the Note below.
Notes:
You can use this function to calculate the PMV and PPD in accordance with either the ASHRAE 55 2020 Standard [1] or the ISO 7730 Standard [2].
This is a version that supports scalar arguments.
"ISO" | "ASHRAE"), kwargs: Pmv_ppdKwargs): Pmv_ppdReturns-
tdb
(number)dry bulb air temperature, default in [°C] in [°F] ifunits= 'IP' -
tr
(number)mean radiant temperature, default in [°C] in [°F] ifunits= 'IP' -
vr
(number)relative air speed, default in [m/s] in [fps] ifunits= 'IP'Note: vr is the relative air speed caused by body movement and not the air speed measured by the air speed sensor. The relative air speed is the sum of the average air speed measured by the sensor plus the activity-generated air speed (Vag). Where Vag is the activity-generated air speed caused by motion of individual body parts. vr can be calculated using the function
v_relativewhich is in .utilities.js. -
rh
(number)relative humidity, [%] -
met
(number)metabolic rate -
clo
(number)clothing insulationNote: The activity as well as the air speed modify the insulation characteristics of the clothing and the adjacent air layer. Consequently, the ISO 7730 states that the clothing insulation shall be corrected [2]. The ASHRAE 55 Standard corrects for the effect of the body movement for met equal or higher than 1.2 met using the equation clo = Icl × (0.6 + 0.4/met) The dynamic clothing insulation, clo, can be calculated using the function
clo_dynamicwhich is in .utilities.js. -
wme
(number =external work0) -
standard
((comfort standard used for calculation"ISO"|"ASHRAE") ="ISO")· If "ISO", then the ISO Equation is used
· If "ASHRAE", then the ASHRAE Equation is used
Note: While the PMV equation is the same for both the ISO and ASHRAE standards, the ASHRAE Standard Use of the PMV model is limited to air speeds below 0.10m/s (20 fpm). When air speeds exceed 0.10 m/s (20 fpm), the comfort zone boundaries are adjusted based on the SET model. This change was introduced by the Addendum_C to Standard 55-2020
-
kwargs
(Pmv_ppdKwargs =additional arguments{})
Pmv_ppdReturns
:
Result of pmv and ppd
const tdb = 25;
const tr = 25;
const rh = 50;
const v = 0.1;
const met = 1.4;
const clo = 0.5;
// Calculate relative air speed
const v_r = v_relative(v, met);
// Calculate dynamic clothing
const clo_d = clo_dynamic(clo, met);
const results = pmv_ppd(tdb, tr, v_r, rh, met, clo_d);
console.log(results); // Output: { pmv: 0.06, ppd: 5.1 }
console.log(results.pmv); // Output: -0.06
pmv_ppd_ashrae
Calculate PMV and PPD in accordance with ASHRAE 55.
Delegates to pmv_ppd with the standard fixed to 'ASHRAE'.
The ASHRAE equation applies a cooling effect (via SET) before computing
PMV — this lowers the result compared to the raw ISO equation when
elevated air speed is present.
Valid ASHRAE 55 input ranges (when limit_inputs is true):
- 10 < tdb [°C] < 40
- 10 < tr [°C] < 40
- 0 < vr [m/s] < 2
- 1 < met [met] < 4
- 0 < clo [clo] < 1.5
-
tdb
(number)Dry-bulb air temperature [°C] (or [°F] if units = 'IP') -
tr
(number)Mean radiant temperature [°C] (or [°F] if units = 'IP') -
vr
(number)Relative air speed [m/s] (or [fps] if units = 'IP') -
rh
(number)Relative humidity [%] -
met
(number)Metabolic rate [met] -
clo
(number)Clothing insulation [clo] -
wme
(number =External work [met]0) -
kwargs
(Object =Optional overrides{})Name Description kwargs.units ((default"SI"|"IP")'SI')Unit system kwargs.limit_inputs boolean(defaulttrue)Return NaN for out-of-range inputs kwargs.airspeed_control boolean(defaulttrue)Occupant controls airspeed
PmvPpdAshrae
:
PMV and PPD values
const r = pmv_ppd_ashrae(25, 25, 0.1, 50, 1.2, 0.5);
console.log(r.pmv); // 0.08
console.log(r.ppd); // 5.1
pmv_ppd_iso
Calculate PMV and PPD in accordance with ISO 7730.
Delegates to pmv_ppd with the standard fixed to 'ISO'.
The ISO equation uses Fanger's original PMV formulation without the
ASHRAE cooling-effect adjustment.
ISO 7730 applies stricter input limits than ASHRAE 55. When
limit_inputs is true (the default), inputs outside the following
ranges cause the function to return NaN:
- 10 < tdb [°C] < 30
- 10 < tr [°C] < 40
- 0 < vr [m/s] < 1
- 0.8 < met [met] < 4
- 0 < clo [clo] < 2
- -2 < PMV < 2 (result is clamped to NaN outside this range)
-
tdb
(number)Dry-bulb air temperature [°C] (or [°F] if units = 'IP') -
tr
(number)Mean radiant temperature [°C] (or [°F] if units = 'IP') -
vr
(number)Relative air speed [m/s] (or [fps] if units = 'IP') -
rh
(number)Relative humidity [%] -
met
(number)Metabolic rate [met] -
clo
(number)Clothing insulation [clo] -
wme
(number =External work [met]0) -
kwargs
(Object =Optional overrides{})Name Description kwargs.units ((default"SI"|"IP")'SI')Unit system kwargs.limit_inputs boolean(defaulttrue)Return NaN for out-of-range inputs
PmvPpdIso
:
PMV and PPD values
const r = pmv_ppd_iso(25, 25, 0.1, 50, 1.2, 0.5);
console.log(r.pmv); // 0.08
console.log(r.ppd); // 5.1
Adaptive ASHRAE-55
Determines the adaptive thermal comfort based on ASHRAE 55. The adaptive model relates indoor design temperatures or acceptable temperature ranges to outdoor meteorological or climatological parameters. The adaptive model can only be used in occupant-controlled naturally conditioned spaces that meet all the following criteria:
- There is no mechianical cooling or heating system in operation
- Occupants have a metabolic rate between 1.0 and 1.5 met
- Occupants are free to adapt their clothing within a range as wide as 0.5 and 1.0 clo
- The prevailing mean (runnin mean) outdoor temperature is between 10 and 33.5 °C
"SI" | "IP"), limit_inputs: boolean): AdaptiveAshraeResult-
tdb
(number)dry bulb air temperature, default in [°C] in [°F] ifunits= 'IP' -
tr
(number)mean radiant temperature, default in [°C] in [°F] ifunits= 'IP' -
t_running_mean
(number)running mean temperature, default in [°C] in [°C] in [°F] ifunits= 'IP' The running mean temperature can be calculated using the function running_mean_outdoor_temperature -
v
(number)air speed, default in [m/s] in [fps] ifunits= 'IP' -
units
((select the SI (International System of Units) or the IP (Imperial Units) system."SI"|"IP") ="SI") -
limit_inputs
(boolean =By default, if the inputs are outsude the standard applicability limits the function returns nan. If False returns pmv and ppd values even if input values are outside the applicability limits of the model.true)
AdaptiveAshraeResult
:
set containing results for the model
The ASHRAE 55 2020 limits are 10 < tdb [°C] < 40, 10 < tr [°C] < 40, 0 < vr [m/s] < 2, 10 < t running mean [°C] < 33.5
You can use this function to calculate if your conditions are within the adaptive thermal comfort region.
Calculations with comply with the ASHRAE 55 2020 Standard [1].
import { adaptive_ashrae } from "jsthermalcomfort/models";
const results = adaptive_ashrae(25, 25, 20, 0.1);
console.log(results);
// {tmp_cmf: 24.0, tmp_cmf_80_low: 20.5, tmp_cmf_80_up: 27.5,
// tmp_cmf_90_low: 21.5, tmp_cmf_90_up: 26.5, acceptability_80: true,
// acceptability_90: true}
console.log(results.acceptability_80);
// true
import { adaptive_ashrae } from "jsthermalcomfort/models";
// For users who want to use the IP system
const results = adaptive_ashrae(77, 77, 68, 0.3, 'IP');
console.log(results);
// {tmp_cmf: 75.2, tmp_cmf_80_low: 68.9, tmp_cmf_80_up: 81.5,
// tmp_cmf_90_low: 70.7, tmp_cmf_90_up: 79.7, acceptability_80: true,
// acceptability_90: true}
import { adaptive_ashrae } from "jsthermalcomfort/models";
const results = adaptive_ashrae(25, 25, 9, 0.1);
console.log(results);
// {tmp_cmf: NaN, tmp_cmf_80_low: NaN, ...}
// The adaptive thermal comfort model can only be used
// if the running mean temperature is higher than 10°C
Solar Gain (MRT Delta)
Calculates the solar gain to the human body using the Effective Radiant Field ( ERF) [1]. The ERF is a measure of the net energy flux to or from the human body. ERF is expressed in W over human body surface area [w/m2].
In addition, it calculates the delta mean radiant temperature. Which is the amount by which the mean radiant temperature of the space should be increased if no solar radiation is present.
More information on the calculation procedure can be found in Appendix C of [1].
"standing" | "supine" | "sitting"), floor_reflectance: number): SolarGainReturnType-
sol_altitude
(number)Solar altitude, degrees from horizontal [deg]. Ranges between 0 and 90. -
sharp
(number)Solar horizontal angle relative to the front of the person (SHARP) [deg]. Ranges between 0 and 180 and is symmetrical on either side. Zero (0) degrees represents direct-beam radiation from the front, 90 degrees represents direct-beam radiation from the side, and 180 degrees rep- resent direct-beam radiation from the back. SHARP is the angle between the sun and the person only. Orientation relative to compass or to room is not included in SHARP. -
sol_radiation_dir
(number)Direct-beam solar radiation, [W/m2]. Ranges between 200 and 1000. See Table C2-3 of ASHRAE 55 2020 [1] . -
sol_transmittance
(number)Total solar transmittance, ranges from 0 to 1. The total solar transmittance of window systems, including glazing unit, blinds, and other façade treatments, shall be determined using one of the following methods:- i) Provided by manufacturer or from the National Fenestration Rating Council approved Lawrence Berkeley National Lab International Glazing Database.
- ii) Glazing unit plus venetian blinds or other complex or unique shades shall be calculated using National Fenestration Rating Council approved software or Lawrence Berkeley National Lab Complex Glazing Database.
-
f_svv
(number)Fraction of sky-vault view fraction exposed to body, ranges from 0 to 1. It can be calculated using the function f_svv in utilities. -
f_bes
(number)Fraction of the possible body surface exposed to sun, ranges from 0 to 1. See Table C2-2 and equation C-7 ASHRAE 55 2020 [1] . -
asw
(number =The average short-wave absorptivity of the occupant. It will range widely, depending on the color of the occupant’s skin as well as the color and amount of clothing covering the body.0.7)A value of 0.7 shall be used unless more specific information about the clothing or skin color of the occupants is available. Note: Short-wave absorptivity typically ranges from 0.57 to 0.84, depending on skin and clothing color. More information is available in Blum (1945).
-
posture
((Default 'sitting' list of available options 'standing', 'supine' or 'sitting'"standing"|"supine"|"sitting") ="sitting") -
floor_reflectance
(number =Floor refectance. It is assumed to be constant and equal to 0.6.0.7)
SolarGainReturnType
:
import {solar_gain} from "jsthermalcomfort/models";
const results = solar_gain(0, 120, 800, 0.5, 0.7, "sitting");
console.log(results); // {erf: 42.9, delta_mrt: 10.3}
Cooling Effect (CE)
Returns the value of the Cooling Effect ( CE ) calculated in compliance with the ASHRAE 55 2020 Standard [1]. The CE of the elevated air speed is the value that, when subtracted equally from both the average air temperature and the mean radiant temperature, the same SET under still air as in the first SET calculation under elevated air speed. The cooling effect is calculated only for air speed higher than 0.1 m/s.
"SI" | "IP")): CoolingEffectResult-
tdb
(number)dry bulb air temperature, default in [°C] in [°F] ifunits= 'IP' -
tr
(number)mean radiant temperature, default in [°C] in [°F] ifunits= 'IP' -
vr
(number)relative air speed, default in [m/s] in [fps] ifunits= 'IP'Note: vr is the relative air speed caused by body movement and not the air speed measured by the air speed sensor. The relative air speed is the sum of the average air speed measured by the sensor plus the activity-generated air speed (Vag). Where Vag is the activity-generated air speed caused by motion of individual body parts. vr can be calculated using the function
v_relativewhich is in .utilities.js. -
rh
(number)relative humidity, [%] -
met
(number)metabolic rate, [met] -
clo
(number)clothing insulation, [clo]Note: The activity as well as the air speed modify the insulation characteristics of the clothing and the adjacent air layer. Consequently, the ISO 7730 states that the clothing insulation shall be corrected [2]. The ASHRAE 55 Standard corrects for the effect of the body movement for met equal or higher than 1.2 met using the equation clo = Icl × (0.6 + 0.4/met) The dynamic clothing insulation, clo, can be calculated using the function
clo_dynamicwhich is in .utilities.js. -
wme
(number =external work0) -
units
((select the SI (International System of Units) or the IP (Imperial Units) system."SI"|"IP") ="SI")
CoolingEffectResult
:
ce - Cooling Effect, default in [°C] in [°F] if
units
= 'IP'
const CE = cooling_effect(25, 25, 0.3, 50, 1.2, 0.5);
console.log(CE); // Output: {ce: 1.64}
// For users who want to use the IP system
const CE_IP = cooling_effect(77, 77, 1.64, 50, 1, 0.6, "IP");
console.log(CE_IP); // Output: {ce: 3.74}
Adaptive Thermal Heat Balance (ATHB)
Return the PMV value calculated with the Adaptive Thermal Heat Balance Framework [27]. The adaptive thermal heat balance (ATHB) framework introduced a method to account for the three adaptive principals, namely physiological, behavioral, and psychological adaptation, individually within existing heat balance models. The objective is a predictive model of thermal sensation applicable during the design stage or in international standards without knowing characteristics of future occupants.
This is a version that supports scalar arguments.
-
tdb
(number)dry bulb air temperature, in [°C] -
tr
(number)mean radiant temperature, in [°C] -
vr
(number)relative air speed, in [m/s]Note: vr is the relative air speed caused by body movement and not the air speed measured by the air speed sensor. The relative air speed is the sum of the average air speed measured by the sensor plus the activity-generated air speed (Vag). Where Vag is the activity-generated air speed caused by motion of individual body parts. vr can be calculated using the function jsthermalcomfort.utilities.v_relative.
-
rh
(number)relative humidity, [%] -
met
(number)metabolic rate, [met] -
t_running_mean
(number)running mean temperature, in [°C]The running mean temperature can be calculated using the function jsthermalcomfort.utilities.running_mean_outdoor_temperature.
AthbResult
:
set containing results for the model
const tdb = 25;
const tr = 25;
const vr = 0.1;
const rh = 50;
const met = 1.1;
const t_running_mean = 20;
const athb_result = athb(tdb, tr, vr, rh, met, t_running_mean);
console.log(athb_result); // Output: {athb_pmv: 0.2}
Predicted Mean Vote (PMV)
Returns Predicted Mean Vote ( PMV ) calculated in accordance with main thermal comfort Standards.
The PMV is an index that predicts the mean value of the thermal sensation votes (self-reported perceptions) of a large group of people on a sensation scale expressed from –3 to +3 corresponding to the categories: cold, cool, slightly cool, neutral, slightly warm, warm, and hot. [1]
While the PMV equation is the same for both the ISO and ASHRAE standards, in the ASHRAE 55 PMV equation, the SET is used to calculate the cooling effect first, this is then subtracted from both the air and mean radiant temperatures, and the differences are used as input to the PMV model, while the airspeed is set to 0.1m/s. Please read more in the Note below.
Notes:
You can use this function to calculate the PMV [1] [2]
This is a version that supports scalar arguments.
"ISO" | "ASHRAE"), kwargs: PmvKwargs): number-
tdb
(number)dry bulb air temperature, default in [°C] in [°F] ifunits= 'IP' -
tr
(number)mean radiant temperature, default in [°C] in [°F] ifunits= 'IP' -
vr
(number)relative air speed, default in [m/s] in [fps] ifunits= 'IP'Note: vr is the relative air speed caused by body movement and not the air speed measured by the air speed sensor. The relative air speed is the sum of the average air speed measured by the sensor plus the activity-generated air speed (Vag). Where Vag is the activity-generated air speed caused by motion of individual body parts. vr can be calculated using the function 'v_relative' in utilities.
-
rh
(number)relative humidity, [%] -
met
(number)metabolic rateNote: The activity as well as the air speed modify the insulation characteristics of the clothing and the adjacent air layer. Consequently, the ISO 7730 states that the clothing insulation shall be corrected [2]. The ASHRAE 55 Standard corrects for the effect of the body movement for met equal or higher than 1.2 met using the equation clo = Icl × (0.6 + 0.4/met) The dynamic clothing insulation, clo, can be calculated using the function 'clo_dynamic' in utilities.
-
clo
(number)clothing insulation -
wme
(number =external work0) -
standard
((comfort standard used for calculation"ISO"|"ASHRAE") ="ISO")· If "ISO", then the ISO Equation is used
· If "ASHRAE", then the ASHRAE Equation is used
Note: While the PMV equation is the same for both the ISO and ASHRAE standards, the ASHRAE Standard Use of the PMV model is limited to air speeds below 0.10m/s (20 fpm). When air speeds exceed 0.10 m/s (20 fpm), the comfort zone boundaries are adjusted based on the SET model. This change was introduced by the Addendum_C to Standard 55-2020
-
kwargs
(PmvKwargs =additional arguments{})
number
:
pmv - Predicted Mean Vote
const tdb = 25;
const tr = 25;
const rh = 50;
const v = 0.1;
const met = 1.4;
const clo = 0.5;
// calculate relative air speed
const v_r = v_relative(v, met);
// calculate dynamic clothing
const clo_d = clo_dynamic(clo, met);
const results = pmv(tdb, tr, v_r, rh, met, clo_d);
console.log(results); // 0.06
Adjusted PMV (aPMV)
Returns Adaptive Predicted Mean Vote (aPMV) [25]. This index was developed by Yao, R. et al. (2009). The model takes into account factors such as culture, climate, social, psychological and behavioral adaptations, which have an impact on the senses used to detect thermal comfort. This model uses an adaptive coefficient (λ) representing the adaptive factors that affect the sense of thermal comfort.
This is a version that supports scalar arguments.
-
tdb
(number)Dry bulb air temperature, default in [°C] in [°F] ifunits= 'IP' -
tr
(number)Mean radiant temperature, default in [°C] in [°F] ifunits= 'IP' -
vr
(number)Relative air speed, default in [m/s] in [fps] ifunits= 'IP'Note: vr is the relative air speed caused by body movement and not the air speed measured by the air speed sensor. The relative air speed is the sum of the average air speed measured by the sensor plus the activity-generated air speed (Vag). Where Vag is the activity-generated air speed caused by motion of individual body parts. vr can be calculated using the function v_relative in utilities.js.
-
rh
(number)Relative humidity, [%] -
met
(number)Metabolic rate, [met] -
clo
(number)Clothing insulation, [clo]Note: The activity as well as the air speed modify the insulation characteristics of the clothing and the adjacent air layer. Consequently, the ISO 7730 states that the clothing insulation shall be corrected [2]. The ASHRAE 55 Standard corrects for the effect of the body movement for met equal or higher than 1.2 met using the equation clo = Icl × (0.6 + 0.4/met) The dynamic clothing insulation, clo, can be calculated using the function clo_dynamic in utilities.js.
-
a_coefficient
(number)Adaptive coefficient -
wme
(number =External work0) -
kwargs
(A_pmvKwargs =additional arguments{})
APmvResult
:
set containing results for the model
const tdb = 24,
const tr = 30,
const vr = 0.22,
const rh = 50,
const met = 1.4,
const clo = 0.5,
const a_coefficient = 0.293,
const wme = undefined,
const result = a_pmv(tdb, tr, vr, rh, met, clo, a_coefficient, wme);
console.log(result) //output { a_pmv: 0.48 }
Ankle Draft
Calculates the percentage of thermally dissatisfied people with the ankle draft (0.1 m) above floor level [23]. This equation is only applicable for vr < 0.2 m/s (40 fps).
"IP" | "SI")): AnkleDraftRet-
tdb
(number)dry bulb air temperature, default in [°C] in [°F] ifunits= 'IP'Note: The air temperature is the average value over two heights: 0.6 m (24 in.) and 1.1 m (43 in.) for seated occupants and 1.1 m (43 in.) and 1.7 m (67 in.) for standing occupants.
-
tr
(number)mean radiant temperature, default in [°C] in [°F] ifunits= 'IP' -
vr
(number)relative air speed, default in [m/s] in [fps] ifunits= 'IP'Note: vr is the relative air speed caused by body movement and not the air speed measured by the air speed sensor. The relative air speed is the sum of the average air speed measured by the sensor plus the activity-generated air speed (Vag). Where Vag is the activity-generated air speed caused by motion of individual body parts. vr can be calculated using the function v_relative in utilities.js.
-
rh
(number)relative humidity, [%] -
met
(number)metabolic rate, [met] -
clo
(number)clothing insulation, [clo]Note: The activity as well as the air speed modify the insulation characteristics of the clothing and the adjacent air layer. Consequently, the ISO 7730 states that the clothing insulation shall be corrected [2]. The ASHRAE 55 Standard corrects for the effect of the body movement for met equal or higher than 1.2 met using the equation clo = Icl × (0.6 + 0.4/met) The dynamic clothing insulation, clo, can be calculated using the function clo_dynamic in utilities.js.
-
v_ankle
(number)air speed at the 0.1 m (4 in.) above the floor, default in [m/s] in [fps] ifunits= 'IP' -
units
((select the SI (International System of Units) or the IP (Imperial Units) system."IP"|"SI") ="SI")
AnkleDraftRet
:
Returns {"PPD_ad": ppd_val, "Acceptability": acceptability}
results = ankle_draft(25, 25, 0.2, 50, 1.2, 0.5, 0.3, "SI")
console.log(results) // expected result is {PPD_ad: 18.5, Acceptability: true}
Extended PMV (ePMV)
Returns Adjusted Predicted Mean Votes with Expectancy Factor (ePMV). This index was developed by Fanger, P. O. et al. (2002). In non-air-conditioned buildings in warm climates, occupants may sense the warmth as being less severe than the PMV predicts. The main reason is low expectations, but a metabolic rate that is estimated too high can also contribute to explaining the difference. An extension of the PMV model that includes an expectancy factor is introduced for use in non-air-conditioned buildings in warm climates [26].
This is a version that supports scalar arguments.
-
tdb
(number)Dry bulb air temperature, default in [°C] in [°F] ifunits= 'IP' -
tr
(number)Mean radiant temperature, default in [°C] in [°F] ifunits= 'IP' -
vr
(number)Relative air speed, default in [m/s] in [fps] ifunits= 'IP'Note: vr is the relative air speed caused by body movement and not the air speed measured by the air speed sensor. The relative air speed is the sum of the average air speed measured by the sensor plus the activity-generated air speed (Vag). Where Vag is the activity-generated air speed caused by motion of individual body parts. vr can be calculated using the function v_relative in utilities.js.
-
rh
(number)Relative humidity, [%] -
met
(number)Metabolic rate, [met] -
clo
(number)Clothing insulation, [clo]Note: The activity as well as the air speed modify the insulation characteristics of the clothing and the adjacent air layer. Consequently, the ISO 7730 states that the clothing insulation shall be corrected [2]. The ASHRAE 55 Standard corrects for the effect of the body movement for met equal or higher than 1.2 met using the equation clo = Icl × (0.6 + 0.4/met) The dynamic clothing insulation, clo, can be calculated using the function clo_dynamic in utilities.js.
-
e_coefficient
(number)expectancy factor -
wme
(number =External work0) -
kwargs
(E_pmvKwargs? =additional arguments{})
EPmvResult
:
set containing results for the model
const tdb = 28;
const tr = 28;
const v = 0.1;
const met = 1.4;
const clo = 0.5;
// Calculate relative air speed
const v_r = v_relative(v, met);
// Calculate dynamic clothing
const clo_d = clo_dynamic(clo, met);
const e_coefficient = 0.6;
const result = e_pmv(tdb, tr, v_r, rh, met, clo_d, e_coefficient);
console.log(result) // output {e_pmv: 0.51}
Vertical Temperature Gradient PPD
Calculates the percentage of thermally dissatisfied people with a vertical temperature gradient between feet and head [1] . This equation is only applicable for vr < 0.2 m/s (40 fps).
"SI" | "IP")): VerTmpGradReturnType-
tdb
(number)dry bulb air temperature, default in [°C] in [°F] if "units" = 'IP'.Note: The air temperature is the average value over two heights: 0.6 m (24 in.) and 1.1 m (43 in.) for seated occupants and 1.1 m (43 in.) and 1.7 m (67 in.) for standing occupants.
-
tr
(number)mean radiant temperature, default in [°C] in [°F] if "units" = 'IP'. -
vr
(number)relative air speed, default in [m/s] in [fps] if "units" = "IP"Note: vr is the relative air speed caused by body movement and not the air speed measured by the air speed sensor. The relative air speed is the sum of the average air speed measured by the sensor plus the activity-generated air speed (Vag). Where Vag is the activity-generated air speed caused by motion of individual body parts. vr can be calculated using the function pythermalcomfort.utilities.v_relative().
-
rh
(number)relative humidity, [%]. -
met
(number)metabolic rate, [met] -
clo
(number)clothing insulation, [clo]Note: The activity as well as the air speed modify the insulation characteristics of the clothing and the adjacent air layer. Consequently the ISO 7730 states that the clothing insulation shall be corrected [2]. The ASHRAE 55 Standard corrects for the effect of the body movement for met equal or higher than 1.2 met using the equation clo = Icl × (0.6 + 0.4/met) The dynamic clothing insulation, clo, can be calculated using the function pythermalcomfort.utilities.clo_dynamic().
-
vertical_tmp_grad
(number)vertical temperature gradient between the feet and the head, default in [°C/m] in [°F/ft] if units = ‘IP’ -
units
((select the SI (International System of Units) or the IP (Imperial Units) system."SI"|"IP") ="SI")
VerTmpGradReturnType
:
Object with results of the PPD with vertical temprature gradient.
const result = vertical_tmp_grad_ppd(25, 25, 0.1, 50, 1.2, 0.5, 7); // returns {'ppd_vg': 12.6, 'acceptability': false}
Use of Fans During Heatwaves
It helps you to estimate if the conditions you have selected would cause heat strain. This occurs when either the following variables reaches its maximum value:
- m_rsw Rate at which regulatory sweat is generated, [mL/h/m2].
- w : Skin wettedness, adimensional. Ranges from 0 and 1.
- m_bl : Skin blood flow [kg/h/m2].
"standing" | "sitting"), units: ("SI" | "IP"), max_skin_blood_flow: number, kwargs: HeatwaveKwargs?): HeatwaveReturnType-
tdb
(number)dry bulb air temperature, default in [°C] in [°F] if units = ‘IP’ -
tr
(number)mean radiant temperature, default in [°C] in [°F] if units = ‘IP’ -
v
(number)air speed, default in [m/s] in [fps] if units = ‘IP’ -
rh
(number)relative humidity, [%] -
met
(number)metabolic rate, [met] -
clo
(number)clothing insulation, [clo] -
wme
(number =external work, [met] default 00) -
body_surface_area
(number?)body surface area, default value 1.8258 [m2] in [ft2] if units = ‘IP’The body surface area can be calculated using the function pythermalcomfort.utilities.body_surface_area().
-
p_atm
(number?)atmospheric pressure, default value 101325 [Pa] in [atm] if units = ‘IP’ -
body_position
((select either “sitting” or “standing”"standing"|"sitting") ="standing") -
units
((select the SI (International System of Units) or the IP (Imperial Units) system."SI"|"IP") ="SI") -
max_skin_blood_flow
(number =maximum blood flow from the core to the skin80) -
kwargs
(HeatwaveKwargs? ={})
HeatwaveReturnType
:
object with results of use fans during heatwave
const results = use_fans_heatwaves(25, 25, 0.1, 50, 1.2, 0.5);
console.log(results); //
{
e_skin: 18.1,
e_rsw: 10.0,
e_max: 145.0,
q_sensible: 45.7,
q_skin: 63.8,
q_res: 5.2,
t_core: 36.9,
t_skin: 33.8,
m_bl: 13.6,
m_rsw: 14.6,
w: 0.1,
w_max: 0.7,
heat_strain_blood_flow: 0.0,
heat_strain_w: 0.0,
heat_strain_sweating: 0.0,
heat_strain: 0.0
}
Clothing Insulation (Tout)
Representative clothing insulation Icl as a function of outdoor air temperature at 06:00 a.m [4].
Note: The ASHRAE 55 2020 states that it is acceptable to determine the clothing insulation Icl using this equation in mechanically conditioned buildings [1].
-
tout
(number)outdoor air temperature at 06:00 a.m., default in [°C] in [°F] ifunits= 'IP' -
units
((select the SI (International System of Units) or the IP (Imperial Units) system."IP"|"SI") ="SI")
CloToutResult
:
set containing results for the model
Universal Thermal Climate Index (UTCI)
Determines the Universal Thermal Climate Index (UTCI). The UTCI is the equivalent temperature for the environment derived from a reference environment. It is defined as the air temperature of the reference environment which produces the same strain index value in comparison with the reference individual's response to the real environment. It is regarded as one of the most comprehensive indices for calculating heat stress in outdoor spaces. The parameters that are taken into account for calculating UTCI involve dry bulb temperature, mean radiation temperature, the pressure of water vapor or relative humidity, and wind speed (at the elevation of 10 m above the ground). [7]
- Note: You can use this function to calculate the Universal Thermal Climate Index (UTCI) The applicability wind speed value must be between 0.5 and 17 m/s.
"SI" | "IP"), return_stress_category: boolean, limit_inputs: boolean)-
tdb
(number)dry bulb air temperature, default in [°C] in [°F] ifunits= 'IP' -
tr
(number)mean radiant temperature, default in [°C] in [°F] ifunits= 'IP' -
v
(number)wind speed 10m above ground level, default in [m/s] in [fps] ifunits= 'IP' -
rh
(number)relative humidity, [%] -
units
((select the SI (International System of Units) or the IP (Imperial Units) system."SI"|"IP") ="SI") -
return_stress_category
(boolean =default False if True returns the UTCI categorized in terms of thermal stress.false) -
limit_inputs
(boolean =default True. By default, if the inputs are outsude the standard applicability limits the function returns nan. If False returns UTCI values even if input values are outside the applicability limits of the model. The valid input ranges are -50 < tdb [°C] < 50, tdb - 70 < tr [°C] < tdb + 30, and for 0.5 < v [m/s] < 17.0.true)
console.log(utci(25, 25, 1.0, 50)) // will print 24.6
console.log(utci(77, 77, 3.28, 50, 'ip')) // will print 76.4
console.log(utci(25, 25, 1.0, 50, 'si', true))
// will print {utci: 24.6, stress_category: "no thermal stress"}
Physiological Equivalent Temperature (PET)
The steady physiological equivalent temperature (PET) is calculated using the Munich Energy-balance Model for Individuals (MEMI), which simulates the human body's thermal circumstances in a medically realistic manner. PET is defined as the air temperature at which, in a typical indoor setting the heat budget of the human body is balanced with the same core and skin temperature as under the complex outdoor conditions to be assessed [20].
The following assumptions are made for the indoor reference climate: tdb = tr, v = 0.1 m/s, water vapour pressure = 12 hPa, clo = 0.9 clo, and met = 1.37 met + basic metabolism.
PET allows a layperson to compare the total effects of complex thermal circumstances outside with his or her own personal experience indoors in this way. This function solves the heat balances without accounting for heat storage in the human body.
The PET was originally proposed by Hoppe [20]. In 2018, Walther and Goestchel [21] proposed a correction of the original model, purging the errors in the PET calculation routine, and implementing a state-of-the-art vapour diffusion model. Walther and Goestchel (2018) model is therefore used to calculate the PET.
Warning: Some tests are currently failing for this function. Please refer to the test suite or the project's issue tracker for more details.
1 | 2 | 3), age: number, sex: (1 | 2), weight: number, height: number, wme: number): PetSteadyResult-
tdb
(number)dry bulb air temperature, [°C] -
tr
(number)mean radiant temperature, [°C] -
v
(number)air speed, [m/s] -
rh
(number)relative humidity, [%] -
met
(number)metabolic rate, [met] -
clo
(number)clothing insulation, [clo] -
p_atm
(number =atmospheric pressure, default value 1013.25 [hPa]1013.25) -
position
((position of the individual (1=sitting, 2=standing, 3=standing, forced convection)1|2|3) =1) -
age
(number =age in years23) -
sex
((male (1) or female (2).1|2) =1) -
weight
(number =body mass, [kg]75) -
height
(number =height, [m]1.8) -
wme
(number =external work, [W/(m2)]0)
PetSteadyResult
:
set containing results for the model
const result = pet_steady(20, 20, 50, 0.15, 1.37, 0.5);
console.log(result); // {pet: 18.85}
JOS-3 Thermoregulation Model
JOS-3 model simulates human thermal physiology including skin temperature, core temperature, sweating rate, etc. for the whole body and 17 local body parts.
This model was developed at Shin-ichi Tanabe Laboratory, Waseda University and was derived from 65 Multi-Node model (https://doi.org/10.1016/S0378-7788(02)00014-2) and JOS-2 model (https://doi.org/10.1016/j.buildenv.2013.04.013).
To use this model, create an instance of the JOS3 class with optional body parameters such as body height, weight, age, sex, etc.
Environmental conditions such as air temperature, mean radiant temperature, air velocity, etc. can be set using the setter methods. (ex. X.tdb, X.tr X.v) If you want to set the different conditions in each body part, set them as a 17 lengths of list, dictionary, or numpy array format.
List or numpy array format input must be 17 lengths and means the order of "head", "neck", "chest", "back", "pelvis", "left_shoulder", "left_arm", "left_hand", "right_shoulder", "right_arm", "right_hand", "left_thigh", "left_leg", "left_foot", "right_thigh", "right_leg" and "right_foot".
The model output includes local and mean skin temperature, local core temperature, local and mean skin wettedness, and heat loss from the skin etc. The model output can be accessed using "dict_results()" method and be converted to a csv file using "to_csv" method. Each output parameter also can be accessed using getter methods. (ex. X.t_skin, X.t_skin_mean, X.t_core)
If you use this package, please cite us as follows and mention the version of pythermalcomfort used: Y. Takahashi, A. Nomoto, S. Yoda, R. Hisayama, M. Ogata, Y. Ozeki, S. Tanabe, Thermoregulation Model JOS-3 with New Open Source Code, Energy & Buildings (2020), doi: https://doi.org/10.1016/j.enbuild.2020.110575
Note: To maintain consistency in variable names for jsthermalcomfort and pythermalcomfort, some variable names differ from those used in the original paper.
-
height
(number? =body height, in [m].JOS3Defaults.height) -
weight
(number? =body weight, in [kg].JOS3Defaults.weight) -
fat
(number? =fat percentage, in [%].JOS3Defaults.body_fat) -
age
(number? =age, in [years].JOS3Defaults.age) -
sex
((sex."male"|"female")? =JOS3Defaults.sex) -
ci
(number? =Cardiac index, in [L/min/m2].JOS3Defaults.cardiac_index) -
bmr_equation
((The equation used to calculate basal metabolic rate (BMR)."harris-benedict"|"harris-benedict_origin"|"japanese"|"ganpule")? =JOS3Defaults.bmr_equation) -
bsa_equation
((The equation used to calculate body surface area (bsa)."dubois"|"fujimoto"|"kruazumi"|"takahira")? =JOS3Defaults.bsa_equation) -
ex_output
(([] |This is used when you want to display results other than the default output parameters (ex.skin temperature); by default, JOS outputs only the most necessary parameters in order to reduce the computational load."all")? =[])