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: f64

fuel converter (engine) temperature [°C]

§fc_eta_temp_coeff: f64

fuel converter temperature efficiency correction

§fc_qdot_per_net_heat: f64

fuel converter heat generation per total heat release minus shaft power

§fc_qdot_kw: f64

fuel converter heat generation [kW]

§fc_qdot_to_amb_kw: f64

fuel converter convection to ambient [kW]

§fc_qdot_to_htr_kw: f64

fuel converter heat loss to heater core [kW]

§fc_htc_to_amb: f64

heat transfer coeff [W / (m ** 2 * K)] to amb after arbitration

§fc_lambda: f64

lambda (air/fuel ratio normalized w.r.t. stoich air/fuel ratio) – 1 is reasonable default

§fc_te_adiabatic_deg_c: f64

lambda-dependent adiabatic flame temperature

§cab_te_deg_c: f64

cabin temperature [°C]

§cab_prev_te_deg_c: f64

previous cabin temperature [°C]

§cab_qdot_solar_kw: f64

cabin solar load [kw]

§cab_qdot_to_amb_kw: f64

cabin convection to ambient [kw]

§cab_qdot_from_hvac_kw: f64

heat transfer to cabin from hvac system

§cab_hvac_pwr_aux_kw: f64

aux load from hvac

§exh_mdot: f64

exhaust mass flow rate [kg/s]

§exh_hdot_kw: f64

exhaust enthalpy flow rate [kw]

§exhport_exh_te_in_deg_c: f64

exhaust port (exhport) variables exhaust temperature at exhaust port inlet

§exhport_qdot_to_amb: f64

heat transfer from exhport to amb [kw]

§exhport_te_deg_c: f64

catalyst temperature [°C]

§exhport_qdot_from_exh: f64

convection from exhaust to exhport [W] positive means exhport is receiving heat

§exhport_qdot_net: f64

net heat generation in cat [W]

§cat_qdot: f64

catalyst heat generation [W]

§cat_htc_to_amb: f64

catalytic converter convection coefficient to ambient [W / (m ** 2 * K)]

§cat_qdot_to_amb: f64

heat transfer from catalyst to ambient [W]

§cat_te_deg_c: f64

catalyst temperature [°C]

§cat_exh_te_in_deg_c: f64

exhaust temperature at cat inlet

§cat_re_ext: f64

catalyst external reynolds number

§cat_qdot_from_exh: f64

convection from exhaust to cat [W] positive means cat is receiving heat

§cat_qdot_net: f64

net heat generation in cat [W]

§amb_te_deg_c: f64

ambient temperature

§orphaned: bool

Implementations§

source§

impl ThermalState

source

pub fn new( amb_te_deg_c: Option<f64>, fc_te_deg_c_init: Option<f64>, cab_te_deg_c_init: Option<f64>, exhport_te_deg_c_init: Option<f64>, cat_te_deg_c_init: Option<f64> ) -> Self

Trait Implementations§

source§

impl Clone for ThermalState

source§

fn clone(&self) -> ThermalState

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ThermalState

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ThermalState

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for ThermalState

source§

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<ThermalState> for ThermalState

source§

fn eq(&self, other: &ThermalState) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl SerdeAPI for ThermalState

source§

fn init(&mut self) -> Result<()>

runs any initialization steps that might be needed
source§

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>,

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_json(&self) -> String

json serialization method.
source§

fn from_json(json_str: &str) -> Result<Self, Error>

json deserialization method.
source§

fn to_yaml(&self) -> String

yaml serialization method.
source§

fn from_yaml(yaml_str: &str) -> Result<Self, Error>

yaml deserialization method.
source§

fn to_bincode(&self) -> Vec<u8>

bincode serialization method.
source§

fn from_bincode(encoded: &[u8]) -> Result<Self, Error>

bincode deserialization method.
source§

impl Serialize for ThermalState

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for ThermalState

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,

source§

impl<T> DeserializeOwnedAlias for Twhere T: DeserializeOwned,

source§

impl<T> SendAlias for T

§

impl<T> SendSyncUnwindSafe for Twhere T: Send + Sync + UnwindSafe + ?Sized,

source§

impl<T> SerializeAlias for Twhere T: Serialize,

source§

impl<T> SyncAlias for T