sim-plugin-hfss
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.
Current maturity
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.
Scope
Version 0.1.2 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
What an agent can do with HFSS
- 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. - Preserve and reattach an Agent-owned AEDT process by PID when a bounded Python control call times out.
- Inspect session, project, and design summaries before continuing.
- Run complete PyAEDT Python scripts through
sim run --solver hfss.
Install
Install from PyPI:
uv pip install "sim-plugin-hfss==0.1.2"
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.py
If 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.
Experimental offline AEDT inspection
For quick triage on a machine without AEDT, inspect a project file directly:
python -m sim_plugin_hfss.aedt_inspect path/to/project.aedt
The 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.
AEDT discovery
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 hfss
You do not need to add AEDT to the global system PATH when default discovery
or one of the explicit environment variables works.
Common agent workflow
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.
Develop
git clone https://github.com/svd-ai-lab/sim-plugin-hfss
cd sim-plugin-hfss
uv sync --extra test
uv run pytest -q
uv build
The 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 -q
On PowerShell:
$env:SIM_HFSS_RUN_INTEGRATION = '1'
uv run pytest tests/test_hfss_real_smoke.py -q
License
Apache-2.0. See LICENSE and LICENSE-NOTICE.md.
Metadata
Release files for sim-plugin-hfss 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sim_plugin_hfss-0.1.2.tar.gz | 133.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sim_plugin_hfss-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 167.7 kB
Release files / sim_plugin_hfss-0.1.2.tar.gz
| Download URL | sim_plugin_hfss-0.1.2.tar.gz |
|---|---|
| Size | 133.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b96b4bd4a71192f387db61b887eb437a6898499b672375389f95d4984d557bf4
|
|
BLAKE2b-256 checksum How to use checksums |
50788a236aa9bbe8508dbef58619196d0800eba5d6a70b54f3b7d1ea02765b91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / sim_plugin_hfss-0.1.2-py3-none-any.whl
| Download URL | sim_plugin_hfss-0.1.2-py3-none-any.whl |
|---|---|
| Size | 34.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7a1e4483290d6dd0aea01d16d008cc776ce086fcf501401c049e8cbfaa12352a
|
|
BLAKE2b-256 checksum How to use checksums |
ae970e126423265d6a6c9d8deea2d29ea3dd10a3596aa053fbb1b3ebac29b816
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|