feat: implement mass balance validation for Story 7.1

- Added port_mass_flows to Component trait and implements for core components.
- Added System::check_mass_balance and integrated it into the solver.
- Restored connect methods for ExpansionValve, Compressor, and Pipe to fix integration tests.
- Updated Python and C bindings for validation errors.
- Updated sprint status and story documentation.
This commit is contained in:
Sepehr
2026-02-21 23:21:34 +01:00
parent 4440132b0a
commit fa480ed303
55 changed files with 5987 additions and 31 deletions

24
bindings/wasm/src/lib.rs Normal file
View File

@@ -0,0 +1,24 @@
//! Entropyk WebAssembly bindings.
//!
//! This crate provides WebAssembly wrappers for the Entropyk thermodynamic
//! simulation library via wasm-bindgen.
use wasm_bindgen::prelude::*;
pub(crate) mod backend;
pub(crate) mod components;
pub(crate) mod errors;
pub(crate) mod solver;
pub(crate) mod types;
/// Initialize the WASM module.
#[wasm_bindgen]
pub fn init() {
console_error_panic_hook::set_once();
}
/// Get the library version.
#[wasm_bindgen]
pub fn version() -> String {
env!("CARGO_PKG_VERSION").to_string()
}