Domain Optimization input
Supports, loads and regions are axis-aligned boxes in grid coordinates: nodes sit at integer positions 0 … n, element i spans i … i + 1. A box with equal ends in one direction is a face, a line or a point. Edits apply at the next iteration while running; when paused or finished they mark the result stale.
Supports + Add
Loads + Add
A load's force is the total over its box, spread over the box's nodes with the consistent weights of a uniform distributed load (ends count half). Up to four independent load cases; their compliances are summed.
Regions + Add
Keep boxes must stay solid, Hole boxes must stay empty; a later box overrides an earlier one where they overlap.
What you're looking at
Every voxel of the block holds a density between 0 (void) and 1 (solid). A three-dimensional finite-element model with that density field carries the loads you set, and the optimizer asks: for a fixed amount of material, which arrangement bends the least? That is minimum compliance ; SIMP penalises intermediate densities (stiffness ∝ ρ³), the conic density filter sets a minimum member size, and the optimality-criteria update moves material to where it does the most good. The result is a local optimum that depends on the filter, the start and the settings.
The solve of K u = f uses 8-node trilinear hexahedra (E = 1, ν = 0.3, unit cubes) and a conjugate gradient with a geometric multigrid preconditioner, matrix-free on a 27-point stencil, in Float64 inside a worker, so the page never blocks. Compliance is f · u per load case; the strain energy is checked against it.
Limits. CPU only. Measured in Node on an Apple M4 Pro with the default settings (balanced accuracy, multigrid), the cantilever preset takes about 30 ms per iteration at 24 × 12 × 12 , 70 ms at 32 × 16 × 16, 170 ms at 40 × 20 × 20, 210 ms at 48 × 24 × 24 (peaks 270 ms) and about 0.5 s at 64 × 32 × 32 early in a run; the browser on the same machine matched these (30 ms at 24 × 12 × 12), and the bridge preset at 48 × 16 × 16, whose Hole and Keep boxes create a high stiffness contrast from the first iteration, ran at about 250 ms per iteration with 30 CG iterations per solve. 64 × 32 × 32 (65,536 elements) is the largest size offered: the stencil stiffness needs about 2 KB per node, 140 MB there; grids are capped at 96 elements per side and 70,000 elements. Fully developed designs with high stiffness contrast need more CG iterations per solve, which the CG readout shows.
Conceptual screening only. Linear elastic, one isotropic material, dimensionless loads; compliance compares designs on the same grid and loads and is not a deflection in millimetres. Nothing here checks strength, buckling, fatigue, dynamics, connections or any design code, and the isosurface is a visual threshold, not a validated geometry.
Keys (while the view has focus, not a control): space runs and pauses, S steps, R resets; arrows orbit, + and − zoom, Home resets the view. Validated by node test/node-3d.mjs (patch test, beam theory, multigrid, isosurface, checks, worker protocol). Built by Lukas Schulz.