Metamaterials acquire their properties from engineered geometry rather than from chemical composition. This companion explains the mechanics behind the playground: a two dimensional mass-spring lattice whose connections obey Hooke's law, with an auxetic stiffening law that lets the network mimic materials of negative Poisson's ratio. It then situates the "life-like" toggles (self-assembly, adaptation, self-healing, memory) as illustrative analogies for active and programmable metamaterials, and is explicit about where the toy departs from real elasticity.
A metamaterial is a structured medium whose effective response is dominated by the architecture of sub-units rather than by the bulk material they are cut from. In electromagnetism this idea produced media with negative effective permittivity and permeability, and therefore a negative refractive index. In mechanics the same logic produces lattices with unusual elastic constants: vanishing or negative Poisson's ratio, vanishing shear modulus (pentamode "metafluids"), negative effective stiffness near instabilities, and direction dependent wave propagation. The common thread is that a periodic or disordered cell, repeated through space, behaves as a continuum with properties not available in any homogeneous solid.
The playground works at the discrete level: it draws the actual nodes and springs rather than a homogenised continuum, so the emergent stiffness is something you watch rather than something assumed.
Each connection between two nodes is treated as a linear spring with natural (rest) length R equal to the unit-cell spacing. When the instantaneous distance between the two nodes is L, the scalar restoring coefficient is
F = k (L - R) / L
This is Hooke's law written so that multiplying by the component offsets dx and dy yields the restoring force vector along the bond. At L = R the force is zero, which is the equilibrium the lattice relaxes toward. The engineering strain of the bond is
strain = |L - R| / R
so a bond stretched from 15 to 18 units carries a strain of 0.2 and a restoring coefficient of 100 times (18 minus 15) divided by 18, which is about 16.67. These closed forms are exactly what the calibration panel recomputes from the same code.
A sinusoidal nonlinear term, 1 plus nonlinearity times sin(L times 0.1), multiplies the force to give a soft stiffening or softening with stretch. At zero nonlinearity this factor is exactly one, recovering the purely Hookean limit.
Poisson's ratio nu measures how much a material contracts sideways when stretched lengthwise:
epsilon_lateral = -nu * epsilon_axial
Ordinary materials have positive nu near 0.3, so stretching makes them thinner. A material with negative nu, called auxetic, does the opposite: it expands sideways when pulled and contracts sideways when compressed. Robert Lakes demonstrated the first deliberately auxetic foam in 1987 by inverting the cell walls of a conventional foam into a re-entrant geometry, and re-entrant honeycombs and rotating-rigid-unit lattices remain the canonical designs.
Auxetic materials carry several engineering advantages that follow from this sign flip: enhanced indentation resistance (material flows toward a press rather than away from it), high energy absorption, improved fracture toughness because cracks tend to close rather than open, and synclastic curvature, the ability to drape a flat sheet into a dome.
In the playground the auxetic lattice type lays its nodes out in a re-entrant bow-tie pattern, and a stiffening law
k_eff = k (1 + |nu| * |strain|)
is applied for nu below zero, so the network grows stiffer as it carries strain. This captures the indentation-resistance signature qualitatively. It is a shortcut: real auxeticity is a geometric consequence of the cell shape, not a scalar multiplier, and the linear Poisson relation itself holds only at small strain.
The toggles labelled self-assembly, adaptation, self-healing, and memory are update rules layered on top of the elastic dynamics:
These are honest analogies rather than emergent physics. Genuine self-organising or self-healing metamaterials require embedded actuation, programmed instabilities (buckling, snap-through), shape-memory polymers, or magnetic and capillary forces. The point of the toggles is to make those research directions tangible, not to claim a passive elastic lattice does any of this on its own. Turning a toggle off removes the behaviour entirely, which is the tell that it is imposed.
The simulation advances with explicit forward steps and a velocity-damping factor of (1 minus damping). This is a stability device. Large stiffness or large step sizes will push explicit integration toward divergence, and a boundary clamp keeps nodes on screen rather than letting that divergence show. Connectivity and the set of fixed boundary nodes are sampled randomly each time the lattice is rebuilt, so each run is one realisation of a disordered network rather than a fixed crystal. Because of this, the reported energy and stress numbers express relative trends, not calibrated physical units. Only the noise-free spring response is calibrated.
The calibration panel checks six closed-form facts of the deterministic core: a bond at rest length carries zero strain and zero force; a 20% stretch of a k = 100 bond gives a restoring coefficient of 16.67; an auxetic bond at nu = -0.5 and stored strain 0.2 has effective stiffness 110; the nonlinear factor collapses to exactly one at zero nonlinearity; and an axial strain of 0.1 at nu = -0.5 produces a lateral strain of +0.05, the auxetic sign. All six reproduce with zero error.
The model omits bending and rotational energy at hinges, contact and self-intersection, true geometric nonlinearity, and any real actuation. Poisson's ratio is treated as a constant in a regime where it would actually drift with strain. The life-like behaviours are scripted. The lattice is disordered rather than periodic. These choices buy an interactive, legible sandbox at the cost of quantitative fidelity, and the assumptions panel marks each one with its confidence level.