pub struct HeatedPart {
pub part: ThermalPart,
pub loss_power: f64,
pub resistance: f64,
pub time_constant: f64,
pub max_rise: f64,
pub rise: f64,
/* private fields */
}Expand description
A part of the machine that warms with its loss power (Machine::thermal_parts, effects.part_heating): one thermal
mass with a thermal resistance R to its surroundings, so that its temperature rise follows
tau d(rise)/dt = R P - rise and settles at R P under a steady loss P.
Fields§
§part: ThermalPartThe machine’s, not written: a simulation built from the same config has it (Sim::restore).
loss_power: f64Its loss power at the end of the last step, W; kept up to date only while it warms (effects.part_heating).
resistance: f64K/W, s, and the rise it is rated for, K.
time_constant: f64§max_rise: f64§rise: f64Temperature above the surroundings, K.
Trait Implementations§
Source§impl Clone for HeatedPart
impl Clone for HeatedPart
Source§fn clone(&self) -> HeatedPart
fn clone(&self) -> HeatedPart
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HeatedPart
impl Debug for HeatedPart
Source§impl<'de> Deserialize<'de> for HeatedPart
impl<'de> Deserialize<'de> for HeatedPart
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
Auto Trait Implementations§
impl Freeze for HeatedPart
impl RefUnwindSafe for HeatedPart
impl Send for HeatedPart
impl Sync for HeatedPart
impl Unpin for HeatedPart
impl UnsafeUnpin for HeatedPart
impl UnwindSafe for HeatedPart
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