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.10.0.tar.gz
(2.8 MB
view hashes)
Built Distributions
Close
Hashes for pyslvs-21.10.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a1b30e43a92ba62fda2e1e7669bf67f67c144ac2179cefb12217c17a6bf081f |
|
MD5 | 9a68eb1a5cf1c66978fbfadd09927266 |
|
BLAKE2b-256 | 9aecd5465ff5b7933feef5fcd47f9e1d4ad78a139499cff47b69309f915d9d38 |
Close
Hashes for pyslvs-21.10.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1eaa53b1dd2f4c520a6a3b78a75e542e4be475f9415e779e04f02daf337c889f |
|
MD5 | 904882c71d934f95b55310ca46f5a7e5 |
|
BLAKE2b-256 | 0ca3946227898d8bc6dcfd4b94e3ed0190717321c1c4061ad77a0f6077feeb8e |
Close
Hashes for pyslvs-21.10.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e2b96dbd4ccf835a592950dc1085e4c3b6214e1ac0706953de5994a0b48cb55 |
|
MD5 | 0dcb46206d7e8c7a88deaebed35950c2 |
|
BLAKE2b-256 | 56791d19769e0b091c4d7ced17d19d81a65d557d83b2afb52fd37c5dfa27f0ea |
Close
Hashes for pyslvs-21.10.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e763d10ff2876d5ffd8e95079792627a4b4e6caa97edc954076a3ccca8eefe58 |
|
MD5 | 8c6c88f284e4ad662b4c899e2529933f |
|
BLAKE2b-256 | 3a8c397aa175e188f67aff57eb511eec92d5bb3fec14a5c832795f0f9b1e234b |