Pyslvs core module. An open source planar linkage mechanism synthesis tool.
Project description
Pyslvs Libraries
A no-GUI module of mechanism synthesis system and a 2D geometric constraint solver.
Installation
Install from PyPI:
pip install pyslvs
Or install and test from source:
pip install -e .
python test
Documentation
Run the solver through an example:
from pyslvs import example_list, parse_vpoints, t_config, expr_solving
# Get example with name
expr, inputs = example_list("Jansen's linkage (Single)")
# Parse the mechanism expression into a list of joint data
vpoints = parse_vpoints(expr)
# Config joint data and control data for the solver
exprs = t_config(vpoints, inputs)
# Solve the position
result = expr_solving(exprs, vpoints, {pair: 0. for pair in inputs})
# Get the result from joint 7
x, y = result[7]
print(x, y) # -43.170055 -91.753226
The documentation of Pyslvs library is on Readthedocs.
If you have any questions, please post on GitHub issue or contact pyslvs@gmail.com.
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
pyslvs-22.6.0.tar.gz
(93.1 kB
view hashes)
Built Distributions
Close
Hashes for pyslvs-22.6.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba337222a47cfb7a195ef46f12125946e2b04c82330da7382178692f0a9156e9 |
|
MD5 | 6899d8508852583ea503a7f749cdc3a9 |
|
BLAKE2b-256 | 556eab5191d984812f6802cc824d5b9c397f638fb85586cfd42967abdce39197 |
Close
Hashes for pyslvs-22.6.0-cp310-cp310-macosx_10_15_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77a28687c0276bf408ef4e19f2f43d51a011842c742b69ba161803b9e85f926a |
|
MD5 | 51a916eee36de6e1cc9f8114e010df0b |
|
BLAKE2b-256 | 9aa83f636cff5e083926576c7728dc2aea540f8b60c1b7e9756dc06b90b7f9ab |
Close
Hashes for pyslvs-22.6.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed9fcb610b0dbf5b7efed82bd87273eadf3f861a36972d72b2613987b903d4dc |
|
MD5 | fa226a5f46658706a0115bb58fa8b424 |
|
BLAKE2b-256 | ad861f6bf2844b6ebabe083c14dc35f13ae5177220ba0a9d672ea649069c0e46 |
Close
Hashes for pyslvs-22.6.0-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e7218d9e7e3895cc67147f83dfdf669c589f39efaf99234ec563f462f6d68a8 |
|
MD5 | 3579206f228430ea73bf14a4af5ab612 |
|
BLAKE2b-256 | dbf8d483e940738b4ba07d60bce1264988cb6506840f47a65fa1858e984fd2a1 |
Close
Hashes for pyslvs-22.6.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 906dc52e7aa38dd0976ee12a509249073140562ae12fabf0399e1dcc6e0654c2 |
|
MD5 | 2d347ec59ae7f5b3059c2fe8e521db5e |
|
BLAKE2b-256 | 5c61d6c55a70d8534e1b8008cd9f1275709a77e0d4ad7453462a6d19c2be6f84 |
Close
Hashes for pyslvs-22.6.0-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a8e2e2093975f063179c384d1ef3ad39e69a77bae091a8ae35d273bb2a8ccfb |
|
MD5 | 0fe581fb6e5928291a3edd73a77d9f16 |
|
BLAKE2b-256 | 52039c97f218cb17d8580c7ea3faaad4847889e43c7e03c1b8dcd7a0a74fabca |