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.3.0.tar.gz
(2.6 MB
view hashes)
Built Distributions
Close
Hashes for pyslvs-21.3.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0aff53aa97164b52064350f140ad615f788faa63bb9d0680878624a68ed8bb80 |
|
MD5 | fc5aa28d625d13821f4726cc17c19e1c |
|
BLAKE2b-256 | e873cc551d5b80c0b4e36f88b37cc2fe07db0c0a1b392da6f0e796763d1f4604 |
Close
Hashes for pyslvs-21.3.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 920d1cc6fdf0c1c1680f54ae9c20211813ec2b010666befbe80de9c70a9f7dd9 |
|
MD5 | 14bf0766ccfe79277a09792b746692a3 |
|
BLAKE2b-256 | 616165d6bfbc2d0ae56784b35b1a1eb74cadbb02174347c2527a1cb9484881ee |
Close
Hashes for pyslvs-21.3.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ce2adfd7fa01329ce5f73e8f159917c675b35f1e4180f96e0ddaca38b1678d1 |
|
MD5 | 063cbe5308d24ad89cc651d4d7d62c0c |
|
BLAKE2b-256 | 7e546a7e19a7a221bde320e50753a61eae51837af43506bd93d7f457563b3d63 |
Close
Hashes for pyslvs-21.3.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9d8b30e328d2c966ad6242d3ee0455aef02a53a26912e6f27170e454f84a0c1 |
|
MD5 | cca6348235962790287b0ef4d0843545 |
|
BLAKE2b-256 | 70387f54a181b127ff7f805f51a416e82a2b71384c2e584e56957faf21db5131 |