Parametric coil and inductor geometry generator
Project description
coil-geom
coil-geom is a Python package for generating and visualizing coil and inductor geometries using clean, parametric definitions.
It is designed for engineering, scientific visualization, and symbolic / schematic-style plotting.
- Pure geometry first (NumPy-friendly)
- Save coil geometry data as PPTX, SVG, and PDF
- Suitable for electronics, physics, and CAD-style workflows
CircleCoil: circle + transition circle + circle EllipseCoil: ellipse + transition circle + ellipse EllipseCoilShape: ellipse + transition ellipse(shape similarity) + ellipse EllipseCoilCurvature: ellipse + transition ellipse(curvature similarity) + ellipse
🔗 Project Links
- GitHub Repository: https://github.com/uhwang/Coil-Geom
- PyPI Page: https://pypi.org/project/coil-geom/
- Issue Tracker: Report a bug
Installation
pip install coil-geom
import coil_geom as cg
c_c_up = cg.CircleCoil(p_dist=0.7, ncoil=5)
c_c_dn = cg.CircleCoil(ncoil=5)
c_e_up = cg.EllipseCoil(p_dist=0.4, ncoil=5)
c_e_dn = cg.EllipseCoil(ncoil=5)
c_es_up = cg.EllipseCoilShape(p_dist=0.4, target=0.8, ncoil=5)
c_es_dn = cg.EllipseCoilShape(ncoil=5)
c_ec_up = cg.EllipseCoilCurvature(p_dist=0.4, ncoil=5)
c_ec_dn = cg.EllipseCoilCurvature(ncoil=5)
cg.save_ppt(c_c_up , "c_c_up.pptx" )
cg.save_ppt(c_c_dn , "c_c_dn.pptx" )
cg.save_ppt(c_e_up , "c_e_up.pptx" )
cg.save_ppt(c_e_dn , "c_e_dn.pptx" )
cg.save_ppt(c_es_up, "c_es_up.pptx", debug=True)
cg.save_ppt(c_es_dn, "c_es_dn.pptx", debug=True)
cg.save_ppt(c_ec_up, "c_ec_up.pptx", lead_l=2, lead_r=2)
cg.save_ppt(c_ec_dn, "c_ec_dn.pptx")
cg.save_svg(c_c_up , "c_c_up.svg" )
cg.save_svg(c_c_dn , "c_c_dn.svg" )
cg.save_svg(c_e_up , "c_e_up.svg" )
cg.save_svg(c_e_dn , "c_e_dn.svg" )
cg.save_svg(c_es_up, "c_es_up.svg", debug=True)
cg.save_svg(c_es_dn, "c_es_dn.svg", debug=True)
cg.save_svg(c_ec_up, "c_ec_up.svg", lead_l=2, lead_r=2)
cg.save_svg(c_ec_dn, "c_ec_dn.svg")
cg.save_pdf(c_c_up , "c_c_up.pdf" )
cg.save_pdf(c_c_dn , "c_c_dn.pdf" )
cg.save_pdf(c_e_up , "c_e_up.pdf" )
cg.save_pdf(c_e_dn , "c_e_dn.pdf" )
cg.save_pdf(c_es_up, "c_es_up.pdf", debug=True)
cg.save_pdf(c_es_dn, "c_es_dn.pdf", debug=True)
cg.save_pdf(c_ec_up, "c_ec_up.pdf")
cg.save_pdf(c_ec_dn, "c_ec_dn.pdf")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
coil_geom-0.2.11.tar.gz
(14.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file coil_geom-0.2.11.tar.gz.
File metadata
- Download URL: coil_geom-0.2.11.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ea2315891d0b998f4c510554c85b6a5a4b08ade1c29ec797ac61303e52aa3dc
|
|
| MD5 |
745b1b024b91f44cd5fa8298f27604d6
|
|
| BLAKE2b-256 |
285bded43dfcc68c3b0cf2033b4bdb20483ea8aeec9747058ca014e440e93401
|
File details
Details for the file coil_geom-0.2.11-py3-none-any.whl.
File metadata
- Download URL: coil_geom-0.2.11-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ce159740b4ffb8f3a0fc27a94f5a3e52504794a1b332cb6e479fb32c061e2aa
|
|
| MD5 |
52b724b32df3fbf7fd6d8cf2b446c5fc
|
|
| BLAKE2b-256 |
36ebe877f02902a344de2c99c6d099755e5ec0044b975641b11c58f3877c2ff9
|