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.7.0.tar.gz
(2.8 MB
view hashes)
Built Distributions
Close
Hashes for pyslvs-21.7.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b41f308a50b2961e360dc78c5674fd9bd3f573074fabd4dc46f58087d6d2aa78 |
|
MD5 | ab4d18fe259b0c08ada8bb3b7f6b8799 |
|
BLAKE2b-256 | bf2ff27f1b76186a472f810097fb0b96fc36e15646d16a31cae55c2b3ba8de6c |
Close
Hashes for pyslvs-21.7.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d102b06f0d85be6bcf568b0607ecfc365011fdb48d2d7db10ae32c53e71695f |
|
MD5 | d5344a6b161d19d52aacfc2a920b5fe6 |
|
BLAKE2b-256 | 5c5506b6a48458a1ffdb4c67ae9bec9e118492b3f072fef27a2036921aed8fcd |
Close
Hashes for pyslvs-21.7.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13d22a4d0811ab320c52e19eca511929f3ed278a5f437ade0a75bc6aafc89500 |
|
MD5 | 7a2ee7b2dff8898b301ac9a9d7111bb4 |
|
BLAKE2b-256 | d250ecdd175b515f239a77b017d50f7b9d9af46deb91e4511ad01ff9ea1da23b |
Close
Hashes for pyslvs-21.7.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c0adf73e8b805cdcdb031ccd73f3bfb8bc8a22a077191e48e9a410b79a05321 |
|
MD5 | 7c2916b4511cf73df87f93a2a9d20039 |
|
BLAKE2b-256 | 2392f609073e0010e1d589fe8c34c687aa5eaee4c9edc2b5114246403229b4bd |