Struct fastsim_core::thermal::ThermalState
source · pub struct ThermalState {Show 32 fields
pub fc_te_deg_c: f64,
pub fc_eta_temp_coeff: f64,
pub fc_qdot_per_net_heat: f64,
pub fc_qdot_kw: f64,
pub fc_qdot_to_amb_kw: f64,
pub fc_qdot_to_htr_kw: f64,
pub fc_htc_to_amb: f64,
pub fc_lambda: f64,
pub fc_te_adiabatic_deg_c: f64,
pub cab_te_deg_c: f64,
pub cab_prev_te_deg_c: f64,
pub cab_qdot_solar_kw: f64,
pub cab_qdot_to_amb_kw: f64,
pub cab_qdot_from_hvac_kw: f64,
pub cab_hvac_pwr_aux_kw: f64,
pub exh_mdot: f64,
pub exh_hdot_kw: f64,
pub exhport_exh_te_in_deg_c: f64,
pub exhport_qdot_to_amb: f64,
pub exhport_te_deg_c: f64,
pub exhport_qdot_from_exh: f64,
pub exhport_qdot_net: f64,
pub cat_qdot: f64,
pub cat_htc_to_amb: f64,
pub cat_qdot_to_amb: f64,
pub cat_te_deg_c: f64,
pub cat_exh_te_in_deg_c: f64,
pub cat_re_ext: f64,
pub cat_qdot_from_exh: f64,
pub cat_qdot_net: f64,
pub amb_te_deg_c: f64,
pub orphaned: bool,
}Expand description
Struct containing thermal state variables for all thermal components
Fields§
§fc_te_deg_c: f64fuel converter (engine) temperature [°C]
fc_eta_temp_coeff: f64fuel converter temperature efficiency correction
fc_qdot_per_net_heat: f64fuel converter heat generation per total heat release minus shaft power
fc_qdot_kw: f64fuel converter heat generation [kW]
fc_qdot_to_amb_kw: f64fuel converter convection to ambient [kW]
fc_qdot_to_htr_kw: f64fuel converter heat loss to heater core [kW]
fc_htc_to_amb: f64heat transfer coeff [W / (m ** 2 * K)] to amb after arbitration
fc_lambda: f64lambda (air/fuel ratio normalized w.r.t. stoich air/fuel ratio) – 1 is reasonable default
fc_te_adiabatic_deg_c: f64lambda-dependent adiabatic flame temperature
cab_te_deg_c: f64cabin temperature [°C]
cab_prev_te_deg_c: f64previous cabin temperature [°C]
cab_qdot_solar_kw: f64cabin solar load [kw]
cab_qdot_to_amb_kw: f64cabin convection to ambient [kw]
cab_qdot_from_hvac_kw: f64heat transfer to cabin from hvac system
cab_hvac_pwr_aux_kw: f64aux load from hvac
exh_mdot: f64exhaust mass flow rate [kg/s]
exh_hdot_kw: f64exhaust enthalpy flow rate [kw]
exhport_exh_te_in_deg_c: f64exhaust port (exhport) variables exhaust temperature at exhaust port inlet
exhport_qdot_to_amb: f64heat transfer from exhport to amb [kw]
exhport_te_deg_c: f64catalyst temperature [°C]
exhport_qdot_from_exh: f64convection from exhaust to exhport [W] positive means exhport is receiving heat
exhport_qdot_net: f64net heat generation in cat [W]
cat_qdot: f64catalyst heat generation [W]
cat_htc_to_amb: f64catalytic converter convection coefficient to ambient [W / (m ** 2 * K)]
cat_qdot_to_amb: f64heat transfer from catalyst to ambient [W]
cat_te_deg_c: f64catalyst temperature [°C]
cat_exh_te_in_deg_c: f64exhaust temperature at cat inlet
cat_re_ext: f64catalyst external reynolds number
cat_qdot_from_exh: f64convection from exhaust to cat [W] positive means cat is receiving heat
cat_qdot_net: f64net heat generation in cat [W]
amb_te_deg_c: f64ambient temperature
orphaned: boolImplementations§
Trait Implementations§
source§impl Clone for ThermalState
impl Clone for ThermalState
source§fn clone(&self) -> ThermalState
fn clone(&self) -> ThermalState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ThermalState
impl Debug for ThermalState
source§impl Default for ThermalState
impl Default for ThermalState
source§impl<'de> Deserialize<'de> for ThermalState
impl<'de> Deserialize<'de> for ThermalState
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>,
source§impl PartialEq for ThermalState
impl PartialEq for ThermalState
source§impl SerdeAPI for ThermalState
impl SerdeAPI for ThermalState
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>
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>
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<()>
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>
ACCEPTED_BYTE_FORMATS. Read moresource§fn to_str(&self, format: &str) -> Result<String>
fn to_str(&self, format: &str) -> Result<String>
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>
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>
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>
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>
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>
source§fn to_cache<P: AsRef<Path>>(&self, file_path: P) -> Result<()>
fn to_cache<P: AsRef<Path>>(&self, file_path: P) -> Result<()>
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>
source§impl Serialize for ThermalState
impl Serialize for ThermalState
impl StructuralPartialEq for ThermalState
Auto Trait Implementations§
impl Freeze for ThermalState
impl RefUnwindSafe for ThermalState
impl Send for ThermalState
impl Sync for ThermalState
impl Unpin for ThermalState
impl UnwindSafe for ThermalState
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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>
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>
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