Skip to content

comsol

Drive COMSOL Multiphysics from sim.

  • Run a model — point sim at a .mph file and let it solve, headless or with the GUI visible.
  • Connect a live session — keep one COMSOL process open across many steps, send model-control snippets, observe model state, watch results stream back.
  • Shared desktop — the agent and a human engineer share the same Model Builder window. Edits the agent makes appear live in the engineer’s screen; the engineer can interrupt, click around, or hand control back.
  • Parametric sweeps — vary parameters between runs and collect results without restarting COMSOL.
  • Extract solved fields — pull temperature, velocity, or any other evaluated quantity out of a finished study for downstream analysis.
  • Server attach mode — point sim at a COMSOL server you already have running; sim won’t take ownership and won’t kill it on disconnect.

Works on Linux, macOS, and Windows.

Terminal window
sim plugin install comsol
sim drivers | grep comsol

One-shot run:

Terminal window
sim run --solver comsol path/to/model.mph

Persistent session with the engineer watching the GUI:

Terminal window
sim connect --solver comsol --ui-mode gui --driver-option visual_mode=shared-desktop
sim exec '<your model-control snippet>'
sim inspect session.health
sim disconnect
  • A licensed COMSOL Multiphysics install on the host
  • Network access to cdn.svdailab.com for the install step