pub struct PHEVCycleCalc {
Show 42 fields pub cd_ess_kwh: f64, pub cd_ess_kwh_per_mi: f64, pub cd_fs_gal: f64, pub cd_fs_kwh: f64, pub cd_mpg: f64, pub cd_cycs: f64, pub cd_miles: f64, pub cd_lab_mpg: f64, pub cd_adj_mpg: f64, pub cd_frac_in_trans: f64, pub trans_init_soc: f64, pub trans_ess_kwh: f64, pub trans_ess_kwh_per_mi: f64, pub trans_fs_gal: f64, pub trans_fs_kwh: f64, pub cs_ess_kwh: f64, pub cs_ess_kwh_per_mi: f64, pub cs_fs_gal: f64, pub cs_fs_kwh: f64, pub cs_mpg: f64, pub lab_mpgge: f64, pub lab_kwh_per_mi: f64, pub lab_uf: f64, pub lab_uf_gpm: Array1<f64>, pub lab_iter_uf: Array1<f64>, pub lab_iter_uf_kwh_per_mi: Array1<f64>, pub lab_iter_kwh_per_mi: Array1<f64>, pub adj_iter_mpgge: Array1<f64>, pub adj_iter_kwh_per_mi: Array1<f64>, pub adj_iter_cd_miles: Array1<f64>, pub adj_iter_uf: Array1<f64>, pub adj_iter_uf_gpm: Vec<f64>, pub adj_iter_uf_kwh_per_mi: Array1<f64>, pub adj_cd_miles: f64, pub adj_cd_mpgge: f64, pub adj_cs_mpgge: f64, pub adj_uf: f64, pub adj_mpgge: f64, pub adj_kwh_per_mi: f64, pub adj_ess_kwh_per_mi: f64, pub delta_soc: f64, pub total_cd_miles: f64,
}
Expand description

Label fuel economy calculations for a specific cycle of a PHEV vehicle

Fields§

§cd_ess_kwh: f64

Charge depletion battery kW-hr

§cd_ess_kwh_per_mi: f64§cd_fs_gal: f64

Charge depletion fuel gallons

§cd_fs_kwh: f64§cd_mpg: f64§cd_cycs: f64

Number of cycles in charge depletion mode, up to transition

§cd_miles: f64§cd_lab_mpg: f64§cd_adj_mpg: f64§cd_frac_in_trans: f64

Fraction of transition cycles spent in charge depletion

§trans_init_soc: f64

SOC change during 1 cycle

§trans_ess_kwh: f64

charge depletion battery kW-hr

§trans_ess_kwh_per_mi: f64§trans_fs_gal: f64§trans_fs_kwh: f64§cs_ess_kwh: f64

charge sustaining battery kW-hr

§cs_ess_kwh_per_mi: f64§cs_fs_gal: f64

charge sustaining fuel gallons

§cs_fs_kwh: f64§cs_mpg: f64§lab_mpgge: f64§lab_kwh_per_mi: f64§lab_uf: f64§lab_uf_gpm: Array1<f64>§lab_iter_uf: Array1<f64>§lab_iter_uf_kwh_per_mi: Array1<f64>§lab_iter_kwh_per_mi: Array1<f64>§adj_iter_mpgge: Array1<f64>§adj_iter_kwh_per_mi: Array1<f64>§adj_iter_cd_miles: Array1<f64>§adj_iter_uf: Array1<f64>§adj_iter_uf_gpm: Vec<f64>§adj_iter_uf_kwh_per_mi: Array1<f64>§adj_cd_miles: f64§adj_cd_mpgge: f64§adj_cs_mpgge: f64§adj_uf: f64§adj_mpgge: f64§adj_kwh_per_mi: f64§adj_ess_kwh_per_mi: f64§delta_soc: f64§total_cd_miles: f64

Total number of miles in charge depletion mode, assuming constant kWh_per_mi

Trait Implementations§

source§

impl ApproxEq<PHEVCycleCalc> for PHEVCycleCalc

source§

fn approx_eq(&self, other: &PHEVCycleCalc, tol: f64) -> bool

source§

impl Clone for PHEVCycleCalc

source§

fn clone(&self) -> PHEVCycleCalc

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PHEVCycleCalc

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for PHEVCycleCalc

source§

fn default() -> PHEVCycleCalc

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for PHEVCycleCalc

source§

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<PHEVCycleCalc> for PHEVCycleCalc

source§

fn eq(&self, other: &PHEVCycleCalc) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl SerdeAPI for PHEVCycleCalc

source§

fn init(&mut self) -> Result<()>

runs any initialization steps that might be needed
source§

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>,

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_json(&self) -> String

json serialization method.
source§

fn from_json(json_str: &str) -> Result<Self, Error>

json deserialization method.
source§

fn to_yaml(&self) -> String

yaml serialization method.
source§

fn from_yaml(yaml_str: &str) -> Result<Self, Error>

yaml deserialization method.
source§

fn to_bincode(&self) -> Vec<u8>

bincode serialization method.
source§

fn from_bincode(encoded: &[u8]) -> Result<Self, Error>

bincode deserialization method.
source§

impl Serialize for PHEVCycleCalc

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for PHEVCycleCalc

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,

source§

impl<T> DeserializeOwnedAlias for Twhere T: DeserializeOwned,

source§

impl<T> SendAlias for T

§

impl<T> SendSyncUnwindSafe for Twhere T: Send + Sync + UnwindSafe + ?Sized,

source§

impl<T> SerializeAlias for Twhere T: Serialize,

source§

impl<T> SyncAlias for T