Technical note · Analysis
MEKMESH: meshing and output-driven mesh refinement for demanding simulations
Mechanical AI · November 2026 · 3 min read
Abstract
MEKMESH is the meshing engine of MEKINT. It turns a CAD solid into a volume mesh whose elements follow the true surfaces of the part, and refines the mesh until a chosen engineering output is resolved. This note outlines its scope and reports the accuracy reached when it drives a simulation toward a target output. Refinement brought the wall force of a pipe flow from 5.9 % to 0.15 % of the analytic value and the drag coefficient of the standard cylinder benchmark to within 0.1 % of its reference.
1Introduction
A simulation is only as good as its mesh, and the mesh that serves one question is rarely the one that serves another. Peak stress at a fillet, the first resonance of a casting and the pressure drop of a duct each need resolution in different places. A uniformly fine mesh answers all of them at a cost that is seldom affordable, and a mesh sized by eye leaves the error unknown. Curved parts add a second difficulty: elements that cut across a cylinder or a blend introduce a geometric error that no solver accuracy removes.
MEKMESH addresses both. Inside MEKINT, an AI agent for mechanical design, it stands between the geometry and the analysis: it produces the first mesh from the STEP solid and then, working with the analysis engine MEKHFS, refines it until the output the agent has named is resolved.
2Scope
Table 1 lists what the engine provides.
| Types | Quantities | |
|---|---|---|
| Geometry to mesh | STEP solids and multi-body parts | Tetrahedral meshes with straight or curved elements placed on the CAD surfaces |
| Output-driven refinement | Structural, thermal and flow outputs | A mesh on which the chosen output is resolved |
3Refinement toward an output
The measure of a mesher for demanding simulation is how reliably it brings a chosen output to its true value. Two flow cases with known answers are reported, each started from a coarse mesh and refined for one output. Table 2 gives the results.
| Case | Reference | Starting mesh | After refinement |
|---|---|---|---|
| Pipe flow, wall force | Analytic value | 5.9 % off | 0.15 % off |
| Cylinder in a channel, 2D, drag coefficient | 5.5795 [1] | 12 % off | Within 0.1 % |
| Cylinder in a channel, 3D, drag coefficient | 6.05–6.25 [1] | 6.23 | 6.16, inside the range |
For developed laminar flow in a pipe, the wall force converges steadily on its analytic value, from 5.9 % on the starting mesh to 0.15 %.
The laminar cylinder-in-channel benchmark [1] has accepted reference values for drag. In two dimensions the drag coefficient is 12 % from the reference on the starting mesh and within 0.1 % after refinement. In three dimensions the result lies inside the published range.
The same approach applies to structural outputs. For a machine-bed casting, refining for the dynamic stiffness at the first resonance, rather than for static compliance, reduced the difference from a fine-mesh solution from 19 % to 2.2 % at the same mesh budget.
4Summary
Refining for a named output, MEKMESH brought a pipe’s wall force to within 0.15 % of its analytic value and recovered the benchmark drag of a cylinder to within 0.1 % in two dimensions and inside the published range in three. Its curved elements follow the true surfaces of the part, so the geometry the analysis sees is the geometry that was designed.
References
- [1]M. Schäfer and S. Turek, “Benchmark computations of laminar flow around a cylinder,” in Flow Simulation with High-Performance Computers II, Notes on Numerical Fluid Mechanics, vol. 52, Vieweg, pp. 547–566, 1996.
