loadpath 0.1.1__py3-none-any.whl

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 (220) hide show
  1. loadpath/README.md +294 -0
  2. loadpath/SKILL.md +584 -0
  3. loadpath/__init__.py +17 -0
  4. loadpath/__main__.py +1202 -0
  5. loadpath/am.py +316 -0
  6. loadpath/amgfast.py +326 -0
  7. loadpath/assembly.py +985 -0
  8. loadpath/benchmarks/__init__.py +0 -0
  9. loadpath/benchmarks/beams.py +266 -0
  10. loadpath/benchmarks/cases/ge-bracket.json +380 -0
  11. loadpath/benchmarks/evaluate.py +172 -0
  12. loadpath/benchmarks/mechanisms.py +416 -0
  13. loadpath/benchmarks/problems.py +140 -0
  14. loadpath/benchmarks/reference/bridge-3d.top3d.npz +0 -0
  15. loadpath/benchmarks/reference/cantilever-3d.top3d.npz +0 -0
  16. loadpath/benchmarks/reference/lbracket-2d.top88-ft2.npz +0 -0
  17. loadpath/benchmarks/reference/mbb-2d.top88-ft1.npz +0 -0
  18. loadpath/benchmarks/reference/mbb-2d.top88-ft2.npz +0 -0
  19. loadpath/benchmarks/reference.py +138 -0
  20. loadpath/benchmarks/run.py +301 -0
  21. loadpath/brep.py +1470 -0
  22. loadpath/bucklingopt.py +300 -0
  23. loadpath/buildsim.py +1490 -0
  24. loadpath/cadimport.py +904 -0
  25. loadpath/calibration.py +885 -0
  26. loadpath/cavities.py +211 -0
  27. loadpath/checks/__init__.py +0 -0
  28. loadpath/checks/dfm.py +354 -0
  29. loadpath/checks/exchanger.py +7 -0
  30. loadpath/checks/fea.py +212 -0
  31. loadpath/checks/fit.py +475 -0
  32. loadpath/checks/networks.py +260 -0
  33. loadpath/checks/opening.py +67 -0
  34. loadpath/checks/sdf_kit.py +7 -0
  35. loadpath/conjugate.py +267 -0
  36. loadpath/constrained.py +329 -0
  37. loadpath/contact.py +691 -0
  38. loadpath/coopt.py +342 -0
  39. loadpath/cores.py +163 -0
  40. loadpath/crease.py +1138 -0
  41. loadpath/critic.py +212 -0
  42. loadpath/crosscheck.py +1107 -0
  43. loadpath/cutcell.py +510 -0
  44. loadpath/data/lattice_buckling.json +439 -0
  45. loadpath/data/lattice_tensors.json +27449 -0
  46. loadpath/data/published_experiments.json +71 -0
  47. loadpath/decimate.py +177 -0
  48. loadpath/delivery.py +190 -0
  49. loadpath/directions.py +262 -0
  50. loadpath/domain.py +630 -0
  51. loadpath/drains.py +615 -0
  52. loadpath/durability.py +413 -0
  53. loadpath/editor.html +3135 -0
  54. loadpath/editor.py +610 -0
  55. loadpath/escape.py +354 -0
  56. loadpath/evals/__init__.py +0 -0
  57. loadpath/evals/baselines/coarse.json +1543 -0
  58. loadpath/evals/baselines/full.json +1497 -0
  59. loadpath/evals/brief_kinds/__init__.py +1 -0
  60. loadpath/evals/brief_kinds/heatx.py +387 -0
  61. loadpath/evals/brief_kinds/lattice.py +571 -0
  62. loadpath/evals/brief_kinds/multimat.py +593 -0
  63. loadpath/evals/briefs/assets/bracket.step +1201 -0
  64. loadpath/evals/briefs/assets/desk_arm.urdf +22 -0
  65. loadpath/evals/briefs/assets/elbow-gearbox.stl +0 -0
  66. loadpath/evals/briefs/assets/motor-body.stl +0 -0
  67. loadpath/evals/briefs/assets/sketch.png +0 -0
  68. loadpath/evals/briefs/base-adapter-fdm.json +492 -0
  69. loadpath/evals/briefs/bell-crank-lpbf.json +180 -0
  70. loadpath/evals/briefs/belt-tensioner-fdm.json +151 -0
  71. loadpath/evals/briefs/camera-boom-mjf.json +339 -0
  72. loadpath/evals/briefs/camera-mount-pla.json +203 -0
  73. loadpath/evals/briefs/coolant-isolator-petg.json +100 -0
  74. loadpath/evals/briefs/elbow-bearing-bracket-sls.json +300 -0
  75. loadpath/evals/briefs/elbow-gearbox-forearm-mjf.json +558 -0
  76. loadpath/evals/briefs/elbow-link-fatigue-fdm.json +251 -0
  77. loadpath/evals/briefs/elbow-stop-pad-tpu.json +39 -0
  78. loadpath/evals/briefs/forearm-fdm.json +146 -0
  79. loadpath/evals/briefs/forearm-servo-link-fdm.json +327 -0
  80. loadpath/evals/briefs/grip-pad-finger-mm.json +354 -0
  81. loadpath/evals/briefs/gripper-bracket-creep-fdm.json +340 -0
  82. loadpath/evals/briefs/gripper-finger-fdm.json +155 -0
  83. loadpath/evals/briefs/gripper-jaw-fatigue-mjf.json +328 -0
  84. loadpath/evals/briefs/gripper-palm-fdm.json +715 -0
  85. loadpath/evals/briefs/hot-stepper-mount-asa-fdm.json +471 -0
  86. loadpath/evals/briefs/hpu-oil-cooler-lpbf.json +121 -0
  87. loadpath/evals/briefs/isolated-camera-mount-mm.json +675 -0
  88. loadpath/evals/briefs/kart-charge-cooler-lpbf.json +93 -0
  89. loadpath/evals/briefs/lighten-step-bracket.json +220 -0
  90. loadpath/evals/briefs/nema17-mount-stl.json +429 -0
  91. loadpath/evals/briefs/pillow-block-sls.json +220 -0
  92. loadpath/evals/briefs/polyjet-fingertip-mm.json +305 -0
  93. loadpath/evals/briefs/rod-hook-pla.json +154 -0
  94. loadpath/evals/briefs/sensor-arm-resin.json +150 -0
  95. loadpath/evals/briefs/shelf-bracket-pla.json +158 -0
  96. loadpath/evals/briefs/shoulder-riser-mjf.json +487 -0
  97. loadpath/evals/briefs/sketch-clevis.json +229 -0
  98. loadpath/evals/briefs/spring-bracket-pacf.json +294 -0
  99. loadpath/evals/briefs/tool-flange-ti64.json +280 -0
  100. loadpath/evals/briefs/tray-arm-lattice-fdm.json +260 -0
  101. loadpath/evals/briefs/turret-fdm.json +281 -0
  102. loadpath/evals/briefs/upper-arm-sls.json +179 -0
  103. loadpath/evals/briefs/urdf-forearm.json +233 -0
  104. loadpath/evals/briefs/wrist-link-mjf.json +278 -0
  105. loadpath/evals/briefs/wrist-yoke-mjf.json +245 -0
  106. loadpath/evals/briefs.py +393 -0
  107. loadpath/evals/cases/arm-link-cast.json +157 -0
  108. loadpath/evals/cases/arm-link-driven.json +171 -0
  109. loadpath/evals/cases/arm-link-sandwich.json +315 -0
  110. loadpath/evals/cases/arm-link.json +111 -0
  111. loadpath/evals/cases/bell-crank.json +116 -0
  112. loadpath/evals/cases/grip-turret.json +479 -0
  113. loadpath/evals/cases/grip-upper-arm.json +253 -0
  114. loadpath/evals/cases/grip-wrist-link-mjf.json +929 -0
  115. loadpath/evals/cases/grip-wrist-yoke.json +831 -0
  116. loadpath/evals/cases/lpbf-intercooler-core.json +59 -0
  117. loadpath/evals/cases/mbb-beam.json +61 -0
  118. loadpath/evals/cases/motor-body.stl +0 -0
  119. loadpath/evals/cases/motor-mount.json +265 -0
  120. loadpath/evals/cases/printed-hook.json +77 -0
  121. loadpath/evals/cases/wall-bracket-fasteners.json +125 -0
  122. loadpath/evals/cases/wall-bracket.json +126 -0
  123. loadpath/evals/corpus.py +179 -0
  124. loadpath/evals/pareto.py +90 -0
  125. loadpath/evals/run.py +860 -0
  126. loadpath/examples/arm-link.json +25 -0
  127. loadpath/examples/bumpered-bracket-compression.json +225 -0
  128. loadpath/examples/bumpered-bracket-lattice.json +204 -0
  129. loadpath/examples/bumpered-bracket.json +34 -0
  130. loadpath/examples/gripper-finger-mm.json +185 -0
  131. loadpath/examples/heat-exchanger-counterflow.json +21 -0
  132. loadpath/examples/heat-exchanger-crossflow-tuned.json +48 -0
  133. loadpath/examples/heat-exchanger-crossflow.json +20 -0
  134. loadpath/examples/pedal-lattice.json +23 -0
  135. loadpath/examples/pressure-plenum.json +12 -0
  136. loadpath/examples/shelf-bracket.json +27 -0
  137. loadpath/exchanger.py +831 -0
  138. loadpath/fasteners.py +199 -0
  139. loadpath/fem.py +668 -0
  140. loadpath/femops.py +70 -0
  141. loadpath/fieldjit.py +981 -0
  142. loadpath/fieldops.py +119 -0
  143. loadpath/fields.py +3697 -0
  144. loadpath/fieldtorch.py +464 -0
  145. loadpath/flow.py +984 -0
  146. loadpath/flowtopo.py +300 -0
  147. loadpath/gpu.py +521 -0
  148. loadpath/heatx.py +1067 -0
  149. loadpath/heatx_thermal.py +432 -0
  150. loadpath/homogenized.py +886 -0
  151. loadpath/ibrep.py +552 -0
  152. loadpath/impact.py +693 -0
  153. loadpath/infill.py +376 -0
  154. loadpath/interface_library.py +340 -0
  155. loadpath/interlock.py +186 -0
  156. loadpath/isolator.py +149 -0
  157. loadpath/knn.py +204 -0
  158. loadpath/lattice.py +1065 -0
  159. loadpath/lattice3mf.py +760 -0
  160. loadpath/lattice_buckling.py +245 -0
  161. loadpath/lattice_grade.py +325 -0
  162. loadpath/lattice_orient.py +595 -0
  163. loadpath/lattice_print.py +159 -0
  164. loadpath/lattice_tensors.py +558 -0
  165. loadpath/latticestep.py +1210 -0
  166. loadpath/manufacture.py +446 -0
  167. loadpath/material_library.py +489 -0
  168. loadpath/materials.py +144 -0
  169. loadpath/mcp_server.py +786 -0
  170. loadpath/mechanism.py +218 -0
  171. loadpath/mechanism_nl.py +811 -0
  172. loadpath/meshops.py +452 -0
  173. loadpath/mg.py +853 -0
  174. loadpath/mma.py +214 -0
  175. loadpath/modal.py +210 -0
  176. loadpath/multimat.py +1788 -0
  177. loadpath/narrowband.py +418 -0
  178. loadpath/nlkernel.py +241 -0
  179. loadpath/nonlinear.py +1095 -0
  180. loadpath/orient.py +334 -0
  181. loadpath/porous.py +994 -0
  182. loadpath/pressure.py +171 -0
  183. loadpath/preview.py +335 -0
  184. loadpath/printcheck.py +263 -0
  185. loadpath/printsetup.py +207 -0
  186. loadpath/processcheck.py +376 -0
  187. loadpath/quick.py +113 -0
  188. loadpath/recall.py +406 -0
  189. loadpath/reconstruct.py +797 -0
  190. loadpath/render.py +436 -0
  191. loadpath/resolved.py +189 -0
  192. loadpath/schema.py +1701 -0
  193. loadpath/sdf_kit.py +843 -0
  194. loadpath/selfx.py +292 -0
  195. loadpath/shapes.py +584 -0
  196. loadpath/sharp.py +717 -0
  197. loadpath/simp.py +1170 -0
  198. loadpath/sizing.py +312 -0
  199. loadpath/slicer.py +321 -0
  200. loadpath/spec.py +1072 -0
  201. loadpath/step.py +806 -0
  202. loadpath/struts.py +639 -0
  203. loadpath/study.py +1937 -0
  204. loadpath/tasks.py +822 -0
  205. loadpath/thermal.py +1691 -0
  206. loadpath/threemf.py +487 -0
  207. loadpath/tune.py +437 -0
  208. loadpath/validation.py +145 -0
  209. loadpath/verify.py +1215 -0
  210. loadpath/viewer.html +694 -0
  211. loadpath/viewer.py +446 -0
  212. loadpath/viscoelastic.py +106 -0
  213. loadpath/voxelprint.py +582 -0
  214. loadpath/voxels.py +402 -0
  215. loadpath-0.1.1.dist-info/METADATA +319 -0
  216. loadpath-0.1.1.dist-info/RECORD +220 -0
  217. loadpath-0.1.1.dist-info/WHEEL +5 -0
  218. loadpath-0.1.1.dist-info/entry_points.txt +2 -0
  219. loadpath-0.1.1.dist-info/licenses/LICENSE +21 -0
  220. loadpath-0.1.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,157 @@
1
+ {
2
+ "name": "arm-link-cast",
3
+ "description": "The arm-link case cast (or molded) in a two-part mold opening along z: no undercuts along z, so every hole runs straight through. The 10 mm cable channel along x is the study's own undercut (it needs a side core) and is not counted against the part. Same goal: SF 3 and 0.5 mm at the wrist in PA12.",
4
+ "designSpace": [
5
+ {
6
+ "type": "box",
7
+ "min": [
8
+ -16,
9
+ -18,
10
+ -12
11
+ ],
12
+ "max": [
13
+ 156,
14
+ 18,
15
+ 12
16
+ ]
17
+ }
18
+ ],
19
+ "preserve": [
20
+ {
21
+ "id": "shoulder-boss",
22
+ "shape": {
23
+ "type": "cylinder",
24
+ "center": [
25
+ 0,
26
+ 0,
27
+ 0
28
+ ],
29
+ "axis": "z",
30
+ "length": 24,
31
+ "r": 16
32
+ }
33
+ },
34
+ {
35
+ "id": "wrist-boss",
36
+ "shape": {
37
+ "type": "cylinder",
38
+ "center": [
39
+ 140,
40
+ 0,
41
+ 0
42
+ ],
43
+ "axis": "z",
44
+ "length": 24,
45
+ "r": 15
46
+ }
47
+ }
48
+ ],
49
+ "keepOut": [
50
+ {
51
+ "id": "shoulder-bearing",
52
+ "shape": {
53
+ "type": "cylinder",
54
+ "center": [
55
+ 0,
56
+ 0,
57
+ 0
58
+ ],
59
+ "axis": "z",
60
+ "length": 30,
61
+ "r": 11
62
+ }
63
+ },
64
+ {
65
+ "id": "wrist-bearing",
66
+ "shape": {
67
+ "type": "cylinder",
68
+ "center": [
69
+ 140,
70
+ 0,
71
+ 0
72
+ ],
73
+ "axis": "z",
74
+ "length": 30,
75
+ "r": 11
76
+ }
77
+ },
78
+ {
79
+ "id": "cable-channel",
80
+ "shape": {
81
+ "type": "cylinder",
82
+ "p0": [
83
+ 30,
84
+ 0,
85
+ 0
86
+ ],
87
+ "p1": [
88
+ 110,
89
+ 0,
90
+ 0
91
+ ],
92
+ "r": 5
93
+ }
94
+ }
95
+ ],
96
+ "supports": [
97
+ {
98
+ "region": "shoulder-bearing"
99
+ }
100
+ ],
101
+ "loadCases": [
102
+ {
103
+ "name": "payload",
104
+ "loads": [
105
+ {
106
+ "region": "wrist-bearing",
107
+ "force": [
108
+ 0,
109
+ -40,
110
+ 0
111
+ ]
112
+ }
113
+ ]
114
+ },
115
+ {
116
+ "name": "side",
117
+ "loads": [
118
+ {
119
+ "region": "wrist-bearing",
120
+ "force": [
121
+ 0,
122
+ 0,
123
+ 15
124
+ ]
125
+ }
126
+ ]
127
+ }
128
+ ],
129
+ "material": "pa12",
130
+ "goal": {
131
+ "safetyFactor": 3.0,
132
+ "maxDeflection": 0.5,
133
+ "volumeFraction": 0.3
134
+ },
135
+ "minMember": 3.0,
136
+ "symmetry": [
137
+ "z"
138
+ ],
139
+ "resolution": {
140
+ "maxElements": 40000
141
+ },
142
+ "casting": {
143
+ "draw": "+z",
144
+ "sides": 2
145
+ },
146
+ "expect": {
147
+ "minMassReduction": 0.4,
148
+ "minSafetyFactor": 3.0,
149
+ "maxDeflection": 0.5,
150
+ "maxKeepOutIntrusion": 1.0,
151
+ "maxPreserveMissing": 1.0,
152
+ "bodies": 1,
153
+ "minMemberAtLeast": 2.4,
154
+ "maxMass": 75,
155
+ "maxUndercutVolume": 150
156
+ }
157
+ }
@@ -0,0 +1,171 @@
1
+ {
2
+ "name": "arm-link-driven",
3
+ "description": "The arm link as Fusion would set it up: the shoulder turns on a pin (its bearing) and is driven through four M3 holes of a servo horn on a 27mm circle, which is what actually holds it against the payload. The wrist bearing takes the payload as a bearing load (a shaft pushing on one side of the bore) plus the wrist motor's 1.5 N\u00b7m reaction torque; a side case adds a lateral push. The link carries its own weight.",
4
+ "designSpace": [
5
+ {
6
+ "type": "box",
7
+ "min": [-16, -18, -12],
8
+ "max": [156, 18, 12]
9
+ }
10
+ ],
11
+ "preserve": [
12
+ {
13
+ "id": "shoulder-boss",
14
+ "shape": {
15
+ "type": "cylinder",
16
+ "center": [0, 0, 0],
17
+ "axis": "z",
18
+ "length": 24,
19
+ "r": 16
20
+ }
21
+ },
22
+ {
23
+ "id": "wrist-boss",
24
+ "shape": {
25
+ "type": "cylinder",
26
+ "center": [140, 0, 0],
27
+ "axis": "z",
28
+ "length": 24,
29
+ "r": 15
30
+ }
31
+ }
32
+ ],
33
+ "keepOut": [
34
+ {
35
+ "id": "shoulder-bearing",
36
+ "shape": {
37
+ "type": "cylinder",
38
+ "center": [0, 0, 0],
39
+ "axis": "z",
40
+ "length": 30,
41
+ "r": 11
42
+ }
43
+ },
44
+ {
45
+ "id": "wrist-bearing",
46
+ "shape": {
47
+ "type": "cylinder",
48
+ "center": [140, 0, 0],
49
+ "axis": "z",
50
+ "length": 30,
51
+ "r": 11
52
+ }
53
+ },
54
+ {
55
+ "id": "cable-channel",
56
+ "shape": {
57
+ "type": "cylinder",
58
+ "p0": [30, 0, 0],
59
+ "p1": [110, 0, 0],
60
+ "r": 5
61
+ }
62
+ },
63
+ {
64
+ "id": "horn-0",
65
+ "shape": {
66
+ "type": "cylinder",
67
+ "center": [9.546, 9.546, 0],
68
+ "axis": "z",
69
+ "length": 30,
70
+ "r": 1.6
71
+ }
72
+ },
73
+ {
74
+ "id": "horn-1",
75
+ "shape": {
76
+ "type": "cylinder",
77
+ "center": [-9.546, 9.546, 0],
78
+ "axis": "z",
79
+ "length": 30,
80
+ "r": 1.6
81
+ }
82
+ },
83
+ {
84
+ "id": "horn-2",
85
+ "shape": {
86
+ "type": "cylinder",
87
+ "center": [-9.546, -9.546, 0],
88
+ "axis": "z",
89
+ "length": 30,
90
+ "r": 1.6
91
+ }
92
+ },
93
+ {
94
+ "id": "horn-3",
95
+ "shape": {
96
+ "type": "cylinder",
97
+ "center": [9.546, -9.546, 0],
98
+ "axis": "z",
99
+ "length": 30,
100
+ "r": 1.6
101
+ }
102
+ }
103
+ ],
104
+ "supports": [
105
+ {
106
+ "region": "shoulder-bearing",
107
+ "fix": "pin"
108
+ },
109
+ {
110
+ "region": "horn-0"
111
+ },
112
+ {
113
+ "region": "horn-1"
114
+ },
115
+ {
116
+ "region": "horn-2"
117
+ },
118
+ {
119
+ "region": "horn-3"
120
+ }
121
+ ],
122
+ "loadCases": [
123
+ {
124
+ "name": "payload",
125
+ "loads": [
126
+ {
127
+ "region": "wrist-bearing",
128
+ "force": [0, -40, 0],
129
+ "distribution": "bearing"
130
+ },
131
+ {
132
+ "region": "wrist-boss",
133
+ "moment": [0, 0, 1500]
134
+ }
135
+ ]
136
+ },
137
+ {
138
+ "name": "side",
139
+ "loads": [
140
+ {
141
+ "region": "wrist-bearing",
142
+ "force": [0, 0, 15],
143
+ "distribution": "bearing"
144
+ }
145
+ ]
146
+ }
147
+ ],
148
+ "material": "pa12",
149
+ "goal": {
150
+ "safetyFactor": 3.0,
151
+ "maxDeflection": 0.5,
152
+ "volumeFraction": 0.3
153
+ },
154
+ "minMember": 3.0,
155
+ "symmetry": [
156
+ "z"
157
+ ],
158
+ "resolution": {
159
+ "maxElements": 40000
160
+ },
161
+ "expect": {
162
+ "minMassReduction": 0.4,
163
+ "minSafetyFactor": 3.0,
164
+ "maxDeflection": 0.5,
165
+ "maxKeepOutIntrusion": 1.0,
166
+ "maxPreserveMissing": 1.0,
167
+ "bodies": 1,
168
+ "minMemberAtLeast": 2.4
169
+ },
170
+ "gravity": [0, -9.81, 0]
171
+ }
@@ -0,0 +1,315 @@
1
+ {
2
+ "name": "arm-link-sandwich",
3
+ "description": "The arm link as a sandwich field graph (examples/fields/arm-link-sandwich.json): a stress-graded skin over a sparse gyroid core in a tuned envelope, analyzed with its lattice homogenized. It must stay under the 54.9 g tuned solid web at the arm-link study's 0.5 mm and SF 3. The mustFail variant is the 38 g candidate (shallower web, thinner skin) that a coarse search grid once passed at 0.55 mm; it really deflects about 0.6 mm and must fail on every grid.",
4
+ "study": "example:arm-link",
5
+ "cells": 1000000,
6
+ "mustFail": [
7
+ {
8
+ "name": "38 g thin-skin link",
9
+ "set": {
10
+ "nodes/web/shape/max/2": 7.47,
11
+ "nodes/web/shape/min/2": -7.47,
12
+ "nodes/skinWall/to/1": 2.15
13
+ }
14
+ }
15
+ ],
16
+ "expect": {
17
+ "maxMass": 45.0,
18
+ "maxDeflection": 0.5,
19
+ "minSafetyFactor": 3.0,
20
+ "bodies": 1,
21
+ "coarse": {
22
+ "cells": 120000
23
+ }
24
+ },
25
+ "graph": {
26
+ "name": "arm-link-sandwich",
27
+ "description": "Sandwich arm link, the tuned result of arm-link-sandwich-tune.json checked on 1M analysis cells: a stress-graded skin (0.84-2.35 mm) over a sparse gyroid core (16 mm cells, 0.8 mm walls) in a 29.6 x 20 mm web. 42.8 g, 0.436 mm at the wrist bearing, SF 9.2 (homogenized; meshed 44.5 g, 0.40 mm resolved), against 54.9 g for the tuned solid web.",
28
+ "nodes": {
29
+ "shoulder": {
30
+ "op": "shape",
31
+ "shape": {
32
+ "type": "cylinder",
33
+ "center": [
34
+ 0,
35
+ 0,
36
+ 0
37
+ ],
38
+ "axis": "z",
39
+ "length": 24,
40
+ "r": 16
41
+ }
42
+ },
43
+ "wrist": {
44
+ "op": "shape",
45
+ "shape": {
46
+ "type": "cylinder",
47
+ "center": [
48
+ 140,
49
+ 0,
50
+ 0
51
+ ],
52
+ "axis": "z",
53
+ "length": 24,
54
+ "r": 15
55
+ }
56
+ },
57
+ "web": {
58
+ "op": "shape",
59
+ "shape": {
60
+ "type": "box",
61
+ "min": [
62
+ 0,
63
+ -14.8,
64
+ -10.0
65
+ ],
66
+ "max": [
67
+ 140,
68
+ 14.8,
69
+ 10.0
70
+ ]
71
+ },
72
+ "description": "tuned (half-width 14.8, half-height 10)"
73
+ },
74
+ "blob": {
75
+ "op": "union",
76
+ "inputs": [
77
+ "shoulder",
78
+ "wrist",
79
+ "web"
80
+ ],
81
+ "blend": 8
82
+ },
83
+ "slab": {
84
+ "op": "shape",
85
+ "shape": {
86
+ "type": "box",
87
+ "min": [
88
+ -20,
89
+ -20,
90
+ -12
91
+ ],
92
+ "max": [
93
+ 160,
94
+ 20,
95
+ 12
96
+ ]
97
+ }
98
+ },
99
+ "envelope": {
100
+ "op": "intersect",
101
+ "inputs": [
102
+ "blob",
103
+ "slab"
104
+ ],
105
+ "blend": 1.5,
106
+ "description": "the blend bulges past the bosses' faces: trim them flat, edges rounded 1.5 mm"
107
+ },
108
+ "bores": {
109
+ "op": "shape",
110
+ "shape": {
111
+ "type": "union",
112
+ "shapes": [
113
+ {
114
+ "type": "cylinder",
115
+ "center": [
116
+ 0,
117
+ 0,
118
+ 0
119
+ ],
120
+ "axis": "z",
121
+ "length": 30,
122
+ "r": 11
123
+ },
124
+ {
125
+ "type": "cylinder",
126
+ "center": [
127
+ 140,
128
+ 0,
129
+ 0
130
+ ],
131
+ "axis": "z",
132
+ "length": 30,
133
+ "r": 11
134
+ }
135
+ ]
136
+ },
137
+ "description": "the two 22 mm bearing seats"
138
+ },
139
+ "channel": {
140
+ "op": "shape",
141
+ "shape": {
142
+ "type": "cylinder",
143
+ "p0": [
144
+ 30,
145
+ 0,
146
+ 0
147
+ ],
148
+ "p1": [
149
+ 110,
150
+ 0,
151
+ 0
152
+ ],
153
+ "r": 5
154
+ },
155
+ "description": "cable channel"
156
+ },
157
+ "maxWeb": {
158
+ "op": "shape",
159
+ "shape": {
160
+ "type": "box",
161
+ "min": [
162
+ 0,
163
+ -17,
164
+ -11
165
+ ],
166
+ "max": [
167
+ 140,
168
+ 17,
169
+ 11
170
+ ]
171
+ }
172
+ },
173
+ "maxEnvelope": {
174
+ "op": "intersect",
175
+ "inputs": [
176
+ {
177
+ "op": "union",
178
+ "inputs": [
179
+ "shoulder",
180
+ "wrist",
181
+ "maxWeb"
182
+ ],
183
+ "blend": 8
184
+ },
185
+ "slab"
186
+ ],
187
+ "blend": 1.5
188
+ },
189
+ "maxSolid": {
190
+ "op": "subtract",
191
+ "inputs": [
192
+ "maxEnvelope",
193
+ "bores",
194
+ "channel"
195
+ ]
196
+ },
197
+ "stress": {
198
+ "op": "result",
199
+ "study": "example:arm-link",
200
+ "part": "maxSolid",
201
+ "pitch": 1.0,
202
+ "scale": "peak",
203
+ "description": "von Mises of the largest envelope, worst load case, over its peak"
204
+ },
205
+ "nearBore": {
206
+ "op": "distance",
207
+ "input": "bores"
208
+ },
209
+ "skinWall": {
210
+ "op": "remap",
211
+ "input": "stress",
212
+ "from": [
213
+ 0.1,
214
+ 0.8
215
+ ],
216
+ "to": [
217
+ 0.84,
218
+ 2.35
219
+ ],
220
+ "curve": "smoothstep"
221
+ },
222
+ "skin": {
223
+ "op": "shell",
224
+ "input": "envelope",
225
+ "thickness": "skinWall"
226
+ },
227
+ "collars": {
228
+ "op": "union",
229
+ "inputs": [
230
+ {
231
+ "op": "shell",
232
+ "input": "bores",
233
+ "side": "outside",
234
+ "thickness": 3
235
+ },
236
+ {
237
+ "op": "shell",
238
+ "input": "channel",
239
+ "side": "outside",
240
+ "thickness": 1.0
241
+ }
242
+ ],
243
+ "description": "solid rings round the bearings, a 1 mm liner round the cable channel"
244
+ },
245
+ "core": {
246
+ "op": "lattice",
247
+ "type": "gyroid",
248
+ "cell": 16.0,
249
+ "thickness": "wall"
250
+ },
251
+ "fill": {
252
+ "op": "intersect",
253
+ "inputs": [
254
+ "core",
255
+ "envelope"
256
+ ]
257
+ },
258
+ "fillet": {
259
+ "op": "remap",
260
+ "input": "nearBore",
261
+ "from": [
262
+ 3,
263
+ 20
264
+ ],
265
+ "to": [
266
+ 2.0,
267
+ 0.8
268
+ ]
269
+ },
270
+ "joined": {
271
+ "op": "union",
272
+ "inputs": [
273
+ "skin",
274
+ "collars",
275
+ "fill"
276
+ ],
277
+ "blend": "fillet"
278
+ },
279
+ "part": {
280
+ "op": "subtract",
281
+ "inputs": [
282
+ {
283
+ "op": "intersect",
284
+ "inputs": [
285
+ "joined",
286
+ "envelope"
287
+ ]
288
+ },
289
+ "bores",
290
+ "channel"
291
+ ]
292
+ },
293
+ "wall": {
294
+ "op": "remap",
295
+ "input": "stress",
296
+ "from": [
297
+ 0.05,
298
+ 0.6
299
+ ],
300
+ "to": [
301
+ 0.8,
302
+ 0.8
303
+ ],
304
+ "curve": "sqrt",
305
+ "description": "gyroid wall: never under the 0.8 mm minimum"
306
+ }
307
+ },
308
+ "output": "part",
309
+ "mesh": {
310
+ "pitch": 0.3
311
+ },
312
+ "material": "pa12",
313
+ "minWall": 0.8
314
+ }
315
+ }