Advanced Research Tools for future generations of computing technologies

Multiphysics simulations for photonic, phononic, superconducting, MEMS, and electronic computational systems — driven identically from a desktop window, Monty scripts, headless batch CLI, or an MCP server.

Workspace 15 crates · Pure-Rust CPU core (Rust 1.99.1)
Script & CLI API 118 JSON-Schema commands
Open Materials On-demand DB fetch + 42 TOML
Results Storage Self-contained HDF5 + zlib-rs
Vector P2 optical mode gallery of a 500 by 300 nm silicon-on-insulator waveguide showing TE0 and TM0 electric field distributions at 1550 nm.
01 / 05

SOI Wire Waveguide · Vector Nédélec(2)+P2 (`15_soi_wire`)

500 × 300 nm silicon wire at 1550 nm in the wafer frame: TE0 (neff = 2.671811, ng = 4.1969, 94.5% power in Si) and TM0 (neff = 2.333849, ng = 4.6294, 85.1% in Si).

What the solver did · PLATE 01.1
$ nyx --batch examples/15_soi_wire.nyx.json
986 cells · 2,015 DOFs · 0.08 s
986 cells, 515 points
ems: solved in 0.08 s, 2015 dofs, 2 solution(s)
  neff 1 = 2.671811   (n_g = 4.1969, share in Si = 94.5%)
  neff 2 = 2.333849   (n_g = 4.6294, share in Si = 85.1%)
  factorising sparse matrix (6819 unknowns, 150676 non-zeros): 0.04 s
01 · ARCHITECTURE

Three front-ends driving one deterministic engine

Browse 118 commands →
CRATE · appDESKTOP

egui / wgpu Window

Interactive 2D/3D viewport, Study/Physics/Materials tabs generated from physics descriptors, Ctrl+K command palette, and live convergence indicators.

nyx FILE.nyx.json F5 Compute
CRATE · nyx-scriptSANDBOXED

Monty-Run *.nys Scripts

Python-syntax scripts executed in an isolated worker process with bounded memory allocation and directory confinement via nyx check and nyx run.

nyx check FILE.nys nyx run FILE.nys
CRATE · nyx-mcpAI HOSTS

Four-Tool Stdio MCP Server

Exposes script_run, script_wait, script_check, and api over a persistent session. Wired by nyx-connect into Claude, Cursor, and VS Code.

nyx-connect connect all JSON Schema
02 · PHYSICS KERNELS

Strictly isolated PDE solvers on a shared FEM core

Read Engineering Notes →
nyx-dfsDIFFUSION & ELECTROSTATICS

Electrostatics, Magnetostatics & Heat

2D/3D electrostatics with Prager–Synge H(div) flux bounds, 3-layer planar BEM, spherical-harmonic far field, stationary and transient (exact/BDF2) heat transfer.

0.000e0 thread drift P1 / P2 + quarter-point
nyx-smsSOLID MECHANICS

Elasticity, Piezoelectrics & Anchor Loss

Static, eigenfrequency, axisymmetric, driven, and 2.5D elastic waveguide modes with full anisotropic stiffness/photoelastic tensors, PML, LRB, and Floquet pairs.

Euler Z-X-Z PML & Floquet
nyx-emsELECTROMAGNETICS & cQED

Waveguides, Cavities & Driven ROM

Full-vector Nédélec(2)+P2 waveguides with Stokes polarisation analysis, 3D cavities with BCS surface reactance, Craig–Bampton BBQ, EPR, and Loewner/PROM driven sweeps.

Nédélec deg 1 & 2 Block shift-invert

nyx is a desktop and headless multiphysics simulation workbench (AGPL-3.0-only OR LicenseRef-nyx-Commercial). Its default CPU engine — geometry evaluation, constrained Delaunay and 3D isosurface-stuffing meshing, finite-element and time-domain (DGTD/FDTD) kernels, sparse direct factorisations (faer), smoothed-aggregation algebraic multigrid, complex Krylov eigensolvers, and self-contained HDF5 storage (hdf5-pure + zlib-rs) — runs with zero external C solver or Python runtime dependencies. Opt-in GPU acceleration (--features gpu) currently runs portable WGSL compute shaders via wgpu, backed by hardware-agnostic Vector traits intended to transition to Rust-native GPU toolchains over time.

One engine, four front-ends

Every action in nyx maps onto a single versioned catalog of 118 JSON-Schema commands (nyx api list), ensuring identical numerical results across:

  1. The desktop window (nyx, built on eframe/egui with wgpu rendering and live field probing).
  2. Typed Monty scripts (*.nys, Python syntax executed in an isolated nyx-script-worker sandbox).
  3. Headless CLI & shared queue (nyx --batch, nyx check, nyx run, nyx queue submit).
  4. AI host integration (nyx-mcp and nyx-connect for Antigravity, Claude Code, Claude Desktop, Cursor, VS Code, and Windsurf).

Core physics & verification pillars

  • Electromagnetic waves (nyx-ems): Full-vector Nédélec(2)+P2 cross-section waveguide modes ($\exp(-j \beta y)$ in the wafer frame), axisymmetric rings, Floquet–Bloch periodic lattices, driven multi-port Loewner/PROM frequency sweeps, surface-impedance sheets, and 3D cavity eigenmodes with gradient projection and curved tetrahedral geometry.
  • Solid mechanics (nyx-sms): Linear anisotropic elasticity, 2.5D elastic waveguide modes ($\exp(-j q y)$), axisymmetric eigenfrequencies with r = 0 regularity enforcement, Kelvin–Voigt/Akhiezer viscoelastic damping, low-reflecting boundaries, and Cartesian/cylindrical/spherical perfectly matched layers ($Q = \mathrm{Re},f / (2 |\mathrm{Im},f|)$).
  • Diffusion & static fields (nyx-dfs): P1/P2 electrostatics (2D/3D plus 3-layer planar BEM planar_bem), stationary and transient heat transfer (exact modal/matrix exponential for small systems, BDF2 with AMG above 2,500 free unknowns), magnetostatics, and AC surface loss.
  • Verification & cQED analysis (nyx-analysis & femcore::vvuq): Equilibrated H(div) Raviart–Thomas Prager–Synge dual capacitance bounds, Stokes/Poincaré optical polarisation classification, Craig–Bampton hierarchical circuit quantisation, Schur-complement Black-Box Quantisation, Taubin $S_{21}$ circle fits, and ASME V&V 20 validation suites.