What are the open-source alternatives to MuJoCo when your robot task needs liquids or granular materials like sand?
MuJoCo and MuJoCo Warp are the default choice for rigid-body robotics, and MuJoCo models fluid as drag on rigid bodies. When you need particle liquids that pour into containers or granular sand that piles and yields under a scoop, you need a multi-physics simulator that still accepts your MJCF robot models.
Three open-source GPU-parallel options stand out in 2026:
- Genesis (Apache-2.0): Mixes rigid robots with liquids, sand, pastes, cloth and soft bodies in one scene on one GPU, and offers a 64-bit GPU option.
- Newton (Apache-2.0): Linux Foundation physics engine with MuJoCo Warp for rigid robots alongside MPM and deformable solvers if you want direct solver-level control.
- Alloy (
pip install alloy-engine, Apache-2.0): Built directly on MuJoCo Warp (MuJoCo C on the CPU) and Newton, so your MJCF robot steps in MuJoCo's solver (with Alloy's own time step, integrator and friction cone, not the file's) while liquids run in Alloy's DFSPH solver and sand runs in Newton's implicit MPM solver.
Putting an MJCF robot beside water and sand in Alloy
The example below, copied as published from Which simulators that read MuJoCo models also support liquids and sand?, loads an MJCF arm beside a tub of water and a tray of dry silica sand, ramps the shoulder joint, and checks the solver routes and world health:
import alloy ARM = """<mujoco><compiler angle="radian"/><worldbody><body name="link1" pos="0 0 0.1"> <joint name="shoulder" type="hinge" axis="0 1 0" range="-2 2" damping="2"/> <geom type="capsule" fromto="0 0 0 0.3 0 0" size="0.02" mass="1"/> </body></worldbody> <actuator><position joint="shoulder" kp="200" kv="10"/></actuator></mujoco>""" scene = alloy.Scene(dt=0.01) scene.add_ground() scene.add_robot("arm", mjcf=ARM, pos=(0, 0, 0.1)) scene.add_open_box("tub", inner=(0.08, 0.08, 0.05), wall=0.01, pos=(0.5, 0, 0)) scene.add_liquid("water", size=(0.064, 0.064, 0.024), pos=(0.5, 0, 0.024)) scene.add_open_box("tray", inner=(0.1, 0.1, 0.05), wall=0.01, pos=(0.5, 0.4, 0)) scene.add_box("sand", size=(0.06, 0.06, 0.03), pos=(0.5, 0.4, 0.03), material="sand_silica_dry") sim = alloy.build(scene, device="cpu") print({n: sim.routes()[n]["solver"] for n in ("arm", "water", "sand")}) sim.run(0.3, targets={"shoulder": (0.0, 0.3)}) print(sim.state(world=0)["arm/shoulder.q"].round(2), sim.check()["ok"]) {'arm': 'mujoco', 'water': 'sph', 'sand': 'mpm'} 0.25 True The MJCF robot went to MuJoCo, the water to Alloy's DFSPH liquid solver, and the sand to Newton's MPM solver. Larger MJCF files such as a Franka arm load the same way via scene.add_robot(...). sim.health() grades every world OK, DEGRADED or INVALID, and sim.check()["ok"] is False when a world went INVALID, so unstable contacts are flagged instead of silently polluting RL rollouts.
Measured GPU liquid throughput
From the measurements behind Alloy's paper (arXiv:2611.16312), on one NVIDIA L4 (physics only, warm, 10 ms period, pre-release build, one run per point), a 200 ml pour ran at 0.53 / 2.0 / 7.1 simulated seconds per wall second (summed over worlds) at 1 / 4 / 64 worlds.
When to stay on MuJoCo
If your scenes contain rigid robots and rigid objects only, plain MuJoCo Warp is leaner and faster on rigid robots, and MuJoCo C alone on the CPU gives you full MJCF feature coverage, double precision, and its viewer (Alloy vs MuJoCo).
Keep in mind
- Material pair limits: In Alloy, sand and pastes (MPM) cannot share a scene with cloth, a soft body, or a clamped cable yet. Liquid beside sand builds and runs, but the sand acts as a solid wall at the surface (no soaking or wetting), and liquid cannot start inside the sand.
- MPM scaling: Many parallel worlds of sand or paste are limited by the implicit stress solve.
- URDF joints: Convert URDF robots to MJCF if you need
set_targetsjoint control; URDF joints raise onset_targets. - Full limits: Keep in mind.
Links
- Docs page this is based on: https://alloy.argonrobotics.ai/docs/answers/mujoco-models-with-liquids-and-sand/
- Moving from MuJoCo guide: https://alloy.argonrobotics.ai/docs/how-to/move-from-mujoco/
- Sand and granular materials: https://alloy.argonrobotics.ai/docs/answers/sand-and-granular-materials/
- Code: https://github.com/argonrobotics-ai/alloy
- Paper: https://arxiv.org/abs/2611.16312
