@hendoi/henmesh 0.1.1 → 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 +108 -83
- package/dist/client.d.ts +2 -2
- package/dist/client.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,125 +1,150 @@
|
|
|
1
|
-
# @hendoi/henmesh
|
|
1
|
+
# @hendoi/henmesh
|
|
2
2
|
|
|
3
|
-
Official
|
|
3
|
+
**Official JavaScript / TypeScript SDK for HENMESH** — the mesh / prep product in the **HENDOI Aerospace Software Suite**.
|
|
4
4
|
|
|
5
|
-
|
|
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
|
+
|
|
9
|
+
## About HENDOI (company suite)
|
|
10
|
+
|
|
11
|
+
**HENDOI** suite: **HENFOIL** → **HENSYNTH** → **HENMESH** → **HENFLOW** → **HENSTRUCT** (one account, clear handoffs).
|
|
8
12
|
|
|
9
|
-
|
|
13
|
+
This package automates **HENMESH** at production host `https://henmesh.hendoi.com`.
|
|
10
14
|
|
|
11
15
|
---
|
|
12
16
|
|
|
13
|
-
##
|
|
17
|
+
## Industry challenges this product addresses
|
|
14
18
|
|
|
15
|
-
|
|
19
|
+
Solver campaigns fail for mesh reasons that should have been caught at prep:
|
|
16
20
|
|
|
17
|
-
|
|
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
|
|
18
27
|
|
|
19
|
-
|
|
28
|
+
Teams burn decks in general tools because **prep honesty** was missing.
|
|
20
29
|
|
|
21
|
-
|
|
22
|
-
|---|---|
|
|
23
|
-
| **Pre-CFD mesh prep** | `mesh2dAirfoil` / `mesh2dSection` then quality |
|
|
24
|
-
| **Independence / GCI scrub** | `mesh2dIndependence` before citing soft residuals |
|
|
25
|
-
| **Wing block prep** | `mesh3dWing` + `mesh3dQuality` |
|
|
26
|
-
| **FSI map** | `meshFsiMap` before structure handoff |
|
|
27
|
-
| **Stack** | After HENFOIL/HENSYNTH · before HENFLOW/HENSTRUCT |
|
|
30
|
+
---
|
|
28
31
|
|
|
29
|
-
|
|
32
|
+
## How HENMESH solves that
|
|
30
33
|
|
|
31
|
-
|
|
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.
|
|
32
35
|
|
|
33
|
-
|
|
34
|
-
- HENMESH API key `hmk_…`
|
|
35
|
-
- License: **LicenseRef-Proprietary** (HENDOI)
|
|
36
|
+
This SDK scripts:
|
|
36
37
|
|
|
37
|
-
|
|
38
|
+
- `mesh2dAirfoil` / `mesh2dSection`
|
|
39
|
+
- `mesh2dQuality` / `mesh2dIndependence`
|
|
40
|
+
- `mesh3dWing` / `mesh3dQuality`
|
|
41
|
+
- `meshFsiMap`
|
|
42
|
+
- `cadFormats`
|
|
43
|
+
- `usage` / jobs
|
|
38
44
|
|
|
39
|
-
|
|
40
|
-
npm install @hendoi/henmesh
|
|
41
|
-
npm install @hendoi/henmesh@0.1.1
|
|
42
|
-
```
|
|
45
|
+
**In one sentence:** use `@hendoi/henmesh` to defend the mesh from Node/TypeScript before CFD/FEA spend.
|
|
43
46
|
|
|
44
|
-
|
|
47
|
+
---
|
|
45
48
|
|
|
46
|
-
|
|
47
|
-
export HENMESH_API_KEY=hmk_YOUR_KEY
|
|
48
|
-
# export HENMESH_API_URL=https://henmesh.hendoi.com
|
|
49
|
-
# local: export HENMESH_API_URL=http://localhost:8005
|
|
50
|
-
```
|
|
49
|
+
## Product highlights
|
|
51
50
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
---
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
import { Client } from "@hendoi/henmesh";
|
|
59
|
+
## Use & applications
|
|
61
60
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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 |
|
|
65
67
|
|
|
66
|
-
|
|
67
|
-
// coordinates / airfoil payload per API docs
|
|
68
|
-
});
|
|
69
|
-
const quality = await c.mesh2dQuality({ meshId: mesh.id /* … */ });
|
|
70
|
-
console.log(quality);
|
|
71
|
-
```
|
|
68
|
+
**Where:** Node ≥ 18 → `https://henmesh.hendoi.com` with `hmk_…`.
|
|
72
69
|
|
|
73
|
-
|
|
70
|
+
---
|
|
74
71
|
|
|
75
|
-
|
|
76
|
-
|---|---|---|
|
|
77
|
-
| `usage` / `job` / `cancelJob` | Meters & jobs | `/usage` · `/jobs/:id` |
|
|
78
|
-
| `methods` | Mesh method catalogue | `GET /mesh/methods` |
|
|
79
|
-
| `projects` / `createProject` | Projects | `/projects*` |
|
|
80
|
-
| `mesh2dAirfoil` / `mesh2dSection` | 2-D generate | `/mesh/2d/*/generate` |
|
|
81
|
-
| `mesh2dQuality` / `mesh2dIndependence` | Quality / GCI | `/mesh/2d/quality` · `independence` |
|
|
82
|
-
| `mesh3dWing` / `mesh3dQuality` | 3-D wing | `/mesh/3d/*` |
|
|
83
|
-
| `meshFsiMap` | FSI mapping | `/mesh/fsi/map` |
|
|
84
|
-
| `cadFormats` | CAD import formats | `GET /cad/formats` |
|
|
72
|
+
## What it **can** do
|
|
85
73
|
|
|
86
|
-
|
|
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
|
|
87
91
|
|
|
88
|
-
|
|
92
|
+
---
|
|
89
93
|
|
|
90
|
-
##
|
|
94
|
+
## Install & auth (production)
|
|
91
95
|
|
|
92
|
-
|
|
96
|
+
```bash
|
|
97
|
+
npm install @hendoi/henmesh
|
|
98
|
+
npm install @hendoi/henmesh@0.1.3
|
|
93
99
|
|
|
94
|
-
|
|
100
|
+
export HENMESH_API_KEY=hmk_YOUR_KEY_HERE
|
|
101
|
+
export HENMESH_API_URL=https://henmesh.hendoi.com
|
|
102
|
+
```
|
|
95
103
|
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
|
|
104
|
+
```powershell
|
|
105
|
+
$env:HENMESH_API_KEY="hmk_YOUR_KEY_HERE"
|
|
106
|
+
$env:HENMESH_API_URL="https://henmesh.hendoi.com"
|
|
99
107
|
```
|
|
100
108
|
|
|
101
|
-
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## How to use — get output
|
|
102
112
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
113
|
+
```js
|
|
114
|
+
import { Client } from "@hendoi/henmesh";
|
|
115
|
+
|
|
116
|
+
const c = new Client();
|
|
117
|
+
console.log(JSON.stringify(await c.usage(), null, 2));
|
|
118
|
+
console.log(await c.methods());
|
|
119
|
+
|
|
120
|
+
// PURPOSE: generate screening mesh (body fields = API / UI)
|
|
121
|
+
const mesh = await c.mesh2dAirfoil({ /* coordinates / spacing per docs */ });
|
|
122
|
+
console.log("mesh keys:", Object.keys(mesh));
|
|
123
|
+
|
|
124
|
+
const quality = await c.mesh2dQuality({ /* mesh ref from previous step */ });
|
|
125
|
+
console.log("quality keys:", Object.keys(quality));
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
node run-henmesh.mjs
|
|
130
|
+
```
|
|
110
131
|
|
|
111
|
-
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## Official links
|
|
112
135
|
|
|
113
136
|
| | |
|
|
114
137
|
|---|---|
|
|
115
|
-
|
|
|
116
|
-
|
|
|
117
|
-
|
|
|
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 |
|
|
118
144
|
| API overview | https://api.hendoi.com/?doc=henmesh-overview |
|
|
119
145
|
| Auth | https://api.hendoi.com/?doc=henmesh-authentication |
|
|
120
|
-
|
|
|
121
|
-
| Support | support@hendoi.com |
|
|
146
|
+
| All JS SDKs | https://api.hendoi.com/?doc=javascript-sdk |
|
|
122
147
|
|
|
123
|
-
|
|
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/)
|
|
124
149
|
|
|
125
|
-
© HENDOI TECHNOLOGIES PRIVATE LIMITED
|
|
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 {
|