multi_core_inverter: add documentation for running/viewing results

This commit is contained in:
2022-07-17 14:58:42 -07:00
parent ccbaa39fcf
commit 89be8bf8dd

View File

@@ -29,6 +29,12 @@
//! in this device, S0 is effectively an inverter, with S1, S2, S3 acting as buffers.
//! for the purpose of this simulation, all terminal wires are closed loops either explicitly
//! driven or measured.
//!
//! to run this, from toplevel directory:
//! ```
//! $ cargo run --release --bin multi_core_inverter
//! $ pushd crates/coremem; cargo run --release --bin viewer ../../out/applications/multi_core_inverter/0/ ; popd
//! ```
use coremem::geom::{Meters, Torus};
use coremem::sim::units::Seconds;
@@ -40,6 +46,7 @@ type Mat = spirv::IsoConductorOr<Ferroxcube3R1MH>;
fn main() {
coremem::init_logging();
coremem::init_debug();
let um = |n| n as f32 * 1e-6;
let ns = |n| n as f32 * 1e-9;
let feat_size = um(10);