AgentFEM is an open-source finite-element platform that turns an engineering analysis into a readable Python workflow: define the study, model, materials, loads, solution procedure, outputs, and verification in one place. The same workflow can be understood and operated by researchers, scripts, IDEs, future GUIs, and AI agents.
AgentFEM was initiated by Haoming Luo and open-sourced on GitHub in July 2026.
Its immediate goal is practical: to become a dependable and unusually usable open-source FEM platform. Its longer-term vision is to make finite-element simulation an accessible scientific workspace connecting engineering, computation, data, and AI.
Explore before installing: Browser demos, datasets & models · Six classroom exercises ( 中文 · Français ). The exercises include prompts, reference results, and downloadable handouts; running your own FEM cases requires the AgentFEM runtime below.
All You Need Is an Agent
AgentFEM includes the guidance and machine-readable interfaces an agent needs. Prefer manual setup? Continue to Install .
AI-Native FEM — finite-element software designed from the start for agents to construct, operate, and automate naturally, without replacing deterministic mechanics and numerical computation with AI.
AI-Native FEM — finite-element software designed from the start for agents to construct, operate, and automate naturally, without replacing deterministic mechanics and numerical computation with AI.
Humans and Agents, Together — people and AI agents work through the same readable materials, regions, loads, solution steps, and results. AI work remains understandable, editable, and reusable by humans.
Humans and Agents, Together — people and AI agents work through the same readable materials, regions, loads, solution steps, and results. AI work remains understandable, editable, and reusable by humans.
Results You Can Check — convergence, failures, required outputs, benchmark comparisons, and applicability limits remain attached to the result instead of being separated from the simulation that produced it.
Results You Can Check — convergence, failures, required outputs, benchmark comparisons, and applicability limits remain attached to the result instead of being separated from the simulation that produced it.
One Run or Thousands — the same model can support an individual analysis, parameter campaigns, parallel execution, restartable studies, and reproducible data generation.
One Run or Thousands — the same model can support an individual analysis, parameter campaigns, parallel execution, restartable studies, and reproducible data generation.
Simulation to Learning — results can flow into scientific datasets, user-owned models, PyTorch, surrogate models, and high-fidelity fallback without rebuilding the workflow around separate glue scripts.
Simulation to Learning — results can flow into scientific datasets, user-owned models, PyTorch, surrogate models, and high-fidelity fallback without rebuilding the workflow around separate glue scripts.
Open at Every Layer — users can begin with a clear engineering workflow and still reach operators, UFL, DOLFINx, PETSc, and custom constitutive models whenever needed.
Open at Every Layer — users can begin with a clear engineering workflow and still reach operators, UFL, DOLFINx, PETSc, and custom constitutive models whenever needed.
Our conviction: Open FEM for everyone. Useful simulation within reach with AI. Engineering AI grounded in physical models, observations, and verification.
Our conviction: Open FEM for everyone. Useful simulation within reach with AI. Engineering AI grounded in physical models, observations, and verification.
AgentFEM supports Linux , macOS , and Windows through WSL2 . Already installed? Go straight to your first model .
In a Miniforge terminal, install AgentFEM and its numerical tools together:
This command includes SciPy, Matplotlib and Gmsh. For an existing environment, retain its selected channel and follow the upgrade notes .
Installation ends after the environment is ready. Try the example below when you choose; your agent should ask before creating or running it.
On Windows, run these commands inside an Ubuntu WSL2 terminal, then protect projects and results from distribution removal:
If you tell an agent "use the mirror channel" , or the canonical package source is unreachable, use the TUNA conda-forge mirror without changing your global conda configuration. AgentFEM does not infer this choice from IP or VPN location:
The mirror carries byte-identical conda artifacts for synchronized releases but may briefly lag a new release. See the installation notes for verification, fallback, and cache-refresh commands.
Existing FEniCSx environment: PyPI
If you already maintain a compatible FEniCSx environment:
In mainland China, the same Python package is also available from the TUNA PyPI mirror; use that route only inside an already compatible FEniCSx/PETSc environment.
See INSTALL.md for platform and MPI details, or the runtime guide for Preview installation and integrity checks. Offline bundles are an alternative only when the chosen release lists a matching artifact; the online route above is always the starting point for this guide.
Additional capabilities stay separate from the standard installation:
Gmsh is installed by default but remains optional to use and separately GPL licensed. Its code is not contained in the Apache-2.0 Python package; the recommended offline Complete runtime may aggregate it with its license and corresponding source for a one-click CAD-to-mesh workflow.
Optional anonymous reliability telemetry is off by default . AgentFEM does not collect, queue, or upload CLI usage unless the user explicitly enables it with agentfem telemetry basic ; agentfem telemetry off revokes consent and deletes unsent events. See the feedback and privacy contract .
From a directory where you keep projects (on WSL, ~/AgentFEMProjects after workspace preparation):
Open the reported XDMF in ParaView to view the fields. show summarizes the result; verify checks its provenance. The generated case.py is ordinary, editable Python. The core modeling portion reads like an engineering analysis:
The CLI gives the same model a readable run folder such as outputs/001-baseline/ , an immutable evidence identity, a concise result summary, an MPI launch path, and a machine-readable interface. Use agentfem runs to find earlier runs and --json when an agent or GUI needs the complete record. You can also run case.py directly with Python. Once the environment works, daily use is edit → check → run → view . Run doctor after environment changes or to diagnose a runtime problem, not before every model edit.
AgentFEM records capability maturity explicitly. A working material-point law, an integrated global solver, and an externally verified analysis are different levels of evidence; the software does not silently treat them as equivalent. See the capability and verification guide for the detailed scope.
Static elasticity — the readable beginner workflow.
NAFEMS LE10 3D elasticity — a public curved- solid pressure benchmark with stress, displacement, force, energy, and MPI evidence.
Transient heat transfer — implicit time integration, progress, and field output.
Modal cantilever — linear natural frequencies, mass-normalized mode fields, residuals, orthogonality, and MPI evidence.
NAFEMS R0016 Test 5H direct harmonic response — a public forced-vibration comparison for the provider-neutral K/M/C/K_loss/F procedure.
Wave propagation with an inclusion — dynamic fields, source amplitude, and boundary models.
Abaqus C3D10H periodic cell — direct mesh/equation import, quasi-incompressible hyperelasticity, and homogenized response.
J2 plasticity and global creep — stateful nonlinear material workflows with cutback and restart.
Simulation-to-surrogate campaign — accepted FEM data, surrogate validation, applicability guard, and FEM fallback.
These are executable release assets with numerical contracts, not only syntax demonstrations. More examples are indexed in examples/ and on the documentation site .
AgentFEM has three visible layers:
Users can stay in the concise engineering workflow or descend to operators, UFL, DOLFINx, PETSc, and custom constitutive implementations when a research problem needs a lower layer. This is also the extension path for user materials, new elements, private domain modules, GUIs, and agent tools.
Learning follows the same rule. A laboratory-owned model can connect directly through the framework-neutral model.step(target=spec, executor=...) boundary. The optional AgentFEM-Learning companion provides maintained providers, examples, and benchmark evidence for selected scientific-learning methods; it is not required to use a user's own model.
Standard modeling workflow
Scientific functions and theory
Results, campaigns, and learning
AI-native learning contracts
MCP connection for compatible agents
Roadmap and release gates
The complete user and scientific reference is available at haoming-luo.github.io/agentfem .
If AgentFEM helps, one explicit command can Star the project through an existing GitHub CLI login:
It never runs automatically. You can also visit GitHub directly. Have a question or a result to show? Visit Q&A or Show and tell .
Please cite the AgentFEM version used. GitHub's Cite this repository uses CITATION.cff .
For architecture and methodology, also cite the AgentFEM Technical Report ( PDF ).
Haoming Luo is the initiator of AgentFEM. His interests include computational mechanics, materials engineering, finite-element simulation, and AI-assisted scientific computing. He is currently with Xi’an TPRI, with education and research experience at NWPU, INSA Lyon, and École Polytechnique.
The project is also motivated by engineering needs in materials evaluation, defect inspection, and simulation analysis for power-generation equipment.
AgentFEM is available under the Apache License 2.0 . It can be used, modified, and extended in research, education, and commercial products under the terms of that license.
Release files for agentfem 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation .
Source distribution (sdist)
Built distribution (wheel)
Total release size: 9.9 MB
Release files / agentfem-0.5.0.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Release files / agentfem-0.5.0-cp311-cp311-manylinux_2_34_x86_64.whl
Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Security for agentfem 0.5.0
Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Both files in this release have been uploaded with provenance metadata.
Attestation for agentfem-0.5.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Attestation for agentfem-0.5.0-cp311-cp311-manylinux_2_34_x86_64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
Release history Release notifications | RSS feed
Nov 25, 2026 2 release files Full provenance
Oct 27, 2026 2 release files Full provenance
Oct 16, 2026 2 release files Full provenance
Oct 8, 2026 2 release files Full provenance
Oct 8, 2026 2 release files Full provenance
Sep 29, 2026 2 release files Full provenance
Sep 28, 2026 2 release files Full provenance
Sep 14, 2026 2 release files Full provenance
Sep 14, 2026 2 release files Full provenance
Sep 11, 2026 2 release files Full provenance
Sep 10, 2026 2 release files Full provenance
Sep 9, 2026 2 release files Full provenance
Aug 31, 2026 2 release files Full provenance
Aug 30, 2026 2 release files Full provenance
Aug 24, 2026 2 release files Full provenance
Aug 24, 2026 2 release files Full provenance
Aug 24, 2026 2 release files Full provenance
Aug 19, 2026 2 release files Full provenance
Aug 17, 2026 2 release files Full provenance
Aug 13, 2026 2 release files Full provenance
Aug 10, 2026 2 release files Full provenance
Aug 3, 2026 2 release files Full provenance
Jul 29, 2026 2 release files Full provenance
Jul 24, 2026 2 release files Full provenance
Jul 24, 2026 2 release files Full provenance
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
