pub struct RadiationNetwork {
pub n: usize,
pub temperatures: Vec<f64>,
pub emissivities: Vec<f64>,
pub areas: Vec<f64>,
pub view_factors: Vec<f64>,
}Expand description
N-surface radiation network (gray, diffuse enclosure).
Solves the full N×N radiosity system for a closed diffuse gray enclosure. The net heat flow on each surface is computed from the radiosity vector.
Reference: Incropera et al., “Fundamentals of Heat and Mass Transfer”.
Fields§
§n: usizeNumber of surfaces.
temperatures: Vec<f64>Surface temperatures [K].
emissivities: Vec<f64>Surface emissivities (0–1).
areas: Vec<f64>Surface areas [m²].
view_factors: Vec<f64>View factor matrix F[i][j] (row-major, n×n).
Implementations§
Source§impl RadiationNetwork
impl RadiationNetwork
Sourcepub fn new(
temperatures: Vec<f64>,
emissivities: Vec<f64>,
areas: Vec<f64>,
view_factors: Vec<f64>,
) -> Self
pub fn new( temperatures: Vec<f64>, emissivities: Vec<f64>, areas: Vec<f64>, view_factors: Vec<f64>, ) -> Self
Create a new radiation network.
Sourcepub fn net_heat_flow_simple(&self, i: usize) -> f64
pub fn net_heat_flow_simple(&self, i: usize) -> f64
Net heat flow from surface i [W] using the radiosity method.
Simplified: q_i = ε_i·A_i·σ·(T_i⁴) - A_i·sum_j(F_ij · ε_j·σ·T_j⁴)
This is the optically-simplified (no inter-reflection) version.
Sourcepub fn emitted_power(&self, i: usize) -> f64
pub fn emitted_power(&self, i: usize) -> f64
Total radiative power emitted by surface i [W].
Trait Implementations§
Source§impl Clone for RadiationNetwork
impl Clone for RadiationNetwork
Source§fn clone(&self) -> RadiationNetwork
fn clone(&self) -> RadiationNetwork
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 moreAuto Trait Implementations§
impl Freeze for RadiationNetwork
impl RefUnwindSafe for RadiationNetwork
impl Send for RadiationNetwork
impl Sync for RadiationNetwork
impl Unpin for RadiationNetwork
impl UnsafeUnpin for RadiationNetwork
impl UnwindSafe for RadiationNetwork
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