@rulecad/fea 0.2.9 → 0.2.11
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 +15 -0
- package/README.md +224 -0
- package/frame.d.mts +569 -0
- package/frame.mjs +1023 -0
- package/package.json +15 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Changelog: @rulecad/fea
|
|
2
|
+
|
|
3
|
+
What changed in each release, for someone upgrading a workspace.
|
|
4
|
+
|
|
5
|
+
## 0.2.11: frames held, sized and their modes said (Frames 3)
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- `frame(model, { loose: 'hold' })` holds each way a frame could move that nothing resists and its loads do not push,
|
|
10
|
+
names it in `frame().loose`, and refuses a solve whose loads would move the frame that way. The default is unchanged.
|
|
11
|
+
- Modes and buckling on a held frame count the held ways as free: a way the frame moves mass with nothing resisting is
|
|
12
|
+
a 0 Hz mode marked `free`, and a frame its squeezed members lean further over tips at factor 0 (`tipped`).
|
|
13
|
+
- `sizing()`: the lightest section for each group of members that meets limits on deflection, stress, buckling and
|
|
14
|
+
frequency in every load case, by trying every design where there are few, else by steps; each group says the limit
|
|
15
|
+
that set it.
|
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@ How far a part bends under load. Finite elements on a grid of cells, each with i
|
|
|
4
4
|
in their own plane (2D, plane stress, square cells) and solid parts (3D, cubes). Plain JavaScript in typed arrays, no dependencies: it runs in browsers
|
|
5
5
|
and Node alike. Units are millimetres and newtons, so Young's modulus is in MPa and movement in mm.
|
|
6
6
|
|
|
7
|
+
Frames of beams joined at nodes have their own solver, `@rulecad/fea/frame`: see [Frames of beams](#frames-of-beams).
|
|
8
|
+
|
|
7
9
|
```js
|
|
8
10
|
import { grid, analyse } from '@rulecad/fea';
|
|
9
11
|
|
|
@@ -64,10 +66,232 @@ So give every member that bends at least four cells, and check a final shape on
|
|
|
64
66
|
stiffness moves by more than a few percent, the grid was too coarse. (Measured on cantilevers and a simply supported
|
|
65
67
|
beam, in 2D and 3D.)
|
|
66
68
|
|
|
69
|
+
## Frames of beams
|
|
70
|
+
|
|
71
|
+
`@rulecad/fea/frame` solves a frame as beams joined at nodes: how far it moves under load, what each beam carries,
|
|
72
|
+
the load at which it buckles and the frequencies it rings at. A frame of aluminium extrusion or tube would need
|
|
73
|
+
millions of cubes, nearly all of them empty; as beams it has a few hundred unknowns and solves in milliseconds, so a
|
|
74
|
+
machine's frame can be checked at every pose. It is its own entry of the package, with no dependencies, and runs in
|
|
75
|
+
browsers and Node alike.
|
|
76
|
+
|
|
77
|
+
```js
|
|
78
|
+
import { frame, subdivide } from '@rulecad/fea/frame';
|
|
79
|
+
|
|
80
|
+
const model = {
|
|
81
|
+
nodes: { footA: [0, 0, 0], topA: [0, 0, 400], topB: [600, 0, 400], footB: [600, 0, 0] }, // mm
|
|
82
|
+
sections: { bar2020: { A: 400, Iy: 13333, Iz: 13333, J: 22500, Asy: 333, Asz: 333, cy: 10, cz: 10 } },
|
|
83
|
+
materials: { aluminium: { E: 69000, nu: 0.33, density: 2.7 } },
|
|
84
|
+
elements: [
|
|
85
|
+
{ id: 'legA', a: 'footA', b: 'topA', section: 'bar2020', material: 'aluminium' },
|
|
86
|
+
{ id: 'beam', a: 'topA', b: 'topB', section: 'bar2020', material: 'aluminium', ends: { a: { ry: 2e6, rz: 2e6 }, b: { ry: 2e6, rz: 2e6 } } },
|
|
87
|
+
{ id: 'legB', a: 'footB', b: 'topB', section: 'bar2020', material: 'aluminium' },
|
|
88
|
+
],
|
|
89
|
+
supports: { footA: 'fixed', footB: 'fixed' },
|
|
90
|
+
loads: [{ node: 'topA', force: [50, 0, 0] }, { element: 'beam', spread: [0, 0, -0.2] }],
|
|
91
|
+
gravity: [0, 0, -9.81],
|
|
92
|
+
masses: { topB: 1.5 },
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const f = frame(model); // read, checked and factorised once
|
|
96
|
+
const s = f.statics();
|
|
97
|
+
s.displacements.topA; // [x, y, z, rx, ry, rz]: 0.40 mm sideways
|
|
98
|
+
s.reactions.footA; // the force (N) and moment (N·mm) the support gives the frame
|
|
99
|
+
s.elements[1].peak.My; // { value, x }: the beam's largest moment about its own y, and where along it
|
|
100
|
+
s.elements[1].stress.peak; // 5.6 MPa
|
|
101
|
+
const fine = frame(subdivide(model, 4)); // every member in four pieces, for buckling and modes
|
|
102
|
+
fine.buckling().factors[0]; // 181: the loads times this buckle the frame
|
|
103
|
+
fine.modes({ count: 3 }).frequencies; // [26.7, 36.6, 66.9] Hz
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
**The model** is plain data, so an assembly can write it and a file can hold it.
|
|
107
|
+
|
|
108
|
+
| Part | Shape | Notes |
|
|
109
|
+
|---|---|---|
|
|
110
|
+
| `nodes` | `{ name: [x, y, z] }`, or a list of positions named by place | mm |
|
|
111
|
+
| `elements` | `[{ id, a, b, section, material, roll, up, ends }]` | From node `a` to node `b`. `section` and `material` are objects, or names in the model's `sections` and `materials` |
|
|
112
|
+
| a section | `{ A, Iy, Iz, J, Asy, Asz, cy, cz }` | Area (mm²); second moments about the element's own y and z, and the torsion constant (mm⁴); shear areas (mm², leave out for no shear deformation); the distances to the furthest fibre along y and z (mm), or the section moduli `Wy` and `Wz` (mm³), for stress |
|
|
113
|
+
| a material | `{ E, nu, density }` | MPa; Poisson's ratio (or `G` in MPa); g/cm³, as the kit's material rule sets give it |
|
|
114
|
+
| `ends` | `{ a, b }`, each `'rigid'`, `'pinned'`, `'ball'` or `{ rx, ry, rz }` | How each end is joined to its node: each rotation `'rigid'`, `'free'`, or a spring's stiffness in N·mm/rad, about the element's own axes. `'pinned'` frees both bending rotations and still carries twist; `'ball'` frees all three |
|
|
115
|
+
| `supports` | `{ node: 'fixed' }`, `'pinned'`, or `{ x, y, z, rx, ry, rz }` | Each freedom `true` (held), left out (free), or a spring to ground in N/mm or N·mm/rad |
|
|
116
|
+
| `loads` | `{ node, force, moment }` or `{ element, spread, axes }` | N and N·mm in global axes; a spread load is N per mm of the element's length, in `'global'` axes or the element's `'local'` ones |
|
|
117
|
+
| `gravity` | `[0, 0, -9.81]` | N/kg, the same number as m/s². It acts on every element's mass and every lumped mass |
|
|
118
|
+
| `masses` | `{ node: kg }` | Lumped masses: weight under gravity, inertia in modes |
|
|
119
|
+
|
|
120
|
+
**An element's own axes.** x runs from `a` to `b`. z is the part of `up` square to the element, and `up` is global
|
|
121
|
+
+Z unless the element gives another (for an element along Z it is global +X). y = z × x. `roll`, in degrees, then
|
|
122
|
+
turns y and z about x. `Iy` resists bending that moves the beam along its z, `Iz` along its y. Every element's
|
|
123
|
+
result carries its `axes`, so nothing has to be guessed.
|
|
124
|
+
|
|
125
|
+
**What each solve returns.**
|
|
126
|
+
|
|
127
|
+
- `frame(model, { shear })` reads and checks the model, assembles and factorises it, and returns `{ statics,
|
|
128
|
+
buckling, modes, freedoms, nodes, loose }`. `shear: false` ignores the shear areas. `statics(model)`, `buckling(model)`
|
|
129
|
+
and `modes(model)` do it in one call. A model with `loose: 'hold'` is solved even where part of it can move with
|
|
130
|
+
nothing resisting (a frame in one plane on pinned feet sways out of that plane; a beam pinned at both ends spins on
|
|
131
|
+
its axis): each such freedom is held, `loose` names it by node, and a solve whose loads would do work moving the
|
|
132
|
+
frame that way is refused (`fea.frame.mechanism`, with `driven: true`). The modes count those freedoms free:
|
|
133
|
+
each way that moves mass unresisted comes back as a mode of 0 Hz, marked `free: true`, and the rest are the
|
|
134
|
+
frame's own, whichever freedom was held. They are the modes of `K + s M` (s the held frame's lowest eigenvalue),
|
|
135
|
+
which has the same shapes as `K` against `M` with every eigenvalue raised by s. Buckling gives a factor of 0 when
|
|
136
|
+
the loads lean the frame the way it is free (its squeezed members turning with it, `vᵀ B v > 0` for that way v,
|
|
137
|
+
B the geometric stiffness's negative): the frame tips over under any share of its loads before anything buckles,
|
|
138
|
+
and `tipped` names the freedoms. When the loads pull it back (a frame hanging from its pins), the factors are of
|
|
139
|
+
the frame held there, so they can only be higher than the true ones, and `rests` names the freedoms. When the
|
|
140
|
+
loads leave that way alone (a strut spinning on its axis), the factors are exact.
|
|
141
|
+
- `statics({ loads, gravity, masses, samples })`: `displacements` and `reactions` by node, each `[x, y, z, rx, ry,
|
|
142
|
+
rz]` in global axes; `deflection: { most, node }`; and `elements`, each with its `length`, `axes`, the `ends`
|
|
143
|
+
forces its nodes put on it (local axes), `axial` (its mean axial force, tension positive), and `along`: at each
|
|
144
|
+
station `x`, the axial force `N`, shears `Vy` and `Vz`, torque `T`, moments `My` and `Mz`, and the movement `d`
|
|
145
|
+
in global axes. The stations are `samples` evenly spaced (11) plus the points where each moment peaks, so `peak`
|
|
146
|
+
(each quantity's largest value and where) is exact for the loads supported. `stress` is the largest
|
|
147
|
+
`|N|/A + |My|/Wy + |Mz|/Wz` along the element, in MPa, where it is, and the bending part alone. Given other
|
|
148
|
+
loads, it solves another load case on the same factorisation.
|
|
149
|
+
- `buckling({ count })`: `factors`, lowest first, and `modes`, each `{ factor, shape }`: the loads times the factor
|
|
150
|
+
buckle the frame into the shape (by node, largest movement 1). `statics` is the solve it came from. The first
|
|
151
|
+
factor is always quick; more of them cost more when slender members are in tension.
|
|
152
|
+
- `modes({ count })`: `frequencies` in Hz, lowest first, and `modes`, each `{ frequency, shape }` (and `free: true`
|
|
153
|
+
on a mode of 0 Hz where the frame moves with nothing resisting).
|
|
154
|
+
- `sizing(model, o)`: each group of members given the lightest section from a list that meets limits on
|
|
155
|
+
deflection, stress, buckling and frequency (below).
|
|
156
|
+
- `subdivide(model, pieces)` cuts every element into equal pieces. One element cannot bow between its own ends, so
|
|
157
|
+
buckling and modes want members in pieces: a pinned column's Euler load is 22% out with one element, 0.8% with
|
|
158
|
+
two and 0.05% with four. Statics is exact with one.
|
|
159
|
+
|
|
160
|
+
**Refusals.** What is wrong with a model is said by name before any solve, as an `Error` with a `code`: a node
|
|
161
|
+
that does not exist (`fea.frame.node`), an element of no length (`fea.frame.length`), a section property that is
|
|
162
|
+
not above 0 (`fea.frame.section`), a material (`fea.frame.material`), an `up` along the element
|
|
163
|
+
(`fea.frame.axes`), a joint or support it cannot read (`fea.frame.join`, `fea.frame.support`), a load or mass
|
|
164
|
+
(`fea.frame.load`, `fea.frame.mass`), nothing held (`fea.frame.unheld`), a mechanism (`fea.frame.mechanism`, with
|
|
165
|
+
`loose`: the freedoms nothing resists, by node), and buckling with nothing in compression
|
|
166
|
+
(`fea.frame.compression`). A node that every element end is pinned to has rotations nothing turns: they are held
|
|
167
|
+
still and reported as 0, and a moment put on one is refused.
|
|
168
|
+
|
|
169
|
+
**Units.** mm, N, MPa, rad, N·mm; springs in N/mm and N·mm/rad; masses in kg, densities in g/cm³, gravity in N/kg;
|
|
170
|
+
frequencies in Hz. In the modal solve stiffness is N/mm and mass kg. A newton is a kg·m/s² and lengths are mm, so
|
|
171
|
+
N/mm ÷ kg = 1000 s⁻²: the frequency is `√(1000 λ) / 2π`, with λ the eigenvalue of the stiffness against the mass
|
|
172
|
+
in kg. A test holds this against the textbook formula worked in SI units.
|
|
173
|
+
|
|
174
|
+
**Formulas.** Each bending plane of an element has the freedoms `[v1, θ1, v2, θ2]`, with L its length and ξ = x/L.
|
|
175
|
+
|
|
176
|
+
| What | Formula | Source |
|
|
177
|
+
|---|---|---|
|
|
178
|
+
| Shear parameter | `Φ = 12 E I / (G As L²)`, one for each bending plane; 0 with no shear area, which is Euler-Bernoulli's beam | Przemieniecki, eq. 5.116 |
|
|
179
|
+
| Bending stiffness | `E I / ((1 + Φ) L³) × [[12, 6L, −12, 6L], [6L, (4 + Φ) L², −6L, (2 − Φ) L²], [−12, −6L, 12, −6L], [6L, (2 − Φ) L², −6L, (4 + Φ) L²]]` | Przemieniecki, eq. 5.116 |
|
|
180
|
+
| Stretch and twist | `(E A / L) × [[1, −1], [−1, 1]]` and `(G J / L) × [[1, −1], [−1, 1]]` | Przemieniecki, chapter 5 |
|
|
181
|
+
| Shape functions | Deflection `N = [2ξ³ − 3ξ² − Φξ + 1 + Φ, L (ξ³ − (2 + Φ/2) ξ² + (1 + Φ/2) ξ), −(2ξ³ − 3ξ² − Φξ), L (ξ³ − (1 − Φ/2) ξ² − (Φ/2) ξ)] / (1 + Φ)`; the section's rotation `R = [6 (ξ² − ξ) / L, 3ξ² − (4 + Φ) ξ + 1 + Φ, −6 (ξ² − ξ) / L, 3ξ² − (2 − Φ) ξ] / (1 + Φ)` | Friedman and Kosmatka |
|
|
182
|
+
| Geometric stiffness | `P ∫ N′ᵀ N′ dx` for an axial force P, tension positive. With Φ = 0: `(P / 30 L) × [[36, 3L, −36, 3L], [3L, 4L², −3L, −L²], [−36, −3L, 36, −3L], [3L, −L², −3L, 4L²]]` | McGuire, Gallagher and Ziemian, chapter 9; Cook et al. |
|
|
183
|
+
| Consistent mass | `ρ A ∫ Nᵀ N dx + ρ I ∫ Rᵀ R dx` (the second term is rotary inertia). With Φ = 0 the first is `(ρ A L / 420) × [[156, 22L, 54, −13L], [22L, 4L², 13L, −3L²], [54, 13L, 156, −22L], [−13L, −3L², −22L, 4L²]]`; stretch and twist are `(ρ A L / 6) × [[2, 1], [1, 2]]` and the same with `Iy + Iz` for A | Przemieniecki, chapter 11; Cook et al. |
|
|
184
|
+
| A spread load w | End forces `w L / 2` and end moments `± w L² / 12`; the deflection between the ends adds `w x² (L − x)² / 24 E I + w x (L − x) / 2 G As` | Roark's, table 8.1 |
|
|
185
|
+
| A spring k or a release (k = 0) at an end | With s the sprung rotations: `K − K_s (K_ss + k)⁻¹ K_sᵀ`, and loads `f − K_s (K_ss + k)⁻¹ f_s`. Exact, and nothing is subtracted from a large number however stiff the spring | Static condensation: Cook et al.; member releases and semi-rigid joints: McGuire, Gallagher and Ziemian |
|
|
186
|
+
| Mass and geometric stiffness behind a spring or release | `Tᵀ M T` with `T = I − E_s (K_ss + k)⁻¹ K_sᵀ`: the beam's end follows its nodes as it would at rest | Guyan |
|
|
187
|
+
| Buckling | `(K + λ Kg) φ = 0`, Kg from each element's mean axial force in the static solve | McGuire, Gallagher and Ziemian, chapter 9 |
|
|
188
|
+
| Modes | `K φ = ω² M φ`, frequency `ω / 2π` | Przemieniecki, chapter 12; Bathe, chapter 11 (subspace iteration) |
|
|
189
|
+
| Forces along an element | From the forces F on end a and the spread load w: `N = −(Fx + wx x)`, `Vy = −(Fy + wy x)`, `My = −(My_a + Fz x + wz x² / 2)`, `Mz = −Mz_a + Fy x + wy x² / 2`: the part of the beam beyond x acting on the part before it | Statics |
|
|
190
|
+
| Stress | `abs(N) / A + abs(My) / Wy + abs(Mz) / Wz`, with `Wy = Iy / cz` and `Wz = Iz / cy` | Roark's, chapter 8 |
|
|
191
|
+
|
|
192
|
+
The matrix is stored row by row from each row's first non-zero to its diagonal, with the nodes ordered to keep
|
|
193
|
+
rows short (reverse Cuthill-McKee), and factorised by Cholesky. Buckling and modes use subspace iteration with the
|
|
194
|
+
small problems solved by Jacobi rotations; buckling first brackets its lowest factor between a shift that
|
|
195
|
+
factorises and one that does not, so factors of the loads reversed are never taken for it.
|
|
196
|
+
|
|
197
|
+
**Tested** against closed forms, each within 1%, most to rounding: a cantilever's tip deflection and rotation
|
|
198
|
+
with and without shear; a simply supported and a fixed-fixed beam under a spread load; a portal frame's sway and
|
|
199
|
+
foot moments by slope-deflection; a bar's twist; Euler's load for pinned-pinned and fixed-free columns (0.003% with
|
|
200
|
+
eight elements), and Engesser's with shear; the first frequencies of a cantilever and a simply supported beam
|
|
201
|
+
(0.02% and 0.04%); a heavy tip mass as one mass on a spring; a cantilever on a sprung joint, `P L³ / 3 E I + P L²
|
|
202
|
+
/ k`, a stiff spring against rigid and a soft one against pinned; the same cantilever along every axis and rolled;
|
|
203
|
+
a two-bar truss. Against this package's voxel solver on a cantilever three times as long as deep, the tip agrees
|
|
204
|
+
within 2.7% (the voxels are the stiffer: eight cubes through the depth, and a root clamped over its whole face).
|
|
205
|
+
A braced box of 50 beams (108 unknowns) solves statically in about 3 ms on a laptop.
|
|
206
|
+
|
|
207
|
+
**Limits.**
|
|
208
|
+
|
|
209
|
+
- Linear and small-displacement: stiffness does not change as the frame moves, and buckling is the linear
|
|
210
|
+
(eigenvalue) kind, an upper bound on what a real, imperfect frame carries.
|
|
211
|
+
- Prismatic, straight members joined at their centroids: no tapers, no curved members, no offsets or rigid ends at
|
|
212
|
+
joints.
|
|
213
|
+
- Torsion is St Venant's only: no warping stiffness, so an open thin-walled section twists more here than it
|
|
214
|
+
would. No shear lag.
|
|
215
|
+
- Buckling is by bending under axial force: no torsional or lateral-torsional buckling, and bending moments do not
|
|
216
|
+
enter the geometric stiffness.
|
|
217
|
+
- Joint springs are rotational and linear, at element ends; a joint's play, slip and preload are outside it.
|
|
218
|
+
- Stress is axial plus bending at the extreme corner, right for rectangular sections and extrusions and on the
|
|
219
|
+
safe side for round ones; shear and torsion stresses are left out, as is anything local to a joint or a hole.
|
|
220
|
+
- Loads spread along an element are even along it; a load part-way along needs a node there. No temperature loads
|
|
221
|
+
and no moved supports.
|
|
222
|
+
- Behind a spring or a release, mass and geometric stiffness are reduced as at rest (Guyan's reduction), which
|
|
223
|
+
is why buckling and modes want members cut into pieces.
|
|
224
|
+
|
|
225
|
+
### Sizing: the lightest sections that meet the limits
|
|
226
|
+
|
|
227
|
+
`sizing(model, o)` chooses a section for each group of members (members that must match: a pair of rails, four
|
|
228
|
+
posts) from a list, so the frame meets its limits for the least mass, or the least cost where every choice gives
|
|
229
|
+
one. Each design is the same frame with its groups' sections, materials and rolls changed, solved under every load
|
|
230
|
+
case. A frame of tubes from a layout optimiser and a frame of extrusions from an assembly go through the same solver
|
|
231
|
+
and the same limits.
|
|
232
|
+
|
|
233
|
+
```js
|
|
234
|
+
import { sizing } from '@rulecad/fea/frame';
|
|
235
|
+
|
|
236
|
+
const bar = (b) => ({ name: `bar ${b}`, section: { A: b * b, Iy: b ** 4 / 12, Iz: b ** 4 / 12, J: 0.141 * b ** 4, cy: b / 2, cz: b / 2 },
|
|
237
|
+
material: { E: 70000, nu: 0.33, density: 2.7, strength: 205 } });
|
|
238
|
+
// model: a table, four 700 mm legs on pinned feet and a ring of rails 600 x 400 mm joined rigidly, its own weight
|
|
239
|
+
// and 20 kg at the middle of each long rail (nodes m1 and m2)
|
|
240
|
+
const r = sizing(model, {
|
|
241
|
+
groups: { legs: ['z1', 'z2', 'z3', 'z4'], rails: ['x1', 'x2'], ends: ['y1', 'y2'] }, // by element id, or by `of`
|
|
242
|
+
choices: [10, 15, 20, 25, 30].map(bar),
|
|
243
|
+
limits: { deflection: [{ node: 'm1', limit: 1.7 }, { node: 'm2', limit: 1.7 }], stress: { margin: 2 }, buckling: { factor: 2, euler: 1 } },
|
|
244
|
+
});
|
|
245
|
+
r.groups[1]; // { name: 'rails', choice: 'bar 20', mass: 1.296, lighter: 'bar 15',
|
|
246
|
+
// governs: { limit: 'deflection', where: 'm1', value: 0.92, allowed: 1.7, broken: 1.51 }, margin: 1.84 }
|
|
247
|
+
r.groups[0]; // { name: 'legs', choice: 'bar 10', lighter: null, governs: null }: the lightest in the list meets them
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
| Part | Shape | Notes |
|
|
251
|
+
|---|---|---|
|
|
252
|
+
| `groups` | `{ name: [members] }` | Each member an element's `id`, or the member its pieces came from (`of`). Members in no group keep their sections |
|
|
253
|
+
| `choices` | `[{ name, section, material, mass, cost, roll }]` | `material` its own (the member's if left out), with `strength` in MPa for the stress limit; `mass` and `cost` per metre (mass from the area and density if left out); `roll` degrees added to the member's roll, the same section turned (a 20 x 40 on edge) |
|
|
254
|
+
| `only` | `{ group: [choice names] }` | The choices a group may take (all of them if left out) |
|
|
255
|
+
| `limits.deflection` | `[{ node, limit, along }]` or `[{ member, limit, from, to, along }]` | mm, along `along` (gravity's direction, else the whole movement); a member between two distances from its start |
|
|
256
|
+
| `limits.stress` | `{ margin }` | Each member's peak `abs(N)/A + abs(My)/Wy + abs(Mz)/Wz`, times the margin, under its material's strength |
|
|
257
|
+
| `limits.buckling` | `{ factor, euler }` | The whole frame's first buckling factor at least `factor` (members cut into `pieces`, 4); with `euler` (the effective length factor K) each grouped member in compression also carries `factor` times its force under `π² E I / (K L)²`, I the lesser second moment |
|
|
258
|
+
| `limits.frequency` | `{ Hz }` | The lowest mode at least this |
|
|
259
|
+
| `cases` | `[{ label, loads, masses, inertia }]` | Load cases: `loads` and `masses` as `statics` takes them; `inertia` masses whose weight is already in `loads` and which ring in the modes only |
|
|
260
|
+
| a model list | `[frame, ...others]` | The others are the same frame joined other ways (its joins rigid), same elements in the same order: each is held to the stress limit too |
|
|
261
|
+
|
|
262
|
+
**The search.** With few designs (`every`, 512, or `search: 'every'`), every design is ranked by mass and solved in
|
|
263
|
+
that order until one meets every limit, which makes it the lightest; a design is dropped at the first stage
|
|
264
|
+
(statics, then buckling, then modes) that breaks a limit. With more, `search: 'steps'`: from every group at its
|
|
265
|
+
lightest, each group looks up its list for the lightest heavier choice that cuts the worst limit's use (passing over
|
|
266
|
+
one that is heavier but weaker this way, a 30 x 30 after a 20 x 40 on edge), and the group that cuts it most for its
|
|
267
|
+
added mass steps up to it, until the limits are met; then each group, the heaviest first, steps down as far as the limits allow, until nothing moves. Steps
|
|
268
|
+
solve far fewer designs and land near the lightest, not always on it (a table in the tests: within a fifth).
|
|
269
|
+
|
|
270
|
+
**What set each choice.** A group's `governs` is the limit its next lighter choice breaks with the other groups as
|
|
271
|
+
chosen, the worst there by `broken` (its use of the limit, over 1). A choice of the same weight (the same section
|
|
272
|
+
turned) is not lighter. `margin` is how many times inside that limit the chosen design is. A group at the lightest
|
|
273
|
+
choice has no `governs`, and its margin is its own members' nearest check. Where no design meets the limits, `ok` is
|
|
274
|
+
false and the result is the design that came nearest, with `worst` saying which limit it breaks and by how much.
|
|
275
|
+
|
|
276
|
+
**Limits of sizing.** The geometry stays as drawn: a deeper section moves no node, so joints that hang off a
|
|
277
|
+
member's face by its width keep their drawn offsets. The search is over the list given; it does not invent a section.
|
|
278
|
+
|
|
279
|
+
|
|
67
280
|
## Sources
|
|
68
281
|
|
|
69
282
|
- Amir, Aage, Lazarov (2014). On multigrid-CG for efficient topology optimization. *Structural and Multidisciplinary
|
|
70
283
|
Optimization* 49, 815–829.
|
|
71
284
|
- Andreassen, Clausen, Schevenels, Lazarov, Sigmund (2011). Efficient topology optimization in MATLAB using 88 lines
|
|
72
285
|
of code. *Structural and Multidisciplinary Optimization* 43, 1–16.
|
|
286
|
+
- Bathe (2014). *Finite Element Procedures*, 2nd ed. K. J. Bathe, Watertown.
|
|
287
|
+
- Blevins (1979). *Formulas for Natural Frequency and Mode Shape*. Van Nostrand Reinhold.
|
|
73
288
|
- Cook, Malkus, Plesha, Witt (2002). *Concepts and Applications of Finite Element Analysis*, 4th ed. Wiley.
|
|
289
|
+
- Cuthill, McKee (1969). Reducing the bandwidth of sparse symmetric matrices. *Proceedings of the 24th National
|
|
290
|
+
Conference of the ACM*, 157–172.
|
|
291
|
+
- Friedman, Kosmatka (1993). An improved two-node Timoshenko beam finite element. *Computers and Structures* 47,
|
|
292
|
+
473–481.
|
|
293
|
+
- Guyan (1965). Reduction of stiffness and mass matrices. *AIAA Journal* 3, 380.
|
|
294
|
+
- McGuire, Gallagher, Ziemian (2000). *Matrix Structural Analysis*, 2nd ed. Wiley.
|
|
295
|
+
- Przemieniecki (1968). *Theory of Matrix Structural Analysis*. McGraw-Hill.
|
|
296
|
+
- Timoshenko, Gere (1961). *Theory of Elastic Stability*, 2nd ed. McGraw-Hill.
|
|
297
|
+
- Young, Budynas (2002). *Roark's Formulas for Stress and Strain*, 7th ed. McGraw-Hill.
|