π¬ Watch the 90-second tour: what Hertzon does today and what comes next.
β οΈ Hertzon is under active development. It can still contain bugs, which are being fixed step by step. Please verify important results independently and report problems as GitHub issues.
π Website: c8501024.github.io/Hertzon
Hertzon Electromagnetic Design Suite: an open-source suite for co-design by engineers and AI agents. At its core is a 3D full-wave electromagnetic simulator (FEM, frequency domain) for antennas, microwave filters, waveguides, PCB structures and radar cross section, with 3D modelling in a modern interface, the workflow of the established design tools and high accuracy from adaptive meshing and curved elements: draw or import the model, assign boundaries and excitations, add an analysis setup with adaptive meshing, add frequency sweeps, analyze, then look at S-parameters, fields and radiation patterns. Circuit designs with lumped parts and transmission lines turn into 3D layouts and back.
π€ The vision: co-design with AI. Every design is made by an engineer and an AI agent together. Hertzon provides its methods (modelling, adaptive solving, sweeps, optimizers, derivative tuning, circuits, PCB import, and next the topology optimization from the author's research) as tools that an AI agent calls through MCP (what is MCP?). The AI picks and combines the methods; the engineer sets the goal, sees every step in the open window and decides.
π New in 0.4: designing with an AI assistant. The MCP server lets an assistant such as Claude Code build, mesh, solve and evaluate models, and the Claude plugin that ships with Hertzon adds the design workflow on top (four skills,
/hertzon:design,/hertzon:verifyand a pane with Hertzon's pictures). See AI assistants (MCP) and the changelog.
Hertzon is by Dominik Mair. Its FEM solver core, EMerge, is by Robert Fennis.
π New to Hertzon? Start with the step-by-step tutorial: a waveguide with wave ports, a coaxial cable, a half-wave dipole and the RCS of a sphere, each from the empty window to the result, your own result quantities with equations, a stub filter as a circuit with its 3D layout, a board imported from Gerber files, a 2.4 GHz LNA from the schematic to the placed board, a broadband diode mixer with harmonic balance, subdesigns connected on one board with matched phase, and a circuit recognized from a 3D design, plus how to let an AI assistant (Claude Code, Codex, VS Code) build and run simulations for you through Hertzon's MCP server.
Solver core: EMerge. The finite-element solver core of Hertzon is EMerge, the open-source FEM solver by Robert Fennis: the NΓ©dΓ©lec formulation, element matrices, ports, boundary conditions, the solver interface, the error estimate and the AURA mesh refinement are his work, and so is the SPARTA direct solver that Hertzon offers as an option. Thanks to Robert for making EMerge available under the GPL.
Around this core, Hertzon brings its own parts: the graphical workflow, a circuit simulator with schematics that turn into 3D layouts and back, PCB import from Gerber and Excellon files with the stackup, the adaptive pass loop with its convergence criteria, a second local refinement method (hzmesh, local Delaunay), fast and interpolating sweeps with parallel sweep points, far-field and RCS post-processing (also of half and quarter models with symmetry planes), optimizers, parametric sweeps, derivative tuning with mesh morphing, solving on remote and cloud machines, and the MCP server.
Some solver features were developed in Hertzon and contributed to EMerge: the curved (isoparametric) elements on curved surfaces, hzAURA (AURA with cavity re-meshing, so refined curved surfaces stay exact), multi-mode wave ports, the far field of all ports in one pass and the parallel removal of PEC unknowns (all in EMerge's
hertzonbranch), as well as the concave-wedge flip for AURA and fixes to port modes, far fields with symmetry planes and the PARDISO interface (in EMergemain).
Hertzon is a desktop application (Qt + VTK) built for responsiveness with large models: geometry is tessellated incrementally per object, the solver runs in its own process, and results are streamed back into the GUI while it keeps working.
Hertzon is an independent open-source project. It is not affiliated with any vendor of commercial simulation software.
Install
Download the installers from the Releases page.
Windows installer: run Hertzon-Setup-<version>.exe. It installs Hertzon for your user
(no administrator rights) into %LOCALAPPDATA%\Programs\Hertzon, adds it to the start menu, the
desktop and Settings > Apps (uninstall there), opens .hzn projects with Hertzon and sets up the
Python environment (about 1 GB download) before it finishes.
Updates: when a new version is out, Hertzon shows its release notes in a small dialog after the start
(at most once every 7 days) with Install, Skip this version and Later; Help > Check for
Updates... checks at any time. Install downloads the installer, checks it and keeps your settings and the
Python environment. The check can be switched off in Tools > Options > General, or with
HERTZON_NO_UPDATE_CHECK=1.
Linux: unpack Hertzon-<version>-linux.tar.gz and run ./install.sh. It installs for your user
into ~/.local/share/hertzon, adds Hertzon to the application menu, the command hertzon and the
.hzn file type. It checks the system libraries the window needs (Qt's X11 platform plugin, OpenGL) and
offers to install missing ones with your package manager (apt, dnf, pacman or zypper). Run install.sh of a newer package to update, ~/.local/share/hertzon/uninstall.sh
to remove it.
macOS (Apple Silicon): unpack Hertzon-<version>-macos-arm64.tar.gz (double-click it in Finder) and run
./install.sh in Terminal from the unpacked folder. It needs Python 3.10 to 3.13, for example 3.13 from
python.org or brew install python@3.13. It installs for your user
into ~/Library/Application Support/Hertzon, creates Hertzon.app in /Applications (Finder, Launchpad,
Spotlight, Dock; without administrator rights it asks for the password or uses ~/Applications), the command hertzon in ~/.local/bin and opens .hzn projects with Hertzon. The app is made by the
script on your Mac, so Gatekeeper does not block it. Run install.sh of a newer package to update,
~/Library/Application\ Support/Hertzon/uninstall.sh to remove it. On an Intel Mac use the manual route below.
SPARTA (optional): all three installers offer SPARTA, the GPU/CPU
sparse direct solver of EMerge's author. It is a separate program under the AGPL-3.0, so it is installed only when
you say so: the Windows setup lists it as an unchecked component, install.sh asks once (on macOS with "yes"
preselected, as it is the only solver there that runs on the GPU). HERTZON_SPARTA=1 or 0 answers without
asking. An update keeps your choice, and Tools > Options > Install SPARTA adds it at any time, without a restart.
All three are built with packaging/build_installer.sh (needs NSIS for the Windows installer); GitHub Actions
builds them and publishes a release for every version (.github/workflows/release.yml).
Windows, without installing: unzip and double-click Hertzon.exe. On the first start it installs
everything it needs into a .venv folder next to it (Python 3.13 via winget if missing, then
EMerge, Qt and VTK, about 1 GB) and compiles the solver with a small test solve, then opens
Hertzon. Later starts open Hertzon directly, and the first simulation runs at full speed.
You can drag a .hzn file onto Hertzon.exe to open it. To reinstall, delete .venv.
Manually (any OS), Python 3.10 or newer:
python -m venv .venv && source .venv/bin/activate # Windows: .\setup.ps1 then .\run.ps1 pip install -e . # installs emerge, PySide6, pyvista, pyvistaqt ... python -m hertzon examples/WaveguidePost.hzn # or just: hertzon
EMerge comes from a pinned commit (see docs/EMERGE_CHANGES.md): prebuilt wheels for Windows x64, Linux x86_64 and macOS on Apple Silicon (arm64); on other platforms pip builds it from source, which needs a Rust compiler.
macOS, manually: the package above is the easy way on Apple Silicon; the manual route works there too
with Python 3.13 (e.g. from python.org or Homebrew), and the mesher library libhzmesh.dylib is included. On an
Intel Mac, pip builds EMerge from source, so install Rust first (curl https://sh.rustup.rs -sSf | sh). NumPy
on macOS uses Apple's Accelerate, so EMerge picks its Accelerate solver; reports from Mac users are welcome.
EMerge 3 ships its solver kernels compiled; the first solve only compiles Hertzon's own numba kernels
(matrix handling, the size field of the re-mesh refinement), which takes about a minute once; later
solves start immediately. On Linux without a desktop, run under xvfb-run.
The workflow
- File > New opens the start page: choose 3D FEM or Circuit, the solution type (Modal, Terminal or Eigenmode; Simulation > Solution Type changes it later), the units and the project name, or open a recent project, an example or a template. Project > Insert Design shows the same choice, so a project holds 3D and circuit designs side by side. A 3D design uses Auto Open (radiation or PML chosen automatically) or Auto Open - Filter (air box with fixed margin and a radiation boundary, for filters and other closed-ish circuits). A Circuit design opens a schematic editor instead (see Circuits below).
- Draw boxes, cylinders, spheres, cones, tori, polyhedra, rectangles, circles, ellipses, polygons, polylines and arcs (3 point, center point), region. Click on the grid (snaps to grid and vertices) or type coordinates in the status bar; every parameter accepts expressions with variables and units (Constants & Functions... in Design Properties lists every constant, function, unit and variable a value may use). Relative, face and object coordinate systems set the working plane; grid and axes stay at its origin. Modeler > Boolean unite / subtract / intersect / split, arrange, duplicate, thicken, sweep, import STEP; Fillet and Chamfer on the edges of solids or the corner vertices of sheets. A left drag in the 3D view selects everything inside the rectangle; Edit > Group (Ctrl+G) makes objects move, rotate and mirror as one unit, and integration lines follow their objects.
- Select faces (F) or objects (O) and assign Boundaries (Perfect E/H, Finite Conductivity, Impedance, Lumped RLC, Radiation, PML, Symmetry) and Excitations (Wave Port, Lumped Port, Incident Plane Wave). With Symmetry boundaries a half or quarter model is enough for the far field, which includes the mirror images; a port cut by the plane is still referred to the impedance of the half port (BACKLOG.md). Primary / Secondary (periodic) boundaries make the model a unit cell of an infinite array, with the scan angle on the Secondary boundaries; Floquet ports above and below the cell excite and absorb the plane waves TE00 and TM00. The Lumped Elements tab inserts chip resistors, inductors and capacitors (0201 to 1206 and RF series of Coilcraft and Murata) with a click on the board: pads, element sheet and Lumped RLC boundary with an ideal value, typical ESL/ESR or a Touchstone file of the vendor (docs/LUMPED_ELEMENTS.md). The Connectors tab puts an SMA, 2.92 mm or 2.4 mm edge-launch connector of the library (131 parts) with its launch footprint at a lumped port at the board edge, simulated as ideal port, as a cascaded transition model or in full 3D, switched at any time (docs/CONNECTORS.md).
- Analysis > Add Solution Setup: solution frequency (single / multi / broadband), maximum passes, maximum Delta S, matrix convergence, minimum (converged) passes, percent refinement, maximum refinement, lambda refinement, solver choice, mesh refinement method (hzAURA, EMerge's AURA with exact curved surfaces, by default; local Delaunay or re-mesh). Add Frequency Sweep: discrete, interpolating or fast, linear step / count / log / single points.
- Validation Check (also checks overlapping solids exactly: partial overlaps of different materials are errors, except a metal in a dielectric with the design setting Material override; one click resolves them), then Analyze All (F5). The progress window shows each adaptive pass; Solution Data shows the convergence table and plot, matrix data and mesh statistics, also of every solved parametric variation and optimization evaluation (Design Variation).
- Results: rectangular plots, Smith chart, data table, radiation pattern, 3D polar plot;
Fields: magnitude, complex magnitude and vector plots of E, H and surface current on faces,
objects, cut planes or drawn planes, with phase animation and Export GIF of the animation as
shown. Export Touchstone, CSV, images.
Calculator (Fields Calculator): your own quantities as equations, from the S-parameters
(
RL = -dB(S(1,1))) or the fields (P_in = flux(Port1, re(S)), losses, energies, Q), typed in a typeset formula editor, shown in reports, Fields reports and field plots (tutorial). Optimization (conjugate gradient on report goals, a Latin hypercube sample followed by parallel Nelder-Mead chains for a global search, or the Derivative Trust Region, which minimizes the goals on the derivative tuning model and checks each step with a solve) and Parametric sweeps of design variables. Apply to Design on an evaluation shows its solution without solving again. Derivative tuning: sliders for design variables, and S-parameters, patterns and antenna parameters follow live in the reports from one solve (how it works, tutorial).
Circuits
A Circuit design is a schematic of a network next to the 3D designs, with its own ribbon and a part library with search (docs/CIRCUIT.md, tutorial):
- Parts: power ports, ground, net labels; R, L, C, series and parallel RLC, attenuator, DC block and feed; microstrip lines and stubs, coupled microstrip, coplanar line, stripline, coaxial line, Via to Ground (vias with their mutual inductance) and ideal lines on a substrate part; Touchstone files.
- Junctions: tee, cross, corner, mitered bend, step and gap of microstrip lines, found automatically where lines meet; a line calculator gives W and L from Z0 and electrical length.
- Full-wave line model: microstrip and coplanar lines from a mode solve of their cross-section instead of the closed-form formulas, cached per cross-section.
- 3D designs as blocks: drag a solved 3D design from the Project Manager (or a
.hznfile) into the schematic; its S-parameters are used in the circuit. - 3D layout: Create 3D Layout turns the schematic into a 3D design (substrate, traces, junctions, vias, lumped parts, ports and the 3D blocks with their geometry), every dimension a design variable; Update 3D Layout and Update Schematic keep the two in step in both directions.
- Circuit from 3D: Create Circuit recognizes a schematic (lines, stubs, coupled lines, junctions, steps, gaps, vias, rings, lumped parts) from a planar microstrip 3D design, its dimensions linked to the 3D variables; copper without a circuit model becomes a 3D design block. Calibrate to 3D fits correction factors to the solved 3D design, Sync with 3D takes the differences between the two in the direction you choose.
- Transistors and diodes: SPICE libraries of process design kits (e.g. IHP SG13G2), model cards and Verilog-A models in the same schematic. Hertzon solves the schematic and its linear network; the bias point and the small-signal device admittances come from ngspice, the harmonic balance from circuitRF (both optional, installed separately; details).
- Copy and paste (Ctrl+C / Ctrl+V) across circuit designs; the reports, Smith chart, Touchstone export and Solution Data work as in a 3D design.
See docs/FEATURE_MATRIX.md for an overview of what is implemented and what is still missing.
See docs/TUNING.md for derivative tuning: the workflow, the method (morphed mesh, matrix derivatives, reduced model), its accuracy and limits.
See docs/MESHER.md for how the adaptive mesh refinement works: hzAURA (EMerge's AURA, the default), Hertzon's local Delaunay mesher hzmesh, curved elements and benchmark results.
See docs/BENCHMARKS.md for solve times on a 32-core workstation: a patch antenna with 319k unknowns, 8 adaptive passes and a 101-point sweep over a 3:1 band in 81 s (370 s on one core). The projects and the raw results of every run are in examples/benchmark/scaling.
See docs/ROADMAP.md for what comes next: a solver interface for several solvers, openEMS (FDTD), electrostatics and magnetostatics, circuit co-simulation and photonics.
Examples
In Hertzon, File > Open Example opens any of them as an untitled copy, so the shipped files stay unchanged. All of them use the current defaults: hzAURA mesh refinement and curved elements. Most open with their reports and field plots ready: after Analyze All (F5) double-click a report, or right-click a field plot
Animate and Export GIF....
| File | What it shows |
|---|---|
examples/WaveguidePost.hzn |
WR-90 waveguide with an inductive PEC post, wave ports, interpolating sweep 8-12 GHz, Mag E on a cut plane halfway up the guide (tutorial); equations for the return loss, the power through both ports and the power flow along the guide (tutorial) |
examples/Microstrip.hzn |
50 Ξ© microstrip on FR4, lumped ports, thin-conductor trace, Auto Open - Filter, sweep 1-6 GHz; second design with a 2.2 pF 0603 DC-block capacitor (Lumped RLC from the Lumped Elements tab, inserted as a group) (tutorial) |
examples/PatchAntenna.hzn |
2.45 GHz inset-fed patch on FR4, Auto Open (radiation boundary), far field, gain pattern and 3D gain, surface current on the patch and Mag E on a cut plane through the feed |
examples/HairpinFilter.hzn |
Third-order hairpin band-pass filter at 2.45 GHz on RO4350B, copper losses, sweep 2-2.9 GHz, an optimization and the surface current on the hairpins |
examples/GPS_L1_RHCP.hzn |
1.575 GHz GPS L1 ceramic patch (Ξ΅r 20) with probe feed and stub on a feed board, circular polarization (RHCP) far field |
examples/RotmanLens_24GHz.hzn |
24 GHz Rotman lens beamformer on RO4350B in three designs: the lens with beam, array and dummy ports, the single array patch, and lens plus patch array with beam far fields |
examples/PlaneWave.hzn |
Incident plane wave on a PEC sphere in a radiation box drawn by hand, and the same plane wave in an empty box |
examples/NATO-Sphere.hzn |
RCS of a PEC sphere (radius 250 mm) at 1 GHz, plane wave, Auto Open with one wavelength of air, curved second-order elements, Mag E on a drawn plane |
examples/DroneRCS.hzn |
RCS of an imported drone STL model (Delta_Composites_Demo_3_Layers/) at 1 GHz, plane wave, 3D RCS pattern |
examples/Coax.hzn |
20 mm, 50 Ξ© PTFE coax with TEM wave ports, sweep 1-10 GHz, Vector E across and Mag E along the line on cut planes (tutorial) |
examples/Dipole.hzn |
Half-wave dipole for 1 GHz with a lumped port, Auto Open, gain, impedance and antenna parameters; second design: the half model with a Symmetry boundary (Perfect H), whose far field includes the mirror image (tutorial) |
examples/DifferentialPair.hzn |
100 Ξ© edge-coupled microstrip pair on RO4350B with the terminal solution: one wave port per end with a terminal per trace (even and odd mode each absorbed with its own propagation constant), differential pairs and the mixed-mode S-parameters S(Diff1,Diff1), S(Comm1,Diff1), sweep 1-12 GHz (tutorial) |
examples/GroundedCPW.hzn |
50 Ξ© grounded coplanar waveguide on RO4350B with a wave port at each end: the top grounds reach the perfectly conducting side walls, so each port face sees the trace and one ground, and a drawn Integration Line (trace to ground plane) sets the line impedance; S-parameters, Zo and Gamma 1-20 GHz |
examples/FSS_UnitCell.hzn |
Frequency selective surface: a cross dipole on RO3003 as the periodic unit cell of an infinite array (Primary / Secondary boundaries, scan angle scan_theta), Floquet ports below and above with TE00 and TM00, transmission and reflection 6-18 GHz |
examples/GerberTestBoard.hzn |
Two-layer board with copper shapes, cut-outs, a via (grouped with its pad) and holes: the test case of File > Export > Gerber (docs) |
examples/StubFilter.hzn |
Circuit design: a 2.45 GHz band-stop filter of two open microstrip stubs on RO4350B with automatic tee junctions, analyzed in a moment, and its 3D layout created from the schematic (every dimension a variable), solved full-wave and tuned (tutorial, docs) |
examples/Mixer_DBM.hzn |
Circuit design with nonlinear devices: a broadband double-balanced diode mixer (about 1.25-4 GHz, IF 100 MHz) on a 1.6 mm 4-layer RO4350B board. Two broadside Marchand baluns in stripline as a 3D design (solved full-wave), the HSMS-2829 ring quad with the manufacturer's SPICE card, bypass capacitors, coplanar IF lines and an IF choke; the Mixer analysis (two-tone harmonic balance by circuitRF) gives conversion loss and LO-RF, LO-IF and RF-IF isolation over the band and the LO power. Built by python examples/make_mixer.py; examples/mixer/check_ngspice.py checks the harmonic balance against an ngspice transient (tutorial, docs) |
examples/LNA_2G4.hzn |
Circuit design with a transistor: a 2.4 GHz amplifier that can be built (onsemi NSVF4009SG4 on RO4350B, 0402 parts, 5 V), 13 dB gain, S11 and S22 below β14 dB, unconditionally stable; bias point and S-parameters with ngspice, gain compression with circuitRF (harmonic balance), and the same board with the measured transistor data (tutorial, docs). Needs ngspice, circuitRF and OpenVAF-Reloaded |
examples/VNA_TestSet_2G4.hzn |
Subdesigns connected on the board: the reflectometer test set of a two-port network analyzer at 2.45 GHz, built from Design Wizard blocks (a Wilkinson divider and two 15 dB coupled-line couplers, each a 3D design with its circuit model) and 50 ohm loads on vias. Connect laid all lines with 50 ohm and circular bends, Match Phase gave the lines to the receivers R, A and B the same phase with meanders; the circuit simulation includes the routes. Built by python examples/make_vna_testset.py (tutorial, docs) |
examples/SphereRCS.hzn |
RCS of a 100 mm PEC sphere at 1 GHz, plane wave, Auto Open, bistatic and monostatic RCS reports, checked against the Mie series (tutorial) |
examples/Showcase_AllFeatures.hzn |
Test project that uses nearly every feature in eight designs: patch array (all report types, reports against a design variable, field overlays, Fields Calculator, output variables with S, Y, Z and VSWR, conjugate-gradient and Derivative Trust Region optimizations with goals on antenna parameters, parametric sweeps, setups with every matrix solver family, all sweep types, all mesh operations, coordinate systems), half-model iris filter (Symmetry, de-embedding, renormalization, ports-only setup), eigenmode cavity, a geometry zoo with every create command and operation under a plane wave (RCS), a terminal coax monopole with PML, a periodic unit cell (Floquet port, scan angles), a terminal differential pair (two terminals per wave port, reference conductor, mixed-mode S-parameters) and an over-moded waveguide (two-mode wave ports with TE10 and TE01, mode conversion). Built by python examples/make_showcase.py |
examples/benchmark/ holds the validation and timing cases (patch antenna, waveguide post against a reference,
sphere RCS against the Mie series, scaling from small to large models) with their scripts; the timings are in
docs/BENCHMARKS.md, the mesher comparison in
examples/benchmark/mesher.
python examples/make_examples.py builds the first versions of five of them (waveguide, microstrip, patch,
hairpin, differential pair) from code; the shipped files were finished in Hertzon.
PCB import and manufacturing data (Gerber)
File > Import PCB... reads the manufacturing files of a board (Gerber X2 and RS-274X, Excellon drill
files, the .gbrjob job file, zip archives or folders; the usual KiCad, Altium and Eagle file names are
recognised) and builds the simulation model: the stackup with its stk_ variables, the substrate in the board
shape, the copper of every layer, the vias and holes. Only what is simulated is loaded, and the import report
names everything left out. See docs/PCB_IMPORT.md and the
tutorial.
File > Export > Gerber... writes Gerber X2 files per copper layer, the board outline and Excellon drill files (plated / non-plated) from the real CAD geometry: choose the board plane (any coordinate system), origin and units, check the suggested layer assignment in the preview and export. Arcs stay exact, overlapping copper is merged, cut-outs and islands keep their polarity, and simulation helpers (air region, ports, radiation boundaries) are left out. See docs/GERBER_EXPORT.md.
Scripting
- File > Export > EMerge Python Script writes a stand-alone script that rebuilds the same EMerge
model (geometry, materials, boundaries, ports, initial mesh) and runs the setup, or stops after
meshing with
--prepare-onlyso you can continue in plain EMerge. - Solve without the GUI:
hertzon-cli solve Project.hzn --design DesignName --set w=1.2mm --freq 1GHz:5GHz:401 -o out.s2pwrites the S-parameters as Touchstone;hertzon-cli describe Project.hznlists ports, variables and setups as JSON. Exit codes, progress lines and the JSON are in docs/CLI.md. - Solve on another computer (experimental): a computer in your network runs
hertzon-serve(or Tools > Options > Remote > Share this computer) and the laptop pairs with it in Tools > Options > Remote; or Hertzon creates a cloud server for the session in Tools > Options > Cloud (Hetzner Cloud; Amazon Web Services, Google Cloud and Microsoft Azure are marked untested) and deletes it again. Solve on in the status bar switches between this computer, the remote one and the cloud. See docs/REMOTE.md. - Project files (
.hzn) are plain JSON; results go to<project>.hznresults/<design>/<setup>/(sparams_*.npz, Touchstone*.sNp,fields_*.npz,farfield_*.npz,convergence.json); their layout, units and status values are in docs/RESULT_FILES.md.
AI assistants (MCP)
What MCP is and how Hertzon uses it for co-design: docs/MCP.md. The tutorial shows the setup and example prompts.
Hertzon ships an MCP server, so Claude Code, Codex or VS Code (Copilot agent mode) can build and run simulations: "build a 2.45 GHz patch on FR4 with a lumped port, solve it and give me S11 and the gain".
- Tools > AI Assistants (MCP)...: press Register next to your assistant (Claude Code gets an
entry in
~/.claude.json, the Claude desktop app inclaude_desktop_config.json, Codex in~/.codex/config.toml, VS Code in its usermcp.json). Without the GUI:python -m hertzon.mcp --install claude(ordesktop,codex,vscode,all);python -m hertzon.mcp --configprints the settings for other clients. - Tick Let AI assistants work in this window. This also registers Hertzon with every installed
Claude Code, Claude desktop app and Codex that does not list it yet. Changes then appear in the open window at once
(Ctrl+Z undoes them) and analyses run in its solve queue. Without the live link the assistant works
on the
.hznfiles and runs the solver in the background. - Start a new session of the assistant and ask for a simulation.
Claude plugin
For Claude Code there is also a Hertzon plugin. The MCP server gives the assistant the tools; the plugin adds
how to use them: a design workflow from the specification to a verified design and a report, multi-fidelity for
circuits (circuit first, full wave to check and correct), know-how for antennas, a checklist for reading results, the commands /hertzon:design and /hertzon:verify, and a pane
beside the chat that shows every result Hertzon draws for the assistant (reports, field plots, the 3D view,
convergence) as it looks in Hertzon.
It is installed together with the MCP server: Register next to Claude Code (step 1 above) also installs the
plugin from your Hertzon folder, so it always matches your version of Hertzon and is updated with it (this needs
the claude command; Remove takes both away again). Without the claude command, install it in Claude Code:
/plugin install hertzon --marketplace c8501024/hertzon
Details: claude-plugin/README.md.
π§ͺ Experimental. The plugin and its skills are still experimental: how well a design turns out depends on the assistant, its model and the task, and an assistant can still miss a goal or stop early. Research into better results is ongoing, and the skills change with it.
β οΈ Keep an eye on cloud servers. With the MCP server and the plugin, an assistant can set up and run large projects on its own and use the computing resources efficiently, for example several variants side by side. When a cloud account (Hetzner or another provider) is set up in Hertzon, it can also start analyses on cloud servers. The skills tell it to estimate the cost first and to start servers only when you agree, but it may start them anyway, so always watch the servers, their cost and their running time (status bar, Check Account, docs/REMOTE.md).
The server offers tools to create projects, set variables and design settings, draw and import
geometry, list faces (index, centre, normal), assign boundaries, ports and mesh operations, define
setups, sweeps and far-field spheres, validate, run, follow the adaptive passes, read S-parameters,
gain or RCS, and render a picture of the model. It also reaches the newer features: the patch antenna and
hairpin filter assistants, all three optimizers with Apply to Design, derivative tuning, circuit designs
(schematic, analysis, 3D layout and back, 3D designs from other projects), exports (Touchstone, STEP, Gerber,
EMerge script), PCB import and the stackup, the board of a circuit (Auto Place, Connect, Match Phase), where
analyses run (cloud), post-processing on the saved fields (evaluate_fields, get_power_budget, port modes),
pictures drawn by Hertzon (show_result), issue reports for the developers (report_issue) and the examples. The full list is in the
tutorial.
Design principles
Hertzon's design principles are in docs/PRINCIPLES.md. The first one: every export is WYSIWYG. Images, animations, plots, reports and data are saved exactly as Hertzon shows them: same size, speed, colours, scales and view.
Layout
The Python package keeps its short name hertzon, and projects keep the .hzn extension.
hertzon/model data model, expressions with units, materials, property schema, validation
hertzon/kernel OpenCASCADE (gmsh) geometry builder and display tessellation
hertzon/solver EMerge bridge: auto open, boundary mapping, adaptive passes, sweeps, far field
hertzon/gui main window, 3D modeler, project tree, property grids, reports, field overlays
hertzon/mcp MCP server for AI assistants, live link to the window, client registration
Changes
What changed in each release: CHANGELOG.md.
Tests
pip install -e ".[test]" && python -m pytest tests
Run the install again whenever packaging/emerge-commit changes: the tests stop with a message when the
installed EMerge is not the pinned commit. The tests run on every pull request and push to dev and main
(.github/workflows/tests.yml). How to report problems, ask questions and contribute:
CONTRIBUTING.md.
Branches and releases
- Work goes to the
devbranch (pull requests targetdev). Every push todevbuilds test installers for Windows, Linux and macOS, checks the Windows and the macOS installation and keeps them as an artifact of the run (Actions tab > Dev build > the run > Artifacts) for 30 days. They are not published as a release. - For a release, raise the version on
dev(pyproject.toml,hertzon/__init__.py,hertzon/mcp/__main__.py,CITATION.cff) and name the section inCHANGELOG.md, then mergedevintomainwith a merge commit. A new version onmainbuilds the installers and publishes the releasev<version>; merges without a new version publish nothing.
Contributors
Hertzon is open to contributions of every kind. Thanks to everyone who helps make it better, whether by reporting a bug, suggesting a feature, testing a new platform such as macOS, sending an example project or writing code. Bug reports and feature requests go to the issues, questions and ideas to the discussions; CONTRIBUTING.md explains how to send a pull request. The list follows the all-contributors convention; the emoji key explains the badges.
Dominik Mair π» π§ π π‘ |
FeruzTopalov π π€ π |
Diupth π π€ π |
simon46fsg π π€ |
potatobeanradio π π |
FranzForstmayr π€ |
anw-lab π€ |
ljarvela π |
gveng π |
kapil-iitk π€ |
To add someone, comment on an issue or pull request, for example
@all-contributors please add @username for bug (or ideas, code, doc, ...).
Citing Hertzon
If you use Hertzon in a publication, please cite it. GitHub shows a ready-made reference under
Cite this repository on the repository page (from CITATION.cff), as APA or BibTeX. Every release
is archived on Zenodo with its own DOI; the badge at the top links to the latest one. Please also cite
EMerge by Robert Fennis, the FEM solver core of
Hertzon: DOI 10.5281/zenodo.17025518.
License
GPL-2.0-or-later, the same as EMerge, which Hertzon links against. All Python packages Hertzon uses and their licences are listed in docs/THIRD_PARTY.md.
No warranty
Hertzon is provided "as is", without any warranty and without liability for damages, as set out in sections 11 and 12 of the GPL. Simulation results can be wrong. Check them yourself (measurements, analytical estimates or a second tool) before you rely on them for a design, a product or a decision.
