Interactive tutorials for learning PyOpenMagnetics.
pip install pyopenmagnetics matplotlib numpy- 01_getting_started.ipynb - Introduction to PyOpenMagnetics concepts, database exploration, and basic operations
- 02_buck_inductor.ipynb - Complete workflow for designing a buck converter inductor with visualization
- 03_core_losses.ipynb - Core loss fundamentals: frequency, temperature, materials, and waveform effects
- Start with 01_getting_started to understand the basics
- Work through 02_buck_inductor for a practical design example
- Dive into 03_core_losses for detailed loss analysis
- Install the Jupyter extension
- Open any
.ipynbfile - Select a Python kernel with PyOpenMagnetics installed
- Run cells with
Shift+Enter
pip install jupyterlab
jupyter labUpload notebooks to Google Colab and install PyOpenMagnetics:
!pip install pyopenmagneticsPyOpenMagnetics uses the MAS (Magnetic Agnostic Structure) JSON schema:
┌─────────────────────────────────────────┐
│ MAS │
├─────────────────────────────────────────┤
│ Inputs │
│ ├── Design Requirements │
│ │ ├── Inductance │
│ │ ├── Turns Ratios │
│ │ └── Constraints │
│ └── Operating Points │
│ ├── Frequency │
│ ├── Current Waveforms │
│ └── Temperature │
├─────────────────────────────────────────┤
│ Magnetic │
│ ├── Core │
│ │ ├── Shape │
│ │ ├── Material │
│ │ └── Gapping │
│ └── Coil │
│ ├── Windings │
│ ├── Wire Types │
│ └── Turns/Layers │
├─────────────────────────────────────────┤
│ Outputs │
│ ├── Core Losses │
│ ├── Winding Losses │
│ ├── Temperature Rise │
│ └── Inductance Values │
└─────────────────────────────────────────┘
- PyOpenMagnetics GitHub - Source code and documentation
- MAS Schema - Magnetic Agnostic Structure definitions
- MKF Engine - C++ computation engine