Skip to content

rfx Documentation

rfx is a JAX-based differentiable FDTD simulator for RF and microwave engineering.

ConfigurationWhat is documented
Recommended defaultuniform Cartesian Yee RF workflows: cavity, waveguide, patch-style resonance, probes, Harminv, selected S-parameter workflows, and benchmarked far-field workflows
Port-specific calculationslumped/wire, microstrip-line, rectangular waveguide, and coaxial-line workflows each use their matching calculator and stated geometry, mesh, and frequency limits
Curated public APIuser-facing builders, observables, and reporting helpers; lower-level symbols are supporting reference
Other repository codemay exist in the repository, but is not a documented public workflow unless a guide and support entry cover it

Start with the recommended default configuration unless a public guide states the exact limits for another configuration.

GuideDescription
InstallationPython/JAX install, GPU notes, dev setup
Quick StartFirst simulation with the current high-level API
Your First Patch AntennaBuild a patch model, run a short check, and see what is required before reporting RF results
Studio, CLI, and MCP ExperimentsLocal Studio, versioned CPU experiments, replay bundles, and MCP approvals
GuideDescription
Simulation APISimulation, Result, materials, sources, probes, ports, and NTFF helpers
Materials & GeometryMaterial library, Debye/Lorentz models, CSG shapes, and PCB stackup basics
Sources & PortsSoft sources, lumped/wire ports, microstrip-line ports, waveguide ports, and coaxial-line reflection for exactly one face="top" port within its stated limits
Probes & S-ParametersDFT probes, S-matrix helpers, Harminv, de-embedding, and exports
Memory ReductionHow to reduce FDTD/AD memory without crossing validation boundaries
Waveguide PortsModal waveguide excitation and S-matrix extraction
GuideDescription
ValidationPublic validation overview and support status
BenchmarksCurrent reference cases, pass criteria, and reproduce commands
Convergence StudyMesh-refinement workflow
Far-Field & RCSNTFF radiation patterns and scattering workflows
Visualization & AnalysisPlots, exports, post-processing, and result interpretation
GuideDescription
Autodiff and Adjoint BackgroundGradient concepts for microwave engineers, mapped from Meep adjoint terminology to rfx autodiff workflows
Inverse DesignGradient-based optimization with proxy objectives and validation caveats
Gradient BehaviorWhere gradients are strong, weak, or noisy
Parametric SweepsSequential sweeps and jax.vmap batch evaluation
Patch Antenna DesignPractical rectangular patch workflow
  • Examples — recommended public runnable paths
  • Validation — support and validation overview
  • API — curated public API contract