Expose solved_variables on the web SimulationResult type.
Some checks failed
CI / check (push) Has been cancelled
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:
@@ -76,6 +76,25 @@ export interface SimulationResult {
|
||||
} | null;
|
||||
/** Degrees-of-freedom summary after topology finalize (CLI hard gate). */
|
||||
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. */
|
||||
|
||||
Reference in New Issue
Block a user