Use Codex, Claude Code, or another AI agent to work with Ansys HFSS 3D projects through sim-cli.
sim-plugin-hfss is an initial HFSS 3D driver plugin for sim-cli. It uses
PyAEDT as the Python control layer for Ansys Electronics Desktop (AEDT), keeps
the driver import-safe on machines without AEDT, and bundles an HFSS agent
skill so an agent has solver-specific workflow guidance after installation.
The HFSS/AEDT application is not bundled. See LICENSE-NOTICE.md.
This is an initial alpha release. It has unit coverage, protocol conformance coverage, simulated PyAEDT session coverage, packaging checks, and opt-in real HFSS smoke coverage for hosts with AEDT available.
Use it as an integration starting point, not as proof that a production HFSS workflow has been validated end to end.
Version 0.1.1 targets HFSS 3D through PyAEDT's ansys.aedt.core.hfss.Hfss
interface.
Out of scope for this first version:
- HFSS 3D Layout
- Maxwell, Icepak, Q3D, Circuit, or generic AEDT workflows
- Direct
.aedtor.aedtzbatch solve without a PyAEDT script - Plugin-index catalogue entry before the package is published and smoke-tested
- Detect PyAEDT Python scripts that instantiate HFSS.
- Check whether AEDT appears to be installed on the host.
- Run an experimental offline
.aedt/zip-packaged.aedtzprobe for project names, design hints, variables, setups, ports/boundaries, lock files, and.aedtresultssidecar progress without launching AEDT. - Start a PyAEDT-backed HFSS session in graphical or non-graphical mode when AEDT is available.
- Execute bounded Python snippets against the active
hfssobject. - Inspect session, project, and design summaries before continuing.
- Run complete PyAEDT Python scripts through
sim run --solver hfss.
Install from PyPI:
uv pip install "sim-plugin-hfss==0.1.1"For source testing against the current main branch:
uv pip install "git+https://github.com/svd-ai-lab/sim-plugin-hfss.git@main"After installation, sim-cli should auto-discover the driver and bundled skill:
sim check hfss
sim run --solver hfss path/to/script.pyIf sim check hfss reports that AEDT itself is unavailable, first confirm the
Python package installed correctly, then fix the local AEDT installation,
environment variables, or runtime prerequisites.
For quick triage on a machine without AEDT, inspect a project file directly:
python -m sim_plugin_hfss.aedt_inspect path/to/project.aedtThe inspector does not import PyAEDT, launch AEDT, solve, or claim full format
coverage. It scans text-like AEDT project payloads and zip-packaged .aedtz
archives, then reports best-effort project/design hints plus .aedt.lock and
.aedtresults sidecar status. Treat geometry, boundary semantics, and detailed
setup values as low-confidence hints until checked against AEDT/PyAEDT.
The driver looks for AEDT using:
SIM_HFSS_AEDT_ROOTSIM_AEDT_ROOTANSYSEM_ROOT*- AEDT launchers such as
ansysedt,ansysedt.exe, oransysedtsv.exeonPATH - Windows Registry hints from AEDT/Ansys uninstall entries and
App Paths - conservative default Windows and Linux install roots
If AEDT is installed in a nonstandard location, set an explicit root:
$env:SIM_HFSS_AEDT_ROOT = 'C:\path\to\AnsysEM'
sim check hfssYou do not need to add AEDT to the global system PATH when default discovery
or one of the explicit environment variables works.
Use sim-cli when it adds discovery, session control, inspection, or artifact
tracking. Plain PyAEDT scripts, AEDT executables, and solver-native batch flows
are also valid when they are the narrower reliable path; keep the same evidence
standard either way.
-
Probe AEDT/HFSS availability, for example with
sim check hfssor an equivalent PyAEDT/AEDT executable probe. -
Choose GUI mode only when visual review is required; otherwise prefer non-graphical mode.
-
When using a live sim-cli session, inspect the active project/design before mutating anything:
sim connect --solver hfss --ui-mode no_gui sim inspect session.summary sim inspect hfss.project.identity sim inspect hfss.design.summary
-
Run one bounded PyAEDT snippet, script, or native batch step at a time.
-
Inspect
last.result, AEDT messages, exported artifacts, and design state before solving or exporting the next result. -
Validate engineering results from HFSS artifacts and domain criteria, not from process success alone.
git clone https://github.com/svd-ai-lab/sim-plugin-hfss
cd sim-plugin-hfss
uv sync --extra test
uv run pytest -q
uv buildThe test suite is designed to pass on machines without AEDT/HFSS. Real solver smoke testing is opt-in:
SIM_HFSS_RUN_INTEGRATION=1 uv run pytest tests/test_hfss_real_smoke.py -qOn PowerShell:
$env:SIM_HFSS_RUN_INTEGRATION = '1'
uv run pytest tests/test_hfss_real_smoke.py -qApache-2.0. See LICENSE and LICENSE-NOTICE.md.