Examples
Running the Examples
Extract the examples with the
pypeec examples
command.For running the examples from Python:
examples_config.py
is used to select the examplerun_mesher.py
runs the mesherrun_viewer.py
runs the viewerrun_solver.py
runs the solverrun_plotter.py
runs the plotter
For running the examples from the Shell:
examples_config.sh
is used to select the examplerun_mesher.sh
runs the mesherrun_viewer.sh
runs the viewerrun_solver.sh
runs the solverrun_plotter.sh
runs the plotter
For running the examples from a Jupyter notebook, use
notebook.ipynb
:Jupyter should be installed (not included in the default environment).
IPyWidgets and Trame are used for the rendering inside Jupyter notebooks.
STL Mesher Examples
examples_stl/inductor_air
3D air-core inductor
Defined with STL files
examples_stl/inductor_core
3D inductor with a magnetic E-core
Defined with STL files
examples_stl/inductor_toroid
3D inductor with a toroidal core
Defined with STL files
examples_stl/transformer
Planar transformer with two windings
Defined with STL files
Shape Mesher Examples
examples_shape/busbar
Coplanar L-shaped busbar
Defined with 2D shapes
examples_shape/coplanar
PCB with coplanar traces
Defined with 2D shapes
examples_shape/parallel
Parallel wires with opposing currents
Defined with 2D shapes
examples_shape/hole
Trace with a hole
Defined with 2D shapes
examples_shape/wire
Straight round wire
Defined with 2D shapes
PNG Mesher Examples
examples_png/inductor_spiral
Planar spiral inductor
Defined with PNG files
examples_png/inductor_gap
Gapped inductor with a magnetic E-core
Defined with PNG files
examples_png/inductor_pot
Pot-core inductor with external gap
Defined with PNG files
examples_png/iron_core
Iron magnetic core with relative permeability and finite resistivity
Defined with PNG files
examples_png/shield
Conductor loop with a magnetic shield
Defined with PNG files
examples_png/gerber
PCB inductor defined with GERBER files
The PNG files are generated from GERBER files
Voxel Mesher Examples
examples_voxel/slab
Simple slab conductor in free space
Defined with voxel indices
examples_voxel/core
Simple slab conductor surrounded by a magnetic core
Defined with voxel indices
examples_voxel/transformer
Simple transformer with a short-circuited winding
Defined with voxel indices
examples_voxel/anisotropic
L-shaped conductor with anisotropic resistivity
Defined with voxel indices
examples_voxel/distributed
Slab conductor with space dependent resistivity
Defined with voxel indices
examples_voxel/logo
Simple geometry used for the PyPEEC logo
Defined with voxel indices