Struct fastsim_core::thermal::SimDriveHot
source · pub struct SimDriveHot {
pub sd: RustSimDrive,
pub vehthrm: VehicleThermal,
pub state: ThermalState,
pub history: ThermalStateHistoryVec,
pub hvac_model_history: HVACModelHistoryVec,
/* private fields */
}Fields§
§sd: RustSimDrive§vehthrm: VehicleThermal§state: ThermalState§history: ThermalStateHistoryVec§hvac_model_history: HVACModelHistoryVecImplementations§
source§impl SimDriveHot
impl SimDriveHot
pub fn new( cyc: RustCycle, veh: RustVehicle, vehthrm: VehicleThermal, init_state: Option<ThermalState>, amb_te_deg_c: Option<Array1<f64>> ) -> Self
pub fn gap_to_lead_vehicle_m(&self) -> Array1<f64>
pub fn sim_drive( &mut self, init_soc: Option<f64>, aux_in_kw_override: Option<Array1<f64>> ) -> Result<(), Error>
pub fn walk(&mut self, init_soc: f64, aux_in_kw_override: Option<Array1<f64>>)
pub fn init_for_step( &mut self, init_soc: f64, aux_in_kw_override: Option<Array1<f64>> )
pub fn set_speed_for_target_gap_using_idm(&mut self, i: usize)
pub fn set_speed_for_target_gap(&mut self, i: usize)
pub fn step(&mut self) -> Result<(), Error>
pub fn solve_step(&mut self, i: usize)
pub fn set_thermal_calcs(&mut self, i: usize)
sourcepub fn set_fc_thermal_calcs(&mut self, i: usize)
pub fn set_fc_thermal_calcs(&mut self, i: usize)
Solve fuel converter thermal behavior assuming convection parameters of sphere.
sourcepub fn set_cab_thermal_calcs(&mut self, i: usize)
pub fn set_cab_thermal_calcs(&mut self, i: usize)
Solve cabin thermal behavior.
sourcepub fn set_exhport_thermal_calcs(&mut self, i: usize)
pub fn set_exhport_thermal_calcs(&mut self, i: usize)
Solve exhport thermal behavior.
pub fn thermal_soak_walk(&mut self)
sourcepub fn set_cat_thermal_calcs(&mut self, i: usize)
pub fn set_cat_thermal_calcs(&mut self, i: usize)
Solve catalyst thermal behavior.
pub fn set_misc_calcs(&mut self, i: usize)
pub fn set_comp_lims(&mut self, i: usize) -> Result<(), Error>
pub fn set_power_calcs(&mut self, i: usize) -> Result<(), Error>
pub fn set_ach_speed(&mut self, i: usize) -> Result<(), Error>
pub fn set_hybrid_cont_calcs(&mut self, i: usize) -> Result<(), Error>
pub fn set_fc_forced_state_rust(&mut self, i: usize) -> Result<(), Error>
pub fn set_hybrid_cont_decisions(&mut self, i: usize) -> Result<(), Error>
pub fn set_fc_power(&mut self, i: usize) -> Result<(), Error>
pub fn set_time_dilation(&mut self, i: usize) -> Result<(), Error>
pub fn set_post_scalars(&mut self) -> Result<(), Error>
Trait Implementations§
source§impl Clone for SimDriveHot
impl Clone for SimDriveHot
source§fn clone(&self) -> SimDriveHot
fn clone(&self) -> SimDriveHot
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SimDriveHot
impl Debug for SimDriveHot
source§impl<'de> Deserialize<'de> for SimDriveHot
impl<'de> Deserialize<'de> for SimDriveHot
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<SimDriveHot> for SimDriveHot
impl PartialEq<SimDriveHot> for SimDriveHot
source§fn eq(&self, other: &SimDriveHot) -> bool
fn eq(&self, other: &SimDriveHot) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl SerdeAPI for SimDriveHot
impl SerdeAPI for SimDriveHot
source§fn to_file(&self, filename: &str) -> Result<(), Error>
fn to_file(&self, filename: &str) -> Result<(), Error>
Save current data structure to file. Method adaptively calls serialization methods
dependent on the suffix of the file given as str. Read more
source§fn from_file(filename: &str) -> Result<Self, Error>where
for<'de> Self: Sized + Deserialize<'de>,
fn from_file(filename: &str) -> Result<Self, Error>where for<'de> Self: Sized + Deserialize<'de>,
Read from file and return instantiated struct. Method adaptively calls deserialization
methods dependent on the suffix of the file name given as str.
Function returns a dynamic Error Result if it fails. Read more
source§fn to_bincode(&self) -> Vec<u8>
fn to_bincode(&self) -> Vec<u8>
bincode serialization method.
source§impl Serialize for SimDriveHot
impl Serialize for SimDriveHot
impl StructuralPartialEq for SimDriveHot
Auto Trait Implementations§
impl RefUnwindSafe for SimDriveHot
impl Send for SimDriveHot
impl Sync for SimDriveHot
impl Unpin for SimDriveHot
impl UnwindSafe for SimDriveHot
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more