匯出場求解診斷資料 (field.exportDiagnostics)
選單: 無(快速開啟、CLI、Python 與 MCP) · 執行方式: 立即完成
預覽功能:在「編輯 › 偏好設定 › 模擬」開啟預覽功能,或執行
preview.set {"enabled":true}。回覆會帶有preview: true與說明。
以下參數與說明取自指令本身的定義,與 CLI、Python 及 MCP 讀到的文字相同,因此保留英文。
說明
Checks the record (format powercraft-fem-diagnostics version 1: solverVersion, inputHash, mesh {nodes, elements, freeNodes, regions, minAngleDeg}, iterations, residual, adaptive [{elements, energy, change}], newton [{residual, damping}], timeS, estimatedPeakMemoryBytes) and writes it as one JSON file for a bug report. Reading the file back gives the same record, every number bit for bit. The file holds counts, the solver's numbers and a hash of the input, no coordinates, names or materials; it leaves the machine only if the user sends it. Changes nothing.
參數
diagnostics: object (a field solve's diagnostics, or a reply that carries them under `diagnostics`)path: str? (the .json file to write, through the host's file service)
回覆
- diagnostics
- file
- path
- bytes
- written
- notes