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: Ratio,
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: Vec<f64>,
pub lab_iter_uf: Vec<f64>,
pub lab_iter_uf_kwh_per_mi: Vec<f64>,
pub lab_iter_kwh_per_mi: Vec<f64>,
pub adj_iter_mpgge: Vec<f64>,
pub adj_iter_kwh_per_mi: Vec<f64>,
pub adj_iter_cd_miles: Vec<f64>,
pub adj_iter_uf: Vec<f64>,
pub adj_iter_uf_gpm: Vec<f64>,
pub adj_iter_uf_kwh_per_mi: Vec<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: Ratio,
pub total_cd_miles: f64,
}Expand description
Label fuel economy calculations for a specific cycle of a PHEV vehicle
Fields§
§cd_ess_kwh: f64Charge depletion battery kW-hr
cd_ess_kwh_per_mi: f64§cd_fs_gal: f64Charge depletion fuel gallons
cd_fs_kwh: f64§cd_mpg: f64§cd_cycs: f64Number of cycles in charge depletion mode, up to transition
cd_miles: f64§cd_lab_mpg: f64§cd_adj_mpg: f64§cd_frac_in_trans: f64Fraction of transition cycles spent in charge depletion
trans_init_soc: RatioSOC change during 1 cycle
trans_ess_kwh: f64charge depletion battery kW-hr
trans_ess_kwh_per_mi: f64§trans_fs_gal: f64§trans_fs_kwh: f64§cs_ess_kwh: f64charge sustaining battery kW-hr
cs_ess_kwh_per_mi: f64§cs_fs_gal: f64charge sustaining fuel gallons
cs_fs_kwh: f64§cs_mpg: f64§lab_mpgge: f64§lab_kwh_per_mi: f64§lab_uf: f64§lab_uf_gpm: Vec<f64>§lab_iter_uf: Vec<f64>§lab_iter_uf_kwh_per_mi: Vec<f64>§lab_iter_kwh_per_mi: Vec<f64>§adj_iter_mpgge: Vec<f64>§adj_iter_kwh_per_mi: Vec<f64>§adj_iter_cd_miles: Vec<f64>§adj_iter_uf: Vec<f64>§adj_iter_uf_gpm: Vec<f64>§adj_iter_uf_kwh_per_mi: Vec<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: Ratio§total_cd_miles: f64Total number of miles in charge depletion mode, assuming constant kWh_per_mi
Trait Implementations§
Source§impl Clone for PHEVCycleCalc
impl Clone for PHEVCycleCalc
Source§fn clone(&self) -> PHEVCycleCalc
fn clone(&self) -> PHEVCycleCalc
Returns a duplicate 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 PHEVCycleCalc
impl Debug for PHEVCycleCalc
Source§impl Default for PHEVCycleCalc
impl Default for PHEVCycleCalc
Source§fn default() -> PHEVCycleCalc
fn default() -> PHEVCycleCalc
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PHEVCycleCalc
impl<'de> Deserialize<'de> for PHEVCycleCalc
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 Init for PHEVCycleCalc
impl Init for PHEVCycleCalc
Source§impl PartialEq for PHEVCycleCalc
impl PartialEq for PHEVCycleCalc
Source§impl SerdeAPI for PHEVCycleCalc
impl SerdeAPI for PHEVCycleCalc
const ACCEPTED_BYTE_FORMATS: &'static [&'static str] = _
const ACCEPTED_STR_FORMATS: &'static [&'static str] = _
const RESOURCES_DIR: &'static Dir<'_> = _
const RESOURCES_SUBDIR: &'static str = ""
Source§fn from_resource<P: AsRef<Path>>(
filepath: P,
skip_init: bool,
) -> Result<Self, Error>
fn from_resource<P: AsRef<Path>>( filepath: P, skip_init: bool, ) -> Result<Self, Error>
Read (deserialize) an object from a resource file packaged with the
fastsim-core crate Read moreSource§fn list_resources() -> Result<Vec<PathBuf>, Error>
fn list_resources() -> Result<Vec<PathBuf>, Error>
List the available resources in the resources directory Read more
Source§fn to_file<P: AsRef<Path>>(&self, filepath: P) -> Result<(), Error>
fn to_file<P: AsRef<Path>>(&self, filepath: P) -> Result<(), Error>
Write (serialize) an object to a file.
Supported file extensions are listed in
ACCEPTED_BYTE_FORMATS.
Creates a new file if it does not already exist, otherwise truncates the existing file. Read moreSource§fn from_file<P: AsRef<Path>>(
filepath: P,
skip_init: bool,
) -> Result<Self, Error>
fn from_file<P: AsRef<Path>>( filepath: P, skip_init: bool, ) -> Result<Self, Error>
Read (deserialize) an object from a file.
Supported file extensions are listed in
ACCEPTED_BYTE_FORMATS. Read moreSource§fn to_writer<W: Write>(&self, wtr: W, format: &str) -> Result<(), Error>
fn to_writer<W: Write>(&self, wtr: W, format: &str) -> Result<(), Error>
Write (serialize) an object into anything that implements
std::io::Write Read moreSource§fn from_reader<R: Read>(
rdr: &mut R,
format: &str,
skip_init: bool,
) -> Result<Self, Error>
fn from_reader<R: Read>( rdr: &mut R, format: &str, skip_init: bool, ) -> Result<Self, Error>
Deserialize an object from anything that implements
std::io::Read Read moreSource§fn to_str(&self, format: &str) -> Result<String>
fn to_str(&self, format: &str) -> Result<String>
Write (serialize) an object into a string Read more
Source§fn from_str<S: AsRef<str>>(
contents: S,
format: &str,
skip_init: bool,
) -> Result<Self>
fn from_str<S: AsRef<str>>( contents: S, format: &str, skip_init: bool, ) -> Result<Self>
Read (deserialize) an object from a string Read more
Source§fn from_json<S: AsRef<str>>(json_str: S, skip_init: bool) -> Result<Self>
fn from_json<S: AsRef<str>>(json_str: S, skip_init: bool) -> Result<Self>
Read (deserialize) an object from a JSON string Read more
Source§fn from_msg_pack(msg_pack: &[u8], skip_init: bool) -> Result<Self>
fn from_msg_pack(msg_pack: &[u8], skip_init: bool) -> Result<Self>
Read (deserialize) an object from a message pack Read more
Source§impl Serialize for PHEVCycleCalc
impl Serialize for PHEVCycleCalc
impl StructuralPartialEq for PHEVCycleCalc
Auto Trait Implementations§
impl Freeze for PHEVCycleCalc
impl RefUnwindSafe for PHEVCycleCalc
impl Send for PHEVCycleCalc
impl Sync for PHEVCycleCalc
impl Unpin for PHEVCycleCalc
impl UnwindSafe for PHEVCycleCalc
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more