Examples
Running the Examples
Extract the examples with the
pypeec examplescommand.For running the examples from Python:
examples_config.pyis used to select the examplerun_mesher.pyruns the mesherrun_viewer.pyruns the viewerrun_solver.pyruns the solverrun_plotter.pyruns the plotter
For running the examples from the Shell:
examples_config.shis used to select the examplerun_mesher.shruns the mesherrun_viewer.shruns the viewerrun_solver.shruns the solverrun_plotter.shruns 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 the notebook.
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/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)
Defined with 2D shapes
examples_shape/trace
PCB with two traces
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/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/logo
Simple geometry used for the PyPEEC logo
Defined with voxel indices