pub struct Environment {
pub ambient: Temperature,
pub convection_w_per_m2_k: f64,
pub area: Area,
}Expand description
How a body loses heat to its surroundings.
Fields§
§ambient: TemperatureThe temperature the surroundings sit at, and what a body relaxes towards.
convection_w_per_m2_k: f64Convective coefficient h, W·m⁻²·K⁻¹. Still air is about 5 to 10; forced air
25 to 100; water hundreds. There is no right default, so there is no default.
area: AreaSurface area available to lose heat through.
Implementations§
Source§impl Environment
impl Environment
Sourcepub fn still_air(ambient: Temperature, area: Area) -> Environment
pub fn still_air(ambient: Temperature, area: Area) -> Environment
A part sitting in still room air.
Sourcepub fn loss_from(&self, temperature: Temperature, emissivity: f64) -> Power
pub fn loss_from(&self, temperature: Temperature, emissivity: f64) -> Power
Power lost from a surface at temperature, convective plus radiative.
The radiative term is εσA(T⁴ - T_a⁴), and it is the only non-linearity in
this crate. It is also not negligible: at room temperature a black surface
radiates about 6 W·m⁻²·K⁻¹, which is the same order as still-air convection,
so leaving it out halves the loss.
Trait Implementations§
Source§impl Clone for Environment
impl Clone for Environment
Source§fn clone(&self) -> Environment
fn clone(&self) -> Environment
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 moreimpl Copy for Environment
Source§impl Debug for Environment
impl Debug for Environment
Source§impl PartialEq for Environment
impl PartialEq for Environment
impl StructuralPartialEq for Environment
Auto Trait Implementations§
impl Freeze for Environment
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnsafeUnpin for Environment
impl UnwindSafe for Environment
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