step2torque
GPU-accelerated nonlinear 3D FEM solver to get motor torque from a STEP assembly. Simple python interface makes it easy to automate evaluation of your custom motors with arbitrary geometry.
| Model | Flux density |
|---|---|
Install:
python3 -m pip install step2torque
Solve using your own .step file:
from step2torque import Motor
motor = Motor("motor.step")
print(motor.components) # CAD component names
motor.components["stator"].set_material("1J22")
motor.components["coil"].make_coil(phase=1, turns=72, direction="+z")
motor.components["magnet"].make_magnet(direction="radial", br=1.2)
sol = motor.solve(power=5.5) # returns immediately; optimizes currents
print(sol.status, sol.progress)
sol.wait() # optional blocking wait
print(sol.torque, sol.currents) # N·m, instantaneous phase A
print(sol.flux_density([[0, 0, 0]])) # B in tesla, points in CAD mm
Render and share the solved field:
from step2torque import Plane
sol.render_image("field.png", plane=Plane.axial(z=0))
sol.render_html("motor.html")
sol.export("motor.s2t")
Open the HTML directly, or load the .s2t file in the browser viewer.
Specifying parameters
- Coils are circular or rectangular annuli; direction is their right-hand axis. Specify turns or resistance; the other parameter is calculated using CAD dimensions, 60% copper fill and 20°C.
- Multiphase currents sum to zero by default;
balanced=Falsepermits independent phase drives. Coils sharing a phase are in series; resistance is per coil. - Magnets accept a global vector,
"radial", or"-radial". For a multipole ring, usemake_magnet(direction="radial", poles=20);offset=5shifts its pole pattern by 5 mechanical degrees. - Rotor-named components and magnets can be rotated.
Motor(..., axis="+z", center=(0,0,0))changes the shaft axis and center in mm. motor.solve(angle=10, current={1: 2.0})rotates moving parts 10 mechanical degrees from the STEP and uses fixed current. Usecurrent={}to get cogging (torque at zero current).- Separate touching iron parts use a 10 µm surface contact.
Motor(..., contact_gap=0.01)sets this gap in mm; use zero for perfect magnetic contact. - Other components default to steel.
- Before solving, you may use
motor.render_image("setup.png"),motor.render_html("setup.html")ormotor.export("setup.s2t")to check the geometry, phase labels and winding direction. Preview currents default to 1 A per phase; passcurrent={1: 2.0}andangle=10to set their initial values.
GPU acceleration is included. python3 -m pip install 'step2torque[cuda]' enables NVIDIA
cuDSS; device="auto" selects an available device. Optional solve arguments:
threads=8, mesh_size=0.6 (surface mm).
Metadata
Release files for step2torque 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| step2torque-0.1.0.tar.gz | 238.7 kB | With provenance | Details for step2torque-0.1.0.tar.gz |
Built distributions (wheels)
Total release size: 7.1 MB
Release files / step2torque-0.1.0.tar.gz
| Download URL | step2torque-0.1.0.tar.gz |
|---|---|
| Size | 238.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa352406dd0c1852656edec145e2eff90624448583755695e148c7edfce15d0b
|
|
BLAKE2b-256 checksum How to use checksums |
22f0cf0f9a68a71d8148b1e8bc75425c69e73e6556984c36b16c92136d025c86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / step2torque-0.1.0-cp314-cp314-win_amd64.whl
| Download URL | step2torque-0.1.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 552.0 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ce47f782bcae198fb89bf62f4532b3f09912d201aca3f8c8225701b5d4057a71
|
|
BLAKE2b-256 checksum How to use checksums |
f82bf8cbbda9918542fe9aa6dfaaf22dda98205302c653b4a9d21329afdeb1c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / step2torque-0.1.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | step2torque-0.1.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 368.0 kB |
| Tags | CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
f97859be7af412e08c049f8a890234edd4b55162ca6011a67789cd9a75d48440
|
|
BLAKE2b-256 checksum How to use checksums |
4aa53490c2d50bd8fe9b43fb69939a8d0bf457ca4b9b610f9bc806e9eee8dea1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / step2torque-0.1.0-cp314-cp314-macosx_10_15_universal2.whl
| Download URL | step2torque-0.1.0-cp314-cp314-macosx_10_15_universal2.whl |
|---|---|
| Size | 460.8 kB |
| Tags | CPython 3.14 macOS 10.15+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
c566ebe94a1d912584a3bc9887e2fb11f832e2a9ac54ca098f94bf43ffdd5ccc
|
|
BLAKE2b-256 checksum How to use checksums |
39c2e221d6bb2a79f54057c2e90f0e557a039d197ddea3e71cd95dc56bb75ac5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / step2torque-0.1.0-cp313-cp313-win_amd64.whl
| Download URL | step2torque-0.1.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 540.3 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
17f469fdca7aebab728dfdf630958522a27ddecadeaa18751c1c81857a3ebceb
|
|
BLAKE2b-256 checksum How to use checksums |
e9c03d52cb7d1cd327bf28432f429161dcefe0a4e0925f8a2546a215eec9935f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / step2torque-0.1.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | step2torque-0.1.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 367.9 kB |
| Tags | CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
fad23b3177e9cc419140d1a34b586279e110fd63b4e43c898f7d0d75b98f6ed1
|
|
BLAKE2b-256 checksum How to use checksums |
f65d45e47ceeac7f32f29f7cd38a3da0748cb8534faf6d4a10ab5b860d4dbd6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / step2torque-0.1.0-cp313-cp313-macosx_10_13_universal2.whl
| Download URL | step2torque-0.1.0-cp313-cp313-macosx_10_13_universal2.whl |
|---|---|
| Size | 460.2 kB |
| Tags | CPython 3.13 macOS 10.13+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
b4e7fe445c47fa68e6f5fbb266504961c10168c0ebb8ab00784e7e208d167164
|
|
BLAKE2b-256 checksum How to use checksums |
a93f6a8c19099b33e9e7492a3f95bd154a8ff70f019aa0c5f6e423caf3bf40eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / step2torque-0.1.0-cp312-cp312-win_amd64.whl
| Download URL | step2torque-0.1.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 540.3 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
9429c3841ac8819275b97052c97a00a3a3a71139dee0999455554da490428db4
|
|
BLAKE2b-256 checksum How to use checksums |
2e568cb1bcbf0e05686c6496443abbb5b6c38c92e0d515251e13c4575e841839
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / step2torque-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | step2torque-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 367.9 kB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
2e3945c5020a1857acf955fd8531272d75c749240841814c92c29c9deb68d27e
|
|
BLAKE2b-256 checksum How to use checksums |
58780f02fadfdcfd06ff66d1f50273afc66e302986455cc5dfd2e980dfba0ad3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / step2torque-0.1.0-cp312-cp312-macosx_10_13_universal2.whl
| Download URL | step2torque-0.1.0-cp312-cp312-macosx_10_13_universal2.whl |
|---|---|
| Size | 460.2 kB |
| Tags | CPython 3.12 macOS 10.13+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
51d53f10da0a16efab683ea5719c4a9910f815ea2c4e898721cb334159477add
|
|
BLAKE2b-256 checksum How to use checksums |
aeef94539423d526d6b1ed6a89a1bde374f3194410d935e6e540e0f3b0339f85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / step2torque-0.1.0-cp311-cp311-win_amd64.whl
| Download URL | step2torque-0.1.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 537.0 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
13c18329b0c8b70ec128842b20a4cf24b95d699117a981b69e2c922201f722b2
|
|
BLAKE2b-256 checksum How to use checksums |
3ba4ea1f47992235e73e2fae16c66ca1772ee90a446382d113eadc0141a34603
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / step2torque-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | step2torque-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 366.8 kB |
| Tags | CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
51b4379e33144b30d506c58a5e8ab96e92af66a4944ff4da2043d83d7a67c3c8
|
|
BLAKE2b-256 checksum How to use checksums |
ed22f40a2a9dcff7584b6eb8605477e9e2538d4ed0d664c799899d3428e22bce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / step2torque-0.1.0-cp311-cp311-macosx_10_9_universal2.whl
| Download URL | step2torque-0.1.0-cp311-cp311-macosx_10_9_universal2.whl |
|---|---|
| Size | 457.3 kB |
| Tags | CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
80fdd79f83e863522ce4c8adf8ec873c7b9f1a7b3ced27c0136a9696f5c88f88
|
|
BLAKE2b-256 checksum How to use checksums |
49bd3f57b3e355be7c7f364eda723ab893ef3992e6c9fa99a1a233e9637c97c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / step2torque-0.1.0-cp310-cp310-win_amd64.whl
| Download URL | step2torque-0.1.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 536.1 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b830e5d7d147bd798f540dd487df90875a3d0875d854d60b56b040fe4ebe3765
|
|
BLAKE2b-256 checksum How to use checksums |
e54c5bfddd6e9f10bc4e25d32c0f5fb1f0feadc7f5a5ba78d57734e4eef2cbdc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / step2torque-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | step2torque-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 365.4 kB |
| Tags | CPython 3.10 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
cb5c4b48596247728b5ec22f70292bb731f75193430b3192c6f94e3079f07d9d
|
|
BLAKE2b-256 checksum How to use checksums |
be6fb4f6ac818f0203b75858de986902ba0cbfa1abadbeca9ad837cbdc1ec4f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / step2torque-0.1.0-cp310-cp310-macosx_10_9_universal2.whl
| Download URL | step2torque-0.1.0-cp310-cp310-macosx_10_9_universal2.whl |
|---|---|
| Size | 455.1 kB |
| Tags | CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
5aebf05460d54d005fce08a72448f5e1fafe2fc33dd301378879042f59848740
|
|
BLAKE2b-256 checksum How to use checksums |
60de2aef98558dc5feec5adbd0229525acc41767ba9d6091e8bab78302a852f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logSecurity for step2torque 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 16 files in this release have been uploaded with provenance metadata.
Attestation for step2torque-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.