tpt-electromagnetics
RustPure-Rust computational electromagnetics: MNA circuit simulation, device models, quasi-static Maxwell FEM, transmission lines, S-parameters, and power systems.
Languages
tpt-electromagnetics
Computational electromagnetics for the TPT Solutions ecosystem: MNA circuit
simulation, compact semiconductor device models, quasi-static Maxwell FEM,
multi-conductor transmission lines, S-parameter network analysis, and power
system analysis — built on the tpt-math-*, tpt-fem-*, and tpt-io-*
sibling crates.
This workspace is consumed as path dependencies within (and across) the
tpt-solutions workspaces. Crates.io publishing is out of scope for the
current pass. Every crate is dual-licensed MIT OR Apache-2.0.
Crates
| Crate | Description | Status |
|---|---|---|
tpt-em-core | Canonical EM quantity types, unit conversions, solver interface contract (no_std + alloc) | ✅ available |
tpt-em-circuit | MNA circuit simulation engine: DC / transient / AC analysis | ✅ available |
tpt-em-device-models | Compact semiconductor device models (diode, BJT, MOSFET, JFET, MESFET) | ✅ available |
tpt-em-transmission | Multi-conductor transmission line modeling | ✅ available |
tpt-em-lowfreq | Quasi-static magnetostatic / electrostatic FEM | ✅ available |
tpt-em-sparam | S-parameter manipulation: Touchstone I/O, cascading, de-embedding, renormalization, stability, TDR | ✅ available |
tpt-em-power | Power system analysis | ✅ available |
tpt-em | Feature-gated umbrella re-exporting every solver crate | ✅ available |
Workspace layout
tpt-electromagnetics/
├── Cargo.toml # workspace manifest ([workspace.package], lints, profiles)
├── crates/
│ ├── tpt-em-core/ # foundation layer (no internal deps)
│ ├── tpt-em-circuit/ # MNA circuit simulation
│ ├── tpt-em-device-models/ # semiconductor device models
│ ├── tpt-em-transmission/ # transmission line modeling
│ ├── tpt-em-lowfreq/ # quasi-static Maxwell FEM
│ ├── tpt-em-sparam/ # S-parameter network analysis
│ ├── tpt-em-power/ # power system analysis
│ └── tpt-em/ # feature-gated umbrella crate
├── spec.txt # full design specification
└── todo.md # build tracking
Building
cargo build --workspace --all-features
cargo test --workspace --all-features
tpt-em-core is no_std-capable (with the alloc feature) and builds for
wasm32-unknown-unknown.
License
Licensed under either of
- MIT license (LICENSE-MIT)
- Apache License, Version 2.0 (LICENSE-APACHE)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.