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§fn eq(&self, other: &ThermalState) -> bool
fn eq(&self, other: &ThermalState) -> bool
self and other values to be equal, and is used
by ==.source§impl SerdeAPI for ThermalState
impl SerdeAPI for ThermalState
const ACCEPTED_BYTE_FORMATS: &'static [&'static str] = _
const ACCEPTED_STR_FORMATS: &'static [&'static str] = _
const CACHE_FOLDER: &'static str = _
source§fn from_resource<P: AsRef<Path>>(filepath: P) -> Result<Self>
fn from_resource<P: AsRef<Path>>(filepath: P) -> 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) -> Result<Self>
fn from_file<P: AsRef<Path>>(filepath: P) -> 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) -> Result<Self>
fn from_str<S: AsRef<str>>(contents: S, format: &str) -> Result<Self>
source§fn from_reader<R: Read>(rdr: R, format: &str) -> Result<Self>
fn from_reader<R: Read>(rdr: R, format: &str) -> Result<Self>
std::io::Read Read moresource§fn from_json<S: AsRef<str>>(json_str: S) -> Result<Self>
fn from_json<S: AsRef<str>>(json_str: S) -> Result<Self>
source§fn from_yaml<S: AsRef<str>>(yaml_str: S) -> Result<Self>
fn from_yaml<S: AsRef<str>>(yaml_str: S) -> Result<Self>
source§fn from_bincode(encoded: &[u8]) -> Result<Self>
fn from_bincode(encoded: &[u8]) -> Result<Self>
source§fn from_url<S: AsRef<str>>(url: S) -> Result<Self>
fn from_url<S: AsRef<str>>(url: S) -> 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