Expose solved_variables on the web SimulationResult type.
Some checks failed
CI / check (push) Has been cancelled

Align the TypeScript API with the Rust SolvedVariable payload so z_dp and other free actuators can be displayed after solve.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-19 16:54:21 +02:00
parent 44f793a583
commit 586d28c745

View File

@@ -76,6 +76,25 @@ export interface SimulationResult {
} | null; } | null;
/** Degrees-of-freedom summary after topology finalize (CLI hard gate). */ /** Degrees-of-freedom summary after topology finalize (CLI hard gate). */
dof?: DofSummary | null; dof?: DofSummary | null;
/**
* Named solver-computed unknowns (free actuators + calibration factors like
* `z_ua`, `opening`, `z_dp`) read out of the raw Newton state vector.
* Absent/empty for systems with no bounded control variables.
*/
solved_variables?: SolvedVariable[];
}
/** A named solver-computed unknown with its converged value and bounds. */
export interface SolvedVariable {
/** Stable id, e.g. "exv__opening". */
id: string;
/** Owning component name, or null for globals. */
component: string | null;
/** Short human label, e.g. "opening", "z_ua", "z_dp". */
variable: string;
value: number;
min: number;
max: number;
} }
/** Degrees-of-freedom summary returned by the CLI after finalize. */ /** Degrees-of-freedom summary returned by the CLI after finalize. */