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-21.2.0.tar.gz
(2.6 MB
view hashes)
Built Distributions
Close
Hashes for pyslvs-21.2.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9ebc49b1f2d05261ba60bb4cb3e0cb5e718a61ca79719dafe0d32ac0555a3b8 |
|
MD5 | cc075cd099c3eca09474d86c0e185834 |
|
BLAKE2b-256 | fcfaa0e21c44b76c468aad1a2c70f1b6cef7efbe5f5332423b502d1958e90743 |
Close
Hashes for pyslvs-21.2.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fd523403915732f64f5de7b1120e2e6cd6c5e285678dffaf32cf21ea244d3ff |
|
MD5 | 393513b3722f0554d1c7cd2eceac5a3c |
|
BLAKE2b-256 | 3271c0fc74769cc8b107b71d95bca87bef908f42ee67a2b853c2d01e134f7a9f |
Close
Hashes for pyslvs-21.2.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e43162b0e85780ff29c9dd5f22d88ca0a41acf7f3053c3dec7bea8b4495b899b |
|
MD5 | 8bea6923f41768adcf898ef58ac75224 |
|
BLAKE2b-256 | 59d48813cae0539b78473e795e3f909c9cec4a29126176af5edb41d26300c057 |
Close
Hashes for pyslvs-21.2.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e56e57c1e866b554c5787ae3f8655ec53325798534fc3f421048171dd72ad4c |
|
MD5 | cb5c89b975f1fe6c6aa108b91241518f |
|
BLAKE2b-256 | 9595b64ae70319482bd572dc8d4bc38ec1342da3331d8d418c7efc9279eefd9d |