GPU-accelerated, differentiable finite element mechanics for cardiovascular simulation, written in Python on Warp and built in concert with the FEBio team. The formulations follow FEBio. The architecture is designed for the GPU and for differentiation.
FEBio-Warp is intended to stand next to FEBio, not to replace it. FEBio remains the place for broad constitutive modeling and general biomechanics. FEBio-Warp targets a focused set of applications where speed and gradients matter.
This project is at an early stage. Interfaces will change, and most areas listed below are in design or draft. Nothing here is released.
Development has now moved to a design-led process. Each area is specified in a design note,
reviewed by the FEBio and Warp developers involved, implemented, and verified against FEBio
reference problems where one exists. The pilot work is preserved in pilots/ and at the
pilot-2026-11 tag.
The first targets set the scope. Capabilities are added because one of these needs them.
| Application | Needs |
|---|---|
| Atrioventricular valve closure and repair | Shell leaflets, fiber-reinforced hyperelastic tissue, chordae, pressure loading, leaflet self-contact |
| Self-expanding nitinol devices (transcatheter pulmonary valve replacement, septal occluders) | Beam frames, nitinol material, device-to-vessel contact, hyperelastic vessel wall |
| Patch and material verification problems | Small problems with known or FEBio reference solutions, used to verify each component |
Status as of November 2026. "Design" means a design note is in progress. "Draft" means code exists on a branch or draft pull request and is under review. "Not started" means the package directory exists as a place for the work and holds no code yet.
| Area | Package | Scope for the first targets | Status |
|---|---|---|---|
| Materials | materials/ |
Common material interface; neo-Hookean, HGO, Ogden, Lee-Sacks, nitinol | Draft (PR #2), under redesign |
| Contact | contact/ |
Potential-based contact for leaflets and devices; sliding contact later | Draft (branch contact-potential) |
| Assembly | assembly/ |
Full assembly of residual and tangent on the GPU | Design |
| Elements | elements/ |
Shells, solids, beams, springs | Not started |
| Mesh and discretization | mesh/, discretization/ |
Mesh types, degree-of-freedom maps, quadrature | Not started |
| Loads and constraints | loads/, constraints/ |
Follower pressure, nodal loads, prescribed and multipoint constraints | Not started |
| Solvers | solvers/ |
Newton with line search; iterative linear solvers and preconditioners | Not started |
| Analysis | analysis/ |
Static and implicit dynamic steps, load stepping, staged procedures | Not started |
| Sensitivity | sensitivity/ |
Gradients through equilibrium and through trajectories | Not started |
| Input and output | io/ |
FEBio input and plot files, building on pyfebio | Design |
| Verification | tests/, references/ |
Harness built on the FEBio test and verification suites, plus the driving applications | Design |
Design notes live in docs/design/.
The package layout under src/warp_febio/ follows FEBio's separation of concerns.
| FEBio-Warp | FEBio counterpart |
|---|---|
mesh/, discretization/ |
FECore mesh, degrees of freedom, element traits |
elements/ |
FEBioMech domains |
materials/ |
FEBioMech materials |
loads/, constraints/, contact/ |
FEBioMech loads, constraints and contact interfaces |
assembly/, solvers/ |
FECore solver interfaces, NumCore linear solvers |
analysis/ |
FECore analysis steps |
io/ |
FEBioXML, FEBioPlot |
sensitivity/ |
Added here |
- A design note in
docs/design/states the formulation, the FEBio source it follows, and how it will be verified. - A draft pull request implements it and is reviewed.
- It is verified against FEBio reference problems where one exists, in double precision.
Exploratory work is welcome and belongs in pilots/ until it has been through these steps.
See CONTRIBUTING.md.
The initial prototypes were contributed by @aslanseda9: an
explicit membrane patch solver, Lee-Sacks and neo-Hookean material-point functions, and a solid
elasticity check built on warp.fem. They were written to explore the approach, not as verified
implementations, and each one lists what it does and does not establish. They remain available
and runnable in pilots/. They are not maintained and are not a dependency
of the package.
The FEBio inputs and results assembled during the pilot phase are kept in references/febio/.
They will be reviewed for inclusion in the verification harness and should not be read as
verified benchmarks until then.
python3 -m venv .venv
.venv/bin/python -m pip install -e .
.venv/bin/python -m unittest discover -s tests -vPython 3.10 or later; 3.11 is the tested version. On Windows use .venv\Scripts\python.exe.
Warp is pinned to 1.19.0; see the
Warp installation guide.
FEBio-Warp builds on the formulations, documentation and test suites of FEBio, developed at the University of Utah, and on Warp.
FEBio-Warp-Python is released under the Apache License 2.0, the same license as Warp. Contributions are accepted under the same terms.
FEBio is distributed separately under the MIT license.
Material in this repository that derives from FEBio, including the reference inputs under
references/febio/, keeps its attribution to the FEBio project.