@rulecad/fixings 0.1.7 → 0.1.8

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 CHANGED
@@ -4,6 +4,18 @@ What changed in each release, for someone upgrading a workspace. A **printed siz
4
4
  print (a hole's diameter, a seat's depth, a part's outline). Each release says whether any printed size moved, and
5
5
  why.
6
6
 
7
+ ## 0.1.8: ABS, ASA and PA-CF in thread engagement
8
+ ### Added
9
+
10
+ - The printed plastics ABS, ASA and PA-CF (`abs`, `asa`, `pa_cf`, from `@rulecad/rules` 0.3.23) are materials of the
11
+ kit for engagement, stripping, seating and the other strength sums. Each is a plastic by its stiffness (2.5 diameters
12
+ of thread) and is stripped at its strength across the layers: an M3 screw 6 mm into PA-CF strips at about 1828 N,
13
+ 0.63 of a class 8.8 screw's proof load. `@rulecad/rules` is needed at 0.3.23 or later.
14
+
15
+ ### Printed sizes that moved
16
+
17
+ - None.
18
+
7
19
  ## 0.1.7: a slotted snap skirt and printed bolts into slot nuts
8
20
  ### Added
9
21
 
package/README.md CHANGED
@@ -446,7 +446,7 @@ overlaps 0.812 mm before any gap. Where the joint carries load, compare `flanks:
446
446
  ## Strength and length
447
447
 
448
448
  First sums for a joint, each returning its numbers, what they rest on and findings. `material` is a material of the
449
- kit's rule sets (`pla`, `petg`, `al6061`, `al7075`, `s275`, `ss304`), the workspace's own set of that name (`sets`),
449
+ kit's rule sets (`pla`, `petg`, `abs`, `asa`, `pa_cf`, `al6061`, `al7075`, `s275`, `ss304`), the workspace's own set of that name (`sets`),
450
450
  or a rule set with a `strength` and a `modulus`. Its class (plastic, aluminium or steel) is told from its stiffness.
451
451
 
452
452
  | Function | Gives |
@@ -505,7 +505,7 @@ M3x10 is the screw: M3x12 would bottom out.
505
505
  material's tensile strength over √3. For a printed plastic that strength is an estimate: the bond between layers,
506
506
  the walls round the hole and how the hole printed decide the real figure, and a thread a screw has formed in a pilot
507
507
  is less complete than the handbook's. Where the material's rule set has a strength across the layers (`strength_z`,
508
- as `petg` has), the weaker of the two is taken; where it has none (`pla`), the finding says so. The clamp force from
508
+ as `petg`, `abs`, `asa` and `pa_cf` have), the weaker of the two is taken; where it has none (`pla`), the finding says so. The clamp force from
509
509
  a torque scatters by a quarter to a third either way. Take the results as a first check, keep a working load to half
510
510
  of what they give, and test a joint that matters.
511
511
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulecad/fixings",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Screws, nuts, washers and inserts from rule sets, and the holes and seats they need in printed parts: a fixing as a model with sourced figures, holes sized by what they are for, counterbores, countersinks, nut pockets and insert bosses that print without supports, light solids of the hardware for an assembly, threads cut for printing, and first sums for a joint (engagement, stripping, preload, seating, the sold length that fits).",
5
5
  "type": "module",
6
6
  "exports": {
@@ -61,7 +61,7 @@
61
61
  "@jscad/modeling": "^2.12.0"
62
62
  },
63
63
  "dependencies": {
64
- "@rulecad/rules": "^0.3.20",
64
+ "@rulecad/rules": "^0.3.28",
65
65
  "@rulecad/shapes": "^0.4.4"
66
66
  }
67
67
  }
package/strength.d.mts CHANGED
@@ -16,7 +16,7 @@ export function weakest(mat: any): {
16
16
  * aluminium, 2.5 in plastic (the engagement rule set of @rulecad/rules).
17
17
  * @param {Fixing | string} m a fixing's model or name @param {{ depth: number, material: string | object, sets?: object }} o
18
18
  * depth: the length of thread engaged, in mm; material: a class (plastic, aluminium, steel), a material of the kit
19
- * (pla, petg, al6061, al7075, s275, ss304) or a material's rule set
19
+ * (pla, petg, abs, asa, pa_cf, al6061, al7075, s275, ss304) or a material's rule set
20
20
  * @returns {{ thread: string, depth: number, need: number, turns: number, diameters: number, class: string, material: string | null, enough: boolean, rests: object[], findings: object[] }}
21
21
  * need: the depth that would do; turns: threads engaged; diameters: the depth in diameters of the screw
22
22
  */
package/strength.mjs CHANGED
@@ -1,10 +1,13 @@
1
1
  // Strength and length: whether enough thread is engaged, the load that strips it, the clamp force a tightening torque
2
2
  // gives, the pressure under a head, and the sold length that fits a stack of parts. Each returns its numbers, what
3
3
  // they rest on, and findings in the kit's one shape. The strengths of materials come from the kit's material rule
4
- // sets (pla, petg, al6061, al7075, s275, ss304), or one handed in. These are first sums for a printed joint, with
4
+ // sets (pla, petg, abs, asa, pa_cf, al6061, al7075, s275, ss304), or one handed in. These are first sums for a printed joint, with
5
5
  // their estimates named: a joint that matters is tested. Units: mm, N, N·m, MPa.
6
6
  import pla from '@rulecad/rules/pla.json' with { type: 'json' };
7
7
  import petg from '@rulecad/rules/petg.json' with { type: 'json' };
8
+ import abs from '@rulecad/rules/abs.json' with { type: 'json' };
9
+ import asa from '@rulecad/rules/asa.json' with { type: 'json' };
10
+ import pa_cf from '@rulecad/rules/pa_cf.json' with { type: 'json' };
8
11
  import al6061 from '@rulecad/rules/al6061.json' with { type: 'json' };
9
12
  import al7075 from '@rulecad/rules/al7075.json' with { type: 'json' };
10
13
  import s275 from '@rulecad/rules/s275.json' with { type: 'json' };
@@ -16,7 +19,7 @@ import { holeModel } from './holes.mjs';
16
19
  * @typedef {import('./model.mjs').Fixing} Fixing a fixing's model, as fixingModel gives it
17
20
  */
18
21
 
19
- const KIT = { pla, petg, al6061, al7075, s275, ss304 };
22
+ const KIT = { pla, petg, abs, asa, pa_cf, al6061, al7075, s275, ss304 };
20
23
  /** The materials there are rule sets for in the kit, by name. */
21
24
  export const MATERIALS = Object.keys(KIT);
22
25
  /** The classes of material the engagement rules know. */
@@ -76,7 +79,7 @@ function proofOf(what, fx, o) {
76
79
  * aluminium, 2.5 in plastic (the engagement rule set of @rulecad/rules).
77
80
  * @param {Fixing | string} m a fixing's model or name @param {{ depth: number, material: string | object, sets?: object }} o
78
81
  * depth: the length of thread engaged, in mm; material: a class (plastic, aluminium, steel), a material of the kit
79
- * (pla, petg, al6061, al7075, s275, ss304) or a material's rule set
82
+ * (pla, petg, abs, asa, pa_cf, al6061, al7075, s275, ss304) or a material's rule set
80
83
  * @returns {{ thread: string, depth: number, need: number, turns: number, diameters: number, class: string, material: string | null, enough: boolean, rests: object[], findings: object[] }}
81
84
  * need: the depth that would do; turns: threads engaged; diameters: the depth in diameters of the screw
82
85
  */