multi_core_inverter: add documentation for running/viewing results
This commit is contained in:
@@ -29,6 +29,12 @@
|
|||||||
//! in this device, S0 is effectively an inverter, with S1, S2, S3 acting as buffers.
|
//! 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
|
//! for the purpose of this simulation, all terminal wires are closed loops either explicitly
|
||||||
//! driven or measured.
|
//! 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::geom::{Meters, Torus};
|
||||||
use coremem::sim::units::Seconds;
|
use coremem::sim::units::Seconds;
|
||||||
@@ -40,6 +46,7 @@ type Mat = spirv::IsoConductorOr<Ferroxcube3R1MH>;
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
coremem::init_logging();
|
coremem::init_logging();
|
||||||
|
coremem::init_debug();
|
||||||
let um = |n| n as f32 * 1e-6;
|
let um = |n| n as f32 * 1e-6;
|
||||||
let ns = |n| n as f32 * 1e-9;
|
let ns = |n| n as f32 * 1e-9;
|
||||||
let feat_size = um(10);
|
let feat_size = um(10);
|
||||||
|
Reference in New Issue
Block a user