From dfac71c7cedc8070dc6080abc727df6c097e11b1 Mon Sep 17 00:00:00 2001 From: Chad Baker Date: Tue, 14 Jan 2025 15:32:12 -0700 Subject: [PATCH] added todo! for Robin --- .../vehicle/powertrain/reversible_energy_storage.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/fastsim-core/src/vehicle/powertrain/reversible_energy_storage.rs b/fastsim-core/src/vehicle/powertrain/reversible_energy_storage.rs index 8c22534f..2cc15b52 100644 --- a/fastsim-core/src/vehicle/powertrain/reversible_energy_storage.rs +++ b/fastsim-core/src/vehicle/powertrain/reversible_energy_storage.rs @@ -476,6 +476,17 @@ impl ReversibleEnergyStorage { Ok(()) } + /// - `f_xy`: efficiency array as a function of power and temperature at + /// constant 50% SOC, corresponds to `eta_interp_values[0]` in ALTRIOS, + /// transposed so that the outermost layer is now power and the innermost + /// layer SOC (in ALTRIOS, the outermost layer is SOC and innermost is + /// power) + #[cfg(all(feature = "yaml", feature = "resources"))] + pub fn set_default_pwr_and_temp_interp(&mut self) -> anyhow::Result<()> { + todo!("Robin, please populate this and expose to python"); + Ok(()) + } + /// Sets the ReversibleEnergyStorage eff_interp Interpolator to be a 3D /// interpolator with the default x, y, z, and f_xyz arrays /// # Source of default efficiency values