Export
A study file holds the domain, the solver settings, the bridge inputs, the units and the view settings, so a run can be reproduced. Loading replaces the current domain after strict validation.
SVG and STL threshold the density at 0.5, trace it with marching squares, simplify, and extrude it, at the width and thickness set under 3D preview. The report is a self-contained HTML file with the inputs, assumptions, recommendations, settings, results, warnings and limitations.
What you're looking at
Every cell of the rectangle holds a density between 0 (void) and 1 (solid). A finite-element model with that density field is loaded the way you painted it, and the optimizer asks: for a fixed amount of material, which arrangement bends the least? That is minimum compliance, and the answer is found by SIMP: intermediate densities are penalised (stiffness ∝ ρ³), so the design is pushed to black-and-white, and an optimality-criteria update moves material towards the cells where it does the most good. The result is a local optimum: it depends on the filter, the starting design and the settings.
The expensive part is solving K u = f every iteration. Here it is done on the graphics card with WebGL2: a conjugate-gradient solver written as fragment shaders, with the stiffness matrix never assembled; each node's row is applied on the fly from the four elements around it. Without WebGL2 float rendering, a Float64 CPU solver runs in a worker at reduced resolution.
The filter blurs the density over a radius before it is used, which sets a minimum member size and kills checkerboards. Heaviside projection sharpens the blurred field back to crisp boundaries. Several load cases are solved separately and their compliances added, so the structure must carry each of them on its own.
Units are normalized: solid modulus 1, Poisson ratio 0.3, unit elements. Compliance compares designs on the same grid and loads; it is not a deflection in millimetres. This is a conceptual screening tool: it does not check strength, buckling, fatigue or any design code.
Load scenarios put a vehicle on the deck (consistent nodal axle loads that move along a lane; the optimizer follows it while running, and a sweep of the paused design traces an influence line) or hang a weight from the hook. Every position is a static load; the dynamic factor is the only allowance for motion.
Validated against a Float64 port of the 88-line MATLAB code and against beam theory on the benchmark page; lifecycle and input checks run on the test page. For a solid optimized in three dimensions, see the separate 3D topology optimization page; the 3D view on this page is an extrusion of the 2D solution.
Keys (while the design area has focus, not a control): T switches between the 2D design and the 3D view, space runs and pauses, S steps, R resets, 1–5 switch views, F L D K V E pick tools, [ ] change the brush. Ctrl+Z undoes anywhere outside text fields; Shift+drag erases. In the 3D preview: arrows orbit, + and − zoom, Home resets. Built by Lukas Schulz.