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-22.3.0.tar.gz
(93.2 kB
view hashes)
Built Distributions
Close
Hashes for pyslvs-22.3.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c25e1651254517cc75a09cbd4c0632de74714aeb2e6293836311a9365b021f37 |
|
MD5 | 4627a72f1d57cff4c869f6e3751224cf |
|
BLAKE2b-256 | 3d994dd33922837dbba2ce9bdd14a831315176177778c44ee0f56874f1d2bea4 |
Close
Hashes for pyslvs-22.3.0-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f98e53c8d058ffe3036fa12208db1d500bfb413f8f27a4c1872ec0d4616dba36 |
|
MD5 | 0a75e0c3888f5de6b1e6494e0b937ae5 |
|
BLAKE2b-256 | 7169f7adf98046952b19911e3908edf2a27ff1869a202a2ee4c90e3c0e9399b7 |
Close
Hashes for pyslvs-22.3.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 034c1610ad4e633d2efcf623037ddca6fc4b37721c015cf21be60af3c6ea7cd4 |
|
MD5 | 252273e3240b4d215b138768ac535c93 |
|
BLAKE2b-256 | 6698ef97a5044466d2e2a629af3ed96a22c2bb59b14370a15d511303a89c77ea |
Close
Hashes for pyslvs-22.3.0-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60119ebfd600a29e035c7dd1ec81de5e6616ba9316f04c8dc5c17a2a059aa254 |
|
MD5 | 6601402f8c52501d2e31ed7483c738b9 |
|
BLAKE2b-256 | 0ba6739da10e6b72e677e834e774f8e958305ec2d699e8c03d2cfe1098912851 |
Close
Hashes for pyslvs-22.3.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48db8b3b2d1ec78fe85ba4b4df5c03662a7f6ca1845da1b7449d8b8d2c238511 |
|
MD5 | 03d3a076140e3bc946bc96ae278d10f8 |
|
BLAKE2b-256 | 70468c048c08922487fcdb8f281b312151dfbf38ff9b7b178311afc910a480ff |
Close
Hashes for pyslvs-22.3.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e99cbf244f2a29420cfe15fd46d75cdddb5fe8b9937fdb4a7574de6997bd3934 |
|
MD5 | 6174eba1d24572f0e662f377137420d1 |
|
BLAKE2b-256 | d0a0026e5eab1cb455385952e29c1793d8803873e0445e641fc766284fb2ff30 |