Traditional finite element analysis has served engineers well for decades. But it comes with a fundamental constraint: every new geometry, every new load case, every design iteration requires starting the solve from scratch. For a complex assembly, a single FEA run can take hours. Multiply that by dozens of design variants and the engineering bottleneck becomes clear.
phinen takes a different approach. By combining ML surrogate models — specifically NVIDIA's MeshGraphNet architecture — with physics-informed constraints, we deliver full-field simulation results in under a second for most structural geometries. Here's exactly how it works.
The Core Idea: Graph Neural Networks on 3D Meshes
The fundamental insight behind MeshGraphNet is that a finite element mesh is, structurally, a graph. Each mesh node is a vertex in the graph. Each edge connecting adjacent nodes carries information about their geometric relationship — distance, angle, shared face area. The boundary conditions and material properties are features on the nodes and edges.
MeshGraphNet, introduced by Pfaff et al. at DeepMind and now a core component of NVIDIA PhysicsNeMo, is a graph neural network that takes this mesh graph as input and directly predicts the physical field quantities at every node — von Mises stress, displacement, temperature, or velocity — in a single forward pass.
Compared to a full FEM solver which iteratively builds and inverts a large stiffness matrix, the inference pass through a trained MeshGraphNet takes milliseconds, not hours.
What the Training Process Looks Like
The surrogate doesn't learn from scratch for each new geometry. Instead, it is pre-trained on a large dataset of (geometry, boundary conditions) → (field solution) pairs, where the field solutions are computed by FEniCSx, our high-fidelity FEM solver.
For structural FEA, the training dataset includes:
- Geometry diversity: brackets, enclosures, plates, shells, beams, and organic shapes
- Material diversity: steel, aluminium alloys, titanium, polymer composites, and cast iron
- Loading diversity: point loads, distributed pressure, thermal expansion, gravity
- Boundary condition diversity: fixed faces, pinned joints, sliding constraints, symmetry
After training on over 80,000 FEA reference solutions, the model learns to generalise its field predictions to geometries and loading conditions it has never seen before — not by memorising, but by learning the underlying structural mechanics relationships encoded in the graph topology.
The Accuracy Question
The most common scepticism we hear is: how accurate is "good enough"? Our benchmarks across a held-out test set of 5,000 structural problems show a mean absolute error of 2.1% relative to FEniCSx ground truth on von Mises stress, and 1.8% on peak displacement.
Key finding: For 94% of structural analyses involving common mechanical geometries under static loading, MeshGraphNet achieves less than 3% error relative to FEniCSx — well within the uncertainty margin of most engineering design tolerances.
The 6% of cases where accuracy degrades typically involve highly irregular geometries with sharp re-entrant features, contact between multiple bodies, or loading conditions far outside the training distribution. This is precisely where the confidence gate kicks in.
The Confidence Gate: When to Trust, When to Escalate
The confidence gate is phinen's quality assurance layer. After every ML inference, the gate evaluates the result against three physics-based checks: energy balance consistency, boundary condition satisfaction, and a residual norm computed against the governing PDE.
If the result passes all three checks with scores above threshold, the ML result is delivered directly. If any check fails, the system automatically escalates the run to FEniCSx, which performs a full high-fidelity FEM solve at the cost of 30–120 seconds of additional compute.
In practice, approximately 94% of runs are served by the ML surrogate and pass the confidence gate. The remaining 6% are escalated to FEniCSx and delivered with a "Validated" badge in the result.
The Speed Numbers
On a standard structural bracket analysis (bracket.stl, 12,840 faces, aluminium 6061, 1000 N load):
- FEniCSx (full FEM): 18–45 seconds depending on mesh refinement
- MeshGraphNet (ML surrogate): 0.31 seconds
- Speed ratio: 58–145× faster
For larger, more complex geometries, the advantage grows further because FEM solver time scales super-linearly with mesh size, while MeshGraphNet inference time grows only modestly.
What This Means for Design Workflows
When simulation time drops from hours to seconds, the workflow changes fundamentally. Instead of "run FEA to validate a design decision", engineers can run FEA to explore — testing 20 geometry variants, iterating boundary conditions in real time, and catching failure modes before a single physical prototype is made.
This is the shift phinen is built to enable: not just faster simulation, but simulation as an active part of the design loop — not a validation step at the end of it.