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.8.0.tar.gz
(2.8 MB
view hashes)
Built Distributions
Close
Hashes for pyslvs-21.8.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 137bf367db283ffd71a89cb5813b7e410d8aabcc2dbd91ec5f9dba15583814a7 |
|
MD5 | e1ae2b4d993f6e83531d4c319938b915 |
|
BLAKE2b-256 | d85d08c62440405beba630516046b35137f0b6c7b6993b703101de655e4c082c |
Close
Hashes for pyslvs-21.8.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb88b6b358388611a9675c2c2f4fa4c4456feba6b7d92f770c81db53289aea34 |
|
MD5 | c77a5b4dd1c82afc7a35a637a19fbe66 |
|
BLAKE2b-256 | 4cf409ae5488bf3aaa2b473d37a850eb7ad472b0170bbfe1f7cd6afe8dbd600c |
Close
Hashes for pyslvs-21.8.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec9f3195d295fb4d3e617ec85ad8b5de1cd4e75d9815a9962ce2d7232e03a35a |
|
MD5 | 4264a64e738a931e85c92dc6f0f7182d |
|
BLAKE2b-256 | f999f6e52b217933d7d71d7b4bedd368bb4b7d22b99e55e43167cd8de4b555aa |
Close
Hashes for pyslvs-21.8.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afb634f61aa197008bbd99b728f1fda2d7d48ba051ab752ccf76014a79f2a9d5 |
|
MD5 | cdfba2b19ff626bde87d74eabb303a90 |
|
BLAKE2b-256 | 196603aa58d3438d8d84bccc17d3f979f15f56c84d11d3a7f1f2362f149b92e6 |