arXiv Science⌕ Search

arXiv · 2611.33926

Connecting AI Agents to Live Discrete Element Simulations via the Model Context Protocol

Abstract

This paper describes a Model Context Protocol (MCP) server through which a general-purpose AI agent operates a discrete element engine, commercial or open-source, while the simulation runs. The agent submits a long simulation to the engine and, while it computes, reads the running model, changes it, or stops it. The human modeler stays at the engine's console and graphical interface throughout, and the agent sees what the modeler does there. The tools are derived from what the agent needs to do at the engine and are held to four principles: correctness, coverage, orthogonality and simplicity. Two documentation tools let the agent search the engine's manual and browse it level by level. Five execution tools let the agent run code in the engine, submit long simulations in the background, check on them, read the running model, and stop them. A bridge inside the engine serves these tools in a commercial DEM engine, PFC, and an open-source one, YADE. In a case study, a general-purpose agent calibrated a drained triaxial model of dense Toyoura sand against laboratory data in both engines, while the modeler worked at the same engine; the agent noticed the modeler's actions at the console and acted on them. The same calibration on YADE was then given to seven language models, three sessions each and without human intervention. Twenty of the twenty-one sessions reached the targets, and nineteen of the parameter sets lie in one small region of the admissible ranges. The server and the bridge are released as two open-source packages, itasca-mcp, which also serves FLAC, 3DEC, MPoint and MassFlow, and yade-mcp.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Yusong Han, Ryosuke Uzuoka, Kyohei Ueda. 2026-11-25. Connecting AI Agents to Live Discrete Element Simulations via the Model Context Protocol. https://arxiv.science/abs/2611.33926

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

CTV Without CTV: Verified Template Checks and Reusable State Authorization with CSFS+CAT

Can template authorization remain reusable when a payment channel state spends a different previous output? We use the proposed CAT and CHECKSIGFROMSTACK (CSFS) opcodes to construct a Tapscript macro that checks the 32-byte BIP-119 CHECKTEMPLATEVERIFY (CTV) predicate for a defined family of single-input Taproot transactions with fixed output-script lengths. A publicly refreshable auxiliary signature, checked by both CSFS and CHECKSIG, binds witness-supplied fields to the actual transaction. A separate participant signature authorizes the template hash and remains valid across eligible previous outputs sharing that hash. Unlike the auxiliary signature, this authorization need not commit to the spent outpoint, amount, or tapleaf. We prove soundness, public completeness, and stack preservation for the macro, and give conditions for substituting it into a CTV+CSFS state-replacement protocol. An executable compiler and Bitcoin Inquisition experiments on regtest and public Signet demonstrate a confirmed stale-state override and delayed settlement in a two-party, three-update prototype with public recovery data. The measured update costs 496 vB, versus 241 vB with native CTV+CSFS. The result is a bounded, higher-cost route to state replacement under proposed opcodes, without native CTV or ANYPREVOUT.

cs.CE↗

Computational Comparison of Optimal Experimental Design Strategies for Two- and Three-Dimensional Lung Electrical Impedance Tomography

Optimal experimental design (OED) in electrical impedance tomography (EIT) seeks informative current-injection and voltage-measurement configurations for conductivity reconstruction. This paper investigates two computational strategies for two- and three-dimensional lung EIT. Algorithm 1 minimises an empirical Bayesian reconstruction risk through bilevel optimisation. In a 2D numerical example involving 200 iterations and 45 samples, parallel MATLAB execution on three Broadwell HPC nodes equipped with Intel Xeon E5-2680 v4 processors reduced the computational time from 944 to 39 minutes, achieving an observed 24.2-fold speedup. Algorithm 2 addresses 3D EIT through a two-stage optimisation procedure. First, optimal current-drive patterns are determined by evaluating their ability to distinguish simulated inhalation and exhalation conductivity states, leading to the selection of 16 informative electrodes from an initial configuration of 64 electrodes arranged in four rings. Second, linearly independent voltage measurements are selected using a procedure adapted from Borsic et al. [7]. The resulting measurement protocols are further evaluated using the truncated condition number of the transfer-impedance Jacobian. Numerical reconstructions of a cylindrical model containing two lung-like inclusions demonstrate that the optimised measurement protocol preserves reconstruction quality comparable to that obtained with a conventional protocol. The study highlights the potential of computational optimisation for identifying informative measurement configurations in 2D and 3D lung EIT.

cs.CE↗

FE-ODMN: A two-scale crystal-plasticity framework for AA6022-T4 aluminum sheet deep drawing

Crystallographic texture governs plastic anisotropy and earing in the deep drawing of aluminum sheet, yet full-field crystal plasticity remains too costly for component-scale simulations. This study presents a two-scale framework, FE-ODMN, in which an orientation-aware deep material network (ODMN) acts as a reduced-order representative volume element (RVE) at every integration point of a finite-element (FE) simulation. The macroscopic response is obtained directly from this RVE, and no macroscopic constitutive model is needed. The network represents the polycrystal with 16, 64, or 256 crystal-plasticity material nodes whose orientations and weights are obtained by generalized spherical harmonics texture compaction. Its interaction directions are trained on linear-elastic homogenization data only, and the crystal-plasticity law at the nodes gives the nonlinear, history-dependent response without retraining. The framework is applied to the cylindrical cup drawing of AA6022-T4 sheet. At the RVE level, the networks reproduce full-field spectral solutions under uniaxial tension along seven in-plane directions and tension-compression reversals, at three to four orders of magnitude lower cost. The error in the Lankford coefficients decreases with network depth, mainly from 64 to 256 nodes. In the cup-drawing simulations, with contact parameters calibrated using the 64-node network, the 256-node network reproduces the measured peak punch force, minimum wall thickness, and cup-height range within 1%, 4%, and 1%. The four ears form at the measured positions, but those along the rolling direction are overpredicted. The local textures change strongly near the cup rim and little at the cup center. A complete simulation takes 1,400 to 26,000 core-hours.

cs.CE↗