@mark1russell7/stack-needs 0.9.8 → 0.9.10
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 +28 -3
- package/build/index.d.ts +121 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +233 -2
- package/build/index.js.map +1 -1
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -351,8 +351,8 @@ The 2025-2030 edition of the guidelines was read on 2026-11-24. It has no table
|
|
|
351
351
|
| `warmth.shelter` | `kWh` | household | no read |
|
|
352
352
|
|
|
353
353
|
- `alert.watch` comes from two pages of the National Weather Service (read on 2026-11-24). Many receivers have a muted standby mode that turns on when a warning comes. Warnings also come at night. Thus a receiver stays on and listens at all hours, so 24 hours each day. One receiver for each home is a choice of this model, not of the pages. The pages are in the public domain (the license `us-public-domain`).
|
|
354
|
-
- `light.see` is a no read. The kit lists of Ready.gov give a flashlight and extra batteries, but no hours of use each day. The hours of dark are the same for all the persons of a home, so the users are the household. The count of lights of each person is a fact of the plan or the device.
|
|
355
|
-
- `warmth.shelter` is a no read. The heat that a home needs changes with the weather, the building and the persons. It is space heat only. The blankets and the sleeping bags of each person are gear, not this need.
|
|
354
|
+
- `light.see` is a no read. The kit lists of Ready.gov give a flashlight and extra batteries, but no hours of use each day. The hours of dark are the same for all the persons of a home, so the users are the household. The count of lights of each person is a fact of the plan or the device. `lightNeed` gives a read from the point of the home and its awake window.
|
|
355
|
+
- `warmth.shelter` is a no read. The heat that a home needs changes with the weather, the building and the persons. It is space heat only. The blankets and the sleeping bags of each person are gear, not this need. `warmthNeed` gives a read from the facts of the building and the temperatures.
|
|
356
356
|
- A user gives each no read as input data.
|
|
357
357
|
- The rate of a device is a fact of the device, not of the need. An example is the watts of a radio in standby.
|
|
358
358
|
|
|
@@ -372,8 +372,33 @@ The gate refuses an empty code and two needs with one code (`daily-need-id`). It
|
|
|
372
372
|
- With the input `draws`, each need of a device gives one draw at the daily rate of the need. A need with no read of its rate gives no draw, and a no read.
|
|
373
373
|
- The fragment has no store. The cells come from the stores of the buy list, for example the product `power.aa-alkaline` of the catalog.
|
|
374
374
|
|
|
375
|
+
## The hours of light
|
|
376
|
+
|
|
377
|
+
`lightHours` gives the dark hours of the awake window of a household on each date of a plan. `lightNeed` changes them into a read of the need `light.see`.
|
|
378
|
+
|
|
379
|
+
- The input is the point of the home, the awake window in local time, the first date and the count of days. The point and the window are input data of the household.
|
|
380
|
+
- The light is the time from the sunrise to the sunset of `sunDay` of `@mark1russell7/geo`. A polar day is light, and a polar night is dark.
|
|
381
|
+
- The awake window is a `TimeWindow` of `@mark1russell7/algebra/clock`. It follows the wall clock, also at a change of the clock.
|
|
382
|
+
- A local date is the time from its local midnight to the next local midnight. A window across midnight gives its hours to each date by the clock.
|
|
383
|
+
- The result gives each day, the most of the worst day and the mean.
|
|
384
|
+
- The rate of `lightNeed` is the most. One light that is on in those hours is a choice of this model, not of the sources.
|
|
385
|
+
- The sources are the pages "Position of the Sun" and "Sunrise equation" of Wikipedia (license `cc-by-sa-4.0`). The code uses their formulas, not their text.
|
|
386
|
+
|
|
387
|
+
The read goes into `deviceFragment` through the input `needs`. Then the need of light gets a draw.
|
|
388
|
+
|
|
389
|
+
## The heat of a home
|
|
390
|
+
|
|
391
|
+
`warmthHeat` gives the space heat that a home needs on each day of a plan. `warmthNeed` changes it into a read of the need `warmth.shelter`.
|
|
392
|
+
|
|
393
|
+
- The heat loss coefficient of the home is in watts for each kelvin. `heatLossOf` sums the area times the U-value of each element of the envelope.
|
|
394
|
+
- `heatLossFromUse` gives the same coefficient from the heat of a past period, divided by its degree days times 24 hours. The heat is the energy of the heaters, not the fuel.
|
|
395
|
+
- The heat flow of a day is the coefficient times the indoor temperature minus the outdoor temperature, minus the gains of the persons. A flow of 0 or less needs no heat.
|
|
396
|
+
- The indoor target, the outdoor temperature of each day and the facts of the building are input data of the household. The package has no default target.
|
|
397
|
+
- The rate of `warmthNeed` is the heat of the worst day, in `kWh/d`.
|
|
398
|
+
- The sources are the pages "Thermal transmittance" and "Degree day" of Wikipedia (license `cc-by-sa-4.0`).
|
|
399
|
+
|
|
375
400
|
## The entries
|
|
376
401
|
|
|
377
402
|
| Entry | What it has |
|
|
378
403
|
| --- | --- |
|
|
379
|
-
| `@mark1russell7/stack-needs` | The records, the calorie tables and `CALORIE_CHAIN`, the gates, `calorieNeed`, `householdFragment`, `cookFragment` and its constants, `formulaMixFragment` and `FORMULA_MIX`, `deviceFragment`, the daily needs, the uses, the supply parts and `checkJoins`. |
|
|
404
|
+
| `@mark1russell7/stack-needs` | The records, the calorie tables and `CALORIE_CHAIN`, the gates, `calorieNeed`, `householdFragment`, `cookFragment` and its constants, `formulaMixFragment` and `FORMULA_MIX`, `deviceFragment`, `lightHours`, `lightNeed`, `warmthHeat`, `warmthNeed`, `heatLossOf`, `heatLossFromUse`, the daily needs, the uses, the supply parts and `checkJoins`. |
|
package/build/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Quantity } from "@mark1russell7/quantity";
|
|
2
2
|
import { Finding, FindingCode, GateOptions, Source } from "@mark1russell7/guidebook";
|
|
3
3
|
import { BuyListEnergy, HeatingValue, StoveFacts, SupplyCatalog } from "@mark1russell7/market/supplies";
|
|
4
|
+
import { CivilDate, TimeWindow } from "@mark1russell7/algebra/clock";
|
|
5
|
+
import { LatLon } from "@mark1russell7/geo";
|
|
4
6
|
/** The activity levels of the table, as the source names them: sedentary, moderately active and active. */
|
|
5
7
|
export declare const ACTIVITY_LEVELS: readonly ["sedentary", "moderately-active", "active"];
|
|
6
8
|
/** An activity level of the table. */
|
|
@@ -971,8 +973,9 @@ export declare const NWS_ALARMS_SOURCE: Source;
|
|
|
971
973
|
* - `alert.watch`: 24 hours each day for each household. The sources give a standby mode that turns on at an alert, and warnings at night.
|
|
972
974
|
* Thus a receiver stays on at all hours to get a warning. One receiver for each home is a choice of this model.
|
|
973
975
|
* - `light.see`: no read, for each household. The kit lists of official sources give a flashlight and extra batteries, but no hours of use.
|
|
974
|
-
* The count of lights of each person is a fact of the plan or the device.
|
|
976
|
+
* The count of lights of each person is a fact of the plan or the device. `lightNeed` gives a read from the point and the awake window.
|
|
975
977
|
* - `warmth.shelter`: no read. The heat of a home changes with the weather, the building and the persons. It is space heat only.
|
|
978
|
+
* `warmthNeed` gives a read from the facts of the building and the temperatures.
|
|
976
979
|
*/
|
|
977
980
|
export declare const DAILY_NEEDS: readonly DailyNeed[];
|
|
978
981
|
/**
|
|
@@ -1104,4 +1107,121 @@ export interface DeviceFragmentResult {
|
|
|
1104
1107
|
* @throws RangeError for a device whose cells are not a resource of the catalog
|
|
1105
1108
|
*/
|
|
1106
1109
|
export declare function deviceFragment(input: DeviceFragmentInput): DeviceFragmentResult;
|
|
1110
|
+
/** The page "Position of the Sun" of Wikipedia: the formulas of the place of the sun that `sunDay` of `@mark1russell7/geo` uses. */
|
|
1111
|
+
export declare const SUN_POSITION_SOURCE: Source;
|
|
1112
|
+
/** The page "Sunrise equation" of Wikipedia: the hour angle of the sunrise and the sunset that `sunDay` of `@mark1russell7/geo` uses. */
|
|
1113
|
+
export declare const SUNRISE_EQUATION_SOURCE: Source;
|
|
1114
|
+
/** The most days of one calculation of the light hours: three years. */
|
|
1115
|
+
export declare const MAX_LIGHT_DAYS = 1096;
|
|
1116
|
+
/** The input of `lightHours`. */
|
|
1117
|
+
export interface LightHoursInput {
|
|
1118
|
+
/** The point of the home. It is input data of the household. */
|
|
1119
|
+
readonly point: LatLon;
|
|
1120
|
+
/** The awake window of the household in its local time, for example 07:00 to 23:00 in its time zone. */
|
|
1121
|
+
readonly awake: TimeWindow;
|
|
1122
|
+
/** The first date of the plan, `YYYY-MM-DD`, in the local time of the window. */
|
|
1123
|
+
readonly from: CivilDate;
|
|
1124
|
+
/** The count of the days of the plan, a whole number from 1 to `MAX_LIGHT_DAYS`. */
|
|
1125
|
+
readonly days: number;
|
|
1126
|
+
/** The altitude of the sun at which the dark starts, in degrees. The default is the sunrise altitude of `@mark1russell7/geo`. */
|
|
1127
|
+
readonly altitudeDeg?: number | undefined;
|
|
1128
|
+
}
|
|
1129
|
+
/** The hours of one local date: the awake hours, and the awake hours in the dark. */
|
|
1130
|
+
export interface LightDay {
|
|
1131
|
+
readonly date: CivilDate;
|
|
1132
|
+
readonly awakeHours: number;
|
|
1133
|
+
readonly darkHours: number;
|
|
1134
|
+
}
|
|
1135
|
+
/** The result of `lightHours`: each day, and the most and the mean of the dark awake hours. */
|
|
1136
|
+
export interface LightHours {
|
|
1137
|
+
readonly days: readonly LightDay[];
|
|
1138
|
+
/** The dark awake hours of the worst day. */
|
|
1139
|
+
readonly most: number;
|
|
1140
|
+
/** The mean of the dark awake hours of the days. */
|
|
1141
|
+
readonly mean: number;
|
|
1142
|
+
}
|
|
1143
|
+
/**
|
|
1144
|
+
* This function gives the dark hours of the awake window of a household on each local date of a plan.
|
|
1145
|
+
*
|
|
1146
|
+
* - A local date is the time from its local midnight to the next local midnight. The hours of a window across midnight go to each date by the clock.
|
|
1147
|
+
* - The light is the time from the sunrise to the sunset of `sunDay` of `@mark1russell7/geo`. A polar day is light, and a polar night is dark.
|
|
1148
|
+
* - The dark awake hours of a date are its awake hours minus its awake hours in the light.
|
|
1149
|
+
*
|
|
1150
|
+
* @throws RangeError - The window has a problem, or the date is not a date. Or the count of days is not a whole number from 1 to `MAX_LIGHT_DAYS`.
|
|
1151
|
+
*/
|
|
1152
|
+
export declare function lightHours(input: LightHoursInput): LightHours;
|
|
1153
|
+
/**
|
|
1154
|
+
* This function gives the need of light of a household from its light hours: the dark awake hours of its worst day.
|
|
1155
|
+
* One light that is on in the dark awake hours is a choice of this model. A household with more lights gives more draws.
|
|
1156
|
+
*/
|
|
1157
|
+
export declare function lightNeed(hours: LightHours): DailyNeed;
|
|
1158
|
+
/** The page "Thermal transmittance" of Wikipedia: the heat flow through an element is its area times its U-value times the difference of the temperatures. */
|
|
1159
|
+
export declare const THERMAL_TRANSMITTANCE_SOURCE: Source;
|
|
1160
|
+
/** The page "Degree day" of Wikipedia: the energy to keep the base temperature indoors is approximately in proportion to the degree days. */
|
|
1161
|
+
export declare const DEGREE_DAY_SOURCE: Source;
|
|
1162
|
+
/** The most days of one calculation of the warmth: three years. */
|
|
1163
|
+
export declare const MAX_WARMTH_DAYS = 1096;
|
|
1164
|
+
/** One element of the envelope of a home: a wall, a roof, a floor or a window. */
|
|
1165
|
+
export interface EnvelopeElement {
|
|
1166
|
+
/** The area, in square metres. */
|
|
1167
|
+
readonly areaM2: number;
|
|
1168
|
+
/** The thermal transmittance (U-value), in watts for each square metre and each kelvin. */
|
|
1169
|
+
readonly uWm2K: number;
|
|
1170
|
+
}
|
|
1171
|
+
/**
|
|
1172
|
+
* This function gives the heat loss coefficient of a home, in watts for each kelvin. It is the sum of the area times the U-value of each element.
|
|
1173
|
+
* Air leaks are not in the sum. A caller adds them as an element, or uses `heatLossFromUse`.
|
|
1174
|
+
*
|
|
1175
|
+
* @throws RangeError - An area or a U-value is not a finite number of 0 or more, or the list is empty.
|
|
1176
|
+
*/
|
|
1177
|
+
export declare function heatLossOf(elements: readonly EnvelopeElement[]): number;
|
|
1178
|
+
/**
|
|
1179
|
+
* This function gives the heat loss coefficient of a home from the heat of a past period, in watts for each kelvin.
|
|
1180
|
+
* The heat is the energy that the heaters gave, not the fuel. The degree days are on the balance temperature of the home.
|
|
1181
|
+
* The coefficient is the heat divided by the degree days times 24 hours.
|
|
1182
|
+
*
|
|
1183
|
+
* @param heatKWh - The heat of the period, in `kWh`, a finite number of 0 or more
|
|
1184
|
+
* @param degreeDaysKd - The heating degree days of the period on the balance temperature, in kelvin days, a finite number above 0
|
|
1185
|
+
* @throws RangeError - The heat or the degree days are out of range.
|
|
1186
|
+
*/
|
|
1187
|
+
export declare function heatLossFromUse(heatKWh: number, degreeDaysKd: number): number;
|
|
1188
|
+
/** The input of `warmthHeat`. */
|
|
1189
|
+
export interface WarmthInput {
|
|
1190
|
+
/** The heat loss coefficient of the home, in watts for each kelvin. `heatLossOf` and `heatLossFromUse` give it. */
|
|
1191
|
+
readonly heatLossWK: number;
|
|
1192
|
+
/** The indoor temperature that the household keeps in a cut, in degrees Celsius. It is a choice of the household. */
|
|
1193
|
+
readonly indoorC: number;
|
|
1194
|
+
/** The mean outdoor temperature of each day of the plan, in degrees Celsius, for example a cold week of the place. */
|
|
1195
|
+
readonly outdoorC: readonly number[];
|
|
1196
|
+
/** The heat that the persons and the devices give in the cut, in watts. The default is 0. */
|
|
1197
|
+
readonly gainsW?: number | undefined;
|
|
1198
|
+
}
|
|
1199
|
+
/** The heat of one day of the plan. */
|
|
1200
|
+
export interface WarmthDay {
|
|
1201
|
+
readonly outdoorC: number;
|
|
1202
|
+
/** The heat that the heaters must give on the day, in `kWh`. */
|
|
1203
|
+
readonly heatKWh: number;
|
|
1204
|
+
}
|
|
1205
|
+
/** The result of `warmthHeat`: each day, and the most and the mean of the heat of a day. */
|
|
1206
|
+
export interface WarmthHeat {
|
|
1207
|
+
readonly days: readonly WarmthDay[];
|
|
1208
|
+
/** The heat of the worst day, in `kWh`. */
|
|
1209
|
+
readonly most: number;
|
|
1210
|
+
/** The mean heat of the days, in `kWh`. */
|
|
1211
|
+
readonly mean: number;
|
|
1212
|
+
}
|
|
1213
|
+
/**
|
|
1214
|
+
* This function gives the heat that a home needs on each day of a plan, in `kWh`.
|
|
1215
|
+
*
|
|
1216
|
+
* - The heat flow is the heat loss coefficient times the indoor temperature minus the outdoor temperature, minus the gains.
|
|
1217
|
+
* - A day with a flow of 0 or less needs no heat. The heat of a day is the flow times 24 hours.
|
|
1218
|
+
*
|
|
1219
|
+
* @throws RangeError - A value is not a finite number, or the coefficient or the gains are less than 0. Or the count of days is not from 1 to `MAX_WARMTH_DAYS`.
|
|
1220
|
+
*/
|
|
1221
|
+
export declare function warmthHeat(input: WarmthInput): WarmthHeat;
|
|
1222
|
+
/**
|
|
1223
|
+
* This function gives the need of space heat of a household from its heat: the heat of its worst day, in `kWh` each day.
|
|
1224
|
+
* The facts of the building, the indoor target and the outdoor temperatures are input data. The sources give the method.
|
|
1225
|
+
*/
|
|
1226
|
+
export declare function warmthNeed(heat: WarmthHeat): DailyNeed;
|
|
1107
1227
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/calorie.ts","../src/data.ts","../src/check.ts","../src/uses.ts","../src/household.ts","../src/cook.ts","../src/mix.ts","../src/daily.ts","../src/device.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/calorie.ts","../src/data.ts","../src/check.ts","../src/uses.ts","../src/household.ts","../src/cook.ts","../src/mix.ts","../src/daily.ts","../src/device.ts","../src/light.ts","../src/warmth.ts"],"mappings":";;;;;;qBAQa;;YAGD,wBAAwB;;qBAGvB;;YAGD,qBAAqB;;;;;YAMrB;WAAyB,QAAQ,SAAS,OAAO,eAAe;WAAqB;;WAA4B,MAAM;WAAmB;;;iBAGrI;WACN,KAAK;;WAEL;;WAEA;;WAEA;WACA,MAAM;;;;;;iBAOA;;WAEN;;WAEA;;WAEA,KAAK;;WAEL,QAAQ;;WAER;;WAEA;;;iBAIM;;WAEN;WACA;WACA,QAAQ;;WAER;;WAEA,eAAe;;WAEf,mBAAmB;;;;;;YAOlB,gBAAgB,wBAAwB;;;;;;;;qBASvC;;YAGD,wBAAwB;;iBAGnB;WACN,KAAK;;WAEL;WACA;;WAEA,QAAQ;;WAER;;;;;WAKA,UAAU;;;YAIT;WACG,QAAQ;WAAiB;WAAqB,OAAO;WAAwB;WAAwB;WAAsB;WAAqC,MAAM;;WACtK,QAAQ;WAAiB;WAAsB;;;iBAG7C;;WAEN,gBAAgB;;WAEhB;;WAEA,MAAM;;WAEN;;;wBASK,gBAAgB,iBAAiB,SAAS;;;;;;;;wBAW1C,WAAW,OAAO,cAAc,KAAK,YAAY,oBAAoB;;;;;;;;;wBAYrE,aAAa,QAAQ,eAAe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;;WAEzC;;;iBAIM;WACN;WACA;;;iBAIM;;WAEN,SAAS;;WAET,OAAO,SAAS;;;;;WAKhB,OAAO,SAAS,eAAe;;WAE/B,QAAQ,SAAS;;WAEjB,QAAQ;;WAER,iBAAiB;;WAEjB;;;YAIC;WAAwB;WAAqB;WAAwB;;WAA4B;WAAsB;;;iBAGlH;WACN;;WAEA;;WAEA;;WAEA;;WAEA,OAAO;;;iBAID,wBAAwB;WAC9B;WACA;;;iBAIM;;WAEN;WACA;WACA,oBAAoB;WACpB;WACA,gBAAgB;WAChB,qBAAqB;;;YAIpB;WAA0B;WAA0B;WAAuB;;WAA2B;WAAuB;WAA0B;;;iBAGlJ;WACN,OAAO;;WAEP,gBAAgB;;WAEhB,kBAAkB;;WAElB;;;;;;;;;;;;;;wBA4CK,eAAe,OAAO,sBAAsB;;qBChI/C,qBAAqB;;qBAWrB,yBAAyB;;qBAWzB;;iBAMI;;WAEN,OAAO;;WAEP,OAAO;;WAEP,MAAM;;WAEN;;WAEA;;;iBAIM;WACN,MAAM;WACN;WACA;;;iBAIM;WACN,eAAe;;WAEf;;WAEA;;;;;;;;;;;wBAiEK,WAAW,OAAO,kBAAkB;;;;;wBAiCpC,UAAU,OAAO,aAAa;;qBC3JjC,8BAA8B;;qBAW9B,mBAAmB;;qBAWnB;;iBAGI;;WAEN;;WAEA;;;;;;;;wBASK,WAAW,mBAAmB;;;;;;;;;;wBAoB9B,gBAAgB,iBAAiB;;iBAOhC;;WAEN;;WAEA;;WAEA;;WAEA;;;iBAIM;WACN;;WAEA;;;iBAIM;WACN,eAAe;;WAEf;;WAEA;;;;;;;;;;wBAWK,WAAW,OAAO,cAAc;;;;;wBAoBhC,WAAW,MAAM,aAAa"}
|
package/build/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { canonicalUnit, quantity, valueIn } from "@mark1russell7/quantity";
|
|
2
2
|
import { checkSources } from "@mark1russell7/guidebook";
|
|
3
3
|
import { buyListEnergy, cookWater, fuelEnergyPerMass, giftsOf } from "@mark1russell7/market/supplies";
|
|
4
|
+
import { addDays, firstInstantOf, inWindow, nextBoundary, windowProblems } from "@mark1russell7/algebra/clock";
|
|
5
|
+
import { sunDay } from "@mark1russell7/geo";
|
|
4
6
|
// src/calorie.ts
|
|
5
7
|
/** The activity levels of the table, as the source names them: sedentary, moderately active and active. */
|
|
6
8
|
const ACTIVITY_LEVELS = [
|
|
@@ -2158,8 +2160,9 @@ const NWS_ALARMS_SOURCE = {
|
|
|
2158
2160
|
* - `alert.watch`: 24 hours each day for each household. The sources give a standby mode that turns on at an alert, and warnings at night.
|
|
2159
2161
|
* Thus a receiver stays on at all hours to get a warning. One receiver for each home is a choice of this model.
|
|
2160
2162
|
* - `light.see`: no read, for each household. The kit lists of official sources give a flashlight and extra batteries, but no hours of use.
|
|
2161
|
-
* The count of lights of each person is a fact of the plan or the device.
|
|
2163
|
+
* The count of lights of each person is a fact of the plan or the device. `lightNeed` gives a read from the point and the awake window.
|
|
2162
2164
|
* - `warmth.shelter`: no read. The heat of a home changes with the weather, the building and the persons. It is space heat only.
|
|
2165
|
+
* `warmthNeed` gives a read from the facts of the building and the temperatures.
|
|
2163
2166
|
*/
|
|
2164
2167
|
const DAILY_NEEDS = [
|
|
2165
2168
|
{
|
|
@@ -2447,6 +2450,234 @@ function deviceFragment(input) {
|
|
|
2447
2450
|
read: noReads.length === 0
|
|
2448
2451
|
};
|
|
2449
2452
|
}
|
|
2450
|
-
|
|
2453
|
+
// src/light.ts
|
|
2454
|
+
/** The page "Position of the Sun" of Wikipedia: the formulas of the place of the sun that `sunDay` of `@mark1russell7/geo` uses. */
|
|
2455
|
+
const SUN_POSITION_SOURCE = {
|
|
2456
|
+
id: "wikipedia-position-of-the-sun",
|
|
2457
|
+
title: "Position of the Sun",
|
|
2458
|
+
url: "https://en.wikipedia.org/w/index.php?title=Position_of_the_Sun&oldid=1386341289",
|
|
2459
|
+
license: "cc-by-sa-4.0",
|
|
2460
|
+
checked: "2026-11-24",
|
|
2461
|
+
by: "Wikipedia contributors",
|
|
2462
|
+
terms: "https://foundation.wikimedia.org/wiki/Policy:Terms_of_Use"
|
|
2463
|
+
};
|
|
2464
|
+
/** The page "Sunrise equation" of Wikipedia: the hour angle of the sunrise and the sunset that `sunDay` of `@mark1russell7/geo` uses. */
|
|
2465
|
+
const SUNRISE_EQUATION_SOURCE = {
|
|
2466
|
+
id: "wikipedia-sunrise-equation",
|
|
2467
|
+
title: "Sunrise equation",
|
|
2468
|
+
url: "https://en.wikipedia.org/w/index.php?title=Sunrise_equation&oldid=1379585755",
|
|
2469
|
+
license: "cc-by-sa-4.0",
|
|
2470
|
+
checked: "2026-11-24",
|
|
2471
|
+
by: "Wikipedia contributors",
|
|
2472
|
+
terms: "https://foundation.wikimedia.org/wiki/Policy:Terms_of_Use"
|
|
2473
|
+
};
|
|
2474
|
+
/** The most days of one calculation of the light hours: three years. */
|
|
2475
|
+
const MAX_LIGHT_DAYS = 1096;
|
|
2476
|
+
const HOUR_MS = 36e5;
|
|
2477
|
+
const DAY_MS = 864e5;
|
|
2478
|
+
/** This function gives the instant of the start of a local date, or throws a RangeError. */
|
|
2479
|
+
function startOf(date, zone) {
|
|
2480
|
+
const [year, month, day] = date.split("-").map(Number);
|
|
2481
|
+
const at = firstInstantOf(Date.UTC(year, month - 1, day), zone);
|
|
2482
|
+
if (at === void 0) throw new RangeError(`The date ${date} has no start in the time zone "${zone}".`);
|
|
2483
|
+
return at;
|
|
2484
|
+
}
|
|
2485
|
+
/** This function gives the awake spans of the window in one local day. */
|
|
2486
|
+
function awakeSpans(dayStart, dayEnd, window) {
|
|
2487
|
+
const spans = [];
|
|
2488
|
+
let at = dayStart;
|
|
2489
|
+
let open = inWindow(at, window);
|
|
2490
|
+
while (at < dayEnd) {
|
|
2491
|
+
const next = nextBoundary(at, window);
|
|
2492
|
+
const end = next === void 0 ? dayEnd : Math.min(next.at, dayEnd);
|
|
2493
|
+
if (open) spans.push([at, end]);
|
|
2494
|
+
if (next === void 0) break;
|
|
2495
|
+
at = next.at;
|
|
2496
|
+
open = next.opens;
|
|
2497
|
+
}
|
|
2498
|
+
return spans;
|
|
2499
|
+
}
|
|
2500
|
+
/** This function gives the span of light of a sun day. A polar day is light for 24 hours about its solar noon. */
|
|
2501
|
+
function lightSpan(day) {
|
|
2502
|
+
if (day.kind === "rise-set") return [day.rise, day.set];
|
|
2503
|
+
if (day.kind === "polar-day") return [day.noon - DAY_MS / 2, day.noon + DAY_MS / 2];
|
|
2504
|
+
}
|
|
2505
|
+
/** This function joins spans that touch or overlap, in order. */
|
|
2506
|
+
function union(spans) {
|
|
2507
|
+
const sorted = [...spans].sort((a, b) => a[0] - b[0]);
|
|
2508
|
+
const out = [];
|
|
2509
|
+
for (const [start, end] of sorted) {
|
|
2510
|
+
const last = out[out.length - 1];
|
|
2511
|
+
if (last !== void 0 && start <= last[1]) last[1] = Math.max(last[1], end);
|
|
2512
|
+
else out.push([start, end]);
|
|
2513
|
+
}
|
|
2514
|
+
return out;
|
|
2515
|
+
}
|
|
2516
|
+
/** This function gives the length of the common part of two lists of spans, in milliseconds. */
|
|
2517
|
+
function overlap(a, b) {
|
|
2518
|
+
let total = 0;
|
|
2519
|
+
for (const [aStart, aEnd] of a) for (const [bStart, bEnd] of b) total += Math.max(0, Math.min(aEnd, bEnd) - Math.max(aStart, bStart));
|
|
2520
|
+
return total;
|
|
2521
|
+
}
|
|
2522
|
+
/**
|
|
2523
|
+
* This function gives the dark hours of the awake window of a household on each local date of a plan.
|
|
2524
|
+
*
|
|
2525
|
+
* - A local date is the time from its local midnight to the next local midnight. The hours of a window across midnight go to each date by the clock.
|
|
2526
|
+
* - The light is the time from the sunrise to the sunset of `sunDay` of `@mark1russell7/geo`. A polar day is light, and a polar night is dark.
|
|
2527
|
+
* - The dark awake hours of a date are its awake hours minus its awake hours in the light.
|
|
2528
|
+
*
|
|
2529
|
+
* @throws RangeError - The window has a problem, or the date is not a date. Or the count of days is not a whole number from 1 to `MAX_LIGHT_DAYS`.
|
|
2530
|
+
*/
|
|
2531
|
+
function lightHours(input) {
|
|
2532
|
+
const problems = windowProblems(input.awake);
|
|
2533
|
+
if (problems.length > 0) throw new RangeError(problems.join(" "));
|
|
2534
|
+
if (!Number.isInteger(input.days) || input.days < 1 || input.days > 1096) throw new RangeError(`The count of days ${input.days} is not a whole number from 1 to ${MAX_LIGHT_DAYS}.`);
|
|
2535
|
+
if (addDays(input.from, 0) !== input.from) throw new RangeError(`The date ${input.from} is not a date YYYY-MM-DD.`);
|
|
2536
|
+
const options = input.altitudeDeg === void 0 ? {} : { altitudeDeg: input.altitudeDeg };
|
|
2537
|
+
const zone = input.awake.zone;
|
|
2538
|
+
const days = [];
|
|
2539
|
+
for (let index = 0; index < input.days; index++) {
|
|
2540
|
+
const date = addDays(input.from, index);
|
|
2541
|
+
const awake = awakeSpans(startOf(date, zone), startOf(addDays(date, 1), zone), input.awake);
|
|
2542
|
+
const light = [];
|
|
2543
|
+
for (let near = -2; near <= 2; near++) {
|
|
2544
|
+
const span = lightSpan(sunDay(input.point, addDays(date, near), options));
|
|
2545
|
+
if (span !== void 0) light.push(span);
|
|
2546
|
+
}
|
|
2547
|
+
const awakeMs = awake.reduce((sum, [start, end]) => sum + end - start, 0);
|
|
2548
|
+
const darkMs = awakeMs - overlap(awake, union(light));
|
|
2549
|
+
days.push({
|
|
2550
|
+
date,
|
|
2551
|
+
awakeHours: awakeMs / HOUR_MS,
|
|
2552
|
+
darkHours: Math.max(0, darkMs) / HOUR_MS
|
|
2553
|
+
});
|
|
2554
|
+
}
|
|
2555
|
+
return {
|
|
2556
|
+
days,
|
|
2557
|
+
most: Math.max(...days.map((day) => day.darkHours)),
|
|
2558
|
+
mean: days.reduce((sum, day) => sum + day.darkHours, 0) / days.length
|
|
2559
|
+
};
|
|
2560
|
+
}
|
|
2561
|
+
/**
|
|
2562
|
+
* This function gives the need of light of a household from its light hours: the dark awake hours of its worst day.
|
|
2563
|
+
* One light that is on in the dark awake hours is a choice of this model. A household with more lights gives more draws.
|
|
2564
|
+
*/
|
|
2565
|
+
function lightNeed(hours) {
|
|
2566
|
+
return {
|
|
2567
|
+
code: LIGHT_NEED,
|
|
2568
|
+
unit: "h",
|
|
2569
|
+
users: "household",
|
|
2570
|
+
rate: {
|
|
2571
|
+
read: true,
|
|
2572
|
+
perDay: {
|
|
2573
|
+
value: hours.most,
|
|
2574
|
+
unit: "h/d"
|
|
2575
|
+
},
|
|
2576
|
+
sources: [SUN_POSITION_SOURCE, SUNRISE_EQUATION_SOURCE],
|
|
2577
|
+
note: "The sources give the sunrise and the sunset at the point of the home on each date. The awake window of the household is input data. The rate is the dark awake hours of the worst day of the plan. One light that is on in those hours is a choice of this model, not of the sources."
|
|
2578
|
+
}
|
|
2579
|
+
};
|
|
2580
|
+
}
|
|
2581
|
+
// src/warmth.ts
|
|
2582
|
+
/** The page "Thermal transmittance" of Wikipedia: the heat flow through an element is its area times its U-value times the difference of the temperatures. */
|
|
2583
|
+
const THERMAL_TRANSMITTANCE_SOURCE = {
|
|
2584
|
+
id: "wikipedia-thermal-transmittance",
|
|
2585
|
+
title: "Thermal transmittance",
|
|
2586
|
+
url: "https://en.wikipedia.org/w/index.php?title=Thermal_transmittance&oldid=1326419561",
|
|
2587
|
+
license: "cc-by-sa-4.0",
|
|
2588
|
+
checked: "2026-11-24",
|
|
2589
|
+
by: "Wikipedia contributors",
|
|
2590
|
+
terms: "https://foundation.wikimedia.org/wiki/Policy:Terms_of_Use"
|
|
2591
|
+
};
|
|
2592
|
+
/** The page "Degree day" of Wikipedia: the energy to keep the base temperature indoors is approximately in proportion to the degree days. */
|
|
2593
|
+
const DEGREE_DAY_SOURCE = {
|
|
2594
|
+
id: "wikipedia-degree-day",
|
|
2595
|
+
title: "Degree day",
|
|
2596
|
+
url: "https://en.wikipedia.org/w/index.php?title=Degree_day&oldid=1358071209",
|
|
2597
|
+
license: "cc-by-sa-4.0",
|
|
2598
|
+
checked: "2026-11-24",
|
|
2599
|
+
by: "Wikipedia contributors",
|
|
2600
|
+
terms: "https://foundation.wikimedia.org/wiki/Policy:Terms_of_Use"
|
|
2601
|
+
};
|
|
2602
|
+
/** The most days of one calculation of the warmth: three years. */
|
|
2603
|
+
const MAX_WARMTH_DAYS = 1096;
|
|
2604
|
+
/**
|
|
2605
|
+
* This function gives the heat loss coefficient of a home, in watts for each kelvin. It is the sum of the area times the U-value of each element.
|
|
2606
|
+
* Air leaks are not in the sum. A caller adds them as an element, or uses `heatLossFromUse`.
|
|
2607
|
+
*
|
|
2608
|
+
* @throws RangeError - An area or a U-value is not a finite number of 0 or more, or the list is empty.
|
|
2609
|
+
*/
|
|
2610
|
+
function heatLossOf(elements) {
|
|
2611
|
+
if (elements.length === 0) throw new RangeError("The envelope has no element.");
|
|
2612
|
+
let sum = 0;
|
|
2613
|
+
for (const [index, element] of elements.entries()) {
|
|
2614
|
+
if (!(Number.isFinite(element.areaM2) && element.areaM2 >= 0)) throw new RangeError(`The area of element ${index} is not a finite number of 0 or more.`);
|
|
2615
|
+
if (!(Number.isFinite(element.uWm2K) && element.uWm2K >= 0)) throw new RangeError(`The U-value of element ${index} is not a finite number of 0 or more.`);
|
|
2616
|
+
sum += element.areaM2 * element.uWm2K;
|
|
2617
|
+
}
|
|
2618
|
+
return sum;
|
|
2619
|
+
}
|
|
2620
|
+
/**
|
|
2621
|
+
* This function gives the heat loss coefficient of a home from the heat of a past period, in watts for each kelvin.
|
|
2622
|
+
* The heat is the energy that the heaters gave, not the fuel. The degree days are on the balance temperature of the home.
|
|
2623
|
+
* The coefficient is the heat divided by the degree days times 24 hours.
|
|
2624
|
+
*
|
|
2625
|
+
* @param heatKWh - The heat of the period, in `kWh`, a finite number of 0 or more
|
|
2626
|
+
* @param degreeDaysKd - The heating degree days of the period on the balance temperature, in kelvin days, a finite number above 0
|
|
2627
|
+
* @throws RangeError - The heat or the degree days are out of range.
|
|
2628
|
+
*/
|
|
2629
|
+
function heatLossFromUse(heatKWh, degreeDaysKd) {
|
|
2630
|
+
if (!(Number.isFinite(heatKWh) && heatKWh >= 0)) throw new RangeError(`The heat ${heatKWh} kWh is not a finite number of 0 or more.`);
|
|
2631
|
+
if (!(Number.isFinite(degreeDaysKd) && degreeDaysKd > 0)) throw new RangeError(`The degree days ${degreeDaysKd} are not a finite number above 0.`);
|
|
2632
|
+
return heatKWh * 1e3 / (degreeDaysKd * 24);
|
|
2633
|
+
}
|
|
2634
|
+
/**
|
|
2635
|
+
* This function gives the heat that a home needs on each day of a plan, in `kWh`.
|
|
2636
|
+
*
|
|
2637
|
+
* - The heat flow is the heat loss coefficient times the indoor temperature minus the outdoor temperature, minus the gains.
|
|
2638
|
+
* - A day with a flow of 0 or less needs no heat. The heat of a day is the flow times 24 hours.
|
|
2639
|
+
*
|
|
2640
|
+
* @throws RangeError - A value is not a finite number, or the coefficient or the gains are less than 0. Or the count of days is not from 1 to `MAX_WARMTH_DAYS`.
|
|
2641
|
+
*/
|
|
2642
|
+
function warmthHeat(input) {
|
|
2643
|
+
const gains = input.gainsW ?? 0;
|
|
2644
|
+
if (!(Number.isFinite(input.heatLossWK) && input.heatLossWK >= 0)) throw new RangeError(`The heat loss ${input.heatLossWK} W/K is not a finite number of 0 or more.`);
|
|
2645
|
+
if (!Number.isFinite(input.indoorC)) throw new RangeError(`The indoor temperature ${input.indoorC} is not a finite number.`);
|
|
2646
|
+
if (!(Number.isFinite(gains) && gains >= 0)) throw new RangeError(`The gains ${gains} W are not a finite number of 0 or more.`);
|
|
2647
|
+
if (input.outdoorC.length < 1 || input.outdoorC.length > 1096) throw new RangeError(`The plan has ${input.outdoorC.length} days, not from 1 to ${MAX_WARMTH_DAYS}.`);
|
|
2648
|
+
const days = input.outdoorC.map((outdoorC, index) => {
|
|
2649
|
+
if (!Number.isFinite(outdoorC)) throw new RangeError(`The outdoor temperature of day ${index} is not a finite number.`);
|
|
2650
|
+
return {
|
|
2651
|
+
outdoorC,
|
|
2652
|
+
heatKWh: Math.max(0, input.heatLossWK * (input.indoorC - outdoorC) - gains) * 24 / 1e3
|
|
2653
|
+
};
|
|
2654
|
+
});
|
|
2655
|
+
return {
|
|
2656
|
+
days,
|
|
2657
|
+
most: Math.max(...days.map((day) => day.heatKWh)),
|
|
2658
|
+
mean: days.reduce((sum, day) => sum + day.heatKWh, 0) / days.length
|
|
2659
|
+
};
|
|
2660
|
+
}
|
|
2661
|
+
/**
|
|
2662
|
+
* This function gives the need of space heat of a household from its heat: the heat of its worst day, in `kWh` each day.
|
|
2663
|
+
* The facts of the building, the indoor target and the outdoor temperatures are input data. The sources give the method.
|
|
2664
|
+
*/
|
|
2665
|
+
function warmthNeed(heat) {
|
|
2666
|
+
return {
|
|
2667
|
+
code: WARMTH_NEED,
|
|
2668
|
+
unit: "kWh",
|
|
2669
|
+
users: "household",
|
|
2670
|
+
rate: {
|
|
2671
|
+
read: true,
|
|
2672
|
+
perDay: {
|
|
2673
|
+
value: heat.most,
|
|
2674
|
+
unit: "kWh/d"
|
|
2675
|
+
},
|
|
2676
|
+
sources: [THERMAL_TRANSMITTANCE_SOURCE, DEGREE_DAY_SOURCE],
|
|
2677
|
+
note: "The heat flow through each element is its area times its U-value times the difference of the temperatures. The energy of a past period gives the same coefficient through its degree days. The indoor target, the outdoor temperatures and the facts of the building are input data. The rate is the heat of the worst day of the plan."
|
|
2678
|
+
}
|
|
2679
|
+
};
|
|
2680
|
+
}
|
|
2681
|
+
export { ACTIVITY_LEVELS, ALERT_WATCH_NEED, BOIL_CELSIUS, BREAST_MILK_MONTHS, CALORIE_CHAIN, CALORIE_SEXES, CALORIE_TABLES, COLD_START_CELSIUS, DAILY_NEEDS, DAILY_NEED_CODES, DEGREE_DAY_SOURCE, DGA_CALORIES, DGA_SOURCE, DIRECT_USES, FDC_SR_LEGACY_SOURCE, FOOD_NEED, FORMULA_DRAW_MONTHS, FORMULA_FEEDS, FORMULA_LATER_LEAST, FORMULA_MIX, FORMULA_NEED, FORMULA_POWDER, FORMULA_READY, HOURS_IN_DAY, INFANT_FEEDINGS, INFANT_MONTHS, JOIN_CODES, LIGHT_NEED, MAX_LIGHT_DAYS, MAX_WARMTH_DAYS, MILK_LATER, NASEM_ENERGY_SOURCE, NASEM_INFANT_CALORIES, NEEDS_CODES, NEED_SUPPLIES, NIST_SI_GUIDE_SOURCE, NO_COOK, NWS_ALARMS_SOURCE, NWS_RECEIVERS_SOURCE, STORED_WATER, SUNRISE_EQUATION_SOURCE, SUN_POSITION_SOURCE, THERMAL_TRANSMITTANCE_SOURCE, USGS_WATER_DENSITY_SOURCE, WARMTH_NEED, WATER_DENSITY_MAX, WATER_DENSITY_MIN, WATER_NEED, WATER_SPECIFIC_HEAT, WIC_INFANT_SOURCE, calorieChange, calorieNeed, calorieRow, calorieRowOf, checkCalorieChain, checkCalorieTable, checkDailyNeeds, checkJoins, cookFragment, deviceFragment, formulaMixCheck, formulaMixFragment, formulaMixWater, hasNeedsError, heatLossFromUse, heatLossOf, householdFragment, isActivityLevel, lightHours, lightNeed, warmthHeat, warmthNeed };
|
|
2451
2682
|
|
|
2452
2683
|
//# sourceMappingURL=index.js.map
|