1/** The app-level solve protocol spoken over the uihtml event bridge. */
3export interface SolveParams {
4 pde: 'poisson' | 'helmholtz'
5 /** RHS f(x,y,z), a MATLAB expression */
6 f: string
7 /** zeroth-order coefficient c(x,y,z) (helmholtz only) */
8 c: string
9 /** polynomial order per patch */
10 p: number
11 /** every mesh edge shared by exactly two quads (from edgeClassification) */
12 closed: boolean
13}
15/** Per-patch solution grids, as packed by matlab/solve_pde.m. */
16export interface SolutionData {
17 type: 'solution'
18 /** points per patch edge (p + 1) */
19 n: number
20 npatches: number
21 x: number[][]
22 y: number[][]
23 z: number[][]
24 u: number[][]
25 umin: number
26 umax: number
27 pde: string
28}