Morpho -- A programmable environment for shape optimization and shapeshifting problems
Official code: Morpho-lang/morpho (156 stars, C, MIT, last commit 2026-11-12). 1 more implementation below.
Abstract
An emerging theme across many domains of science and engineering is materials that change shape, often dramatically. Determining their structure involves solving a shape optimization problem where a given energy functional is minimized with respect to the shape of the domain and auxiliary fields describing the structure.
Show full abstractHide
Such problems are very challenging to solve and there is a lack of suitable simulation tools that are both readily accessible and general purpose. To address this gap, we present Morpho, an open-source programmable environment, and demonstrate its versatility by showcasing three applications to different areas of soft matter - swelling hydrogels, complex fluids that form aspherical droplets, to soap films and membranes - and advise on broader uses.