/ proof-of-concept / plate-dynamics-lab-2
Sign in
proof-of-concept / plate-dynamics-lab-2
plate-dynamics-lab-2 / packages / core / src / runner / protocol.ts
17 lines · 515 BCodeBlameHistory
2004981Plate dynamics lab 2: a hammer on a hung plate by Rayleigh-Ritz and by Mindlin-Reissner finite elementsJeremy Magland 1import type { SourceBundle } from "../generate/bundle";
2import type { PlainValue } from "./plain";
3import type { BackendInfo, RunResult } from "./types";
5export type ToWorker =
6 | {
7 type: "run";
8 id: number;
9 bundle: SourceBundle;
10 inputs?: Record<string, PlainValue>;
11 }
12 | { type: "info"; id: number };
14export type FromWorker =
15 | { type: "output"; id: number; text: string }
16 | { type: "done"; id: number; result: RunResult }
17 | { type: "info"; id: number; backend: BackendInfo };
↑↓ move↵openescclose