Add diagram workbench UI with Modelica DoF coaching and ISO glyphs.

Ship the Next.js cycle editor with CAD chrome, technical HX symbols, Fixed/Free boundary guidance, and secondary water/air pressure drop support in the solver stack.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-17 22:46:46 +02:00
parent 62efea0646
commit 3358b74342
275 changed files with 70187 additions and 5230 deletions

View File

@@ -21,10 +21,12 @@
//! ```
mod fallback;
mod homotopy;
mod newton_raphson;
mod sequential_substitution;
pub use fallback::{FallbackConfig, FallbackSolver};
pub use homotopy::HomotopyConfig;
pub use newton_raphson::NewtonConfig;
pub use sequential_substitution::PicardConfig;
@@ -83,11 +85,12 @@ impl Solver for SolverStrategy {
if let Ok(state) = &result {
if state.is_converged() {
// Post-solve validation checks
// Convert Vec<f64> to SystemState for validation methods
let system_state: entropyk_components::SystemState = state.state.clone().into();
system.check_mass_balance(&system_state)?;
system.check_energy_balance(&system_state)?;
// Post-solve validation checks. Components index the state slice by
// global index, so pass the raw (ṁ, P, h)-strided vector directly
// rather than through the stride-2 SystemState conversion (CM1.2).
let state_slice: &[f64] = &state.state;
system.check_mass_balance(state_slice)?;
system.check_energy_balance(state_slice)?;
}
}