pub struct ThermalSystem {
pub nodes: HashMap<String, ThermalNetNode>,
pub edges: Vec<ThermalEdge>,
pub time: f64,
}Expand description
A lumped thermal network of nodes connected by conductance edges.
Fields§
§nodes: HashMap<String, ThermalNetNode>Nodes indexed by their id.
edges: Vec<ThermalEdge>Directed conductance edges (bidirectional heat flow).
time: f64Simulation time (s). Updated by transient solvers.
Implementations§
Source§impl ThermalSystem
impl ThermalSystem
Sourcepub fn add_node(&mut self, node: ThermalNetNode) -> bool
pub fn add_node(&mut self, node: ThermalNetNode) -> bool
Add a node. Returns false if a node with the same id already exists.
Sourcepub fn add_edge(&mut self, edge: ThermalEdge)
pub fn add_edge(&mut self, edge: ThermalEdge)
Add a conductance edge.
Sourcepub fn node_count(&self) -> usize
pub fn node_count(&self) -> usize
Number of nodes.
Trait Implementations§
Source§impl Clone for ThermalSystem
impl Clone for ThermalSystem
Source§fn clone(&self) -> ThermalSystem
fn clone(&self) -> ThermalSystem
Returns a duplicate of the value. Read more
1.0.0 · 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 ThermalSystem
impl Debug for ThermalSystem
Source§impl Default for ThermalSystem
impl Default for ThermalSystem
Source§fn default() -> ThermalSystem
fn default() -> ThermalSystem
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ThermalSystem
impl RefUnwindSafe for ThermalSystem
impl Send for ThermalSystem
impl Sync for ThermalSystem
impl Unpin for ThermalSystem
impl UnsafeUnpin for ThermalSystem
impl UnwindSafe for ThermalSystem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more