@rulecad/fixings 0.1.4 → 0.1.6

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,85 @@ 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.6: the annular snap: lids that click on (#76)
8
+
9
+ ### Added
10
+
11
+ - **Annular snaps** (`snaps.mjs`, issue 76): a lid that clicks on to a round box. `annularSnapModel` gives the bead,
12
+ the undercut, the share of it the box's wall and the lid's skirt each take as two springs in series, the hoop strain
13
+ in each against the plastic's limit, and the forces to push the lid on and pull it off, from the Bayer snap-fit
14
+ guide's annular joint (P = y d Es X, its geometric factors `hubFactor` and `shaftFactor`); without a bead height it
15
+ is sized from `pull` with twice the margin. `annularBead` and `annularGroove` draw the bead and the groove (with a
16
+ lead-in at the skirt's mouth). Findings: `snap.undercut`, `snap.strain`, `snap.least`, `snap.forces`, `snap.remote`,
17
+ `snap.hold`, `snap.printable`. `SNAP_USES`. Bound in `fixingsFor`.
18
+ - **A closed end near an annular snap** (`boxFloor`, `lidTop`): `tubeRing` works out a ring load on a tube's wall as
19
+ Hetényi's beam on an elastic foundation, each end free, closed or long. A lid's top within a few times 1/β of its
20
+ groove holds the skirt round, so the skirt is stiffer and the box's wall takes more of the snap; the bending strain
21
+ at the closed end's root is held to the same limit. Findings `snap.closed` and `snap.root`. `snap.remote` reports
22
+ the free ends' share alone.
23
+ - Refused by name: a lead that friction locks (μ tan α of 1 or more), and a bead as deep as the skirt, whose groove
24
+ would cut through it. `snap.skirt` fails where the groove leaves less than one of the printer's `line` behind it.
25
+ Given `push`, `snap.push` warns where pushing the lid on square takes more.
26
+ - A sized bead is rounded up to what its pull needs and down to what its strain allows, and the strains are judged
27
+ unrounded (they are shown to 4 places), so a bead held to the strain passes its own strain check whatever the
28
+ limit rounds to.
29
+ - Refused by name: a closed end (`boxFloor`, `lidTop`) nearer the joint than its part's wall, 0 mm included, where
30
+ the wall cannot give and the sums came out as NaN and Infinity.
31
+ - `DEFAULTS` gains `snap_brief` (70% of the yield strain) and `snap_often` (60% of that) and `snap_remote` (3), from
32
+ the guide, and `snap_friction` (0.5) and `snap_least` (0.2 mm), estimates.
33
+
34
+ No printed size moved: nothing drawn before reads these.
35
+
36
+ ## 0.1.5: pins, magnet seats and printed bolts (Fixings 4)
37
+
38
+ ### Added
39
+
40
+ - **Pins** (`pins.mjs`): `pinModel`, `pinHole` and `pin` for a snap pin, a steel dowel (ISO 8734 or ISO 2338), a
41
+ length of 1.75 mm filament or a printed pin, named by a grammar (`snap pin 4x6`, `dowel 3x12`, `filament pin
42
+ 1.75x12`, `printed pin 4x10`): the hole from the printer's rules (press or slip for a plain pin, a teardrop lying on
43
+ its side), mass, shear and bearing, a snap pin's push-in and pull-out forces, and a pin too long or too short for
44
+ its part refused by name. `parsePin`, `isPinName`, `PIN_KINDS`, `PIN_FITS`, `PIN_GRAMMAR`.
45
+ - **Snap pins moved here** from `@rulecad/flexures`: `snapPin`, `snapSocket` and `snapPinModel`, same signatures and
46
+ defaults, with the snap-hook sums written in this package. `snapSocket`'s default clearance reads
47
+ `x1c.snap_clearance` (0.2 mm, the figure it always drew).
48
+ - **Magnets** (`magnets.mjs`): `magnetModel` (a disc or block's pull off steel, at another grade and across a gap),
49
+ `magnetSeatModel` and `magnetSeat` (a press, glued or crush-ribbed pocket from the printer's rules, its floor held
50
+ to three layers, a pull-out finding), `magnet`, `parseMagnet`, `isMagnetName`, `fieldShare`, `MAGNET_GRADES`,
51
+ `MAGNET_FITS`, `MAGNET_SIZES`, `MAGNET_GRAMMAR`.
52
+ - **Printed bolts** (`bolts.mjs`): `printedBoltModel` (breaking load in tension at the root, by how it prints, in
53
+ thread stripping and in head shear; held to `load_margin`; refused below the printer's smallest thread, naming the
54
+ smallest that prints), `printedBolt`, `BOLT_NUTS`. The word printed in a name (`M8x20 hex printed`) makes a screw
55
+ printed, at any length.
56
+ - `DEFAULTS`: `snap_play`, `pin_least`, `magnet_floor`, all estimates. The printer's basics now borrow
57
+ `snap_clearance`, `pin_press`, `pin_slip`, `magnet_press`, `magnet_glue` and `magnet_crush` from the X1C where a
58
+ printer's set lacks them.
59
+ - `materialOf` and `weakest` are exported from `strength.mjs`; `materialOf` also returns `density` and `poisson`.
60
+ - README: sections on pins, printed bolts and magnets, where each thing lives, and measuring the printer's fits with
61
+ the fixings coupon and the new holds coupon.
62
+
63
+ ### Changed
64
+
65
+ - `screwLoad`, `preload`, `torqueFor`, `stripping`, and `seating` with no force given, refuse a printed bolt by name:
66
+ each reads a steel screw's proof load, which a printed bolt does not have.
67
+ - `screwModel` on a printed name (`M8x20 hex printed`) keeps the word printed in its name, says `printed: true`, and
68
+ weighs it in its plastic (`material`, PLA by default: 2.0 g, not 12.46 g of steel). `lengthFor` names a printed
69
+ length as printed too.
70
+ - `magnetSeatModel` with no `fit` gives crush ribs for a disc standing in its pocket, and glue for a disc lying on its
71
+ side or a block: a press warned on its wall for an 8 x 3 disc in PLA and split a 10 x 5 x 2 block's.
72
+ - `magnetModel` and `magnetSeatModel` handed a magnet's model with options build it again from its name with them
73
+ (its own grade, gap, count, load and given pull kept where the options say none). Before, the options were ignored.
74
+
75
+ ### Printed sizes that moved
76
+
77
+ A magnet pocket drawn with no `fit` given: 8.2 mm with ribs for an 8 x 3 disc, where the press was 8 mm (fixings'
78
+ own default only; frames' catch and the coupons name their fit). Otherwise none. Every snap pin and socket the kit drew before (the launcher's, the joints sampler's, the gears tensioner's) is
79
+ byte for byte the same, and frames' magnet catch pocket is 10.2 mm as it was.
80
+
81
+ ### What a workspace should change
82
+
83
+ Nothing is required. To use the new fits on your own printer, print the holds coupon and write each result back with
84
+ `cad measured` (examples/bench/projects/benchmarks/MEASURE.md, rows 40 to 47).
85
+
7
86
  ## 0.1.4: the kit reads its screws from fixings (Fixings 3)
8
87
 
9
88
  ### What reads fixings now
package/README.md CHANGED
@@ -5,8 +5,9 @@ a screw thread: the thread itself (`M3`), a whole screw (`M3x12 cap`), a nut, a
5
5
  threaded brass bush melted into plastic). You name the fixing, and this package looks its dimensions up from rules and
6
6
  gives you the model, the hole, the seat and the solid. It also draws a real thread to print where one is worth it,
7
7
  and does the first sums on a joint: how much thread is engaged, the load that strips it, the clamp force from a
8
- tightening torque, the pressure under a head, and the sold length that fits. Every figure says how far to trust it
9
- and where it comes from.
8
+ tightening torque, the pressure under a head, and the sold length that fits. It holds what fastens two parts with no
9
+ steel screw as well: pins (a printed snap pin, a steel dowel, a length of filament), magnets in printed pockets, and
10
+ bolts printed with their thread. Every figure says how far to trust it and where it comes from.
10
11
  The figures live in [`@rulecad/rules`](https://github.com/JoniBach/rulecad/tree/main/packages/rules) as open data,
11
12
  one rule set per thread, and this package holds no screw's numbers of its own. Needs JSCAD. Part of
12
13
  [rulecad](https://github.com/JoniBach/rulecad).
@@ -65,8 +66,30 @@ and stresses in MPa.
65
66
  | [Reference hardware](#reference-hardware) | `screw`, `nut`, `washer`, `insert` |
66
67
  | [Threads cut for printing](#threads-cut-for-printing) | `thread`, `threadModel` |
67
68
  | [Strength and length](#strength-and-length) | `engagement`, `stripping`, `preload`, `torqueFor`, `seating`, `lengthFor`, `screwGroup`, `screwLoad` |
69
+ | [Pins](#pins) | `pinModel`, `pinHole`, `pin`, `snapPin`, `snapSocket`, `snapPinModel`, `parsePin`, `isPinName` |
70
+ | [Printed bolts](#printed-bolts) | `printedBoltModel`, `printedBolt` |
71
+ | [Magnets](#magnets) | `magnetModel`, `magnetSeatModel`, `magnetSeat`, `magnet`, `parseMagnet`, `isMagnetName`, `fieldShare` |
72
+ | [Annular snaps](#annular-snaps) | `annularSnapModel`, `annularBead`, `annularGroove`, `hubFactor`, `shaftFactor`, `tubeRing` |
73
+ | [Measuring the printer's fits](#measuring-the-printers-fits) | the fixings coupon and the holds coupon |
68
74
  | [Refusals and printability](#refusals-and-printability) | `printable` |
69
75
 
76
+ ## Where each thing lives
77
+
78
+ Anything whose job is to hold two parts together is here, where it is sized, its hole takes its fit from the
79
+ printer's rules, it goes on the shopping list and the build steps, and a coupon measures it. Some near neighbours
80
+ live elsewhere, each for a reason:
81
+
82
+ | Thing | Where | Why |
83
+ |---|---|---|
84
+ | Screws, nuts, washers, inserts, their holes and seats | here | they are the fixings |
85
+ | Snap pins (`snapPin`, `snapSocket`, `snapPinModel`), plain pins | here | moved from `@rulecad/flexures`, which passes the three snap pin functions on unchanged |
86
+ | Magnets and their pockets | here | `@rulecad/frames`' magnet catch takes its pocket and pull from `magnetSeatModel` |
87
+ | Printed bolts | here | a screw named with the word printed |
88
+ | Annular snaps, a lid that clicks on (`annularSnapModel`, `annularBead`, `annularGroove`) | here | their job is to hold a lid on its box; issue 76 listed them with the flexures, which keep the snap hook |
89
+ | Snap hooks, ratchets, pin joints printed in place, travel and angle stops | `@rulecad/flexures` | their bending is their job |
90
+ | A countersink, a nut pocket and a nut trap from plain figures, crush ribs, a teardrop hole | `@rulecad/shapes` | shapes draws from plain numbers and reads no rule sets; this package calls the same shapes with a thread's figures, so moving them would make a cycle |
91
+ | Slot nuts, carriers, brackets, hinges, latches, cable clips | `@rulecad/frames` | each is shaped to a beam's slot |
92
+
70
93
  ## Start here: a plate with four counterbored holes and an insert boss
71
94
 
72
95
  Install the package and JSCAD (`npm install @rulecad/fixings @jscad/modeling`), and this is a whole part: a plate
@@ -118,6 +141,7 @@ word = "cap" | "button" | "countersunk" | "hex" | "set" | "pan" a screw'
118
141
  | [ "hex" | "square" | "lock" ] "nut" a nut (hex if not said)
119
142
  | "washer" | "insert" a plain washer, a heat-set insert
120
143
  | a variant of the thread's rule set torx, on a PT screw
144
+ | "printed" a screw or nut printed with its thread, not bought
121
145
  ```
122
146
 
123
147
  | You write | You get |
@@ -485,6 +509,312 @@ as `petg` has), the weaker of the two is taken; where it has none (`pla`), the f
485
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
486
510
  of what they give, and test a joint that matters.
487
511
 
512
+ ## Pins
513
+
514
+ A pin holds two printed parts together with no thread. Four kinds are drawn and sized here:
515
+
516
+ - a **snap pin**, a printed peg split down its middle with a barb at its tip, which clicks through its hole and holds;
517
+ - a **dowel**, a bought steel pin (ISO 8734, hardened and ground, or ISO 2338, unhardened);
518
+ - a **filament pin**, a cut length of the printer's 1.75 mm filament, with nothing to buy;
519
+ - a **printed pin**, a plain printed peg.
520
+
521
+ `pinModel(name, options)` gives a pin's numbers by name: the hole it goes in, its mass, what it carries in shear and
522
+ what the printed hole takes in bearing, and for a snap pin the force to push it in and pull it out. `pinHole` is the
523
+ hole to subtract (round standing up, a teardrop lying on its side) and `pin` the pin's own solid. A plain pin is
524
+ pressed in (`fit: 'press'`, the default: it grips) or slides in (`fit: 'slip'`: it turns, a hinge pin). Each hole
525
+ takes its size from the printer's rules: a snap pin's socket is the peg plus `snap_clearance` each side, as drawn; a
526
+ plain pin's hole is the pin plus `hole_comp`, less `pin_press` or plus `pin_slip`. All three are estimates until the
527
+ holds coupon measures them (see [Measuring the printer's fits](#measuring-the-printers-fits)). A snap pin's barb is
528
+ 0.4 mm past its peg unless its name says another; the holds coupon prints three, and `x1c.snap_barb` records the one
529
+ that won. Given the `thickness` it goes through, a pin that does not fit its part is refused by
530
+ name: a plain pin longer than the parts stands proud, and a snap pin's shaft must be as long as the parts and at most
531
+ `snap_play` (0.5 mm) longer, or its barb never clicks out or rattles.
532
+
533
+ A pin's name is read by this grammar:
534
+
535
+ ```
536
+ pin = kind diameter "x" length { word } snap pin 4x6, dowel 3x12, filament pin 1.75x12, printed pin 4x10
537
+ kind = "snap pin" | "dowel" | "filament pin" | "printed pin" ("pins" and "dowel pin" are read too)
538
+ diameter = number mm: the peg's, below a snap pin's barb
539
+ length = number [ "mm" ] mm: a snap pin's shaft from its foot to its barb; a plain pin's whole length
540
+ word = "barb" number a snap pin's barb past its peg (default 0.4)
541
+ | "ISO 8734" | "ISO 2338" a dowel's standard: hardened and ground (the default), or unhardened
542
+ ```
543
+
544
+ ```js
545
+ import { pinModel, pinHole, pin } from '@rulecad/fixings';
546
+
547
+ const snap = pinModel('snap pin 4x6', { thickness: 6, pull: 2 });
548
+ console.log(snap.hole.diameter, snap.snap.insertion, snap.snap.removal, snap.grams);
549
+ for (const fit of ['press', 'slip']) console.log(fit, pinModel('dowel 3x12', { fit }).hole.diameter);
550
+ const dowel = pinModel('dowel 3x12', { thickness: 12, load: 30 });
551
+ console.log(dowel.shear, dowel.bearing, dowel.margin, dowel.governs);
552
+ const cut = pinHole('dowel 3x12', { fit: 'slip', axis: 'x', depth: 8 }), solid = pin('snap pin 4x6');
553
+ console.log(cut.model.hole.teardrop, solid.model.name);
554
+ try { pinModel('dowel 3x20', { thickness: 12 }); } catch (e) { console.log(e.message.slice(0, 96)); }
555
+ ```
556
+
557
+ ```text
558
+ 4.4 6.22 6.22 0.191
559
+ press 3.05
560
+ slip 3.3
561
+ 1122.5 702 23.4 bearing
562
+ true snap pin 4x6
563
+ pinModel: dowel 3x20 is 20 mm long, and the parts it goes in hold 12 mm of it: it is too long fo
564
+ ```
565
+
566
+ `snapPin`, `snapSocket` and `snapPinModel` draw and size a snap pin from plain figures (diameter, shaft length, barb,
567
+ slot, gap, lead and back angles, head), as `@rulecad/flexures` drew them before they moved here. Flexures re-exports
568
+ them unchanged, so `v.flexures.snapPin` draws the same pin it always has. `parsePin` reads a name and `isPinName`
569
+ says whether a text is one. In an assembly, a fit's `fastener` can name pins (`{ "pin": "snap pin 4x6", "count": 2 }`):
570
+ `cad check` finds their holes, checks them against these figures and the pins' length against the parts, and `cad
571
+ list` and `cad order` name them.
572
+
573
+ ## Printed bolts
574
+
575
+ A printed bolt is a screw printed with its thread, standing on its head, where a bought one will not do or is not to
576
+ hand. Name it as a screw with the word printed, `'M8x20 hex printed'`: it is then printed at any length, not held to
577
+ the lengths screws are sold in. `printedBoltModel(name, options)` gives its strength in the plastic it is printed in,
578
+ and `printedBolt` its solid (the screw with its thread drawn, as `screw(m, { display: 'thread' })` draws it).
579
+
580
+ It breaks at the least of three loads:
581
+
582
+ - **in tension across its root**, its root diameter as drawn, at the plastic's strength across its layers when it
583
+ stands on its head (`strength_z`; a plastic with none, as PLA's set, uses its strength along them and says so) or
584
+ along them when it lies on a flat (`axis: 'x'` or `'y'`, its section less the flat);
585
+ - **its teeth sheared off in the nut**, over 0.75 π D1 Le (the bolt's teeth at the nut's minor diameter) and, in a
586
+ printed nut, the nut's own 0.875 π d Le, whichever is less, at the plastic's shear strength (its strength over √3);
587
+ - **its head sheared off its shank**, over π d k, k the head's height.
588
+
589
+ A printed bolt goes in a printed nut or a thread printed in the part (`nut: 'printed'`, the default), each taking half
590
+ the printer's `thread_gap`, or in a bought steel nut (`nut: 'steel'`), the bolt then taking the whole gap, so its
591
+ root is smaller. `depth` is the thread engaged (default the thread's hex nut height), and `load`, the pull along it, is
592
+ held to `load_margin`. Below the smallest pitch the printer resolves it is refused by name, as a thread is, naming the
593
+ smallest thread that prints: M6 at 0.2 mm layers.
594
+
595
+ ```js
596
+ import { printedBoltModel, printedBolt } from '@rulecad/fixings';
597
+
598
+ const pair = printedBoltModel('M8x20 hex printed', { load: 200 });
599
+ console.log(pair.root, pair.rootArea, pair.tension.load, pair.strip.load, pair.breaking, pair.governs, pair.margin);
600
+ const inSteel = printedBoltModel('M8x20 hex printed', { nut: 'steel' }), lying = printedBoltModel('M8x20 hex printed', { axis: 'x' });
601
+ console.log(inSteel.root, inSteel.breaking, lying.rootArea, lying.tension.rule);
602
+ const solid = printedBolt('M10x30 hex printed'); // its thread drawn: print it standing on its head
603
+ console.log(solid.model.name, solid.model.grams);
604
+ try { printedBoltModel('M5x20 hex printed'); } catch (e) { console.log(e.message.split('. ')[1]); }
605
+ ```
606
+
607
+ ```text
608
+ 6.446 32.63 1272.7 2397.9 1272.7 tension 6.36
609
+ 6.246 1195 29.67 pla.strength
610
+ M10x30 hex printed 4.206
611
+ The smallest metric thread that would print is M6 (1 mm pitch)
612
+ ```
613
+
614
+ The first line reads: an M8 printed bolt in PLA, in a printed nut, has a 6.446 mm root drawn (the basic 6.646 mm less
615
+ its half of the 0.2 mm gap each side), 32.63 mm² of section, which breaks at 39 MPa × 32.63 mm² = 1272.7 N before its
616
+ teeth shear (2397.9 N): 6.36 times a 200 N pull. Do a printed bolt up by hand: its thread takes no wrench's torque.
617
+ In an assembly, a fasten's `screw` can name one (`"M8x20 hex printed"`): `cad check` holds it to its load with these
618
+ sums, and `cad list` lists it as a printed part, not a bought screw. `screwLoad`, `preload`, `torqueFor`, `stripping` and
619
+ `seating` with no force given refuse a printed bolt by name and point here: each reads a steel screw's proof load,
620
+ which a printed bolt does not have. A printed nut is read by them as usual, since the screw in it is a bought one.
621
+
622
+ PLA's rule set has no strength across its layers, so a PLA bolt standing on its head is taken at its strength along
623
+ them, 39 MPa, which overstates it. The holds coupon's pull bolt measures it: written back with `cad measured`, it
624
+ becomes the plastic's `strength_z`, and every printed bolt standing in that plastic is worked out from it.
625
+
626
+ ## Magnets
627
+
628
+ A magnet holds two parts together with no screw: a lid, a door's catch, a tool on a board. `magnetModel(name,
629
+ options)` gives a disc or block neodymium magnet's pull straight off steel and its mass; `magnetSeatModel` its pocket
630
+ in a printed part; `magnetSeat` the pocket to subtract, and `magnet` the magnet's solid for an assembly.
631
+
632
+ **The pull.** The kit's `magnets` rule set holds six discs (6 x 2, 6 x 3, 8 x 3, 10 x 2, 10 x 3 and 12 x 3 mm) and
633
+ two blocks (10 x 5 x 2 and 20 x 10 x 2 mm), each with its seller's pull straight off thick mild steel and the grade
634
+ it was sold in. Another grade is scaled from it by the square of the middle of the two grades' remanence; with no
635
+ grade named, N35, the weakest sold, so a pull is not overstated. Across a gap (`gap`, or the floor under the pocket
636
+ when the steel is on that side) the pull is taken as the pull touching times the square of the field on the magnet's
637
+ axis there, over the field at its face: an estimate. `count` magnets share a `load`, held to `load_margin`. For a size
638
+ the set has no figure for, give its maker's pull (`{ pull: 12 }`, in N).
639
+
640
+ **The pocket.** Each fit takes its size from the printer's rules, all estimates until the holds coupon measures
641
+ them: a press (`fit: 'press'`) is the magnet plus `hole_comp` less `magnet_press`; a glued fit (`fit: 'glue'`) plus
642
+ `magnet_glue`; crush ribs (`fit: 'ribs'`) are a glued pocket with three ribs a line wide whose tips stand
643
+ `magnet_crush` inside the magnet, so a magnet anywhere in its ±0.1 mm goes in and grips. With no fit given, a disc
644
+ standing in its pocket gets crush ribs, and a disc lying on its side (where ribs would hang from the roof) or a block
645
+ is glued: each of those passes for every size the set holds, in PLA and PETG. A press grips hardest, but it stretches
646
+ the wall: an 8 x 3 disc in PLA at 24.6 MPa round the hoop, past half of PLA's 39 MPa, and a 10 x 5 x 2 block at 39.4
647
+ MPa, which splits it. A block's pocket
648
+ has its corners relieved by round cuts, so no inside corner is square. Given the part's `thickness`, the floor left
649
+ under the pocket is held to `magnet_floor` (three layers). The magnet's own pull draws it out of a pocket that faces its
650
+ steel: a press grips by its interference (p = E i / d / (1 + ν), with friction over its wall), crush ribs by the
651
+ plastic's strength over the ribs, and glue by the glue, which is not checked here. A press also stretches the pocket's
652
+ wall at that pressure, which a magnet at the top of its tolerance can split.
653
+
654
+ Refused by name: a size the set has no pull for, a floor too thin to print, a pocket opening on the bed wider than
655
+ the printer bridges, a block's pocket or crush ribs lying on their side.
656
+
657
+ A magnet's name is read by this grammar:
658
+
659
+ ```
660
+ magnet = shape size [ grade ] disc magnet 8x3, disc magnet 10x3 N52, block magnet 10x5x2
661
+ shape = "disc magnet" | "block magnet" | "magnet" (a magnet alone is a disc; "magnets" is read too)
662
+ size = diameter "x" thickness a disc, in mm, magnetised through its thickness
663
+ | length "x" width "x" thickness a block, in mm, magnetised through its thickness
664
+ grade = "N35" | "N38" | "N40" | "N42" | "N45" | "N48" | "N50" | "N52" (default magnets.grade, N35)
665
+ ```
666
+
667
+ ```js
668
+ import { magnetModel, magnetSeatModel, magnetSeat, magnet } from '@rulecad/fixings';
669
+
670
+ const lid = magnetModel('disc magnet 8x3', { count: 2, load: 10 });
671
+ console.log(lid.name, lid.touching, lid.total, lid.margin, lid.grams);
672
+ for (const fit of ['press', 'glue', 'ribs']) { const s = magnetSeatModel('disc magnet 8x3', { fit, thickness: 5 }); console.log(fit, s.pocket.diameter, s.floor, s.hold); }
673
+ const through = magnetSeatModel('disc magnet 8x3 N52', { thickness: 4, recess: 0.4, facing: 'floor' });
674
+ console.log(through.magnet.gap, through.magnet.pull);
675
+ const cut = magnetSeat('block magnet 10x5x2', { at: [0, 0, 4] }), solid = magnet('disc magnet 8x3');
676
+ console.log(cut.model.pocket.size, solid.model.thickness);
677
+ try { magnetSeatModel('disc magnet 8x3', { thickness: 3.4 }); } catch (e) { console.log(e.message.slice(0, 98)); }
678
+ ```
679
+
680
+ ```text
681
+ disc magnet 8x3 N35 11.51 23.01 2.3 1.131
682
+ press 8 2 557.2
683
+ glue 8.2 2 null
684
+ ribs 8.2 2 44.2
685
+ 0.6 12.77
686
+ [ 10.2, 5.2 ] 3
687
+ magnetSeatModel: a pocket 3 mm deep in a part 3.4 mm thick there leaves a floor of 0.4 mm under th
688
+ ```
689
+
690
+ The first line reads: a lid held by two 8 x 3 mm discs. The seller's N45 disc pulls 14.7 N; as N35 it pulls 14.7 ×
691
+ (1.19 / 1.345)² = 11.51 N, and two pull 23.01 N, 2.3 times a 10 N pull. A 5 mm thick lid leaves a 2 mm floor under
692
+ each 3 mm pocket. Put the magnets' poles the right way round before they go in: two magnets facing each other repel
693
+ if they are put in alike. `parseMagnet` reads a name, `isMagnetName` says whether a text is one, and `fieldShare(m, z)`
694
+ is the field on a magnet's axis at z from its face over the field at its face. In an assembly, a fit's `fastener` can
695
+ name magnets (`{ "magnet": "disc magnet 8x3", "count": 2 }`): `cad check` finds their pockets and reports their pull,
696
+ and `cad list` lists them as bought.
697
+
698
+ ## Annular snaps
699
+
700
+ An annular snap holds a lid on a round box with no screw: it clicks on and pulls off. A bead runs round the outside
701
+ of the box's wall near its rim, and the lid's skirt has a groove inside it, the bead's shape grown by the printer's
702
+ `fit` all round, with a lead-in at the skirt's mouth. Pushed on, the bead's lead face spreads the skirt and squeezes
703
+ the wall; past it, both spring back and the bead sits in the groove touching neither, so nothing is strained at rest.
704
+ Pulled, the bead's return face has to spread the skirt again. A part whose job is to hold two parts together lives in
705
+ this package, so the annular snap is here, beside the snap pin; a snap hook, whose bending is its job alone, stays in
706
+ `@rulecad/flexures`.
707
+
708
+ `annularSnapModel(figures, options)` gives the numbers and findings; `annularBead` is the bead to add to the box's
709
+ wall and `annularGroove` the groove (and with `mouth`, the lead-in) to cut from the lid's skirt, each about the z axis
710
+ with the bead's foot at `at`, and each with the model on it as `.model`.
711
+
712
+ **The figures.** `diameter` is the box's wall outside at the joint, `wall` its thickness, `skirt` the lid's skirt
713
+ thickness. `bead` is how far the bead stands off the wall; less the clearance (the printer's `fit`) it is the undercut
714
+ the skirt is spread by. `lead` is the angle of the face the lid pushes over, from the axis (default 30°), `back` the
715
+ return face's (default 45°, the steepest the printer's `overhang` allows: it is the underside of the bead as the box
716
+ stands, and the face over the groove as the lid lies on its top). `land` is the bead's flat top (two layers), and
717
+ `boxEnd` and `lidEnd` how far the joint is from each part's free end (the rim, the skirt's mouth). `boxFloor` and
718
+ `lidTop` are how far it is from each part's closed end: the box's floor, and the underside of the lid's top. Each is
719
+ at least its part's own wall (the box's wall, the skirt): nearer than that the corner is solid and cannot give, so
720
+ it is refused.
721
+
722
+ **The sums.** Both parts are tubes. The Bayer snap-fit guide gives each one's transverse force for a spread y on the
723
+ diameter as P = y d Es X, with a geometric factor X from its proportions (X_N for the skirt spread over a rigid
724
+ shaft, X_W for the wall squeezed in a rigid tube). Here both give, so they are two springs in series and share the
725
+ interference by their stiffness: the guide's graphical method for two flexible parts, worked out. The hoop strain in
726
+ each is its share over its diameter, held to the plastic's limit: about 70% of its yield strain for a brief snap in an
727
+ amorphous plastic, and 60% of that for a lid opened often (`uses: 'often'`, the default; `'once'` for a joint snapped
728
+ once). The yield strain is taken as strength over modulus, below the real one. A joint further than 1.8 √(d t) from a
729
+ free end is about three times as stiff; nearer, the kit takes a straight line from 1 to 3. The forces along the push
730
+ are the guide's W = P (μ + tan α) / (1 - μ tan α), over the lead face going on and the return face coming off.
731
+
732
+ **A closed end near the joint.** The guide's tubes are open. A lid's skirt hangs from its top, and the top holds the
733
+ skirt round where they meet: a tube's wall bends over a length of about 1/β, with β⁴ = 3 (1 - ν²) / (R² t²), so a
734
+ groove within a few times 1/β of the top sits in a skirt far stiffer than a free tube, and the box's wall takes most
735
+ of the interference. `tubeRing` works this out as Hetényi's beam on an elastic foundation (the theory the guide's own
736
+ annular joint rests on): a ring load on the tube's wall, each end free, closed or long. The part's stiffness is
737
+ multiplied by the beam's deflection with that end open over the deflection with it closed, and the bending strain at
738
+ the closed end's root, 6 M (1 - ν²) / (E t²), is held to the same limit as the hoop strain (`snap.root`). The end is
739
+ taken as fully closed, the stiffest it can be, so the forces and the mate's strain err high. For the 60 mm pot's lid,
740
+ 1/β is 4.9 mm: a groove 1.3 mm under the top makes the skirt 46 times as stiff, and 5.8 mm under it 1.3 times.
741
+
742
+ **Refused and failed.** A lead that friction locks (μ tan α of 1 or more) is refused: no push slides the skirt over
743
+ it. So is a bead as deep as the skirt, whose groove would cut right through it. The groove must leave at least one of
744
+ the printer's `line` behind it (`snap.skirt`). Given `push`, the force the lid is pushed on with, a square push over
745
+ it warns (`snap.push`).
746
+
747
+ **Sizing.** Given no bead, it is sized: the least the print holds (`fixings.snap_least`, 0.2 mm of undercut), or
748
+ more where `pull` asks for it, so the lid stays on against twice the pull (`load_margin`), up to the most the strain
749
+ allows, rounded up to what the pull needs and down to what the strain allows. A bead given too tall fails by name
750
+ (`snap.strain`), with the most undercut that would do.
751
+
752
+ ```js
753
+ import { annularSnapModel, annularBead, annularGroove, tubeRing } from '@rulecad/fixings';
754
+
755
+ const joint = { diameter: 60, wall: 1.68, skirt: 1.26, boxEnd: 6, lidEnd: 1.5, lidTop: 5.8, boxFloor: 30.3 };
756
+ const lid = annularSnapModel(joint, { pull: 10 });
757
+ console.log(lid.bead, lid.undercut, lid.box.strain, lid.lid.strain, lid.lid.root, lid.permissible);
758
+ console.log(lid.force, lid.insertion, lid.removal, lid.margin, lid.lid.stiffer, lid.lid.decay);
759
+ const bead = annularBead(lid, { at: 30 }), groove = annularGroove(lid, { at: 30, mouth: 28 });
760
+ console.log(bead.model.length, groove.model.groove);
761
+ const near = annularSnapModel({ ...joint, boxEnd: 1.5, lidTop: 1.3 }, { pull: 10 });
762
+ console.log(near.lid.stiffer, near.box.strain, near.undercut, near.findings.filter((f) => f.level === 'warn').map((f) => f.code));
763
+ const tight = annularSnapModel({ ...joint, bead: 0.9 });
764
+ console.log(tight.findings.filter((f) => f.level === 'fail').map((f) => `${f.code} ${f.refs?.part ?? ''}`), tight.most.undercut);
765
+ console.log(+tubeRing(6, 6).w.toFixed(4), +tubeRing(0, 6, { A: 'free' }).w.toFixed(4));
766
+ try { annularSnapModel({ ...joint, bead: 0.2 }); } catch (e) { console.log(e.message.slice(0, 93)); }
767
+ try { annularSnapModel({ ...joint, lead: 60 }, { friction: 0.6 }); } catch (e) { console.log(e.message.slice(0, 93)); }
768
+ ```
769
+
770
+ ```text
771
+ 0.4 0.2 0.0023 0.0043 0.0032 0.0061
772
+ 231.8 351.1 695.4 69.54 1.3 4.9
773
+ 1.493 { inner: 30.2, outer: 30.6, depth: 0.4 }
774
+ 45.93 0.0061 0.19 [ 'snap.least' ]
775
+ [
776
+ 'snap.strain box',
777
+ 'snap.strain lid',
778
+ 'snap.root lid',
779
+ 'snap.skirt '
780
+ ] 0.284
781
+ 0.125 0.5
782
+ annularSnapModel: a bead of 0.2 mm is no taller than the x1c.fit clearance of 0.2 mm round th
783
+ annularSnapModel: a 60° lead at friction 0.6 locks: μ tan α is 1.04, 1 or more, so no push sl
784
+ ```
785
+
786
+ The first line reads: a pot 60 mm across with a wall of four lines and a skirt of three, its lid to stay on against
787
+ 10 N, the bead 6 mm under the rim and so the groove 5.8 mm under the lid's top. That needs far less than the least the
788
+ print holds, so the bead is 0.4 mm: 0.2 mm of undercut past the 0.2 mm fit. The wall takes 0.23% hoop strain, the
789
+ skirt 0.43% and the skirt's root 0.32%, under PLA's 0.61% (0.7 × 0.6 × 39 / 2680). Pushed on square it takes 351.1 N
790
+ and pulled off square 695.4 N, 69.54 times the pull. The top makes the skirt 1.3 times as stiff. Those are the guide's forces for the whole bead
791
+ at once: a lid put on by hand goes on at a tilt, a part of the bead at a time, and takes much less, which is why it
792
+ has a tab to lift it by. With the groove 1.3 mm under the top instead, the skirt is 46 times as stiff, the wall takes
793
+ almost all of the snap, and the strain holds the undercut to 0.19 mm, under the least the print holds. A 0.9 mm bead
794
+ strains both parts past the limit and leaves the skirt thinner than a line behind its groove; 0.284 mm of undercut is
795
+ the most. The beam's own checks: a long tube deflects 1/8 under a ring load, and 1/2 with the load at a free end. The
796
+ example project `enclosures` in the repository's bench draws this pot and lid (`snap-pot`) and puts the lid on
797
+ (`snap-pot-closed`).
798
+
799
+ ## Measuring the printer's fits
800
+
801
+ Every clearance a hole, a seat or a pocket is drawn with is a rule of the printer's, and most are estimates until two
802
+ coupons measure them, printed together on one plate (`examples/bench/projects/benchmarks/MEASURE.md` says how to read
803
+ each):
804
+
805
+ - the **fixings coupon** (`objects/fixings-coupon`, rows 22 to 28): pilots, insert holes, nut pockets and slots, a
806
+ counterbore, and printed threads for bought bolts, writing `pilot_m3` and its kin, `insert_m3`, `nut_fit`,
807
+ `nut_slip`, `thread_gap` and `thread_flank`;
808
+ - the **holds coupon** (`objects/holds-coupon`, rows 40 to 47): snap pin sockets and three barbs (`snap_clearance`,
809
+ `snap_barb`), a 3 mm dowel's and 1.75 mm filament's press and slip holes (`pin_press`, `pin_slip`), 6 x 3 and 8 x 3
810
+ magnet pockets pressed and ribbed (`magnet_press`, `magnet_crush`), printed nuts and bolts for M8 and M10 (a second
811
+ reading of `thread_gap`), and a pull bolt whose waist breaks across its layers (the plastic's `strength_z`).
812
+
813
+ Each feature on a coupon is drawn by this package from the printer's rules, at the kit's figure and a step either side,
814
+ and labelled with its figure. Write the best one back with `cad measured benchmarks/fixings-test x1c.pin_press=0.1`: it
815
+ goes into the workspace's copy of the printer's set, marked measured with the date, and every design drawn after it
816
+ uses it. `cad measured` refuses a figure no fit of its kind can be (a press of 3 mm), naming what it accepts.
817
+
488
818
  ## Refusals and printability
489
819
 
490
820
  Bad input is refused by name before any geometry is made, with what would be accepted:
@@ -499,6 +829,7 @@ Bad input is refused by name before any geometry is made, with what would be acc
499
829
  | A material with no rule set (`'nylon'`) | The materials there are |
500
830
  | A printed thread too fine for the printer, or on its side with no flat | The smallest thread that would print; the flat |
501
831
  | A stack no sold screw fits | The nearest length and by how much it misses |
832
+ | A pin too long or too short for its part (`thickness`), a dowel size not sold, a pin thinner than `pin_least` | How long the pin is against the parts, the nearest sizes |
502
833
 
503
834
  `printable(x)` gives what a printer can make of anything this package draws, as findings: pass a model or the solid
504
835
  made from it. A hole, a seat or a printed thread gives its `.printable` finding for the direction it was drawn for
@@ -548,13 +879,19 @@ hole: depth is a number above 0, in mm (got -2)
548
879
  - **Standards** (`spec`): threads, clearance holes, heads, nuts, washers, lengths and proof stresses, each from its
549
880
  standard as tabulated on the pages its rule names. The thread profiles are ISO 68-1's and ISO 2904's formulas.
550
881
  - **Measured**: the X1C's M3 pilot (`x1c.pilot_m3`, 2.9 mm, from the kit's fit bar). It is the only measured figure
551
- so far. The fixings coupon (`examples/bench/projects/benchmarks/objects/fixings-coupon`) measures the rest, per
552
- printer and plastic, and `cad measured` writes each result to the printer's rule set.
553
- - **Community**: heat-set inserts (CNC Kitchen's sheet), pilots for M2 to M4 (Bambu Lab's figures for PLA) and for
882
+ so far. The fixings coupon and the holds coupon measure the rest, per printer and plastic, and `cad measured`
883
+ writes each result to the printer's rule set (see [Measuring the printer's fits](#measuring-the-printers-fits)).
884
+ - **Community**: the annular snap's share of the yield strain for a brief snap (`snap_brief`, 70%) and for one opened often
885
+ (`snap_often`, 60% of that) and its remote joint's factor (`snap_remote`, 3), from the Bayer snap-fit guide for its own
886
+ plastics, applied to printed PLA and PETG unchecked; magnets' pulls straight off steel (the seller's figures, supermagnete) and the grades' remanence, heat-set inserts (CNC Kitchen's sheet), pilots for M2 to M4 (Bambu Lab's figures for PLA) and for
554
887
  the PT screws (the maker's factor for ABS), the engagement rules, the printer's `hole_comp`, `fit` and `bridge`,
555
888
  the two layers a nut pocket is sunk, and the three quarters of proof load a fully tightened screw is taken to carry.
556
889
  - **Estimates**: pilots for M1.6, M5 and up, and every inch size (nobody has published one); the printer's `slip`,
557
- `press` and `thread_gap`; the layers and line a printed thread needs; the layer left over a nut put in mid-print;
890
+ `press`, `thread_gap`, `snap_clearance`, `pin_press`, `pin_slip`, `magnet_press`, `magnet_glue` and `magnet_crush`; a steel dowel's shear strength and the play a
891
+ snap pin's shaft may have; a magnet's pull at a grade other than its seller's and across a gap, the grip of a press
892
+ or of crush ribs on a magnet, the three layers under a magnet's pocket, and every strength of a printed bolt; the layers and line a printed thread needs; the layer left over a nut put in mid-print;
893
+ an annular snap's friction (`snap_friction`, 0.5) and least undercut (`snap_least`), its stiffness between a free end
894
+ and a remote joint, a closed end taken as fully closed, the skirt's full thickness at its groove, and its plastic's yield strain (strength over modulus) and modulus in place of the guide's secant modulus;
558
895
  a material's shear strength (its tensile strength over √3) and what it bears under a head (its strength); the nut
559
896
  factor K (0.2); the diameter of thread asked in an insert; the millimetre kept at a screw's tip; and every mass.
560
897
  A mass comes from the part's outline, with no socket and no knurls, and an insert's alloy is assumed.
@@ -597,6 +934,26 @@ with its `rule`, `kind` and `source`.
597
934
  | Pull on each screw of a group | P = Fz / n + b x + c y, with Σ P y = Mx and Σ P x = -My about the centroid; screws in a line tip about the clamped face's edge, P = M / (n × pivot) | An estimate of this package: the plane through the centroid holds while the parts stay pressed together. No source was read for it |
598
935
  | A screw under its load | the screw: (Fp + k P)² + 3 (k S)² = proof load²; the thread: Fp + k P = strip load; the clamp: μ (Fp - k P) = k S; the margin is the least k of the first two | Von Mises on the stress area; the screw takes the whole pull and the clamp loses the whole pull, each the safe side for a part far softer than the screw. μ is `fixings.clamp_friction`, an estimate |
599
936
  | A screw's length | grip = stack + washer - sunk; engaged = length - grip; fits where need ≤ engaged ≤ room | Geometry, with the rules for need and room in the table under `lengthFor` |
937
+ | A snap pin's half | k = E w t³ / 4L³, with L the slot, t = (d - gap) / 2, w = 0.8 d; strain at the root 3 t y / 2 L² for the barb y | The cantilever snap-fit (BASF and Bayer snap-fit design guides), as `@rulecad/flexures` models a snap hook |
938
+ | Push in and pull out | W = 2 k y (μ + tan α) / (1 - μ tan α), α the lead or back angle; holds where α is 90° or μ tan α ≥ 1 | The same guides |
939
+ | A pin's shear | F = τ π d² / 4 × planes, a snap pin's area less its slot (gap × d); τ = strength / √3, or `pins.dowel_shear` for steel | Von Mises; the dowel's figure is an estimate that understates a hardened pin |
940
+ | The hole's bearing | F = strength × d × grip, the grip half the parts' thickness unless given | Projected area, as a screw's seat is taken; an estimate |
941
+ | A pin's mass | m = ρ π d² / 4 L, a snap pin's from its drawn solid | Geometry, with the plastic's or steel's density |
942
+ | A printed bolt in tension | F = strength × (π/4) dr², dr the root as drawn (the basic d - 1.0825 P less the bolt's share of thread_gap each side); strength across the layers standing (strength_z), along them lying; lying, the section less the segment past its flat | ISO 68-1 basic profile; the plastic's rule set. An estimate |
943
+ | Its teeth sheared in the nut | the bolt's A = 0.75 π D1 Le, D1 = d - 1.0825 P (its tooth is 0.75 P wide where the nut's crest flat, P/4, ends); a printed nut's A = 0.875 π d Le; F = (strength / √3) × the lesser | The same derivation as the internal thread's shear area above, at basic sizes; an estimate |
944
+ | Its head sheared off | F = (strength / √3) × π d k, k the head's height | Geometry; an estimate |
945
+ | A magnet's pull at another grade | F = F_sold × (Br / Br_sold)², each Br the middle of its grade's range | The force on an iron face, F = B² A / 2μ0 (Wikipedia, Force between magnets), with B in proportion to Br; remanence from supermagnete's physical magnet data. An estimate |
946
+ | A magnet's pull across a gap | F(z) = F(0) × (B(z) / B(0))²; a disc's B(z) = Br/2 [(D + z) / √(R² + (D + z)²) - z / √(R² + z²)], a block's Br/π [atan(LW / (2z √(4z² + L² + W²))) - atan(LW / (2(D + z) √(4(D + z)² + L² + W²)))] | supermagnete, How do you calculate the magnetic flux density? (the formulas); the square as above. An estimate |
947
+ | A magnet's pocket | press: d + hole_comp - magnet_press; glue: d + hole_comp + magnet_glue; ribs: the glue pocket, three ribs' tips at d + hole_comp - magnet_crush | The printer's rules, estimates until the coupon measures them |
948
+ | A press's grip on a magnet | p = E i / d / (1 + ν), i = magnet_press; hold = μ p π d h; the pocket's wall stretched round its hoop at p | A rigid disc pressed into a hole in a wide plate (Lamé's thick cylinder with an infinite outer radius); μ is clamp_friction. An estimate, which creep lowers |
949
+ | Crush ribs' grip | hold = μ × strength × n w h, n ribs a line w wide, crushed to the plastic's strength | An estimate of this package |
950
+ | A magnet's mass | m = 7.5 g/cm³ × its volume | magnets.density, worked from sellers' weights |
951
+ | An annular snap's geometric factor | X_N = 0.62 √((k - 1)/(k + 1)) / ((k² + 1)/(k² - 1) + ν), k = d0 / d, for the skirt; X_W the same with - ν and k = d / di, for the wall | Bayer, Snap-Fit Joints for Plastics, the annular snap joint (pages 21 and 22) |
952
+ | Its transverse force | P = y d Es X for each part alone, y on the diameter; the two in series, k = 1 / (1/k_box + 1/k_lid) with k = factor × d E X; factor 1 at a free end, 3 from 1.8 √(d t) in, a straight line between | The same guide (pages 21 and 22, and page 24 for two flexible parts); Es taken as the modulus, and the line an estimate |
953
+ | Its hoop strain | ε = (P / k_part) / d_part, held to 0.7 × strength / modulus, × 0.6 for a joint opened often | The same guide (page 11, and the note to Table 2 on page 12); yield strain as strength over modulus, an estimate on the safe side |
954
+ | Its forces along the push | W = P (μ + tan α) / (1 - μ tan α), α the lead going on and the return face coming off; refused where μ tan α ≥ 1 on the lead | The same guide (page 14) |
955
+ | A closed end near the joint | w'''' + 4 w = 0 in ξ = βx, β⁴ = 3 (1 - ν²) / (R² t²); a ring load q steps w''' by q / (D β³), D = E t³ / 12 (1 - ν²); a free end has w'' = w''' = 0, a closed one w = w' = 0; the part is stiffer by w(open) / w(closed) | Hetényi, Beams on Elastic Foundation (1946): a long tube gives w = Pβ / 2k, a free end 2Pβ / k; the end taken as fully closed, an estimate on the stiff side |
956
+ | The bending at a closed end | M = w''(ξ) q / β, q = P / (π d); ε = 6 M (1 - ν²) / (E t²) | Plate bending, with the same beam |
600
957
 
601
958
  VDI 2230 and Machinery's Handbook are named because the plan asked for them. Neither was read at first hand for
602
959
  this package: the handbook's thread shear area and stress area are applied as the pages above give them, and VDI
@@ -604,6 +961,8 @@ this package: the handbook's thread shear area and stress area are applied as th
604
961
 
605
962
  ## Glossary
606
963
 
964
+ - **Annular snap**: a bead round a round part that clicks into a groove round its mate: a lid that snaps on.
965
+ - **Hoop strain**: how much a ring is stretched (or squeezed) round its circumference, the change in its diameter over its diameter.
607
966
  - **Clearance hole**: a hole a screw passes through without touching, a little wider than the thread.
608
967
  - **Clamp force, preload**: the force a tightened screw presses the parts together with.
609
968
  - **Counterbore**: a wider, flat-bottomed step at the mouth of a hole that hides a screw's head.
@@ -626,8 +985,10 @@ this package: the handbook's thread shear area and stress area are applied as th
626
985
  - **Rule set**: a JSON file of named, sourced values in `@rulecad/rules`: one per thread, printer or material.
627
986
  - **Start**: one of the separate threads wound side by side on a multi-start screw.
628
987
  - **Stripping**: a thread failing by its teeth shearing off.
988
+ - **Secant modulus**: a plastic's stress over its strain at a given strain, a little under its modulus at small strains.
629
989
  - **Teardrop**: a round hole with a pointed top, so a hole lying on its side prints with no support.
630
990
  - **Trapezoidal thread**: the flat-topped thread of a lead screw, with flanks 30° apart.
991
+ - **Undercut**: how far a snap's bead stands past the part it has to pass, so the parts must bend to let it by.
631
992
 
632
993
  ## Sources
633
994
 
@@ -640,8 +1001,11 @@ Each figure's own source is in its rule (`m.figures.<name>.source`, and `DEFAULT
640
1001
  - [Bolted joint](https://en.wikipedia.org/wiki/Bolted_joint), Wikipedia: torque and preload, the nut factor, and how tightening methods scatter.
641
1002
  - [Bolt group capacity](https://steelcalculator.pages.dev/reference/bolt-group-capacity/), the elastic method: direct and torsional shear in a group.
642
1003
  - [Von Mises yield criterion](https://en.wikipedia.org/wiki/Von_Mises_yield_criterion), Wikipedia: shear yield from tensile yield.
1004
+ - [How do you calculate the magnetic flux density?](https://www.supermagnete.de/eng/faq/How-do-you-calculate-the-magnetic-flux-density), supermagnete: the field on a disc's and a block's axis; [Physical magnet data](https://www.supermagnete.de/eng/physical-magnet-data), supermagnete: each grade's remanence; and [Force between magnets](https://en.wikipedia.org/wiki/Force_between_magnets), Wikipedia: the force on an iron face, F = B² A / 2μ0. Read on 2026-11-21; each magnet's pull is its seller's page, named in its rule.
1005
+ - [Snap-Fit Joints for Plastics: A Design Guide](https://fab.cba.mit.edu/classes/S62.12/people/vernelle.noel/Plastic_Snap_fit_design.pdf), Bayer MaterialScience: the annular snap joint (its geometric factors, deflection and mating forces and worked lamp cover), the permissible strain for a snap and the friction table. Read on 2026-11-23.
1006
+ - M. Hetényi, Beams on Elastic Foundation, University of Michigan Press, 1946: a thin tube's wall under a ring load as a beam on an elastic foundation, with its long-tube and free-end deflections (Pβ / 2k and 2Pβ / k), which `tubeRing` reproduces in its tests. Not read at first hand for this package: the equation and the two results are the textbook ones, and the kit checks its solution against them and against a short cantilever's P L³ / 3 D.
643
1007
 
644
- All were read on 2026-11-15. The plan for this package is [issue 212](https://github.com/JoniBach/rulecad/issues/212),
1008
+ The rest were read on 2026-11-15. The plan for this package is [issue 212](https://github.com/JoniBach/rulecad/issues/212),
645
1009
  and its specification is `docs/fixings-and-frames.md` in the repository. In `@rulecad/cad` the package is to become
646
1010
  `v.fixings` in designs and a `fasten` relation in assemblies: that work is not in this release.
647
1011