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.6.0.tar.gz
(2.8 MB
view hashes)
Built Distributions
Close
Hashes for pyslvs-21.6.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62efd84e6570bd78af9fa0a66356d4ebb7b4bfbabdd4b56d8f33dfc35184e4b9 |
|
MD5 | ac137c09a771a60cd13fe502e6d1b190 |
|
BLAKE2b-256 | 8625ac8da99f0bc3e9ebed69a967a0841b9838d5cc2caea06ee4690d0bf621ab |
Close
Hashes for pyslvs-21.6.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88f33ee1acd66fe971ed6bc31cdde8f64b57d205d9527c4cb6a89c334b19c48a |
|
MD5 | 5da95558583df17ef75388ef4d9eca2b |
|
BLAKE2b-256 | c3a7b41acb043e7f94f30a9bf95c7c8cf0ea891742deac043186f3863051f2da |
Close
Hashes for pyslvs-21.6.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 992fc1364dbe7dae0ccbb2d24b285ac94fd942b3a05cdbc626bd3dbc49bf2e34 |
|
MD5 | a5ce8558d7c67d04924d2e9f342d6e10 |
|
BLAKE2b-256 | 50a150f60a9fdbe681f06fdc73cef0559916d5b9250eb20b01381907cd532c4b |
Close
Hashes for pyslvs-21.6.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47da8871b2e6570a3b2c8edea4470f0cbe4e8f5e0c191adc1ce77fbac4e234ae |
|
MD5 | 59a35df3291972cff0ad4dc6a8229364 |
|
BLAKE2b-256 | 41894521d4b8777cdeff374dcbaced96404521437dbde4fea9f4f6d62e560e0e |