carbonfly.pythermalcomfort.models package

carbonfly.pythermalcomfort.models.two_nodes_gagge(tdb: float, tr: float, v: float, rh: float, met: float, clo: float, wme: float = 0.0, body_surface_area: float = 1.8258, p_atm: float = 101325.0, position: str = 'standing', max_skin_blood_flow: float = 90.0, round_output: bool = True, max_sweating: float = 500.0, w_max: float | None = None, calculate_ce: bool = False) Dict[str, Any][source]

Scalar-only implementation of Gagge Two-Node model (Gagge et al., 1986).

Parameters are identical in meaning to the original function but accept only scalars.

Returns:

e_skin, e_rsw, e_max, q_sensible, q_skin, q_res, t_core, t_skin, m_bl, m_rsw, w, w_max, set, et, pmv_gagge, pmv_set, disc, t_sens

Return type:

dict with keys

carbonfly.pythermalcomfort.models.two_nodes_gagge_sleep(tdb: float, tr: float, v: float, rh: float, clo: float, thickness_quilt: float, wme: float = 0, p_atm: float = 101325, **kwargs) dict[source]

Adaption of the Gagge two-node model for sleep thermal environment, developed by Yan, S., Xiong, J., Kim, J. and de Dear, R. [Yan2022].

Parameters:
  • tdb (float) – Dry bulb air temperature, [°C].

  • tr (float) – Mean radiant temperature, [°C].

  • v (float) – Air speed, [m/s].

  • rh (float) – Relative humidity, [%].

  • clo (float) – Clothing insulation, [clo].

  • thickness_quilt (float) – Thickness of the quilt. [cm].

  • wme (float, optional) – External work, [met]. Defaults to 0.

  • p_atm (float, optional) – Atmospheric pressure, default value 101325 [Pa]. Defaults to 101325.

  • **kwargs (dict) –

    Keyword arguments:

    • ltimeint, optional

      Number of time steps for each iteration. Defaults to 1.

    • heightfloat, optional

      Height of the person, [cm]. Defaults to 171.

    • weightfloat, optional

      Weight of the person, [kg]. Defaults to 70.

    • c_swfloat, optional

      Driving coefficient for regulatory sweating. Defaults to 170.

    • c_dilfloat, optional

      Driving coefficient for vasodilation. Defaults to 120.

    • c_strfloat, optional

      Driving coefficient for vasoconstriction. Defaults to 0.5.

    • temp_skin_neutralfloat, optional

      Skin temperature at neutral conditions, [°C]. Defaults to 33.7.

    • temp_core_neutralfloat, optional

      Core temperature at neutral conditions, [°C]. Defaults to 36.8.

    • e_skinfloat, optional

      Total evaporative heat loss, [W]. Defaults to 0.094.

    • alfafloat, optional

      Dynamic fraction of total body mass assigned to the skin node. Defaults to 0.1.

    • skin_blood_flowfloat, optional

      Skin-blood-flow rate per unit surface area, [kg/h/m2]. Defaults to 6.3.

    • met_shiveringfloat, optional

      Metabolic rate due to shivering, [met]. Defaults to 0.

Returns:

setfloat

Standard Effective Temperature (SET).

t_corefloat

Core temperature, [°C].

t_skinfloat

Skin temperature, [°C].

wetfloat

Skin wettedness, adimensional. Ranges from 0 to 1.

t_sensfloat

Predicted Thermal Sensation.

discfloat

Thermal discomfort.

e_skinfloat

Total rate of evaporative heat loss from skin, [W/m2]. Equal to e_rsw + e_diff.

met_shiveringfloat

Metabolic rate due to shivering, [W/m2].

alfafloat

Dynamic fraction of total body mass assigned to the skin node (dimensionless).

skin_blood_flow: float

Skin-blood-flow rate per unit surface area, [kg/h/m2].

Return type:

A dict contains

Submodules