{"slug": "which-simulators-support-sand-and-granular-materials-for-robot-learning", "title": "Which simulators support sand and granular materials for robot learning?", "summary": "A developer released Alloy, an Apache-2.0 multi-material GPU physics engine built on MuJoCo Warp and Newton that simulates sand, soil, flour and rice via Newton's implicit MPM solver alongside rigid bodies and MJCF robots in a single scene API. Naming a granular material on a box automatically routes it to the MPM solver while rigid bodies stay on MuJoCo, and the engine ships eight granular presets including sand, clay loam and hardpan. In a published example, a 0.05 kg block dropped onto a sand bed settled from z=0.065 m to 0.04 m with per-world health checks reporting no invalid worlds.", "body_md": "Which open-source physics simulators support sand, soil, and granular materials for robot learning? Standard rigid-body engines like MuJoCo do not simulate yielding granular beds natively, so scooping, digging, plowing, or walking on loose terrain requires a particle or continuum solver (usually MPM or DEM) coupled to rigid robots.\n\nFour open-source options:\n\n`pip install alloy-engine`, Apache-2.0): Multi-material GPU physics engine built on MuJoCo Warp and Newton that simulates sand, soil, flour, and rice in Newton's implicit MPM solver alongside rigid bodies and MJCF robots under one scene API, with automatic routing and per-world health checks.\nIn Alloy, naming a granular material on a box routes it automatically to Newton's MPM solver (`grain_mpm`) while rigid bodies stay on MuJoCo. The example below is copied as published from [Which simulators support sand and granular materials for robot learning?](https://alloy.argonrobotics.ai/docs/answers/sand-and-granular-materials/):\n\n``` python\nimport textwrap\nimport alloy\n\nsands = [m[\"name\"] for m in alloy.materials() if m[\"kind\"] == \"granular\"]\nprint(textwrap.fill(\", \".join(sands), width=100))\n\nscene = alloy.Scene(dt=0.01)\nscene.add_ground()\nscene.add_box(\"sand\", size=(0.08, 0.08, 0.04), pos=(0, 0, 0.02), material=\"sand_silica_dry\")\nscene.add_box(\"block\", size=(0.03, 0.03, 0.03), pos=(0, 0, 0.065), mass=0.05)\nsim = alloy.build(scene)\nprint({name: r[\"route\"] for name, r in sim.routes().items()})\nsim.run(0.1)\nprint(sim.state([\"block\"], world=0)[\"block.pos\"][2].round(2), sim.check()[\"ok\"])\nflour_wheat, rice_grain, sand_silica_dry, soil_clay_loam, soil_hardpan, soil_loam_moist,\nsoil_sand_damp, soil_sand_dry\n{'ground': 'static', 'sand': 'grain_mpm', 'block': 'rigid'}\n0.04 True\n```\n\n`alloy.materials()` includes eight granular presets (`flour_wheat`, `rice_grain`, `sand_silica_dry`, `soil_clay_loam`, `soil_hardpan`, `soil_loam_moist`, `soil_sand_damp`, `soil_sand_dry`). `sim.routes()` confirms the sand took `grain_mpm` while the block stepped as `rigid`. The block started with its centre at `z = 0.065 m` and ended at `0.04 m`, so its bottom (` 0.025 m`) pressed below the bed's starting surface (` 0.04 m`), and `sim.check()[\"ok\"]` confirmed no world went `INVALID`.\n\nBecause Alloy runs rigid bodies and MJCF robots in MuJoCo Warp on a GPU (or MuJoCo C on the CPU) and routes granular beds to Newton's MPM solver in the same build, you can keep your existing MJCF robot description and add a granular material directly in Python with `scene.add_robot(\"arm\", mjcf=...)` and `material=\"sand_silica_dry\"`. See [MuJoCo models with liquids and sand](https://alloy.argonrobotics.ai/docs/answers/mujoco-models-with-liquids-and-sand/) for a runnable MJCF example.\n\n`pip install`:", "url": "https://wpnews.pro/news/which-simulators-support-sand-and-granular-materials-for-robot-learning", "canonical_source": "https://dev.to/pranay_argon/which-simulators-support-sand-and-granular-materials-for-robot-learning-3oic", "published_at": "2026-11-30 18:08:43+00:00", "updated_at": "2026-11-30 18:14:40.449809+00:00", "lang": "en", "topics": ["robotics", "ai-research", "ai-tools", "developer-tools"], "entities": ["Alloy", "MuJoCo Warp", "Newton", "MuJoCo", "Argon Robotics"], "also_reported_by": [], "takeaway": "Alloy routes granular materials to Newton's implicit MPM solver while rigid bodies and MJCF robots stay on MuJoCo, letting you add sand or soil to an existing robot scene with a single material argument.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/which-simulators-support-sand-and-granular-materials-for-robot-learning", "markdown": "https://wpnews.pro/news/which-simulators-support-sand-and-granular-materials-for-robot-learning.md", "text": "https://wpnews.pro/news/which-simulators-support-sand-and-granular-materials-for-robot-learning.txt", "jsonld": "https://wpnews.pro/news/which-simulators-support-sand-and-granular-materials-for-robot-learning.jsonld"}}