Search arXiv⌕ Search

arXiv subjects

Michael Pieber

Publications and source records attributed to Michael Pieber.

3 recordsLinked to original sources

Perception Before Simulation: Sketch-Based Generation of Multibody Simulation Code With Vision Language Models

Large language models (LLMs) can generate multibody simulation models from textual descriptions, but for complex mechanical systems these descriptions become lengthy and error-prone, whereas a sketch conveys the same mechanical system compactly. This study investigates whether Vision Language Models (VLMs) can generate physically correct multibody simulation code directly from sketches of mechanical models. In an automated closed-loop benchmark, 23 parameterized mechanical models are rendered as annotated sketches, and every generated simulation model is verified against ground truth by executability, graph isomorphism, and parameter and trajectory agreement. Across 12 open-weight VLMs, a two-stage pipeline that first extracts a code-agnostic intermediate representation of the sketched mechanical model doubles the success rate of simulation code generation compared to direct code generation by the VLM (48.0% vs. 23.9%). With code generation held fixed by a single coder LLM, so that only perception varies, replacing the textual description with a sketch lowers success from 94.8% to 48.0%, and to 78.2% when the textual description accompanies the sketch. An ablation attributes the gain to pre-selecting the element types shown in the sketch. Error classification and robustness tests to scaling and rotation locate the remaining failures in reading the drawing rather than in code generation. The pipeline transfers to hand-drawn sketches. Turning an engineer's sketch directly into a verified dynamic simulation opens a route to automating model creation in computational mechanics.

cs.AI↗

Flexible-body Modeling, Kinematic Identification, and Assembly Accuracy of Overconstrained Spatial Linkages

Overconstrained rational single-loop linkages are efficient, compact, and low-cost custom mechanisms, yet their deployment in industrial settings is limited. In simulations, rigid body formulations fail due to redundant constraints. This study presents a flexible multibody modeling framework based on the floating frame of reference formulation, and delivers an overall accuracy analysis of assembled linkages prototypes. The approach is validated against 3D-printed PLA prototypes of a Bennett four-bar mechanism, including variants with intentional joint-axis misalignment, which theoretically, from the rigid body point of view, cannot be assembled. A supplementary contribution is delivered in the form of a kinematic parameter identification methodology suited for this type of mechanism with ill-conditioned Jacobian. The experimental and simulation results are compared and reveal that these overconstrained mechanisms exhibit a self-assembling tendency -- structural compliance drives the assembly toward the ideal geometric configuration, distributing constraint stress throughout the structure. Additional qualitative demonstrations using cardboard tubes and bamboo sticks as link building blocks confirm that functional mechanisms can be realized from low-cost, unconventional materials with limited manufacturing accuracy. The proposed modeling pipeline is fully algorithmic and enables design optimization in the future.

cs.RO↗

Large Language Models and their Awareness of Mechanics and Spatial Geometry

Large Language Models (LLMs) perform well on established code-generation and mathematical-reasoning benchmarks, but their capabilities in mechanics and spatial geometry, here denoted as mechanical engineering awareness, has not been quantified systematically. We present MecEng, a fully automated benchmark that evaluates LLMs on the creation of multibody simulation models from parameterized textual descriptions. The benchmark comprises 84 generic tasks on three difficulty levels, ranging from rigid-body systems with joints and contact to flexible multibody systems that require exact 3D geometry generation, tetrahedral finite-element meshing, and Hurty-Craig-Bampton model order reduction of machine parts. A dedicated pipeline with LLMs generates simulation-ready geometry from text using Netgen, and builds multibody system models for the code Exudyn, which are then verified against expert ground truth on several levels: system-graph isomorphism including graph node annotations, numerical solutions, and part-specific measures such as mass, geometry, and eigenfrequencies. In total, 32 open-weight and two proprietary LLMs are evaluated. On rigid-body tasks, the best open-weight model obtains an overall success rate of 86.0%, compared to 91.4% for the strongest proprietary model, while flexible multibody tasks remain considerably harder. Additional studies quantify the influence of sampling temperature, reasoning, prompt design, model size, and LLM-release date. The results indicate rapidly improving, but still error-prone, mechanical engineering awareness of current LLMs.

cs.AI↗