@hendoi/henmesh 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +89 -127
- package/dist/client.d.ts +2 -2
- package/dist/client.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,100 +1,114 @@
|
|
|
1
1
|
# @hendoi/henmesh
|
|
2
2
|
|
|
3
|
-
**Official JavaScript / TypeScript SDK for
|
|
3
|
+
**Official JavaScript / TypeScript SDK for HENMESH** — the mesh / prep product in the **HENDOI Aerospace Software Suite**.
|
|
4
4
|
|
|
5
|
-
**Version 0.1.
|
|
5
|
+
**Version 0.1.3** · [npm](https://www.npmjs.com/package/@hendoi/henmesh) · [Product](https://hendoi.com/products/henmesh) · [App](https://henmesh.hendoi.com)
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## About HENDOI (company suite)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
**HENDOI** suite: **HENFOIL** → **HENSYNTH** → **HENMESH** → **HENFLOW** → **HENSTRUCT** (one account, clear handoffs).
|
|
12
12
|
|
|
13
|
-
This
|
|
13
|
+
This package automates **HENMESH** at production host `https://henmesh.hendoi.com`.
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
- Ask for CAD formats
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Industry challenges this product addresses
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
Solver campaigns fail for mesh reasons that should have been caught at prep:
|
|
21
20
|
|
|
22
|
-
|
|
21
|
+
- Skew / aspect / wall-ortho / wake-band failures discovered **after** overnight CFD
|
|
22
|
+
- y+ / first-cell height (`Δs₁`) wrong for the intended regime
|
|
23
|
+
- “Generic airframe domain” used when the geometry is still a section/wing screen
|
|
24
|
+
- Quality reports that list numbers without **why / where / impact / fix**
|
|
25
|
+
- No independence / GCI-style scrub before citing a soft residual
|
|
26
|
+
- CAD import without a clear handoff into HENFLOW / HENSTRUCT
|
|
27
|
+
|
|
28
|
+
Teams burn decks in general tools because **prep honesty** was missing.
|
|
23
29
|
|
|
24
30
|
---
|
|
25
31
|
|
|
26
|
-
##
|
|
32
|
+
## How HENMESH solves that
|
|
27
33
|
|
|
28
|
-
|
|
29
|
-
|---|---|
|
|
30
|
-
| CFD prep engineer | Script 2-D / 3-D mesh generate + quality |
|
|
31
|
-
| Automation developer | Overnight mesh independence / GCI jobs |
|
|
32
|
-
| FSI workflow owner | Map fluid ↔ structure meshes |
|
|
33
|
-
| Stack user | Mesh after HENFOIL/HENSYNTH, before HENFLOW |
|
|
34
|
+
HENMESH is an **aerospace meshing preprocessor**: 2-D C/O and section grids, 3-D wing extrude screens, quality explain, Δs₁ guidance, independence / GCI cues, CAD formats — **before** HENFLOW burns a deck.
|
|
34
35
|
|
|
35
|
-
|
|
36
|
+
This SDK scripts:
|
|
37
|
+
|
|
38
|
+
- `mesh2dAirfoil` / `mesh2dSection`
|
|
39
|
+
- `mesh2dQuality` / `mesh2dIndependence`
|
|
40
|
+
- `mesh3dWing` / `mesh3dQuality`
|
|
41
|
+
- `meshFsiMap`
|
|
42
|
+
- `cadFormats`
|
|
43
|
+
- `usage` / jobs
|
|
36
44
|
|
|
37
|
-
|
|
45
|
+
**In one sentence:** use `@hendoi/henmesh` to defend the mesh from Node/TypeScript before CFD/FEA spend.
|
|
38
46
|
|
|
39
|
-
|
|
40
|
-
2. Production host `https://henmesh.hendoi.com`
|
|
41
|
-
3. API key starting with `hmk_…`
|
|
47
|
+
---
|
|
42
48
|
|
|
43
|
-
|
|
49
|
+
## Product highlights
|
|
44
50
|
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
- Pricing: [hendoi.com/pricing](https://hendoi.com/pricing)
|
|
51
|
-
- API overview: [api.hendoi.com/?doc=henmesh-overview](https://api.hendoi.com/?doc=henmesh-overview)
|
|
52
|
-
- Auth: [api.hendoi.com/?doc=henmesh-authentication](https://api.hendoi.com/?doc=henmesh-authentication)
|
|
53
|
-
- All JS SDKs: [api.hendoi.com/?doc=javascript-sdk](https://api.hendoi.com/?doc=javascript-sdk)
|
|
51
|
+
- Plain-language mesh Trust (why / where / impact / next)
|
|
52
|
+
- Wall Δs₁ guidance tied to regime honesty
|
|
53
|
+
- 2-D and 3-D wing prep with quality gates
|
|
54
|
+
- Independence / GCI-style screens on mesh-length surrogates
|
|
55
|
+
- Handoff path → HENFLOW / HENSTRUCT
|
|
54
56
|
|
|
55
57
|
---
|
|
56
58
|
|
|
57
|
-
##
|
|
59
|
+
## Use & applications
|
|
58
60
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
| Application | Why this package |
|
|
62
|
+
|---|---|
|
|
63
|
+
| Pre-CFD automation | Generate + quality in CI |
|
|
64
|
+
| GCI / independence scrub | Before citing soft residuals |
|
|
65
|
+
| Wing block prep | 3-D wing mesh + quality |
|
|
66
|
+
| FSI workflows | `meshFsiMap` before structure |
|
|
67
|
+
|
|
68
|
+
**Where:** Node ≥ 18 → `https://henmesh.hendoi.com` with `hmk_…`.
|
|
61
69
|
|
|
62
70
|
---
|
|
63
71
|
|
|
64
|
-
##
|
|
72
|
+
## What it **can** do
|
|
65
73
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
74
|
+
| Feature | Methods |
|
|
75
|
+
|---|---|
|
|
76
|
+
| Meters / jobs | `usage`, `job`, `cancelJob` |
|
|
77
|
+
| Catalogue / projects | `methods`, `projects`, `createProject` |
|
|
78
|
+
| 2-D generate | `mesh2dAirfoil`, `mesh2dSection` |
|
|
79
|
+
| Quality / GCI | `mesh2dQuality`, `mesh2dIndependence` |
|
|
80
|
+
| 3-D wing | `mesh3dWing`, `mesh3dQuality` |
|
|
81
|
+
| FSI / CAD | `meshFsiMap`, `cadFormats` |
|
|
82
|
+
|
|
83
|
+
## What it **cannot** do
|
|
84
|
+
|
|
85
|
+
- Not HyperMesh / Pointwise **certification** meshing
|
|
86
|
+
- Not a CFD or FEA solver
|
|
87
|
+
- Not volume tet/hex certification authority for full airframes
|
|
88
|
+
- Not Fluent binary export authority
|
|
89
|
+
- Cloud API only — **not** a local mesher install
|
|
90
|
+
- Beta product — screening prep; see product page release note
|
|
71
91
|
|
|
72
92
|
---
|
|
73
93
|
|
|
74
|
-
##
|
|
94
|
+
## Install & auth (production)
|
|
75
95
|
|
|
76
96
|
```bash
|
|
77
|
-
|
|
97
|
+
npm install @hendoi/henmesh
|
|
98
|
+
npm install @hendoi/henmesh@0.1.3
|
|
99
|
+
|
|
78
100
|
export HENMESH_API_KEY=hmk_YOUR_KEY_HERE
|
|
101
|
+
export HENMESH_API_URL=https://henmesh.hendoi.com
|
|
79
102
|
```
|
|
80
103
|
|
|
81
|
-
PowerShell:
|
|
82
|
-
|
|
83
104
|
```powershell
|
|
84
105
|
$env:HENMESH_API_KEY="hmk_YOUR_KEY_HERE"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
```bash
|
|
88
|
-
export HENMESH_API_URL=https://henmesh.hendoi.com
|
|
106
|
+
$env:HENMESH_API_URL="https://henmesh.hendoi.com"
|
|
89
107
|
```
|
|
90
108
|
|
|
91
109
|
---
|
|
92
110
|
|
|
93
|
-
## How to
|
|
94
|
-
|
|
95
|
-
### 1) Check usage
|
|
96
|
-
|
|
97
|
-
**Purpose:** confirm the key and remaining budget.
|
|
111
|
+
## How to use — get output
|
|
98
112
|
|
|
99
113
|
```js
|
|
100
114
|
import { Client } from "@hendoi/henmesh";
|
|
@@ -102,87 +116,35 @@ import { Client } from "@hendoi/henmesh";
|
|
|
102
116
|
const c = new Client();
|
|
103
117
|
console.log(JSON.stringify(await c.usage(), null, 2));
|
|
104
118
|
console.log(await c.methods());
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
```bash
|
|
108
|
-
node check-usage.mjs
|
|
109
|
-
```
|
|
110
119
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
**Purpose:** create a screening mesh, then ask HENMESH how good it is.
|
|
114
|
-
|
|
115
|
-
```js
|
|
116
|
-
import { Client } from "@hendoi/henmesh";
|
|
117
|
-
|
|
118
|
-
const c = new Client();
|
|
119
|
-
|
|
120
|
-
// PURPOSE: generate 2-D airfoil mesh (body = same fields as API / UI)
|
|
121
|
-
const mesh = await c.mesh2dAirfoil({
|
|
122
|
-
// e.g. coordinates, spacing requests — see API docs
|
|
123
|
-
});
|
|
120
|
+
// PURPOSE: generate screening mesh (body fields = API / UI)
|
|
121
|
+
const mesh = await c.mesh2dAirfoil({ /* coordinates / spacing per docs */ });
|
|
124
122
|
console.log("mesh keys:", Object.keys(mesh));
|
|
125
123
|
|
|
126
|
-
|
|
127
|
-
const quality = await c.mesh2dQuality({
|
|
128
|
-
// pass mesh id / payload from previous step
|
|
129
|
-
});
|
|
124
|
+
const quality = await c.mesh2dQuality({ /* mesh ref from previous step */ });
|
|
130
125
|
console.log("quality keys:", Object.keys(quality));
|
|
131
|
-
|
|
132
|
-
// PURPOSE: independence / GCI-style scrub before citing a soft residual
|
|
133
|
-
// const indep = await c.mesh2dIndependence({ … });
|
|
134
126
|
```
|
|
135
127
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
```js
|
|
139
|
-
const wing = await c.mesh3dWing({ /* … */ });
|
|
140
|
-
console.log("wing mesh keys:", Object.keys(wing));
|
|
141
|
-
|
|
142
|
-
const fsi = await c.meshFsiMap({ /* … */ });
|
|
143
|
-
console.log("fsi keys:", Object.keys(fsi));
|
|
128
|
+
```bash
|
|
129
|
+
node run-henmesh.mjs
|
|
144
130
|
```
|
|
145
131
|
|
|
146
132
|
---
|
|
147
133
|
|
|
148
|
-
##
|
|
149
|
-
|
|
150
|
-
| Call | Purpose |
|
|
151
|
-
|---|---|
|
|
152
|
-
| `npm install @hendoi/henmesh` | Install SDK |
|
|
153
|
-
| `export HENMESH_API_KEY=hmk_…` | Auth |
|
|
154
|
-
| `await c.usage()` | Budget check |
|
|
155
|
-
| `await c.mesh2dAirfoil({…})` | 2-D airfoil mesh |
|
|
156
|
-
| `await c.mesh2dSection({…})` | 2-D section mesh |
|
|
157
|
-
| `await c.mesh2dQuality({…})` | Quality report |
|
|
158
|
-
| `await c.mesh2dIndependence({…})` | Independence / GCI |
|
|
159
|
-
| `await c.mesh3dWing({…})` | 3-D wing mesh |
|
|
160
|
-
| `await c.mesh3dQuality({…})` | 3-D quality |
|
|
161
|
-
| `await c.meshFsiMap({…})` | FSI map |
|
|
162
|
-
| `await c.cadFormats()` | Supported CAD formats |
|
|
163
|
-
|
|
164
|
-
---
|
|
165
|
-
|
|
166
|
-
## Honest limits
|
|
167
|
-
|
|
168
|
-
Not HyperMesh / Pointwise certification meshing. Screening grids + honesty explain only. See the [product guide](https://hendoi.com/blog/henmesh-complete-product-guide).
|
|
169
|
-
|
|
170
|
-
---
|
|
134
|
+
## Official links
|
|
171
135
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
| Need | Package |
|
|
136
|
+
| | |
|
|
175
137
|
|---|---|
|
|
176
|
-
|
|
|
177
|
-
|
|
|
178
|
-
|
|
|
179
|
-
|
|
|
180
|
-
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
© HENDOI TECHNOLOGIES PRIVATE LIMITED · LicenseRef-Proprietary
|
|
138
|
+
| Product | https://hendoi.com/products/henmesh |
|
|
139
|
+
| App | https://henmesh.hendoi.com |
|
|
140
|
+
| Guide | https://hendoi.com/blog/henmesh-complete-product-guide |
|
|
141
|
+
| Help | https://hendoi.com/help/henmesh |
|
|
142
|
+
| FAQ | https://hendoi.com/faq |
|
|
143
|
+
| Pricing | https://hendoi.com/pricing |
|
|
144
|
+
| API overview | https://api.hendoi.com/?doc=henmesh-overview |
|
|
145
|
+
| Auth | https://api.hendoi.com/?doc=henmesh-authentication |
|
|
146
|
+
| All JS SDKs | https://api.hendoi.com/?doc=javascript-sdk |
|
|
147
|
+
|
|
148
|
+
Sisters: [@hendoi/henfoil](https://www.npmjs.com/package/@hendoi/henfoil) · [@hendoi/hensynth](https://www.npmjs.com/package/@hendoi/hensynth) · [@hendoi/henflow](https://www.npmjs.com/package/@hendoi/henflow) · [@hendoi/henstruct](https://www.npmjs.com/package/@hendoi/henstruct) · [PyPI henmesh](https://pypi.org/project/henmesh/)
|
|
149
|
+
|
|
150
|
+
© HENDOI TECHNOLOGIES PRIVATE LIMITED · LicenseRef-Proprietary · support@hendoi.com
|
package/dist/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/** HTTP client for HENMESH /api/v1 — HM-JS-SDK-001 (0.1.
|
|
2
|
-
export declare const CLIENT_VERSION = "0.1.
|
|
1
|
+
/** HTTP client for HENMESH /api/v1 — HM-JS-SDK-001 (0.1.3). */
|
|
2
|
+
export declare const CLIENT_VERSION = "0.1.3";
|
|
3
3
|
export type Json = Record<string, unknown>;
|
|
4
4
|
export declare class HenmeshError extends Error {
|
|
5
5
|
status: number;
|
package/dist/client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/** HTTP client for HENMESH /api/v1 — HM-JS-SDK-001 (0.1.
|
|
2
|
-
export const CLIENT_VERSION = "0.1.
|
|
1
|
+
/** HTTP client for HENMESH /api/v1 — HM-JS-SDK-001 (0.1.3). */
|
|
2
|
+
export const CLIENT_VERSION = "0.1.3";
|
|
3
3
|
const DEVELOPERS_HELP = "Create a hmk_… key: sign in at https://hendoi.com/login → open HENMESH → " +
|
|
4
4
|
"Developers (or Settings → API) → copy the key → export HENMESH_API_KEY=hmk_…";
|
|
5
5
|
export class HenmeshError extends Error {
|