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: 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: f64SOC 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: 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: f64Total number of miles in charge depletion mode, assuming constant kWh_per_mi
Trait Implementations§
Source§impl ApproxEq for PHEVCycleCalc
impl ApproxEq for PHEVCycleCalc
Source§impl Clone for PHEVCycleCalc
impl Clone for PHEVCycleCalc
Source§fn clone(&self) -> PHEVCycleCalc
fn clone(&self) -> PHEVCycleCalc
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 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 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 RESOURCE_PREFIX: &'static str = ""
const CACHE_FOLDER: &'static str = ""
Source§fn list_resources() -> Vec<String>
fn list_resources() -> Vec<String>
List available (compiled) resources (stored in the rust binary) Read more
Source§fn from_resource<P: AsRef<Path>>(filepath: P, skip_init: bool) -> Result<Self>
fn from_resource<P: AsRef<Path>>(filepath: P, skip_init: bool) -> Result<Self>
Read (deserialize) an object from a resource file packaged with the
fastsim-core crate Read moreSource§fn to_file<P: AsRef<Path>>(&self, filepath: P) -> Result<()>
fn to_file<P: AsRef<Path>>(&self, filepath: P) -> Result<()>
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 morefn to_writer<W: Write>(&self, wtr: W, format: &str) -> Result<()>
Source§fn from_file<P: AsRef<Path>>(filepath: P, skip_init: bool) -> Result<Self>
fn from_file<P: AsRef<Path>>(filepath: P, skip_init: bool) -> Result<Self>
Read (deserialize) an object from a file.
Supported file extensions are listed in
ACCEPTED_BYTE_FORMATS. 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_reader<R: Read>(rdr: R, format: &str, skip_init: bool) -> Result<Self>
fn from_reader<R: Read>(rdr: R, format: &str, skip_init: bool) -> Result<Self>
Deserialize an object from anything that implements
std::io::Read Read moreSource§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 to a JSON string Read more
Source§fn from_yaml<S: AsRef<str>>(yaml_str: S, skip_init: bool) -> Result<Self>
fn from_yaml<S: AsRef<str>>(yaml_str: S, skip_init: bool) -> Result<Self>
Read (deserialize) an object from a YAML string Read more
fn to_toml(&self) -> Result<String>
fn from_toml<S: AsRef<str>>(toml_str: S, skip_init: bool) -> Result<Self>
Source§fn from_url<S: AsRef<str>>(url: S, skip_init: bool) -> Result<Self>
fn from_url<S: AsRef<str>>(url: S, skip_init: bool) -> Result<Self>
Instantiates an object from a url. Accepts yaml and json file types Read more
Source§fn to_cache<P: AsRef<Path>>(&self, file_path: P) -> Result<()>
fn to_cache<P: AsRef<Path>>(&self, file_path: P) -> Result<()>
Takes an instantiated Rust object and saves it in the FASTSim data directory in
a rust_objects folder.
WARNING: If there is a file already in the data subdirectory with the same name, it will be replaced by the new file. Read more
WARNING: If there is a file already in the data subdirectory with the same name, it will be replaced by the new file. Read more
Source§fn from_cache<P: AsRef<Path>>(file_path: P, skip_init: bool) -> Result<Self>
fn from_cache<P: AsRef<Path>>(file_path: P, skip_init: bool) -> Result<Self>
Instantiates a Rust object from the subdirectory within the FASTSim data
directory corresponding to the Rust Object (“vehices” for a RustVehice,
“cycles” for a RustCycle, and the root folder of the data directory for
all other objects). 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