tempan 0.0.6

The library provides an exponential-integrator-based solver for systems of differential-algebraic equations modeling temperature of electronic systems.
1
2
3
4
5
6
7
8
9
10
//! The HotSpot model.

extern crate hotspot;

/// Construct a thermal RC circuit using the HotSpot model.
pub fn new(floorplan: &Path, config: &Path, params: &str) -> Result<::Circuit, &'static str> {
    use std::mem::transmute;
    let circuit = try!(hotspot::Circuit::new(floorplan, config, params.as_slice()));
    Ok(unsafe { transmute(circuit) })
}