@isentropic/dim-si 0.4.2 → 0.5.0

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.
Files changed (117) hide show
  1. package/README.md +189 -0
  2. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/almost_equals.d.ts.map +1 -1
  3. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/array_includes.d.ts.map +1 -1
  4. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/assert.d.ts.map +1 -1
  5. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/assertion_error.d.ts.map +1 -1
  6. package/esm/deps/jsr.io/@std/assert/1.0.19/equal.d.ts.map +1 -0
  7. package/esm/deps/jsr.io/@std/assert/1.0.19/equals.d.ts.map +1 -0
  8. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/exists.d.ts.map +1 -1
  9. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/fail.d.ts.map +1 -1
  10. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/false.d.ts.map +1 -1
  11. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/greater.d.ts.map +1 -1
  12. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/greater_or_equal.d.ts.map +1 -1
  13. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/instance_of.d.ts.map +1 -1
  14. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/is_error.d.ts.map +1 -1
  15. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/less.d.ts.map +1 -1
  16. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/less_or_equal.d.ts.map +1 -1
  17. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/match.d.ts.map +1 -1
  18. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/mod.d.ts.map +1 -1
  19. package/esm/deps/jsr.io/@std/assert/1.0.19/not_equals.d.ts.map +1 -0
  20. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/not_instance_of.d.ts.map +1 -1
  21. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/not_match.d.ts.map +1 -1
  22. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/not_strict_equals.d.ts.map +1 -1
  23. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/object_match.d.ts.map +1 -1
  24. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/rejects.d.ts.map +1 -1
  25. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/strict_equals.d.ts.map +1 -1
  26. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/string_includes.d.ts.map +1 -1
  27. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/throws.d.ts.map +1 -1
  28. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/unimplemented.d.ts.map +1 -1
  29. package/esm/deps/jsr.io/@std/assert/{1.0.18 → 1.0.19}/unreachable.d.ts.map +1 -1
  30. package/esm/src/absorbed-dose.d.ts +2 -1
  31. package/esm/src/absorbed-dose.d.ts.map +1 -1
  32. package/esm/src/absorbed-dose.js +2 -1
  33. package/esm/src/angular-acceleration.d.ts +23 -0
  34. package/esm/src/angular-acceleration.d.ts.map +1 -0
  35. package/esm/src/angular-acceleration.js +18 -0
  36. package/esm/src/angular-velocity.d.ts +31 -0
  37. package/esm/src/angular-velocity.d.ts.map +1 -0
  38. package/esm/src/angular-velocity.js +26 -0
  39. package/esm/src/area.d.ts +4 -0
  40. package/esm/src/area.d.ts.map +1 -1
  41. package/esm/src/area.js +5 -0
  42. package/esm/src/charge.d.ts +5 -1
  43. package/esm/src/charge.d.ts.map +1 -1
  44. package/esm/src/charge.js +6 -0
  45. package/esm/src/concentration.d.ts +27 -0
  46. package/esm/src/concentration.d.ts.map +1 -0
  47. package/esm/src/concentration.js +24 -0
  48. package/esm/src/current-density.d.ts +23 -0
  49. package/esm/src/current-density.d.ts.map +1 -0
  50. package/esm/src/current-density.js +18 -0
  51. package/esm/src/density.d.ts +30 -0
  52. package/esm/src/density.d.ts.map +1 -0
  53. package/esm/src/density.js +30 -0
  54. package/esm/src/dynamic-viscosity.d.ts +23 -0
  55. package/esm/src/dynamic-viscosity.d.ts.map +1 -0
  56. package/esm/src/dynamic-viscosity.js +18 -0
  57. package/esm/src/electric-field-strength.d.ts +23 -0
  58. package/esm/src/electric-field-strength.d.ts.map +1 -0
  59. package/esm/src/electric-field-strength.js +18 -0
  60. package/esm/src/frequency.d.ts +2 -1
  61. package/esm/src/frequency.d.ts.map +1 -1
  62. package/esm/src/frequency.js +2 -1
  63. package/esm/src/heat-capacity.d.ts +23 -0
  64. package/esm/src/heat-capacity.d.ts.map +1 -0
  65. package/esm/src/heat-capacity.js +18 -0
  66. package/esm/src/kinematic-viscosity.d.ts +23 -0
  67. package/esm/src/kinematic-viscosity.d.ts.map +1 -0
  68. package/esm/src/kinematic-viscosity.js +18 -0
  69. package/esm/src/mass-flow-rate.d.ts +23 -0
  70. package/esm/src/mass-flow-rate.d.ts.map +1 -0
  71. package/esm/src/mass-flow-rate.js +18 -0
  72. package/esm/src/molar-mass.d.ts +27 -0
  73. package/esm/src/molar-mass.d.ts.map +1 -0
  74. package/esm/src/molar-mass.js +23 -0
  75. package/esm/src/momentum.d.ts +23 -0
  76. package/esm/src/momentum.d.ts.map +1 -0
  77. package/esm/src/momentum.js +18 -0
  78. package/esm/src/permeability.d.ts +23 -0
  79. package/esm/src/permeability.d.ts.map +1 -0
  80. package/esm/src/permeability.js +18 -0
  81. package/esm/src/permittivity.d.ts +23 -0
  82. package/esm/src/permittivity.d.ts.map +1 -0
  83. package/esm/src/permittivity.js +18 -0
  84. package/esm/src/pressure.d.ts +2 -0
  85. package/esm/src/pressure.d.ts.map +1 -1
  86. package/esm/src/pressure.js +2 -0
  87. package/esm/src/specific-energy.d.ts +27 -0
  88. package/esm/src/specific-energy.d.ts.map +1 -0
  89. package/esm/src/specific-energy.js +22 -0
  90. package/esm/src/specific-heat-capacity.d.ts +23 -0
  91. package/esm/src/specific-heat-capacity.d.ts.map +1 -0
  92. package/esm/src/specific-heat-capacity.js +19 -0
  93. package/esm/src/specific-volume.d.ts +23 -0
  94. package/esm/src/specific-volume.d.ts.map +1 -0
  95. package/esm/src/specific-volume.js +18 -0
  96. package/esm/src/surface-tension.d.ts +23 -0
  97. package/esm/src/surface-tension.d.ts.map +1 -0
  98. package/esm/src/surface-tension.js +18 -0
  99. package/esm/src/thermal-conductivity.d.ts +23 -0
  100. package/esm/src/thermal-conductivity.d.ts.map +1 -0
  101. package/esm/src/thermal-conductivity.js +18 -0
  102. package/esm/src/torque.d.ts +26 -0
  103. package/esm/src/torque.d.ts.map +1 -0
  104. package/esm/src/torque.js +21 -0
  105. package/esm/src/velocity.d.ts +3 -1
  106. package/esm/src/velocity.d.ts.map +1 -1
  107. package/esm/src/velocity.js +4 -0
  108. package/esm/src/volumetric-flow-rate.d.ts +30 -0
  109. package/esm/src/volumetric-flow-rate.d.ts.map +1 -0
  110. package/esm/src/volumetric-flow-rate.js +27 -0
  111. package/esm/src/wavenumber.d.ts +23 -0
  112. package/esm/src/wavenumber.d.ts.map +1 -0
  113. package/esm/src/wavenumber.js +18 -0
  114. package/package.json +77 -3
  115. package/esm/deps/jsr.io/@std/assert/1.0.18/equal.d.ts.map +0 -1
  116. package/esm/deps/jsr.io/@std/assert/1.0.18/equals.d.ts.map +0 -1
  117. package/esm/deps/jsr.io/@std/assert/1.0.18/not_equals.d.ts.map +0 -1
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Current density units (I·L⁻²).
3
+ *
4
+ * SI unit: ampere per square meter (A/m²).
5
+ *
6
+ * @example Creating a current density
7
+ * ```ts
8
+ * import { amperePerSquareMeter } from "@isentropic/dim-si/current-density";
9
+ *
10
+ * const j = amperePerSquareMeter(1e6);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import type { CurrentDensity as CurrentDensityDim } from "@isentropic/dim-isq";
16
+ import type { Linear } from "@isentropic/dim-unit";
17
+ import type { BaseUnit } from "./types.js";
18
+ import type { Si } from "./system.js";
19
+ /** An SI current density quantity. */
20
+ export type CurrentDensity = Linear<CurrentDensityDim, Si>;
21
+ /** Ampere per square meter (A/m²) — SI unit of current density. */
22
+ export declare const amperePerSquareMeter: BaseUnit<CurrentDensityDim>;
23
+ //# sourceMappingURL=current-density.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"current-density.d.ts","sourceRoot":"","sources":["../../src/src/current-density.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGtC,sCAAsC;AACtC,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC;AAE3D,mEAAmE;AACnE,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,iBAAiB,CAE5D,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Current density units (I·L⁻²).
3
+ *
4
+ * SI unit: ampere per square meter (A/m²).
5
+ *
6
+ * @example Creating a current density
7
+ * ```ts
8
+ * import { amperePerSquareMeter } from "@isentropic/dim-si/current-density";
9
+ *
10
+ * const j = amperePerSquareMeter(1e6);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import { currentDensity } from "@isentropic/dim-isq";
16
+ import { si } from "./system.js";
17
+ /** Ampere per square meter (A/m²) — SI unit of current density. */
18
+ export const amperePerSquareMeter = si.unit(currentDensity);
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Density units (M·L⁻³).
3
+ *
4
+ * SI unit: kilogram per cubic meter (kg/m³).
5
+ *
6
+ * @example Converting between density units
7
+ * ```ts
8
+ * import { gramPerCubicCentimeter, gramPerLiter, kilogramPerCubicMeter } from "@isentropic/dim-si/density";
9
+ * import { valueIn } from "@isentropic/dim-si/ops";
10
+ *
11
+ * const water = kilogramPerCubicMeter(1000);
12
+ * valueIn(water, gramPerLiter); // 1000
13
+ * valueIn(water, gramPerCubicCentimeter); // 1
14
+ * ```
15
+ *
16
+ * @module
17
+ */
18
+ import type { Density as DensityDim } from "@isentropic/dim-isq";
19
+ import type { Linear } from "@isentropic/dim-unit";
20
+ import type { BaseUnit, ScaledUnit } from "./types.js";
21
+ import type { Si } from "./system.js";
22
+ /** An SI density quantity. */
23
+ export type Density = Linear<DensityDim, Si>;
24
+ /** Kilogram per cubic meter (kg/m³) — SI unit of density. */
25
+ export declare const kilogramPerCubicMeter: BaseUnit<DensityDim>;
26
+ /** Gram per liter (g/L) — numerically equivalent to kg/m³. */
27
+ export declare const gramPerLiter: ScaledUnit<DensityDim>;
28
+ /** Gram per cubic centimeter (g/cm³) — 1000 kg/m³. */
29
+ export declare const gramPerCubicCentimeter: ScaledUnit<DensityDim>;
30
+ //# sourceMappingURL=density.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"density.d.ts","sourceRoot":"","sources":["../../src/src/density.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAGnD,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAMtC,8BAA8B;AAC9B,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;AAE7C,6DAA6D;AAC7D,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,UAAU,CAAoB,CAAC;AAE5E,8DAA8D;AAC9D,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,UAAU,CACb,CAAC;AAEpC,sDAAsD;AACtD,eAAO,MAAM,sBAAsB,EAAE,UAAU,CAAC,UAAU,CAGvD,CAAC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Density units (M·L⁻³).
3
+ *
4
+ * SI unit: kilogram per cubic meter (kg/m³).
5
+ *
6
+ * @example Converting between density units
7
+ * ```ts
8
+ * import { gramPerCubicCentimeter, gramPerLiter, kilogramPerCubicMeter } from "@isentropic/dim-si/density";
9
+ * import { valueIn } from "@isentropic/dim-si/ops";
10
+ *
11
+ * const water = kilogramPerCubicMeter(1000);
12
+ * valueIn(water, gramPerLiter); // 1000
13
+ * valueIn(water, gramPerCubicCentimeter); // 1
14
+ * ```
15
+ *
16
+ * @module
17
+ */
18
+ import { density } from "@isentropic/dim-isq";
19
+ import { roundScale } from "@isentropic/dim-unit";
20
+ import { si } from "./system.js";
21
+ import { gram } from "./mass.js";
22
+ import { centimeter } from "./length.js";
23
+ import { liter } from "./volume.js";
24
+ /** Kilogram per cubic meter (kg/m³) — SI unit of density. */
25
+ export const kilogramPerCubicMeter = si.unit(density);
26
+ /** Gram per liter (g/L) — numerically equivalent to kg/m³. */
27
+ export const gramPerLiter = kilogramPerCubicMeter
28
+ .scaled(gram.scale / liter.scale);
29
+ /** Gram per cubic centimeter (g/cm³) — 1000 kg/m³. */
30
+ export const gramPerCubicCentimeter = kilogramPerCubicMeter.scaled(roundScale(gram.scale / centimeter.scale ** 3));
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Dynamic viscosity units (M·L⁻¹·T⁻¹).
3
+ *
4
+ * SI unit: pascal second (Pa·s).
5
+ *
6
+ * @example Creating a dynamic viscosity
7
+ * ```ts
8
+ * import { pascalSecond } from "@isentropic/dim-si/dynamic-viscosity";
9
+ *
10
+ * const water = pascalSecond(0.001);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import type { DynamicViscosity as DynamicViscosityDim } from "@isentropic/dim-isq";
16
+ import type { Linear } from "@isentropic/dim-unit";
17
+ import type { BaseUnit } from "./types.js";
18
+ import type { Si } from "./system.js";
19
+ /** An SI dynamic viscosity quantity. */
20
+ export type DynamicViscosity = Linear<DynamicViscosityDim, Si>;
21
+ /** Pascal second (Pa·s) — SI unit of dynamic viscosity. */
22
+ export declare const pascalSecond: BaseUnit<DynamicViscosityDim>;
23
+ //# sourceMappingURL=dynamic-viscosity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dynamic-viscosity.d.ts","sourceRoot":"","sources":["../../src/src/dynamic-viscosity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,gBAAgB,IAAI,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AACnF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGtC,wCAAwC;AACxC,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC;AAE/D,2DAA2D;AAC3D,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,mBAAmB,CAEtD,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Dynamic viscosity units (M·L⁻¹·T⁻¹).
3
+ *
4
+ * SI unit: pascal second (Pa·s).
5
+ *
6
+ * @example Creating a dynamic viscosity
7
+ * ```ts
8
+ * import { pascalSecond } from "@isentropic/dim-si/dynamic-viscosity";
9
+ *
10
+ * const water = pascalSecond(0.001);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import { dynamicViscosity } from "@isentropic/dim-isq";
16
+ import { si } from "./system.js";
17
+ /** Pascal second (Pa·s) — SI unit of dynamic viscosity. */
18
+ export const pascalSecond = si.unit(dynamicViscosity);
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Electric field strength units (M·L·T⁻³·I⁻¹).
3
+ *
4
+ * SI unit: volt per meter (V/m).
5
+ *
6
+ * @example Creating an electric field strength
7
+ * ```ts
8
+ * import { voltPerMeter } from "@isentropic/dim-si/electric-field-strength";
9
+ *
10
+ * const field = voltPerMeter(1000);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import type { ElectricFieldStrength as ElectricFieldStrengthDim } from "@isentropic/dim-isq";
16
+ import type { Linear } from "@isentropic/dim-unit";
17
+ import type { BaseUnit } from "./types.js";
18
+ import type { Si } from "./system.js";
19
+ /** An SI electric field strength quantity. */
20
+ export type ElectricFieldStrength = Linear<ElectricFieldStrengthDim, Si>;
21
+ /** Volt per meter (V/m) — SI unit of electric field strength. */
22
+ export declare const voltPerMeter: BaseUnit<ElectricFieldStrengthDim>;
23
+ //# sourceMappingURL=electric-field-strength.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"electric-field-strength.d.ts","sourceRoot":"","sources":["../../src/src/electric-field-strength.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,qBAAqB,IAAI,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAC7F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGtC,8CAA8C;AAC9C,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,wBAAwB,EAAE,EAAE,CAAC,CAAC;AAEzE,iEAAiE;AACjE,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,wBAAwB,CAE3D,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Electric field strength units (M·L·T⁻³·I⁻¹).
3
+ *
4
+ * SI unit: volt per meter (V/m).
5
+ *
6
+ * @example Creating an electric field strength
7
+ * ```ts
8
+ * import { voltPerMeter } from "@isentropic/dim-si/electric-field-strength";
9
+ *
10
+ * const field = voltPerMeter(1000);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import { electricFieldStrength } from "@isentropic/dim-isq";
16
+ import { si } from "./system.js";
17
+ /** Volt per meter (V/m) — SI unit of electric field strength. */
18
+ export const voltPerMeter = si.unit(electricFieldStrength);
@@ -4,7 +4,8 @@
4
4
  * SI unit: hertz (Hz).
5
5
  *
6
6
  * Note: becquerel (radioactive decay rate) shares this dimension
7
- * with hertz (cycles per second). This is intentional per SI.
7
+ * with hertz (cycles per second). This is intentional per SI — the
8
+ * type system cannot distinguish them.
8
9
  *
9
10
  * @example Converting between frequency units
10
11
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"frequency.d.ts","sourceRoot":"","sources":["../../src/src/frequency.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,SAAS,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAItC,gCAAgC;AAChC,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;AAEjD,yCAAyC;AACzC,eAAO,MAAM,KAAK,EAAE,QAAQ,CAAC,YAAY,CAAsB,CAAC;AAEhE,2EAA2E;AAC3E,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,YAAY,CAAsB,CAAC;AAEpE,oCAAoC;AACpC,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,YAAY,CAAsB,CAAC;AAEtE,mCAAmC;AACnC,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,YAAY,CAAsB,CAAC;AAEtE,mCAAmC;AACnC,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,YAAY,CAAsB,CAAC"}
1
+ {"version":3,"file":"frequency.d.ts","sourceRoot":"","sources":["../../src/src/frequency.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,SAAS,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAItC,gCAAgC;AAChC,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;AAEjD,yCAAyC;AACzC,eAAO,MAAM,KAAK,EAAE,QAAQ,CAAC,YAAY,CAAsB,CAAC;AAEhE,2EAA2E;AAC3E,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,YAAY,CAAsB,CAAC;AAEpE,oCAAoC;AACpC,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,YAAY,CAAsB,CAAC;AAEtE,mCAAmC;AACnC,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,YAAY,CAAsB,CAAC;AAEtE,mCAAmC;AACnC,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,YAAY,CAAsB,CAAC"}
@@ -4,7 +4,8 @@
4
4
  * SI unit: hertz (Hz).
5
5
  *
6
6
  * Note: becquerel (radioactive decay rate) shares this dimension
7
- * with hertz (cycles per second). This is intentional per SI.
7
+ * with hertz (cycles per second). This is intentional per SI — the
8
+ * type system cannot distinguish them.
8
9
  *
9
10
  * @example Converting between frequency units
10
11
  * ```ts
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Heat capacity units (M·L²·T⁻²·Θ⁻¹).
3
+ *
4
+ * SI unit: joule per kelvin (J/K).
5
+ *
6
+ * @example Creating a heat capacity
7
+ * ```ts
8
+ * import { joulePerKelvin } from "@isentropic/dim-si/heat-capacity";
9
+ *
10
+ * const capacity = joulePerKelvin(4186);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import type { HeatCapacity as HeatCapacityDim } from "@isentropic/dim-isq";
16
+ import type { Linear } from "@isentropic/dim-unit";
17
+ import type { BaseUnit } from "./types.js";
18
+ import type { Si } from "./system.js";
19
+ /** An SI heat capacity quantity. */
20
+ export type HeatCapacity = Linear<HeatCapacityDim, Si>;
21
+ /** Joule per kelvin (J/K) — SI unit of heat capacity. */
22
+ export declare const joulePerKelvin: BaseUnit<HeatCapacityDim>;
23
+ //# sourceMappingURL=heat-capacity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heat-capacity.d.ts","sourceRoot":"","sources":["../../src/src/heat-capacity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGtC,oCAAoC;AACpC,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;AAEvD,yDAAyD;AACzD,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,eAAe,CAAyB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Heat capacity units (M·L²·T⁻²·Θ⁻¹).
3
+ *
4
+ * SI unit: joule per kelvin (J/K).
5
+ *
6
+ * @example Creating a heat capacity
7
+ * ```ts
8
+ * import { joulePerKelvin } from "@isentropic/dim-si/heat-capacity";
9
+ *
10
+ * const capacity = joulePerKelvin(4186);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import { heatCapacity } from "@isentropic/dim-isq";
16
+ import { si } from "./system.js";
17
+ /** Joule per kelvin (J/K) — SI unit of heat capacity. */
18
+ export const joulePerKelvin = si.unit(heatCapacity);
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Kinematic viscosity units (L²·T⁻¹).
3
+ *
4
+ * SI unit: square meter per second (m²/s).
5
+ *
6
+ * @example Creating a kinematic viscosity
7
+ * ```ts
8
+ * import { squareMeterPerSecond } from "@isentropic/dim-si/kinematic-viscosity";
9
+ *
10
+ * const water = squareMeterPerSecond(1e-6);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import type { KinematicViscosity as KinematicViscosityDim } from "@isentropic/dim-isq";
16
+ import type { Linear } from "@isentropic/dim-unit";
17
+ import type { BaseUnit } from "./types.js";
18
+ import type { Si } from "./system.js";
19
+ /** An SI kinematic viscosity quantity. */
20
+ export type KinematicViscosity = Linear<KinematicViscosityDim, Si>;
21
+ /** Square meter per second (m²/s) — SI unit of kinematic viscosity. */
22
+ export declare const squareMeterPerSecond: BaseUnit<KinematicViscosityDim>;
23
+ //# sourceMappingURL=kinematic-viscosity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kinematic-viscosity.d.ts","sourceRoot":"","sources":["../../src/src/kinematic-viscosity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,kBAAkB,IAAI,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGtC,0CAA0C;AAC1C,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,qBAAqB,EAAE,EAAE,CAAC,CAAC;AAEnE,uEAAuE;AACvE,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,qBAAqB,CAEhE,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Kinematic viscosity units (L²·T⁻¹).
3
+ *
4
+ * SI unit: square meter per second (m²/s).
5
+ *
6
+ * @example Creating a kinematic viscosity
7
+ * ```ts
8
+ * import { squareMeterPerSecond } from "@isentropic/dim-si/kinematic-viscosity";
9
+ *
10
+ * const water = squareMeterPerSecond(1e-6);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import { kinematicViscosity } from "@isentropic/dim-isq";
16
+ import { si } from "./system.js";
17
+ /** Square meter per second (m²/s) — SI unit of kinematic viscosity. */
18
+ export const squareMeterPerSecond = si.unit(kinematicViscosity);
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Mass flow rate units (M·T⁻¹).
3
+ *
4
+ * SI unit: kilogram per second (kg/s).
5
+ *
6
+ * @example Creating a mass flow rate
7
+ * ```ts
8
+ * import { kilogramPerSecond } from "@isentropic/dim-si/mass-flow-rate";
9
+ *
10
+ * const flow = kilogramPerSecond(0.5);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import type { MassFlowRate as MassFlowRateDim } from "@isentropic/dim-isq";
16
+ import type { Linear } from "@isentropic/dim-unit";
17
+ import type { BaseUnit } from "./types.js";
18
+ import type { Si } from "./system.js";
19
+ /** An SI mass flow rate quantity. */
20
+ export type MassFlowRate = Linear<MassFlowRateDim, Si>;
21
+ /** Kilogram per second (kg/s) — SI unit of mass flow rate. */
22
+ export declare const kilogramPerSecond: BaseUnit<MassFlowRateDim>;
23
+ //# sourceMappingURL=mass-flow-rate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mass-flow-rate.d.ts","sourceRoot":"","sources":["../../src/src/mass-flow-rate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGtC,qCAAqC;AACrC,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;AAEvD,8DAA8D;AAC9D,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,eAAe,CAEvD,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Mass flow rate units (M·T⁻¹).
3
+ *
4
+ * SI unit: kilogram per second (kg/s).
5
+ *
6
+ * @example Creating a mass flow rate
7
+ * ```ts
8
+ * import { kilogramPerSecond } from "@isentropic/dim-si/mass-flow-rate";
9
+ *
10
+ * const flow = kilogramPerSecond(0.5);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import { massFlowRate } from "@isentropic/dim-isq";
16
+ import { si } from "./system.js";
17
+ /** Kilogram per second (kg/s) — SI unit of mass flow rate. */
18
+ export const kilogramPerSecond = si.unit(massFlowRate);
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Molar mass units (M·N⁻¹).
3
+ *
4
+ * SI unit: kilogram per mole (kg/mol).
5
+ *
6
+ * @example Converting between molar mass units
7
+ * ```ts
8
+ * import { gramPerMole, kilogramPerMole } from "@isentropic/dim-si/molar-mass";
9
+ * import { valueIn } from "@isentropic/dim-si/ops";
10
+ *
11
+ * const water = gramPerMole(18.015);
12
+ * valueIn(water, kilogramPerMole); // 0.018015
13
+ * ```
14
+ *
15
+ * @module
16
+ */
17
+ import type { MolarMass as MolarMassDim } from "@isentropic/dim-isq";
18
+ import type { Linear } from "@isentropic/dim-unit";
19
+ import type { BaseUnit, ScaledUnit } from "./types.js";
20
+ import type { Si } from "./system.js";
21
+ /** An SI molar mass quantity. */
22
+ export type MolarMass = Linear<MolarMassDim, Si>;
23
+ /** Kilogram per mole (kg/mol) — SI unit of molar mass. */
24
+ export declare const kilogramPerMole: BaseUnit<MolarMassDim>;
25
+ /** Gram per mole (g/mol) — 10⁻³ kg/mol. */
26
+ export declare const gramPerMole: ScaledUnit<MolarMassDim>;
27
+ //# sourceMappingURL=molar-mass.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"molar-mass.d.ts","sourceRoot":"","sources":["../../src/src/molar-mass.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,SAAS,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAItC,iCAAiC;AACjC,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;AAEjD,0DAA0D;AAC1D,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,YAAY,CAAsB,CAAC;AAE1E,2CAA2C;AAC3C,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,YAAY,CAEhD,CAAC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Molar mass units (M·N⁻¹).
3
+ *
4
+ * SI unit: kilogram per mole (kg/mol).
5
+ *
6
+ * @example Converting between molar mass units
7
+ * ```ts
8
+ * import { gramPerMole, kilogramPerMole } from "@isentropic/dim-si/molar-mass";
9
+ * import { valueIn } from "@isentropic/dim-si/ops";
10
+ *
11
+ * const water = gramPerMole(18.015);
12
+ * valueIn(water, kilogramPerMole); // 0.018015
13
+ * ```
14
+ *
15
+ * @module
16
+ */
17
+ import { molarMass } from "@isentropic/dim-isq";
18
+ import { si } from "./system.js";
19
+ import { MILLI } from "./prefixes.js";
20
+ /** Kilogram per mole (kg/mol) — SI unit of molar mass. */
21
+ export const kilogramPerMole = si.unit(molarMass);
22
+ /** Gram per mole (g/mol) — 10⁻³ kg/mol. */
23
+ export const gramPerMole = kilogramPerMole.scaled(MILLI);
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Momentum units (M·L·T⁻¹).
3
+ *
4
+ * SI unit: newton second (N·s).
5
+ *
6
+ * @example Creating a momentum
7
+ * ```ts
8
+ * import { newtonSecond } from "@isentropic/dim-si/momentum";
9
+ *
10
+ * const impulse = newtonSecond(50);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import type { Momentum as MomentumDim } from "@isentropic/dim-isq";
16
+ import type { Linear } from "@isentropic/dim-unit";
17
+ import type { BaseUnit } from "./types.js";
18
+ import type { Si } from "./system.js";
19
+ /** An SI momentum quantity. */
20
+ export type Momentum = Linear<MomentumDim, Si>;
21
+ /** Newton second (N·s) — SI unit of momentum. */
22
+ export declare const newtonSecond: BaseUnit<MomentumDim>;
23
+ //# sourceMappingURL=momentum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"momentum.d.ts","sourceRoot":"","sources":["../../src/src/momentum.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,QAAQ,IAAI,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGtC,+BAA+B;AAC/B,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;AAE/C,iDAAiD;AACjD,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAAqB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Momentum units (M·L·T⁻¹).
3
+ *
4
+ * SI unit: newton second (N·s).
5
+ *
6
+ * @example Creating a momentum
7
+ * ```ts
8
+ * import { newtonSecond } from "@isentropic/dim-si/momentum";
9
+ *
10
+ * const impulse = newtonSecond(50);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import { momentum } from "@isentropic/dim-isq";
16
+ import { si } from "./system.js";
17
+ /** Newton second (N·s) — SI unit of momentum. */
18
+ export const newtonSecond = si.unit(momentum);
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Permeability units (M·L·T⁻²·I⁻²).
3
+ *
4
+ * SI unit: henry per meter (H/m).
5
+ *
6
+ * @example Creating a permeability
7
+ * ```ts
8
+ * import { henryPerMeter } from "@isentropic/dim-si/permeability";
9
+ *
10
+ * const vacuum = henryPerMeter(1.2566e-6);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import type { Permeability as PermeabilityDim } from "@isentropic/dim-isq";
16
+ import type { Linear } from "@isentropic/dim-unit";
17
+ import type { BaseUnit } from "./types.js";
18
+ import type { Si } from "./system.js";
19
+ /** An SI permeability quantity. */
20
+ export type Permeability = Linear<PermeabilityDim, Si>;
21
+ /** Henry per meter (H/m) — SI unit of permeability. */
22
+ export declare const henryPerMeter: BaseUnit<PermeabilityDim>;
23
+ //# sourceMappingURL=permeability.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permeability.d.ts","sourceRoot":"","sources":["../../src/src/permeability.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGtC,mCAAmC;AACnC,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;AAEvD,uDAAuD;AACvD,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,eAAe,CAAyB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Permeability units (M·L·T⁻²·I⁻²).
3
+ *
4
+ * SI unit: henry per meter (H/m).
5
+ *
6
+ * @example Creating a permeability
7
+ * ```ts
8
+ * import { henryPerMeter } from "@isentropic/dim-si/permeability";
9
+ *
10
+ * const vacuum = henryPerMeter(1.2566e-6);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import { permeability } from "@isentropic/dim-isq";
16
+ import { si } from "./system.js";
17
+ /** Henry per meter (H/m) — SI unit of permeability. */
18
+ export const henryPerMeter = si.unit(permeability);
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Permittivity units (M⁻¹·L⁻³·T⁴·I²).
3
+ *
4
+ * SI unit: farad per meter (F/m).
5
+ *
6
+ * @example Creating a permittivity
7
+ * ```ts
8
+ * import { faradPerMeter } from "@isentropic/dim-si/permittivity";
9
+ *
10
+ * const vacuum = faradPerMeter(8.854e-12);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import type { Permittivity as PermittivityDim } from "@isentropic/dim-isq";
16
+ import type { Linear } from "@isentropic/dim-unit";
17
+ import type { BaseUnit } from "./types.js";
18
+ import type { Si } from "./system.js";
19
+ /** An SI permittivity quantity. */
20
+ export type Permittivity = Linear<PermittivityDim, Si>;
21
+ /** Farad per meter (F/m) — SI unit of permittivity. */
22
+ export declare const faradPerMeter: BaseUnit<PermittivityDim>;
23
+ //# sourceMappingURL=permittivity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permittivity.d.ts","sourceRoot":"","sources":["../../src/src/permittivity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGtC,mCAAmC;AACnC,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;AAEvD,uDAAuD;AACvD,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,eAAe,CAAyB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Permittivity units (M⁻¹·L⁻³·T⁴·I²).
3
+ *
4
+ * SI unit: farad per meter (F/m).
5
+ *
6
+ * @example Creating a permittivity
7
+ * ```ts
8
+ * import { faradPerMeter } from "@isentropic/dim-si/permittivity";
9
+ *
10
+ * const vacuum = faradPerMeter(8.854e-12);
11
+ * ```
12
+ *
13
+ * @module
14
+ */
15
+ import { permittivity } from "@isentropic/dim-isq";
16
+ import { si } from "./system.js";
17
+ /** Farad per meter (F/m) — SI unit of permittivity. */
18
+ export const faradPerMeter = si.unit(permittivity);
@@ -27,4 +27,6 @@ export declare const pascal: BaseUnit<PressureDim>;
27
27
  export declare const bar: ScaledUnit<PressureDim>;
28
28
  /** Millibar (mbar) — 100 pascals. */
29
29
  export declare const millibar: ScaledUnit<PressureDim>;
30
+ /** Standard atmosphere (atm) — 101325 pascals. */
31
+ export declare const atmosphere: ScaledUnit<PressureDim>;
30
32
  //# sourceMappingURL=pressure.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pressure.d.ts","sourceRoot":"","sources":["../../src/src/pressure.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,QAAQ,IAAI,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAItC,+BAA+B;AAC/B,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;AAE/C,yCAAyC;AACzC,eAAO,MAAM,MAAM,EAAE,QAAQ,CAAC,WAAW,CAAqB,CAAC;AAE/D,4BAA4B;AAC5B,eAAO,MAAM,GAAG,EAAE,UAAU,CAAC,WAAW,CAAyB,CAAC;AAElE,qCAAqC;AACrC,eAAO,MAAM,QAAQ,EAAE,UAAU,CAAC,WAAW,CAAqB,CAAC"}
1
+ {"version":3,"file":"pressure.d.ts","sourceRoot":"","sources":["../../src/src/pressure.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,QAAQ,IAAI,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAItC,+BAA+B;AAC/B,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;AAE/C,yCAAyC;AACzC,eAAO,MAAM,MAAM,EAAE,QAAQ,CAAC,WAAW,CAAqB,CAAC;AAE/D,4BAA4B;AAC5B,eAAO,MAAM,GAAG,EAAE,UAAU,CAAC,WAAW,CAAyB,CAAC;AAElE,qCAAqC;AACrC,eAAO,MAAM,QAAQ,EAAE,UAAU,CAAC,WAAW,CAAqB,CAAC;AAEnE,kDAAkD;AAClD,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,WAAW,CAAyB,CAAC"}
@@ -24,3 +24,5 @@ export const pascal = si.unit(pressure);
24
24
  export const bar = pascal.scaled(100000);
25
25
  /** Millibar (mbar) — 100 pascals. */
26
26
  export const millibar = bar.scaled(MILLI);
27
+ /** Standard atmosphere (atm) — 101325 pascals. */
28
+ export const atmosphere = pascal.scaled(101325);
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Specific energy units (L²·T⁻²).
3
+ *
4
+ * SI unit: joule per kilogram (J/kg).
5
+ *
6
+ * Note: specific energy shares this dimension with absorbed dose
7
+ * (gray/sievert). This is intentional per SI — the type system
8
+ * cannot distinguish them.
9
+ *
10
+ * @example Creating a specific energy
11
+ * ```ts
12
+ * import { joulePerKilogram } from "@isentropic/dim-si/specific-energy";
13
+ *
14
+ * const lhv = joulePerKilogram(43e6);
15
+ * ```
16
+ *
17
+ * @module
18
+ */
19
+ import type { SpecificEnergy as SpecificEnergyDim } from "@isentropic/dim-isq";
20
+ import type { Linear } from "@isentropic/dim-unit";
21
+ import type { BaseUnit } from "./types.js";
22
+ import type { Si } from "./system.js";
23
+ /** An SI specific energy quantity. */
24
+ export type SpecificEnergy = Linear<SpecificEnergyDim, Si>;
25
+ /** Joule per kilogram (J/kg) — SI unit of specific energy. */
26
+ export declare const joulePerKilogram: BaseUnit<SpecificEnergyDim>;
27
+ //# sourceMappingURL=specific-energy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"specific-energy.d.ts","sourceRoot":"","sources":["../../src/src/specific-energy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGtC,sCAAsC;AACtC,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC;AAE3D,8DAA8D;AAC9D,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,iBAAiB,CAExD,CAAC"}