HENFOIL · Reference · Self-noise (BPM)
Self-noise (BPM)
Brooks–Pope–Marcolini airfoil self-noise in 1/3-octave bands. Screening only — not a certification spectrum.
POST /api/v1/airfoils/self-noise predicts airfoil self-noise with the Brooks–Pope–Marcolini (BPM) model from NASA RP-1218: trailing-edge, laminar vortex shedding, tip vortex, and bluntness mechanisms, plus A-weighted totals. Unless you set useCorrelatedBoundaryLayer, the server solves this section's own boundary layer first and feeds BPM the computed trailing-edge δ*. Self noise only — no inflow turbulence term and no blade-passage tone. It is never a certification showing.
Work this page from top to bottom. Read Before you call this API, then Request syntax, then the full Step by step walkthrough and the Quick checklist. Fill each payload field from the parameters table, send one of the language samples, and match the HTTP status to the accepted body or to a rejected body. Sample numbers show field names only — they are not measured acoustic results. If a field or status is unclear, use the contact links at the end and include the status and the error text.
How to use this documentation page
- Skim the intro so you know what meter this analysis spends and what geometry it needs.
- Complete the step-by-step walkthrough once with the dummy shapes, then again with your live key and real inputs.
- Copy a language sample, change only the values you must change, and keep JSON key names identical.
- On every response, read status first. Only then parse bands or OASPL.
- When automation returns 202, open Jobs and usage and poll until the job finishes.
Predict self-noise
POST https://henfoil.hendoi.com/api/v1/airfoils/self-noise
Before you call this API
- You have an active HENDOI account and a live HENFOIL API key (
hfk_…). - You know which plan meters this call spends (automation
apiRequests, and often compute credits). - You have either a stored
airfoilId, a NACA code, or coordinate / .dat text ready when the endpoint needs geometry. - You will treat every numeric sample on this page as a shape guide, not as a measured or certified spectrum.
Request syntax
Every call has the same four parts. Fill them in this order.
- Method.
POST. - URL.
https://henfoil.hendoi.com/api/v1/airfoils/self-noise. The host is the production API. Do not change it. - Header.
Authorization: Bearer hfk_demo_4c91e2ab8d07. Replace the dummy key with the key from Settings, then API, then Generate now. You can send the raw key inX-Henfoil-Keyinstead, with no Bearer prefix. - Body. One JSON object, with header
Content-Type: application/json.
Step by step
Follow this guide in order. Each step says what to type, where it goes, and what to check next. After the last step, compare your HTTP status with the accepted body and the rejected bodies further down.
- Before you start. Sign in at https://hendoi.com/login, open HENFOIL, then Settings → API → Generate now. Copy the full
hfk_…key once. Confirm your plan still has usage remaining for automation calls. - Confirm the endpoint. You will send
POSTtohttps://henfoil.hendoi.com/api/v1/airfoils/self-noise. Keep the production host. Do not point samples at localhost in a shipped integration. - Attach the key. Prefer
Authorization: Bearer hfk_…. Or send the raw key inX-Henfoil-Keywith no Bearer prefix. Never put the key in the JSON body or in a query string. - Build one JSON object. Add header
Content-Type: application/json. Numbers stay numbers (no quotes). Strings stay quoted. Omit optional keys when you want the server default. - Choose exactly one geometry source. Send
airfoilId(from Generate), ornaca(four digits), orcoordinates(closed outline), ortext(Selig/Lednicer .dat). Do not combine them in one request. - Set
chordM. Required (Yes). Example value:0.3. Chord in metres. - Set
spanM. Required (Yes). Example value:1.0. Span (or strip length) in metres. - Set
velocityMs. Required (Yes). Example value:40. Freestream speed in metres per second. - Set
alphaDeg. Required (Yes). Example value:4. Angle of attack in degrees. - Optionally set
tripped. Example:false. When true, BPM uses tripped trailing-edge correlations. - Optionally set
trailingEdgeThicknessM. Example:0.001. Physical trailing-edge thickness for bluntness noise. - Optionally set
useCorrelatedBoundaryLayer. Example:true. Prefer the section's own BL δ* at the trailing edge (recommended for custom shapes). - Optionally set
observer. Example:{"distanceM":1.2,"thetaDeg":90,"phiDeg":90}. Mic position in polar coordinates. - Optionally set
rotor. Example:{"rpm":2400,"bladeCount":2,"forwardSpeedMs":40}. Adds a broadband blade-sum term only — still no BPF tone. - Optionally set
segments. Example: array of strip objects. Integrates a blade strip by strip when you already have radial stations. - Send the request. Use any of the six language samples below. Expect HTTP
200when the call matches this page's accepted example. - Read the JSON by name. On success, start with
overall, thenbands, thenmechanismOaspldB. Ignore sample dB magnitudes — they are placeholders for field names only. - Handle failure before success fields. If status is 400, 401, or 403, read
error(andmeteron 403). Do not parse OASPL from an error body. - Verify before the next call. Confirm status, remaining automation budget (
X-Henfoil-Api-Remainingor GET /api/v1/usage), and that you treat the spectrum as a screening result — not a FAR/EASA noise certificate. - If you are stuck. Copy the HTTP status and the full
errorstring, then use the contact block at the bottom of this page (WhatsApp or support@hendoi.com).
Quick checklist
- □ Method is
POSTand URL path is exact. - □ Live API key is in the Authorization (or X-Henfoil-Key) header.
- □ JSON body uses the field names in the parameters table; types match (number vs string).
- □ Client branches on HTTP status before reading acoustic fields.
- □ Error path logs
error/meterfor support.
Parameters
Required means the server needs that field. Optional means a default is already in place. One of these means you send exactly one of the listed geometry fields.
| Field | Required | Example | Meaning |
|---|---|---|---|
| airfoilId | One of these | 3f2a8c10-6b4e-4d21-9a77-1c0e5b8d2f44 | Stored section id returned by Generate. |
| naca | One of these | 2412 | Four digits. The server builds the section. |
| coordinates | One of these | [{x,y}, ...] | At least 8 points, chord near 1, upper then lower. |
| text | One of these | Selig .dat text | Coordinate file text. The importer normalizes the chord. |
| chordM | Yes | 0.3 | Chord in metres. |
| spanM | Yes | 1.0 | Span or strip length in metres. |
| velocityMs | Yes | 40 | Freestream speed, m/s. |
| alphaDeg | Yes | 4 | Angle of attack, degrees. |
| tripped | No | false | Use tripped BPM trailing-edge correlations. |
| trailingEdgeThicknessM | No | 0.001 | Physical TE thickness for bluntness noise. |
| useCorrelatedBoundaryLayer | No | true | Feed BPM this section's own BL δ*. |
| observer | No | {distanceM, thetaDeg, phiDeg} | Microphone location. |
| rotor | No | {rpm, bladeCount, forwardSpeedMs} | Broadband blade-sum only; no BPF tone. |
| segments | No | [{...}, ...] | Optional radial strips for a blade integral. |
airfoilId— One of these. Example:3f2a8c10-6b4e-4d21-9a77-1c0e5b8d2f44. Stored section id returned by Generate.naca— One of these. Example:2412. Four digits. The server builds the section.coordinates— One of these. Example:[{x,y}, ...]. At least 8 points, chord near 1.text— One of these. Example:Selig .dat text. Coordinate file text.chordM— Required. Example:0.3. Chord in metres.spanM— Required. Example:1.0. Span in metres.velocityMs— Required. Example:40. Freestream speed.alphaDeg— Required. Example:4. Angle of attack.tripped— Optional. Example:false.trailingEdgeThicknessM— Optional. Example:0.001.useCorrelatedBoundaryLayer— Optional. Example:true.observer— Optional. Example:{"distanceM":1.2,"thetaDeg":90,"phiDeg":90}.rotor— Optional. Example:{"rpm":2400,"bladeCount":2,"forwardSpeedMs":40}.segments— Optional. Strip array for a blade integral.
The example object below is the body to send. It uses naca, chordM, spanM, velocityMs, alphaDeg, useCorrelatedBoundaryLayer, and observer. Copy it, replace the dummy values with yours, and send it with Content-Type: application/json.
Example request
The key hfk_demo_4c91e2ab8d07 is a dummy. It is not a live key, and the server rejects it. Replace it before you send the call. The other values are dummy parameters in the same shape the server reads, so you can see where each number goes.
{
"naca": "2412",
"chordM": 0.3,
"spanM": 1.0,
"velocityMs": 40,
"alphaDeg": 4,
"tripped": false,
"useCorrelatedBoundaryLayer": true,
"observer": {
"distanceM": 1.2,
"thetaDeg": 90,
"phiDeg": 90
}
}
If the request is accepted
HTTP 200 means the key was accepted and this call finished. Read the status in your client first, then parse the JSON. The numbers below are placeholders so you can see the field names. A live response replaces them. Do not treat this sample as a measured result.
{
"kind": "bpm-self-noise",
"overall": {
"oaspldB": 72.4,
"oaspldBA": 68.1,
"peakBandHz": 2000,
"peakBanddB": 64.0,
"dominantMechanism": "tblTrailingEdge"
},
"mechanismOaspldB": {
"tblTrailingEdge": 70.2,
"lblVortexShedding": 48.0,
"bluntness": 55.1,
"tipVortex": 40.0
},
"bands": [
{
"frequencyHz": 1000,
"totalDb": 61.2,
"totalDbA": 61.2,
"tblTePressureDb": 58.0,
"tblTeSuctionDb": 56.5
}
],
"observer": {
"distanceM": 1.2,
"thetaDeg": 90,
"phiDeg": 90
}
}
Read the body by name:
overall— OASPL, peak band, and dominant mechanism labels.bands— 1/3-octave spectrum with mechanism contributions.mechanismOaspldB— broadband totals by BPM mechanism.rotor— present only when you sent arotorobject; includesbladeSumDband honesty notes.
If the request is not accepted
A rejected call is still JSON. Read the HTTP status, then the error string. Do not look for band or OASPL fields in these bodies. Fix the named problem and send the same call again.
HTTP 400, missing or unusable input. The message changes with the field. The shape does not:
{
"error": "Provide coordinates, text, or airfoilId."
}
HTTP 401, missing, unknown, or deactivated key. No automation call is spent:
{
"error": "This API key is deactivated or was not recognized. Only an active key can call the API."
}
HTTP 403, a meter is used up. meter tells you which one. apiRequests is the automation budget. apiKeyAllocation is the calls assigned to this key:
{
"error": "API usage limit reached.",
"code": "QUOTA_EXCEEDED",
"plan": "student",
"upgradeTo": "professional",
"pricingPath": "/pricing",
"meter": "apiRequests",
"used": 500,
"limit": 500,
"remaining": 0
}
When something goes wrong
- HTTP 400 when geometry is missing or chord/span/velocity are invalid.
- HTTP 401: the key is missing, unknown, or deactivated. No call is spent. Generate a new key and send that value.
- HTTP 403 with
codeQUOTA_EXCEEDED: readmeter. - HTTP 400: read
error. It names the missing field or the geometry problem. Fix that field and send the call again.
How each language returns a bad response
- cURL. The body prints first. The last line from
-wis the HTTP status. 400 still prints a JSON body. - Node.js.
fetchdoes not throw on 400, 401, or 403. Branch onres.status, then readdata.error. - C#.
GetAsyncandPostAsyncdo not throw on those statuses. ReadStatusCode, then the body string. - Python.
urlopenraisesurllib.error.HTTPError. The status ise.code. The JSON ise.read().decode(). - PHP.
curl_execreturns the body for a 400. The status isCURLINFO_HTTP_CODE. - Java.
sendreturns the status and the body together. A 400 does not throw.
import json
from urllib.error import HTTPError
from urllib.request import urlopen
# req is the Request built in the Python sample below.
try:
with urlopen(req) as res:
print(res.status)
print(json.load(res))
except HTTPError as e:
print(e.code)
print(json.loads(e.read().decode()))
Useful tips
- Replace the dummy key before the first real call. A 401 on the sample key is expected.
- Send one geometry source. Sending
airfoilIdtogether withnacaorcoordinatesmakes the result harder to trace. Pick one. - Check the HTTP status before you read any dB field. An error body has
error, not a spectrum. - Prefer
useCorrelatedBoundaryLayer: truefor custom sections so BPM sees this shape's δ*, not a generic NACA-like BL. - A
rotorblock adds energy for blade count only. It does not invent blade-passage tones, Doppler, or retarded time. - Read
X-Henfoil-Api-Remainingbefore a loop.X-Henfoil-Api-Warningappears when fewer than one fifth of the calls remain. - Copy a sample with the Copy button, then change only the values you intend to change. Leave the key names as written.
- If the
errortext does not match the body you sent, contact us with the status code and that text. The link is at the bottom of this page.
Samples
The six programs below send the same method, URL, header, and payload. The paragraph above each program says which line is the payload and which line is the response.
Send it in cURL
The payload is the JSON in single quotes after -d. Edit the values there. Keep Content-Type: application/json. Replace the dummy key. -w prints the HTTP status after the body.
curl -s -X POST \
"https://henfoil.hendoi.com/api/v1/airfoils/self-noise" \
-H "Authorization: Bearer hfk_demo_4c91e2ab8d07" \
-H "Content-Type: application/json" \
-d '{"naca":"2412","chordM":0.3,"spanM":1.0,"velocityMs":40,"alphaDeg":4,"useCorrelatedBoundaryLayer":true,"observer":{"distanceM":1.2,"thetaDeg":90,"phiDeg":90}}' \
-w "\n%{http_code}\n"
Send it in Node.js
The object inside JSON.stringify is the payload. Change a property there; do not build the JSON by hand. fetch does not throw on 400 or 403. Read res.status, then data.error when the status is not 200.
const res = await fetch("https://henfoil.hendoi.com/api/v1/airfoils/self-noise", {
method: "POST",
headers: {
Authorization: "Bearer hfk_demo_4c91e2ab8d07",
"Content-Type": "application/json"
},
body: JSON.stringify({"naca": "2412", "chordM": 0.3, "spanM": 1.0, "velocityMs": 40, "alphaDeg": 4, "useCorrelatedBoundaryLayer": true, "observer": {"distanceM": 1.2, "thetaDeg": 90, "phiDeg": 90}})
});
const data = await res.json();
console.log(res.status, data);
Send it in C#
The string passed to StringContent is the JSON payload. Edit the values inside that string and keep the escaped quotes. StatusCode is the HTTP code. The following string is the raw response, success or error.
using System.Net.Http.Headers;
using System.Text;
using System.Text.Json;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", "hfk_demo_4c91e2ab8d07");
var content = new StringContent(
"{\"naca\": \"2412\", \"chordM\": 0.3, \"spanM\": 1.0, \"velocityMs\": 40, \"alphaDeg\": 4, \"useCorrelatedBoundaryLayer\": true, \"observer\": {\"distanceM\": 1.2, \"thetaDeg\": 90, \"phiDeg\": 90}}", Encoding.UTF8, "application/json");
var response = await client.PostAsync("https://henfoil.hendoi.com/api/v1/airfoils/self-noise", content);
Console.WriteLine((int)response.StatusCode);
Console.WriteLine(await response.Content.ReadAsStringAsync());
Send it in Python
payload is the JSON text, then encoded to bytes. Edit the text inside the quotes. On 200, res.status and json.load show the accepted body. On 400, 401, or 403, urlopen raises HTTPError and the JSON is in e.read().
import json
from urllib.request import Request, urlopen
payload = "{\"naca\": \"2412\", \"chordM\": 0.3, \"spanM\": 1.0, \"velocityMs\": 40, \"alphaDeg\": 4, \"useCorrelatedBoundaryLayer\": true, \"observer\": {\"distanceM\": 1.2, \"thetaDeg\": 90, \"phiDeg\": 90}}".encode()
req = Request(
"https://henfoil.hendoi.com/api/v1/airfoils/self-noise",
data=payload,
headers={
"Authorization": "Bearer hfk_demo_4c91e2ab8d07",
"Content-Type": "application/json",
},
method="POST",
)
with urlopen(req) as res:
print(res.status)
print(json.load(res))
Send it in PHP
The array is the payload. json_encode turns it into JSON. Change a value in the array. CURLINFO_HTTP_CODE is the status. $body is the response text, whether the status is 200 or 400.
$payload = json_encode([
"naca" => "2412",
"chordM" => 0.3,
"spanM" => 1.0,
"velocityMs" => 40,
"alphaDeg" => 4,
"useCorrelatedBoundaryLayer" => true,
"observer" => [
"distanceM" => 1.2,
"thetaDeg" => 90,
"phiDeg" => 90
]
]);
$ch = curl_init("https://henfoil.hendoi.com/api/v1/airfoils/self-noise");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => $payload,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer hfk_demo_4c91e2ab8d07",
"Content-Type: application/json",
],
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_HTTP_CODE), "\n", $body;
curl_close($ch);
Send it in Java
The body string is the JSON payload. Edit the values in that string. statusCode() is the HTTP code and body() is the response text. A rejected call still returns both.
var client = java.net.http.HttpClient.newHttpClient();
var body = "{\"naca\": \"2412\", \"chordM\": 0.3, \"spanM\": 1.0, \"velocityMs\": 40, \"alphaDeg\": 4, \"useCorrelatedBoundaryLayer\": true, \"observer\": {\"distanceM\": 1.2, \"thetaDeg\": 90, \"phiDeg\": 90}}";
var request = java.net.http.HttpRequest.newBuilder()
.uri(java.net.URI.create("https://henfoil.hendoi.com/api/v1/airfoils/self-noise"))
.header("Authorization", "Bearer hfk_demo_4c91e2ab8d07")
.header("Content-Type", "application/json")
.method("POST", java.net.http.HttpRequest.BodyPublishers.ofString(body))
.build();
var response = client.send(request, java.net.http.HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
Related pages
If you are unsure, contact us
You do not have to guess the payload. Call or WhatsApp +91-9677261485. The message already names this page. Or email support@hendoi.com. Paste the HTTP status and the error text from the response so we can answer from the same request you sent.
