Struct fastsim_core::params::RustPhysicalProperties
source · pub struct RustPhysicalProperties {
pub air_density_kg_per_m3: f64,
pub a_grav_mps2: f64,
pub kwh_per_gge: f64,
pub fuel_rho_kg__L: f64,
pub fuel_afr_stoich: f64,
pub orphaned: bool,
}Expand description
Struct containing time trace data
Fields§
§air_density_kg_per_m3: f64§a_grav_mps2: f64§kwh_per_gge: f64§fuel_rho_kg__L: f64§fuel_afr_stoich: f64§orphaned: boolImplementations§
source§impl RustPhysicalProperties
impl RustPhysicalProperties
pub fn get_fuel_lhv_kj_per_kg(&self) -> f64
pub fn set_fuel_lhv_kj_per_kg(&mut self, fuel_lhv_kj_per_kg: f64)
Trait Implementations§
source§impl Clone for RustPhysicalProperties
impl Clone for RustPhysicalProperties
source§fn clone(&self) -> RustPhysicalProperties
fn clone(&self) -> RustPhysicalProperties
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 RustPhysicalProperties
impl Debug for RustPhysicalProperties
source§impl Default for RustPhysicalProperties
impl Default for RustPhysicalProperties
source§impl<'de> Deserialize<'de> for RustPhysicalProperties
impl<'de> Deserialize<'de> for RustPhysicalProperties
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<RustPhysicalProperties> for RustPhysicalProperties
impl PartialEq<RustPhysicalProperties> for RustPhysicalProperties
source§fn eq(&self, other: &RustPhysicalProperties) -> bool
fn eq(&self, other: &RustPhysicalProperties) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl SerdeAPI for RustPhysicalProperties
impl SerdeAPI for RustPhysicalProperties
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 RustPhysicalProperties
impl Serialize for RustPhysicalProperties
impl StructuralPartialEq for RustPhysicalProperties
Auto Trait Implementations§
impl RefUnwindSafe for RustPhysicalProperties
impl Send for RustPhysicalProperties
impl Sync for RustPhysicalProperties
impl Unpin for RustPhysicalProperties
impl UnwindSafe for RustPhysicalProperties
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