Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

PyOpenMagnetics Jupyter Notebooks

Interactive tutorials for learning PyOpenMagnetics.

Prerequisites

pip install pyopenmagnetics matplotlib numpy

Tutorials

Getting Started

Design Examples

Analysis Deep-Dives

  • 03_core_losses.ipynb - Core loss fundamentals: frequency, temperature, materials, and waveform effects

Learning Path

  1. Start with 01_getting_started to understand the basics
  2. Work through 02_buck_inductor for a practical design example
  3. Dive into 03_core_losses for detailed loss analysis

Running the Notebooks

VS Code

  1. Install the Jupyter extension
  2. Open any .ipynb file
  3. Select a Python kernel with PyOpenMagnetics installed
  4. Run cells with Shift+Enter

Jupyter Lab

pip install jupyterlab
jupyter lab

Google Colab

Upload notebooks to Google Colab and install PyOpenMagnetics:

!pip install pyopenmagnetics

MAS Schema Overview

PyOpenMagnetics 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                 │
└─────────────────────────────────────────┘

Resources