formulab 0.25.0 → 0.25.1
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/CHANGELOG.md +29 -0
- package/dist/metal/material.d.ts.map +1 -1
- package/dist/metal/material.js +9 -4
- package/dist/metal/material.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,35 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.25.1] - 2026-08-04
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **`metal/material`** — the Young's modulus reported for C1100 copper is 117 GPa, not 115.
|
|
13
|
+
|
|
14
|
+
The three copper grades in this table are CDA figures, and the CDA tables publish modulus
|
|
15
|
+
in ksi: C26000 and C51900 both read 16000 ksi, which the stored values round to 110 GPa.
|
|
16
|
+
C1100 reads 17000 ksi, or 117.2 GPa, and was stored as 115 — a figure that circulates
|
|
17
|
+
widely enough to look unremarkable on its own.
|
|
18
|
+
|
|
19
|
+
That is what made it hard to see. Checked in isolation every value in the table sits
|
|
20
|
+
inside some published spread, so no single entry looks wrong; only lining the family up
|
|
21
|
+
against one tabulation showed that two grades followed it and the third did not. A value
|
|
22
|
+
that disagrees with its own family's source is an inconsistency rather than an alternative
|
|
23
|
+
reading, which is the distinction that decided this change — elsewhere in the table,
|
|
24
|
+
grades that genuinely sit inside a spread are left alone, because moving a defensible
|
|
25
|
+
figure to another defensible figure is churn.
|
|
26
|
+
|
|
27
|
+
Callers that read `youngsModulus` for C1100 to size a beam, a column or a press fit will
|
|
28
|
+
see results shift by about 1.9 %. Nothing else in the table moved.
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
|
|
32
|
+
- The Young's modulus golden block now names the published source each of the fifteen values
|
|
33
|
+
was checked against, replacing entries that pointed at a sibling grade instead of at data.
|
|
34
|
+
The copper family is additionally asserted against the ksi figures its tables publish, so
|
|
35
|
+
a future edit has to disagree with the source rather than merely with a previous edit.
|
|
36
|
+
|
|
8
37
|
## [0.25.0] - 2026-08-03
|
|
9
38
|
|
|
10
39
|
### Added
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"material.d.ts","sourceRoot":"","sources":["../../src/metal/material.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,cAAc,EAAgB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"material.d.ts","sourceRoot":"","sources":["../../src/metal/material.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,cAAc,EAAgB,MAAM,YAAY,CAAC;AAoDhG,wBAAgB,aAAa,IAAI,gBAAgB,EAAE,CAElD;AAED,wBAAgB,SAAS,CAAC,QAAQ,EAAE,gBAAgB,GAAG,MAAM,EAAE,CAI9D;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,cAAc,CAuB7D"}
|
package/dist/metal/material.js
CHANGED
|
@@ -6,9 +6,14 @@
|
|
|
6
6
|
* strength, so a single value per grade is the standard treatment. Published sources
|
|
7
7
|
* disagree in the last digit for several grades — mill data, conversions from psi and
|
|
8
8
|
* alloy-specific measurements all circulate — so these are the conventional figures
|
|
9
|
-
* from within each grade's published spread
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* from within each grade's published spread rather than one authority's point values.
|
|
10
|
+
*
|
|
11
|
+
* Within a family, though, the entries follow one tabulation: the copper alloys are all
|
|
12
|
+
* CDA figures, converted from the ksi those tables publish. A grade left off the family's
|
|
13
|
+
* source is an inconsistency, not an alternative reading, and C1100 was moved onto CDA
|
|
14
|
+
* with its siblings for that reason. The golden block in this module's test file pins
|
|
15
|
+
* every modulus, names the source each was checked against, and asserts the copper
|
|
16
|
+
* family against the published ksi so it cannot drift apart again unnoticed.
|
|
12
17
|
*
|
|
13
18
|
* This table is exposed as a lookup for callers rather than as an internal dependency.
|
|
14
19
|
* Functions that need a modulus of their own (springback, vibration, tool and boring-bar
|
|
@@ -33,7 +38,7 @@ const MATERIAL_DATA = {
|
|
|
33
38
|
'A7075-T6': { density: 2.81, tensileStrength: 572, yieldStrength: 503, youngsModulus: 71.7, elongation: 11, hardness: 'HB 150', thermalConductivity: 130, meltingPoint: 635 },
|
|
34
39
|
},
|
|
35
40
|
copper: {
|
|
36
|
-
'C1100': { density: 8.94, tensileStrength: 220, yieldStrength: 70, youngsModulus:
|
|
41
|
+
'C1100': { density: 8.94, tensileStrength: 220, yieldStrength: 70, youngsModulus: 117, elongation: 45, hardness: 'HB 45', thermalConductivity: 391, meltingPoint: 1083 },
|
|
37
42
|
'C2600': { density: 8.53, tensileStrength: 325, yieldStrength: 95, youngsModulus: 110, elongation: 65, hardness: 'HB 55-80', thermalConductivity: 120, meltingPoint: 940 },
|
|
38
43
|
'C5191': { density: 8.80, tensileStrength: 520, yieldStrength: 195, youngsModulus: 110, elongation: 45, hardness: 'HB 160', thermalConductivity: 67, meltingPoint: 1025 },
|
|
39
44
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"material.js","sourceRoot":"","sources":["../../src/metal/material.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"material.js","sourceRoot":"","sources":["../../src/metal/material.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,aAAa,GAA2D;IAC5E,KAAK,EAAE;QACL,OAAO,EAAG,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,EAAE,aAAa,EAAE,GAAG,EAAE,aAAa,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,mBAAmB,EAAE,EAAE,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,CAAC;QAClB,MAAM,IAAI,UAAU,CAAC,6BAA6B,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC;IACvE,CAAC;IAED,MAAM,IAAI,GAAG,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACvC,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,IAAI,UAAU,CAAC,0BAA0B,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;IACjE,CAAC;IAED,OAAO;QACL,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,eAAe,EAAE,IAAI,CAAC,eAAe;QACrC,aAAa,EAAE,IAAI,CAAC,aAAa;QACjC,aAAa,EAAE,IAAI,CAAC,aAAa;QACjC,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,mBAAmB,EAAE,IAAI,CAAC,mBAAmB;QAC7C,YAAY,EAAE,IAAI,CAAC,YAAY;KAChC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "formulab",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.1",
|
|
4
4
|
"description": "Manufacturing & Engineering calculation formulas library - 211 industrial calculations across 15 domains for OEE, Cpk, SPC, FMEA, Nelson Rules, metal weight, CNC machining, GD&T, battery, environmental, pipe flow, logistics, IE time study, and more",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|