feat(python): implement python bindings for all components and solvers

This commit is contained in:
Sepehr
2026-02-21 20:34:56 +01:00
parent 8ef8cd2eba
commit 4440132b0a
310 changed files with 11577 additions and 397 deletions

View File

@@ -59,6 +59,25 @@ impl Default for Calib {
}
}
/// Stores the state vector indices of calibration factors if they are defined as control variables.
///
/// Used for Inverse Control (Story 5.5). If an index is `Some(i)`, the component should
/// read its calibration factor from `state[i]` instead of using its nominal internal value.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
pub struct CalibIndices {
/// State index for f_m multiplier
pub f_m: Option<usize>,
/// State index for f_dp multiplier
pub f_dp: Option<usize>,
/// State index for f_ua multiplier
pub f_ua: Option<usize>,
/// State index for f_power multiplier
pub f_power: Option<usize>,
/// State index for f_etav multiplier
pub f_etav: Option<usize>,
}
/// Error returned when a calibration factor is outside the allowed range [0.5, 2.0].
#[derive(Debug, Clone, PartialEq)]
pub struct CalibValidationError {

View File

@@ -47,4 +47,4 @@ pub use types::{
};
// Re-export calibration types
pub use calib::{Calib, CalibValidationError};
pub use calib::{Calib, CalibIndices, CalibValidationError};