feat(python): implement python bindings for all components and solvers
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -47,4 +47,4 @@ pub use types::{
|
||||
};
|
||||
|
||||
// Re-export calibration types
|
||||
pub use calib::{Calib, CalibValidationError};
|
||||
pub use calib::{Calib, CalibIndices, CalibValidationError};
|
||||
|
||||
Reference in New Issue
Block a user