Elastica++: A high-performance, multiphysics framework for large interacting assemblies of Cosserat rods

Tejaswin Parthasarathy, Seung Hyun Kim, Songyuan Cui, Mattia Gazzola · 2026

Read Elastica++: A high-performance, multiphysics framework for large interacting assemblies of Cosserat rods by Tejaswin Parthasarathy, Seung Hyun Kim, Songyuan Cui, Mattia Gazzola (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-13766.txt.

Introduction

Tejaswin Parthasarathy and three colleagues introduce Elastica++, an open-source fast build of the Cosserat model for large-scale slender-body motion tests. Elastica++ mixes fast kernels with shared-memory teamwork to sustain huge throughput despite complex meshing zones and real links. The frame links with outside number solvers, aiding lean multi-field flows. Case studies span passive nest-like meta-matter, group active-matter motion, cilia carpets, soft magnet tiny bots, and schooling swimmers.

Catalog record

CREATORTejaswin Parthasarathy, Seung Hyun Kim, Songyuan Cui, Mattia Gazzola
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE33924
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2605.13766

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Elastica++: A high-performance, multiphysics framework for large interacting assemblies of Cosserat rods Tejaswin Parthasarathy, Seung Hyun Kim, Songyuan Cui, Mattia Gazzola Abstract Soft, slender structures are ubiquitous in natural and engineered systems, with broad application potential from biomimetic materials to soft robotics. However, there is a notable lack of computational tools that simultaneously preserve high-fidelity continuum rod mechanics, scale to large interacting ensembles, and remain flexible across diverse biophysical settings. Here we introduce Elastica++, an open-source, high-performance implementation of the Cosserat-rod model for large-scale simulations of slender-body dynamics. Elastica++ combines performance-oriented kernels with shared-memory parallelism to sustain teraflop-scale throughput despite complex discretization domains and physical interactions. The framework further interoperates with external numerical solvers, supporting efficient multiphysics workflows. We demonstrate robustness and breadth through case studies spanning passive nest-like metamaterials, collective active-matter dynamics, cilia carpets, soft magnetic microrobots, and schooling swimmers. Elastica++ thus provides a missing foundation for high-throughput studies of emergent behavior in interacting assemblies of elastic slender structures. Soft slender structures are ubiquitous in nature, fulfilling diverse functions ranging from active manipulation [ 5 , 54 ] to passive structural support [ 28 , 49 ] , as illustrated by microcilia that drive fluid motion [ 19 , 27 ] , the densely-packed fiber architecture of muscular hydrostats [ 42 ] , and aerial, web-like assemblies of slender threads [ 13 ] . These natural systems have inspired interdisciplinary efforts to translate biological organizational principles into engineered platforms, with applications in soft robotics, biomimetic materials, metamaterials, flexible electronics, and biomedical devices [ 36 , 48 , 11 , 35 , 17 ] . To capture the large deformations and strong nonlinearities of soft slender bodies, Cosserat rod theory has been widely explored [ 18 , 22 , 3 , 38 , 4 , 1 ] , providing a geometrically exact one-dimensional continuum framework that accommodates all practically relevant deformation modes, including bending, twist, shear, and extension. More recently, discrete formulations of this theory have bridged the interpretation of natural phenomena [ 54 ] and the design of engineered systems [ 43 ] . Yet, many of the most compelling natural behaviors, including collective motion [ 7 , 20 ] , environmental reconfiguration [ 27 , 49 ] , and versatile functionality [ 31 , 37 ] , cannot be explained by deformation alone. They arise from interaction-dominated physics, where multiple slender bodies couple with one another and with surrounding fluids, surfaces, contacts, and external fields. In many settings, resolving these multi-rod interactions and environmental couplings poses a greater bottleneck than describing the kinematics of an individual rod. A unified, consistent computational framework that can simulate large ensembles of interacting rods under heterogeneous physics, while remaining tractable for rapid prototyping, design iteration, parameter exploration, and learning-oriented workflows, remains elusive. Existing high-fidelity approaches, such as full three-dimensional finite-element methods for continuum elasticity [ 8 , 15 , 24 ] , can provide accurate simulations in complex settings, but become prohibitively expensive for dense fibrous assemblies. Conversely, highly lumped models, while common in robotics and computationally efficient [ 47 , 34 ] , may miss key attributes of distributed elastic, geometric, and contact mechanisms. This gap points to the need for a modeling framework that preserves the essential mechanics of slender-body systems while supporting efficient computation, flexible problem configuration, and extensible coupling to diverse physical interactions. Responding to these challenges, we present Elastica++ , an open-source, performance-oriented C++ framework implementing a discrete Cosserat rod model [ 25 , 41 ] at scale. Redesigned for shared-memory parallelism and many-rod simulations with heterogeneous physics, Elastica++ exposes a composable set of primitives for contact, friction, internal actuation, external loads, and optional coupling to external numerical tools such as fluid solvers [ 12 ] . The implementation pairs template-driven customization of geometry, constitutive laws, and interaction modules with aggressive compute optimizations—cache-friendly memory layouts, vectorization, and task-based threading [ 32 ] —yielding significant speed-ups and enabling far larger filament counts than existing frameworks [ 25 ] . We demonstrate these capabilities through a diverse suite of scenarios including fibrous granular packings, dense active filament suspensions, magnetically driven cilia arrays, and fluid-structure schooling, establishing the framework’s robustness and scalability for emergent collective dynamics. Results Figure 1: Performance improvements in Elastica++ via various HPC strategies. (a) Ablation study on different processors: relative speed-ups on a single processor obtained cumulatively via (i) SoA2AoS, (ii) explicit (programmer-defined) SIMD, and (iii) data aggregation and blocking, compared against the unoptimized baseline. (b) Roofline analysis of the in-place SO(3) rotation kernel with successive application of optimization methods. All data are measured on an Intel Core i9–11900K CPU via Intel VTune Advisor. The gray lines indicate the theoretical double-precision peak performance and memory bandwidth of the processor, accounting for effects of vectorization and fused-multiply-add (FMA) operations. (c) Strong scaling of a parallel Elastica++ simulation with 1024^{2} filaments with and without thread synchronization after each symplectic integration stage. Experiments are performed on the Expanse supercomputing cluster [ 39 ] with up to 64 AMD EPYC 7742 processors. Performance-oriented software design Naively, numerical algorithms for Cosserat rod dynamics (see Methods) involve \mathcal{O}(n) complexity in both computation and memory, rendering the algorithm intrinsically memory bound and optimized hardware utilization a difficult task. Elastica++ leverages parallel computing paradigms including “structs-of-arrays to arrays-of-structs” (SoA2AoS) transformation and explicit Single Instruction Multiple Data (SIMD), as well as block memory aggregation where data structures across multiple rods are grouped to facilitate data locality, achieving significant single-core performance gain ( Fig. 1 a). Compared with a baseline implementation without these optimizations, Elastica++ achieves up to 8.7\times speed-up on a single processor across different CPU architectures. Furthermore, we evaluate the machine utilization via a roofline analysis of the in-place \textup{SO}(3) rotation ( Fig. 1 b), the most computationally intensive kernel in Elastica++ . We measure the performance (in GFLOPS) with respect to operational intensity (OI), defined as the number of effective floating-point operations per byte of off-chip memory loaded. The collection of optimizations imposed is shown to increase the OI to \sim 1 FLOP/Byte, yielding significant performance improvements from \sim 0.7 GFLOPS to a sustained \sim 20 GFLOPS. While the kernel execution is still memory bound, the prescribed optimizations enable successful extraction of 95% single-core peak performance on the tested processor (Intel Core i9–11900K), prompting further speed-ups via multi-core thread-level parallelism. Indeed, we leverage Intel One-API Threading Building Block (TBB) [ 32 ] to investigate the scalability of Elastica++ on multiple processors, via a dynamical simulation 1024^{2}=$1,048,576$ filaments. We time-integrate the rod dynamics via a multi-stage symplectic (Verlet) algorithm, wherein each stage requires enforcing kinematic constraints. Elastica++ can be configured to apply thread synchronization after each stage (synchronous) or to defer synchronization to the end of the full time-step (asynchronous), the latter being more efficient but also restrictive in scenarios involving rod interactions. Figure 1 c shows the strong scaling of both protocols, from which we conclude that the asynchronous protocol yields near-optimal scaling behavior, while the synchronous simulation deviates at high numbers of processors due to serial synchronization code ( \sim 6\% of the total time). For additional details on the performance optimizations and scaling, the reader is referred to supplementary materials, Section 3. Building on this performance characterization, each subsections below present

Read the complete text