jsthermalcomfort 0.2.0 → 1.0.4
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 +15 -14
- package/lib/cjs/jos3_functions/JOS3Defaults.js +18 -18
- package/lib/cjs/jos3_functions/bfb_rate.js +18 -9
- package/lib/cjs/jos3_functions/bsa_rate.js +1 -2
- package/lib/cjs/jos3_functions/capacity.js +1 -2
- package/lib/cjs/jos3_functions/conductance.js +18 -9
- package/lib/cjs/jos3_functions/local_bsa.js +18 -9
- package/lib/cjs/jos3_functions/matrix.js +21 -11
- package/lib/cjs/jos3_functions/thermoregulation/ava_blood_flow.js +18 -9
- package/lib/cjs/jos3_functions/thermoregulation/basal_met.js +1 -2
- package/lib/cjs/jos3_functions/thermoregulation/clo_area_factor.js +1 -2
- package/lib/cjs/jos3_functions/thermoregulation/conv_coef.js +18 -9
- package/lib/cjs/jos3_functions/thermoregulation/cr_ms_fat_blood_flow.js +18 -9
- package/lib/cjs/jos3_functions/thermoregulation/dry_r.js +18 -9
- package/lib/cjs/jos3_functions/thermoregulation/error_signals.js +18 -9
- package/lib/cjs/jos3_functions/thermoregulation/evaporation.js +19 -9
- package/lib/cjs/jos3_functions/thermoregulation/fixed_hc.js +18 -9
- package/lib/cjs/jos3_functions/thermoregulation/fixed_hr.js +18 -9
- package/lib/cjs/jos3_functions/thermoregulation/local_mbase.js +18 -9
- package/lib/cjs/jos3_functions/thermoregulation/local_q_work.js +18 -9
- package/lib/cjs/jos3_functions/thermoregulation/nonshivering.js +18 -9
- package/lib/cjs/jos3_functions/thermoregulation/operative_temp.js +18 -9
- package/lib/cjs/jos3_functions/thermoregulation/rad_coef.js +18 -9
- package/lib/cjs/jos3_functions/thermoregulation/resp_heat_loss.js +1 -2
- package/lib/cjs/jos3_functions/thermoregulation/shivering.js +20 -10
- package/lib/cjs/jos3_functions/thermoregulation/skin_blood_flow.js +18 -9
- package/lib/cjs/jos3_functions/thermoregulation/sum_bf.js +18 -9
- package/lib/cjs/jos3_functions/thermoregulation/sum_m.js +18 -9
- package/lib/cjs/jos3_functions/thermoregulation/wet_r.js +18 -9
- package/lib/cjs/jos3_functions/validate_body_parameters.js +1 -2
- package/lib/cjs/jos3_functions/weight_rate.js +1 -2
- package/lib/cjs/models/JOS3.js +17 -7
- package/lib/cjs/models/a_pmv.js +13 -8
- package/lib/cjs/models/adaptive_ashrae.js +5 -6
- package/lib/cjs/models/adaptive_en.js +3 -4
- package/lib/cjs/models/ankle_draft.js +3 -4
- package/lib/cjs/models/at.js +10 -6
- package/lib/cjs/models/athb.js +19 -13
- package/lib/cjs/models/clo_tout.js +10 -5
- package/lib/cjs/models/cooling_effect.js +15 -10
- package/lib/cjs/models/discomfort_index.js +2 -3
- package/lib/cjs/models/e_pmv.js +12 -7
- package/lib/cjs/models/heat_index.js +10 -8
- package/lib/cjs/models/humidex.js +1 -2
- package/lib/cjs/models/index.js +4 -0
- package/lib/cjs/models/net.js +11 -7
- package/lib/cjs/models/pet_steady.js +26 -17
- package/lib/cjs/models/phs.js +119 -56
- package/lib/cjs/models/pmv.js +2 -3
- package/lib/cjs/models/pmv_ppd.js +6 -6
- package/lib/cjs/models/pmv_ppd_ashrae.js +50 -0
- package/lib/cjs/models/pmv_ppd_iso.js +51 -0
- package/lib/cjs/models/set_tmp.js +12 -8
- package/lib/cjs/models/solar_gain.js +11 -13
- package/lib/cjs/models/two_nodes.js +7 -5
- package/lib/cjs/models/use_fans_heatwave.js +1 -2
- package/lib/cjs/models/utci.js +3 -4
- package/lib/cjs/models/vertical_tmp_grad_ppd.js +7 -8
- package/lib/cjs/models/wbgt.js +10 -6
- package/lib/cjs/models/wc.js +1 -2
- package/lib/cjs/psychrometrics/enthalpy.js +1 -2
- package/lib/cjs/psychrometrics/p_sat.js +1 -2
- package/lib/cjs/psychrometrics/p_sat_torr.js +2 -3
- package/lib/cjs/psychrometrics/psy_ta_rh.js +1 -2
- package/lib/cjs/psychrometrics/t_dp.js +1 -2
- package/lib/cjs/psychrometrics/t_mrt.js +2 -3
- package/lib/cjs/psychrometrics/t_o.js +2 -3
- package/lib/cjs/psychrometrics/t_wb.js +1 -2
- package/lib/cjs/supa.js +9 -10
- package/lib/cjs/types/jos3_functions/conductance.d.ts.map +1 -1
- package/lib/cjs/types/jos3_functions/local_bsa.d.ts.map +1 -1
- package/lib/cjs/types/jos3_functions/matrix.d.ts.map +1 -1
- package/lib/cjs/types/jos3_functions/thermoregulation/ava_blood_flow.d.ts.map +1 -1
- package/lib/cjs/types/jos3_functions/thermoregulation/clo_area_factor.d.ts.map +1 -1
- package/lib/cjs/types/jos3_functions/thermoregulation/conv_coef.d.ts.map +1 -1
- package/lib/cjs/types/jos3_functions/thermoregulation/cr_ms_fat_blood_flow.d.ts.map +1 -1
- package/lib/cjs/types/jos3_functions/thermoregulation/dry_r.d.ts.map +1 -1
- package/lib/cjs/types/jos3_functions/thermoregulation/error_signals.d.ts.map +1 -1
- package/lib/cjs/types/jos3_functions/thermoregulation/evaporation.d.ts.map +1 -1
- package/lib/cjs/types/jos3_functions/thermoregulation/fixed_hr.d.ts.map +1 -1
- package/lib/cjs/types/jos3_functions/thermoregulation/local_mbase.d.ts.map +1 -1
- package/lib/cjs/types/jos3_functions/thermoregulation/local_q_work.d.ts.map +1 -1
- package/lib/cjs/types/jos3_functions/thermoregulation/nonshivering.d.ts.map +1 -1
- package/lib/cjs/types/jos3_functions/thermoregulation/operative_temp.d.ts.map +1 -1
- package/lib/cjs/types/jos3_functions/thermoregulation/rad_coef.d.ts.map +1 -1
- package/lib/cjs/types/jos3_functions/thermoregulation/shivering.d.ts.map +1 -1
- package/lib/cjs/types/jos3_functions/thermoregulation/skin_blood_flow.d.ts.map +1 -1
- package/lib/cjs/types/jos3_functions/thermoregulation/sum_bf.d.ts.map +1 -1
- package/lib/cjs/types/jos3_functions/thermoregulation/sum_m.d.ts.map +1 -1
- package/lib/cjs/types/jos3_functions/thermoregulation/wet_r.d.ts.map +1 -1
- package/lib/cjs/types/models/JOS3.d.ts +11 -11
- package/lib/cjs/types/models/JOS3.d.ts.map +1 -1
- package/lib/cjs/types/models/a_pmv.d.ts +15 -4
- package/lib/cjs/types/models/a_pmv.d.ts.map +1 -1
- package/lib/cjs/types/models/at.d.ts +14 -3
- package/lib/cjs/types/models/at.d.ts.map +1 -1
- package/lib/cjs/types/models/athb.d.ts +14 -3
- package/lib/cjs/types/models/athb.d.ts.map +1 -1
- package/lib/cjs/types/models/clo_tout.d.ts +13 -2
- package/lib/cjs/types/models/clo_tout.d.ts.map +1 -1
- package/lib/cjs/types/models/cooling_effect.d.ts +15 -4
- package/lib/cjs/types/models/cooling_effect.d.ts.map +1 -1
- package/lib/cjs/types/models/e_pmv.d.ts +15 -4
- package/lib/cjs/types/models/e_pmv.d.ts.map +1 -1
- package/lib/cjs/types/models/heat_index.d.ts +14 -3
- package/lib/cjs/types/models/heat_index.d.ts.map +1 -1
- package/lib/cjs/types/models/humidex.d.ts.map +1 -1
- package/lib/cjs/types/models/index.d.ts +4 -0
- package/lib/cjs/types/models/index.d.ts.map +1 -1
- package/lib/cjs/types/models/net.d.ts +14 -3
- package/lib/cjs/types/models/net.d.ts.map +1 -1
- package/lib/cjs/types/models/pet_steady.d.ts +17 -3
- package/lib/cjs/types/models/pet_steady.d.ts.map +1 -1
- package/lib/cjs/types/models/phs.d.ts +34 -21
- package/lib/cjs/types/models/phs.d.ts.map +1 -1
- package/lib/cjs/types/models/pmv.d.ts +1 -1
- package/lib/cjs/types/models/pmv_ppd.d.ts +1 -1
- package/lib/cjs/types/models/pmv_ppd.d.ts.map +1 -1
- package/lib/cjs/types/models/pmv_ppd_ashrae.d.ts +59 -0
- package/lib/cjs/types/models/pmv_ppd_ashrae.d.ts.map +1 -0
- package/lib/cjs/types/models/pmv_ppd_iso.d.ts +59 -0
- package/lib/cjs/types/models/pmv_ppd_iso.d.ts.map +1 -0
- package/lib/cjs/types/models/set_tmp.d.ts +14 -3
- package/lib/cjs/types/models/set_tmp.d.ts.map +1 -1
- package/lib/cjs/types/models/solar_gain.d.ts +3 -3
- package/lib/cjs/types/models/solar_gain.d.ts.map +1 -1
- package/lib/cjs/types/models/two_nodes.d.ts +3 -0
- package/lib/cjs/types/models/two_nodes.d.ts.map +1 -1
- package/lib/cjs/types/models/utci.d.ts +4 -1
- package/lib/cjs/types/models/utci.d.ts.map +1 -1
- package/lib/cjs/types/models/vertical_tmp_grad_ppd.d.ts +5 -5
- package/lib/cjs/types/models/wbgt.d.ts +15 -4
- package/lib/cjs/types/models/wbgt.d.ts.map +1 -1
- package/lib/cjs/types/models/wc.d.ts.map +1 -1
- package/lib/cjs/types/supa.d.ts.map +1 -1
- package/lib/cjs/types/utilities/utilities.d.ts.map +1 -1
- package/lib/cjs/utilities/utilities.js +16 -16
- package/lib/esm/jos3_functions/JOS3Defaults.js +18 -18
- package/lib/esm/models/a_pmv.js +11 -5
- package/lib/esm/models/adaptive_ashrae.js +3 -3
- package/lib/esm/models/ankle_draft.js +2 -2
- package/lib/esm/models/at.js +9 -4
- package/lib/esm/models/athb.js +17 -10
- package/lib/esm/models/clo_tout.js +9 -3
- package/lib/esm/models/cooling_effect.js +14 -8
- package/lib/esm/models/e_pmv.js +10 -4
- package/lib/esm/models/heat_index.js +9 -6
- package/lib/esm/models/index.js +4 -0
- package/lib/esm/models/net.js +10 -5
- package/lib/esm/models/pet_steady.js +24 -14
- package/lib/esm/models/phs.js +118 -54
- package/lib/esm/models/pmv_ppd.js +3 -2
- package/lib/esm/models/pmv_ppd_ashrae.js +47 -0
- package/lib/esm/models/pmv_ppd_iso.js +48 -0
- package/lib/esm/models/set_tmp.js +11 -6
- package/lib/esm/models/solar_gain.js +9 -10
- package/lib/esm/models/two_nodes.js +4 -1
- package/lib/esm/models/utci.js +2 -2
- package/lib/esm/models/vertical_tmp_grad_ppd.js +6 -6
- package/lib/esm/models/wbgt.js +9 -4
- package/lib/esm/types/jos3_functions/conductance.d.ts.map +1 -1
- package/lib/esm/types/jos3_functions/local_bsa.d.ts.map +1 -1
- package/lib/esm/types/jos3_functions/matrix.d.ts.map +1 -1
- package/lib/esm/types/jos3_functions/thermoregulation/ava_blood_flow.d.ts.map +1 -1
- package/lib/esm/types/jos3_functions/thermoregulation/clo_area_factor.d.ts.map +1 -1
- package/lib/esm/types/jos3_functions/thermoregulation/conv_coef.d.ts.map +1 -1
- package/lib/esm/types/jos3_functions/thermoregulation/cr_ms_fat_blood_flow.d.ts.map +1 -1
- package/lib/esm/types/jos3_functions/thermoregulation/dry_r.d.ts.map +1 -1
- package/lib/esm/types/jos3_functions/thermoregulation/error_signals.d.ts.map +1 -1
- package/lib/esm/types/jos3_functions/thermoregulation/evaporation.d.ts.map +1 -1
- package/lib/esm/types/jos3_functions/thermoregulation/fixed_hr.d.ts.map +1 -1
- package/lib/esm/types/jos3_functions/thermoregulation/local_mbase.d.ts.map +1 -1
- package/lib/esm/types/jos3_functions/thermoregulation/local_q_work.d.ts.map +1 -1
- package/lib/esm/types/jos3_functions/thermoregulation/nonshivering.d.ts.map +1 -1
- package/lib/esm/types/jos3_functions/thermoregulation/operative_temp.d.ts.map +1 -1
- package/lib/esm/types/jos3_functions/thermoregulation/rad_coef.d.ts.map +1 -1
- package/lib/esm/types/jos3_functions/thermoregulation/shivering.d.ts.map +1 -1
- package/lib/esm/types/jos3_functions/thermoregulation/skin_blood_flow.d.ts.map +1 -1
- package/lib/esm/types/jos3_functions/thermoregulation/sum_bf.d.ts.map +1 -1
- package/lib/esm/types/jos3_functions/thermoregulation/sum_m.d.ts.map +1 -1
- package/lib/esm/types/jos3_functions/thermoregulation/wet_r.d.ts.map +1 -1
- package/lib/esm/types/models/JOS3.d.ts +11 -11
- package/lib/esm/types/models/JOS3.d.ts.map +1 -1
- package/lib/esm/types/models/a_pmv.d.ts +15 -4
- package/lib/esm/types/models/a_pmv.d.ts.map +1 -1
- package/lib/esm/types/models/at.d.ts +14 -3
- package/lib/esm/types/models/at.d.ts.map +1 -1
- package/lib/esm/types/models/athb.d.ts +14 -3
- package/lib/esm/types/models/athb.d.ts.map +1 -1
- package/lib/esm/types/models/clo_tout.d.ts +13 -2
- package/lib/esm/types/models/clo_tout.d.ts.map +1 -1
- package/lib/esm/types/models/cooling_effect.d.ts +15 -4
- package/lib/esm/types/models/cooling_effect.d.ts.map +1 -1
- package/lib/esm/types/models/e_pmv.d.ts +15 -4
- package/lib/esm/types/models/e_pmv.d.ts.map +1 -1
- package/lib/esm/types/models/heat_index.d.ts +14 -3
- package/lib/esm/types/models/heat_index.d.ts.map +1 -1
- package/lib/esm/types/models/humidex.d.ts.map +1 -1
- package/lib/esm/types/models/index.d.ts +4 -0
- package/lib/esm/types/models/index.d.ts.map +1 -1
- package/lib/esm/types/models/net.d.ts +14 -3
- package/lib/esm/types/models/net.d.ts.map +1 -1
- package/lib/esm/types/models/pet_steady.d.ts +17 -3
- package/lib/esm/types/models/pet_steady.d.ts.map +1 -1
- package/lib/esm/types/models/phs.d.ts +34 -21
- package/lib/esm/types/models/phs.d.ts.map +1 -1
- package/lib/esm/types/models/pmv.d.ts +1 -1
- package/lib/esm/types/models/pmv_ppd.d.ts +1 -1
- package/lib/esm/types/models/pmv_ppd.d.ts.map +1 -1
- package/lib/esm/types/models/pmv_ppd_ashrae.d.ts +59 -0
- package/lib/esm/types/models/pmv_ppd_ashrae.d.ts.map +1 -0
- package/lib/esm/types/models/pmv_ppd_iso.d.ts +59 -0
- package/lib/esm/types/models/pmv_ppd_iso.d.ts.map +1 -0
- package/lib/esm/types/models/set_tmp.d.ts +14 -3
- package/lib/esm/types/models/set_tmp.d.ts.map +1 -1
- package/lib/esm/types/models/solar_gain.d.ts +3 -3
- package/lib/esm/types/models/solar_gain.d.ts.map +1 -1
- package/lib/esm/types/models/two_nodes.d.ts +3 -0
- package/lib/esm/types/models/two_nodes.d.ts.map +1 -1
- package/lib/esm/types/models/utci.d.ts +4 -1
- package/lib/esm/types/models/utci.d.ts.map +1 -1
- package/lib/esm/types/models/vertical_tmp_grad_ppd.d.ts +5 -5
- package/lib/esm/types/models/wbgt.d.ts +15 -4
- package/lib/esm/types/models/wbgt.d.ts.map +1 -1
- package/lib/esm/types/models/wc.d.ts.map +1 -1
- package/lib/esm/types/supa.d.ts.map +1 -1
- package/lib/esm/types/utilities/utilities.d.ts.map +1 -1
- package/package.json +21 -13
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
| **build** | [][build_link] |
|
|
6
6
|
| **tests** | [][test_link] |
|
|
7
7
|
| **page deployment** | [][deploy_link] |
|
|
8
|
-
| **snyk security** | [][snyk_link] |
|
|
9
9
|
| **license** | [](https://github.com/FedericoTartarini/jsthermalcomfort/blob/main/LICENSE) |
|
|
10
10
|
| **npm version** | [][npm_link] |
|
|
11
11
|
|
|
@@ -20,7 +20,7 @@ Please cite us if you use this package: [Tartarini, F., Schiavon, S., 2020. pyth
|
|
|
20
20
|
[build_link]: https://github.com/FedericoTartarini/jsthermalcomfort/actions/workflows/build.yml
|
|
21
21
|
[test_link]: https://github.com/FedericoTartarini/jsthermalcomfort/actions/workflows/test.yml
|
|
22
22
|
[deploy_link]: https://github.com/FedericoTartarini/jsthermalcomfort/actions/workflows/pages/pages-build-deployment
|
|
23
|
-
[
|
|
23
|
+
[snyk_link]: https://github.com/FedericoTartarini/jsthermalcomfort/actions/workflows/snyk.yml
|
|
24
24
|
[npm_link]: https://www.npmjs.com/package/jsthermalcomfort
|
|
25
25
|
|
|
26
26
|
# Official Documentation Website
|
|
@@ -35,7 +35,7 @@ npm install jsthermalcomfort
|
|
|
35
35
|
|
|
36
36
|
If you want to use jsthermalcomfort package without installing it on your local machine, you can import with:
|
|
37
37
|
|
|
38
|
-
[`https://cdn.jsdelivr.net/
|
|
38
|
+
[`https://cdn.jsdelivr.net/npm/jsthermalcomfort/lib/esm/`](https://cdn.jsdelivr.net/npm/jsthermalcomfort/lib/esm/)
|
|
39
39
|
|
|
40
40
|
Example:
|
|
41
41
|
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
models,
|
|
45
45
|
utilities,
|
|
46
46
|
pschymetrics,
|
|
47
|
-
} from "https://cdn.jsdelivr.net/
|
|
47
|
+
} from "https://cdn.jsdelivr.net/npm/jsthermalcomfort/lib/esm/index.js";
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
You can also import it in the website directly, and caution that you need to mark the script as module:
|
|
@@ -55,7 +55,7 @@ You can also import it in the website directly, and caution that you need to mar
|
|
|
55
55
|
models,
|
|
56
56
|
utilities,
|
|
57
57
|
pschymetrics,
|
|
58
|
-
} from "https://cdn.jsdelivr.net/
|
|
58
|
+
} from "https://cdn.jsdelivr.net/npm/jsthermalcomfort/lib/esm/index.js";
|
|
59
59
|
</script>
|
|
60
60
|
```
|
|
61
61
|
|
|
@@ -103,20 +103,13 @@ If you are proposing a feature:
|
|
|
103
103
|
To set up jsthermalcomfort for local development:
|
|
104
104
|
|
|
105
105
|
1. Fork jsthermalcomfort (look for the “Fork” button).
|
|
106
|
-
2. Clone your fork locally. Fetch and pull all the updates from the
|
|
106
|
+
2. Clone your fork locally. Fetch and pull all the updates from the main branch before you do anything:
|
|
107
107
|
|
|
108
108
|
```bash
|
|
109
109
|
git clone git@github.com:FedericoTartarini/jsthermalcomfort.git
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
-
We use git submodules to pull validation data for the tests, to ensure tests are successful please run:
|
|
113
|
-
|
|
114
|
-
```bash
|
|
115
|
-
git submodule update --init --recursive
|
|
116
|
-
```
|
|
117
|
-
|
|
118
112
|
3. Create a branch for local development. The naming rule for new branch are, as follows:
|
|
119
|
-
|
|
120
113
|
- If this update is for a new feature Feature/feature_name_here
|
|
121
114
|
- If this update is for bug fix Fix/bug_name_here
|
|
122
115
|
- If this update is for documentation Documentation/doc_name_here
|
|
@@ -130,7 +123,6 @@ To set up jsthermalcomfort for local development:
|
|
|
130
123
|
Now you can make your changes locally.
|
|
131
124
|
|
|
132
125
|
4. When you’re done making changes run all tests using Jest:
|
|
133
|
-
|
|
134
126
|
- Install dependencies
|
|
135
127
|
|
|
136
128
|
```bash
|
|
@@ -147,6 +139,15 @@ To set up jsthermalcomfort for local development:
|
|
|
147
139
|
npm run format
|
|
148
140
|
```
|
|
149
141
|
|
|
142
|
+
- A pre-commit hook now runs automatically on every commit and executes:
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
npm run check:format
|
|
146
|
+
npm run build
|
|
147
|
+
npm test
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
If one of these checks fails, the commit is blocked until the issue is fixed.
|
|
150
151
|
- Commit your changes:
|
|
151
152
|
|
|
152
153
|
```bash
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const JOS3Defaults = {
|
|
4
4
|
// Body information
|
|
5
|
-
height: 1.72,
|
|
6
|
-
weight: 74.43,
|
|
7
|
-
age: 20,
|
|
8
|
-
body_fat: 15,
|
|
9
|
-
cardiac_index: 2.59,
|
|
10
|
-
blood_flow_rate: 290,
|
|
11
|
-
physical_activity_ratio: 1.25,
|
|
12
|
-
metabolic_rate: 1.0,
|
|
5
|
+
height: 1.72, // [m]
|
|
6
|
+
weight: 74.43, // [kg]
|
|
7
|
+
age: 20, // [-]
|
|
8
|
+
body_fat: 15, // [%]
|
|
9
|
+
cardiac_index: 2.59, // [L/min/m2]
|
|
10
|
+
blood_flow_rate: 290, // [L/h]
|
|
11
|
+
physical_activity_ratio: 1.25, // [-]
|
|
12
|
+
metabolic_rate: 1.0, // [met]
|
|
13
13
|
sex: "male",
|
|
14
14
|
posture: "standing",
|
|
15
15
|
bmr_equation: "harris-benedict",
|
|
@@ -17,18 +17,18 @@ const JOS3Defaults = {
|
|
|
17
17
|
local_bsa: [
|
|
18
18
|
0.11, 0.029, 0.175, 0.161, 0.221, 0.096, 0.063, 0.05, 0.096, 0.063, 0.05,
|
|
19
19
|
0.209, 0.112, 0.056, 0.209, 0.112, 0.056,
|
|
20
|
-
],
|
|
20
|
+
], // body surface area [m2]
|
|
21
21
|
// Environment information
|
|
22
|
-
core_temperature: 37,
|
|
23
|
-
skin_temperature: 34,
|
|
24
|
-
other_body_temperature: 36,
|
|
25
|
-
dry_bulb_air_temperature: 28.8,
|
|
26
|
-
mean_radiant_temperature: 28.8,
|
|
27
|
-
relative_humidity: 50,
|
|
28
|
-
air_speed: 0.1,
|
|
22
|
+
core_temperature: 37, // [°C]
|
|
23
|
+
skin_temperature: 34, // [°C]
|
|
24
|
+
other_body_temperature: 36, // [°C]
|
|
25
|
+
dry_bulb_air_temperature: 28.8, // [°C]
|
|
26
|
+
mean_radiant_temperature: 28.8, // [°C]
|
|
27
|
+
relative_humidity: 50, // [%]
|
|
28
|
+
air_speed: 0.1, // [m/s]
|
|
29
29
|
// Clothing information
|
|
30
|
-
clothing_insulation: 0,
|
|
31
|
-
clothing_vapor_permeation_efficiency: 0.45,
|
|
30
|
+
clothing_insulation: 0, // [clo]
|
|
31
|
+
clothing_vapor_permeation_efficiency: 0.45, // [-]
|
|
32
32
|
lewis_rate: 16.5, // [K/kPa]
|
|
33
33
|
};
|
|
34
34
|
exports.default = JOS3Defaults;
|
|
@@ -15,18 +15,28 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.bfb_rate =
|
|
39
|
+
exports.bfb_rate = bfb_rate;
|
|
30
40
|
const JOS3Defaults_js_1 = __importDefault(require("./JOS3Defaults.js"));
|
|
31
41
|
const bsa_rate_js_1 = require("./bsa_rate.js");
|
|
32
42
|
const validate_body_parameters_js_1 = require("./validate_body_parameters.js");
|
|
@@ -63,4 +73,3 @@ function bfb_rate(height = JOS3Defaults_js_1.default.height, weight = JOS3Defaul
|
|
|
63
73
|
math.sum(JOS3Defaults_js_1.default.local_bsa);
|
|
64
74
|
return bfb_all / JOS3Defaults_js_1.default.blood_flow_rate;
|
|
65
75
|
}
|
|
66
|
-
exports.bfb_rate = bfb_rate;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.bsa_rate =
|
|
6
|
+
exports.bsa_rate = bsa_rate;
|
|
7
7
|
const JOS3Defaults_js_1 = __importDefault(require("../jos3_functions/JOS3Defaults.js"));
|
|
8
8
|
const validate_body_parameters_js_1 = require("./validate_body_parameters.js");
|
|
9
9
|
const utilities_js_1 = require("../utilities/utilities.js");
|
|
@@ -25,4 +25,3 @@ function bsa_rate(height = JOS3Defaults_js_1.default.height, weight = JOS3Defaul
|
|
|
25
25
|
const bsa_all = (0, utilities_js_1.body_surface_area)(weight, height, bsa_equation);
|
|
26
26
|
return bsa_all / JOS3Defaults_js_1.default.local_bsa.reduce((t, c) => t + c, 0);
|
|
27
27
|
}
|
|
28
|
-
exports.bsa_rate = bsa_rate;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.capacity =
|
|
6
|
+
exports.capacity = capacity;
|
|
7
7
|
const JOS3Defaults_js_1 = __importDefault(require("./JOS3Defaults.js"));
|
|
8
8
|
const validate_body_parameters_js_1 = require("./validate_body_parameters.js");
|
|
9
9
|
const bfb_rate_js_1 = require("./bfb_rate.js");
|
|
@@ -100,4 +100,3 @@ function capacity(height = JOS3Defaults_js_1.default.height, weight = JOS3Defaul
|
|
|
100
100
|
}
|
|
101
101
|
return cap_whole.map((x) => x * 3600);
|
|
102
102
|
}
|
|
103
|
-
exports.capacity = capacity;
|
|
@@ -15,18 +15,28 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.conductance =
|
|
39
|
+
exports.conductance = conductance;
|
|
30
40
|
const JOS3Defaults_js_1 = __importDefault(require("./JOS3Defaults.js"));
|
|
31
41
|
const validate_body_parameters_js_1 = require("./validate_body_parameters.js");
|
|
32
42
|
const weight_rate_js_1 = require("./weight_rate.js");
|
|
@@ -168,4 +178,3 @@ function conductance(height = JOS3Defaults_js_1.default.height, weight = JOS3Def
|
|
|
168
178
|
// Creates a symmetrical matrix
|
|
169
179
|
return math.add(cdt_whole, math.transpose(cdt_whole));
|
|
170
180
|
}
|
|
171
|
-
exports.conductance = conductance;
|
|
@@ -15,18 +15,28 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.local_bsa =
|
|
39
|
+
exports.local_bsa = local_bsa;
|
|
30
40
|
const JOS3Defaults_js_1 = __importDefault(require("./JOS3Defaults.js"));
|
|
31
41
|
const validate_body_parameters_js_1 = require("./validate_body_parameters.js");
|
|
32
42
|
const bsa_rate_js_1 = require("./bsa_rate.js");
|
|
@@ -52,4 +62,3 @@ function local_bsa(height = JOS3Defaults_js_1.default.height, weight = JOS3Defau
|
|
|
52
62
|
const bsa = (0, bsa_rate_js_1.bsa_rate)(height, weight, bsa_equation);
|
|
53
63
|
return math.matrix(math.dotMultiply(JOS3Defaults_js_1.default.local_bsa, bsa));
|
|
54
64
|
}
|
|
55
|
-
exports.local_bsa = local_bsa;
|
|
@@ -15,16 +15,29 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var _a, _b;
|
|
26
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.VINDEX = exports.INDEX = exports.
|
|
37
|
+
exports.VINDEX = exports.INDEX = exports.NUM_NODES = exports.IDICT = exports.LAYER_NAMES = exports.BODY_NAMES = void 0;
|
|
38
|
+
exports.vessel_blood_flow = vessel_blood_flow;
|
|
39
|
+
exports.local_arr = local_arr;
|
|
40
|
+
exports.whole_body = whole_body;
|
|
28
41
|
const math = __importStar(require("mathjs"));
|
|
29
42
|
exports.BODY_NAMES = [
|
|
30
43
|
"head",
|
|
@@ -183,7 +196,6 @@ function vessel_blood_flow(bf_core, bf_muscle, bf_fat, bf_skin, bf_ava_hand, bf_
|
|
|
183
196
|
bf_vein.set([16], xbf.get([16]));
|
|
184
197
|
return { bf_art, bf_vein };
|
|
185
198
|
}
|
|
186
|
-
exports.vessel_blood_flow = vessel_blood_flow;
|
|
187
199
|
/**
|
|
188
200
|
* Create matrix to calculate heat exchange by blood flow in each segment.
|
|
189
201
|
*
|
|
@@ -228,7 +240,6 @@ function local_arr(bf_core, bf_muscle, bf_fat, bf_skin, bf_ava_hand, bf_ava_foot
|
|
|
228
240
|
}
|
|
229
241
|
return bf_local;
|
|
230
242
|
}
|
|
231
|
-
exports.local_arr = local_arr;
|
|
232
243
|
/**
|
|
233
244
|
* Create matrix to calculate heat exchange by blood flow between segments. [W/K]
|
|
234
245
|
*
|
|
@@ -308,7 +319,6 @@ function whole_body(bf_art, bf_vein, bf_ava_hand, bf_ava_foot) {
|
|
|
308
319
|
flow(right_thigh + 2, pelvis + 1, bf_ava_foot); // right_thigh.vein to pelvis
|
|
309
320
|
return arr83;
|
|
310
321
|
}
|
|
311
|
-
exports.whole_body = whole_body;
|
|
312
322
|
_b = (function () {
|
|
313
323
|
const index_by_layer = (layer) => {
|
|
314
324
|
const out_index = [];
|
|
@@ -15,18 +15,28 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ava_blood_flow =
|
|
39
|
+
exports.ava_blood_flow = ava_blood_flow;
|
|
30
40
|
const supa_js_1 = require("../../supa.js");
|
|
31
41
|
const JOS3Defaults_js_1 = __importDefault(require("../JOS3Defaults.js"));
|
|
32
42
|
const bfb_rate_js_1 = require("../bfb_rate.js");
|
|
@@ -72,4 +82,3 @@ function ava_blood_flow(err_cr, err_sk, height = JOS3Defaults_js_1.default.heigh
|
|
|
72
82
|
let bf_ava_foot = 2.16 * bfbrate * sig_ava_foot;
|
|
73
83
|
return { bf_ava_hand, bf_ava_foot };
|
|
74
84
|
}
|
|
75
|
-
exports.ava_blood_flow = ava_blood_flow;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.basal_met =
|
|
6
|
+
exports.basal_met = basal_met;
|
|
7
7
|
const JOS3Defaults_js_1 = __importDefault(require("../JOS3Defaults.js"));
|
|
8
8
|
/**
|
|
9
9
|
* Calculate basal metabolic rate [W].
|
|
@@ -52,4 +52,3 @@ function basal_met(height = JOS3Defaults_js_1.default.height, weight = JOS3Defau
|
|
|
52
52
|
}
|
|
53
53
|
return bmr * 0.048; // [kcal/day] to [W]
|
|
54
54
|
}
|
|
55
|
-
exports.basal_met = basal_met;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.clo_area_factor =
|
|
3
|
+
exports.clo_area_factor = clo_area_factor;
|
|
4
4
|
/**
|
|
5
5
|
* Calculate clothing area factor
|
|
6
6
|
*
|
|
@@ -11,4 +11,3 @@ exports.clo_area_factor = void 0;
|
|
|
11
11
|
function clo_area_factor(clo) {
|
|
12
12
|
return clo.map((clo) => (clo < 0.5 ? clo * 0.2 + 1 : clo * 0.1 + 1.05));
|
|
13
13
|
}
|
|
14
|
-
exports.clo_area_factor = clo_area_factor;
|
|
@@ -15,18 +15,28 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.conv_coef =
|
|
39
|
+
exports.conv_coef = conv_coef;
|
|
30
40
|
const JOS3Defaults_js_1 = __importDefault(require("../JOS3Defaults.js"));
|
|
31
41
|
const math = __importStar(require("mathjs"));
|
|
32
42
|
/**
|
|
@@ -124,4 +134,3 @@ function conv_coef(posture = JOS3Defaults_js_1.default.posture, v = math.multipl
|
|
|
124
134
|
let hc_forced = forced_convection(v);
|
|
125
135
|
return v.map((z, idx) => z < 0.2 ? hc_natural.get(idx) : hc_forced.get(idx));
|
|
126
136
|
}
|
|
127
|
-
exports.conv_coef = conv_coef;
|
|
@@ -15,18 +15,28 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.cr_ms_fat_blood_flow =
|
|
39
|
+
exports.cr_ms_fat_blood_flow = cr_ms_fat_blood_flow;
|
|
30
40
|
const JOS3Defaults_js_1 = __importDefault(require("../JOS3Defaults.js"));
|
|
31
41
|
const bfb_rate_js_1 = require("../bfb_rate.js");
|
|
32
42
|
const matrix_js_1 = require("../matrix.js");
|
|
@@ -83,4 +93,3 @@ function cr_ms_fat_blood_flow(q_work, q_shiv, height = JOS3Defaults_js_1.default
|
|
|
83
93
|
}
|
|
84
94
|
return { bf_core, bf_muscle, bf_fat };
|
|
85
95
|
}
|
|
86
|
-
exports.cr_ms_fat_blood_flow = cr_ms_fat_blood_flow;
|
|
@@ -15,15 +15,25 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.dry_r =
|
|
36
|
+
exports.dry_r = dry_r;
|
|
27
37
|
const clo_area_factor_js_1 = require("./clo_area_factor.js");
|
|
28
38
|
const math = __importStar(require("mathjs"));
|
|
29
39
|
/**
|
|
@@ -44,4 +54,3 @@ function dry_r(hc, hr, clo) {
|
|
|
44
54
|
let r_cl = math.dotMultiply(0.155, clo);
|
|
45
55
|
return math.add(math.dotDivide(r_a, fcl), r_cl);
|
|
46
56
|
}
|
|
47
|
-
exports.dry_r = dry_r;
|
|
@@ -15,15 +15,25 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.error_signals =
|
|
36
|
+
exports.error_signals = error_signals;
|
|
27
37
|
const math = __importStar(require("mathjs"));
|
|
28
38
|
/**
|
|
29
39
|
* @typedef ErrorSignalsResult
|
|
@@ -52,4 +62,3 @@ function error_signals(err_sk = math.zeros(17)) {
|
|
|
52
62
|
let clds = math.sum(cld);
|
|
53
63
|
return { wrms, clds };
|
|
54
64
|
}
|
|
55
|
-
exports.error_signals = error_signals;
|
|
@@ -15,18 +15,29 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
39
|
+
exports.antoine = void 0;
|
|
40
|
+
exports.evaporation = evaporation;
|
|
30
41
|
const JOS3Defaults_js_1 = __importDefault(require("../JOS3Defaults.js"));
|
|
31
42
|
const error_signals_js_1 = require("./error_signals.js");
|
|
32
43
|
const bsa_rate_js_1 = require("../bsa_rate.js");
|
|
@@ -91,4 +102,3 @@ function evaporation(err_cr, err_sk, t_skin, tdb, rh, ret, height = JOS3Defaults
|
|
|
91
102
|
e_sweat = math.dotMultiply(math.divide(math.subtract(wet, 0.06), 0.94), e_max);
|
|
92
103
|
return { wet, e_sk, e_max, e_sweat };
|
|
93
104
|
}
|
|
94
|
-
exports.evaporation = evaporation;
|