HENFOIL · Next · Mesh · CFD · FEA suite
Mesh · CFD · FEA suite
In-product airfoil mesh, 2-D RANS, 3-D wing, and shell FEA. Credits, what the calls do, and what they will not claim.
These routes are the same Mesh · CFD · FEA suite as production HENFOIL. They screen one airfoil: a 2-D body-fitted grid, a 2-D RANS-SA field, a structured half-wing, and a clamped metal shell box (skin, spars, ribs; taper about the quarter chord and quarter-chord sweep; optional CL / 2-D Cp / span-varying wing Cp load). They are not Ansys Fluent, Nastran, or HyperMesh, and they are not a certification result. Python: pip install henfoil · JS/TS: npm install @hendoi/henfoil — flow_rans / flowRans, suite mesh/FEA, exports — see Python SDK · JS SDK.
What the calls will do
GET /api/v1/suite/formats— mesh, CFD, and FEA file types, plus the metal list. No compute credits.POST /api/v1/suite/mesh— body-fitted O or C grid for the coordinates you send. 2 compute credits.POST /api/v1/suite/mesh/export— that grid as a file. 1 compute credit.format:vtk,su2,gmsh,plot3d,tecplot,csv.POST /api/v1/flow/rans— 2-D body-fitted RANS-SA. 5 compute credits. SendincludeFieldandincludeCpFrameswhen you want the field and the Cp convergence frames. See RANS.POST /api/v1/suite/cfd/export— a finished RANS body as VTK, Tecplot, CSV, or JSON. No compute credits. Sendsolveandformat.POST /api/v1/flow/rans-3d— structured half-wing, Euler or Spalart–Allmaras. 8 compute credits. SendincludeSurface: truefor wall Cp. See 3D wing.POST /api/v1/suite/fea— clamped semi-span shell box (skin, spar webs, ribs). 3 compute credits.POST /api/v1/suite/fea/export— that box as VTK, CSV, or a Nastran BDF. 1 compute credit. The file does not include mode shapes.
A full chain is about 18 compute credits before the two file exports. Monthly caps stay Free 8, Student 30, Professional 120, Team 400. Free can run a mesh plus a 2-D RANS, or one 3-D wing, not the whole chain. A failed solve refunds the compute credits. A keyed call still spends one apiRequests; official Python and JS/TS clients also spend shared pythonSdk (Free 0 · Student 200 · Pro 2k · Team 8k).
What the calls will not do
- Not flight-certification CFD or a stress sign-off.
- Not a full aircraft, and not twist or dihedral in the shell box.
- Spars follow the section stations. Taper is about the quarter chord. Sweep is the quarter-chord sweep.
- Euler wing drag is not a viscous drag number.
- A box with no ribs is much more flexible, because the skin panels bulge between the webs.
- The unit-span screen on
POST /aerospace/section-feais a different, smaller model.
Shell box body
POST https://henfoil.hendoi.com/api/v1/suite/fea
Send coordinates (or airfoilId) and a fea object. Optional top-level cp is the 2-D surface Cp ({x, y, cp} rows). Span-varying wing Cp goes in fea.wingCp and must be the solver wallField without its convergence frames: nodesI, nodesK, x, y, z, cp.
| Field | Required | Meaning |
|---|---|---|
| coordinates | Yes | Section outline, or use airfoilId. |
| fea.chordM | No | Root chord, metres. Default 1. |
| fea.spanM | No | Semi-span, metres. Default 2. |
| fea.taper | No | Tip chord / root chord, 0.1 to 2. Default 1. |
| fea.sweepDeg | No | Quarter-chord sweep, −60 to 60. Default 0. |
| fea.skinMm / fea.sparMm | No | Skin and spar-web thickness, millimetres. |
| fea.spars | No | Chord fractions, for example [0.25, 0.65]. |
| fea.ribs | No | Rib count. 0 leaves the skin free to bulge. |
| fea.material | No | Built-in metal id. 1 is aluminium. |
| fea.speedMs / fea.cl / fea.loadFactor | No | Dynamic pressure and the CL used when you do not send Cp. |
| fea.spanLoad | No | elliptic (default) or uniform. Ignored as a shape once wingCp is set; the Cp already varies along the span. |
| fea.modal | No | true adds natural frequencies and mode shapes. Slower. Export ignores it. |
| fea.wingCp | No | 3-D wall field. When present it replaces the 2-D cp list. |
| cp | No | 2-D surface Cp rows. Used only when wingCp is absent. |
Example
curl -s -X POST "https://henfoil.hendoi.com/api/v1/suite/fea" \
-H "Authorization: Bearer hfk_…" \
-H "Content-Type: application/json" \
-d "{\"airfoilId\":\"…\",\"fea\":{\"chordM\":1,\"spanM\":2,\"taper\":0.5,\"sweepDeg\":0,\"skinMm\":1.5,\"ribs\":4,\"speedMs\":60,\"cl\":0.8,\"spanLoad\":\"uniform\"}}"
from henfoil import Client
c = Client() # HENFOIL_API_KEY
coords = c.generate("0012")["coordinates"]
mesh = c.suite_mesh(coords, {"preset": "fast", "re": 1e6})
fea = c.suite_fea(coords, {"chordM": 1, "spanM": 2, "taper": 0.5, "ribs": 4, "speedMs": 60, "cl": 0.8, "spanLoad": "uniform"})
print(fea["inputs"]["loadSource"], fea["stats"]["tipDeflectionM"])
file = c.suite_fea_export(coords, "vtk", {"chordM": 1, "spanM": 2, "taper": 0.5, "ribs": 4, "speedMs": 60, "cl": 0.8})
Read inputs.loadSource (uniform CL, CFD surface Cp, or 3-D wing surface Cp), stats.tipDeflectionM, stats.appliedLiftN, and warnings. A uniform-load ribbed box matches beam bending plus web shear to about 3% on tip deflection. That is one reference case, not a sign-off.
