Search arXiv⌕ Search

arXiv subjects

Sebastian Weyrer

Publications and source records attributed to Sebastian Weyrer.

4 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↗

Model Order Reduction of a Sliding Beam using a Global Basis: Formulation and Evaluation

Model order reduction decreases the dimension of a mechanical system by introducing modal coordinates that retain important dynamic characteristics. Sliding beams, as found in telescopic structures, pose a fundamental challenge. Fixed modal coordinates fail to capture evolving system properties, and updating the modal basis during simulation causes modal coordinates to change meaning. The present work addresses this challenge by constructing a global reduction basis for a sliding beam. The global basis is constructed from snapshots in the form of modal matrices and compressed using proper orthogonal decomposition. Reduction is applied within a constraint multibody formalism with algebraically enforced constraints that permit continuous slider movement. The method is validated against an absolute nodal coordinate formulation of a sliding beam with a sliding joint. Different combinations of snapshot quantity and eigenmodes per snapshot are investigated and an error map is shown. A challenging test case involving a highly flexible beam subjected to time-dependent loading and slider movement demonstrates that the global reduction basis reduces computation time by approximately 90% while keeping the root-mean-square displacement error, introduced by the global reduction, below 2%.

cs.CE↗

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↗

Path Following and Stabilisation of a Bicycle Model using a Reinforcement Learning Approach

Over the years, complex control approaches have been developed to control the motion of a bicycle. Reinforcement Learning (RL), a branch of machine learning, promises easy deployment of so-called agents. Deployed agents are increasingly considered as an alternative to controllers for mechanical systems. The present work introduces an RL approach to do path following with a virtual bicycle model while simultaneously stabilising it laterally. The bicycle, modelled as the Whipple benchmark model and using multibody system dynamics, has no stabilisation aids. The agent succeeds in both path following and stabilisation of the bicycle model exclusively by outputting steering angles, which are converted into steering torques via a PD controller. Curriculum learning is applied as a state-of-the-art training strategy. Different settings for the implemented RL framework are investigated and compared to each other. The performance of the deployed agents is evaluated using different types of paths and measurements. The ability of the deployed agents to do path following and stabilisation of the bicycle model travelling between 2m/s and 7m/s along complex paths including full circles, slalom manoeuvres, and lane changes is demonstrated. Explanatory methods for machine learning are used to analyse the functionality of a deployed agent and link the introduced RL approach with research in the field of bicycle dynamics.

cs.LG↗