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.1.0.tar.gz
(93.1 kB
view hashes)
Built Distributions
Close
Hashes for pyslvs-22.1.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb6fef35dd2075a2ddcddb09947da5a540c7da19800688a6dd5339bc30f954d1 |
|
MD5 | cf45dcd35ad3e091f4f0cad09a6f8c53 |
|
BLAKE2b-256 | bb8b3162d0581b33d63dcd38482bdb7e763658799cd97dabb42c49dda3c6bc31 |
Close
Hashes for pyslvs-22.1.0-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23747ddd20c16af6ec3fd87e0594c4644ed5fdda44222739f5aeedb3f4849168 |
|
MD5 | 2f502a1fe55f111c0ffa10afc9039b02 |
|
BLAKE2b-256 | f299957033d113378b8271571bff40ac99efc3dccb967488ad48cb11176afb56 |
Close
Hashes for pyslvs-22.1.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c773fa86d3024d6abb8e06366871a01386c78b84535102c7566ab895f2e212c6 |
|
MD5 | ae8455e8a9182ef1754b96916f612149 |
|
BLAKE2b-256 | b9995b61241fc1c36b85d1e9db3290e554b7153f6357bb82b4b00640520b373d |
Close
Hashes for pyslvs-22.1.0-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da00949e8c9e398b9288f115c2c312534ab5818a293a792ad80465c20cfb928a |
|
MD5 | 0491267a52d8a693f9ec020d55e06ce5 |
|
BLAKE2b-256 | 7cf9e37a5ad999b16c6da9e48ee32190a62637fdc4ab53ca9cd336cc66482966 |
Close
Hashes for pyslvs-22.1.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7e48c193d1e0227a3310312691d4051af52aff12bec6aef463f479505f623b3 |
|
MD5 | d368f44779162a5c49bdb3cc15dc0a86 |
|
BLAKE2b-256 | d21ede519c41c00fc894a1fdcaac18430171652513d5be872ee01046f0c6ec55 |
Close
Hashes for pyslvs-22.1.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14285559e14bc082739ab3891baea815e8fb1293adfe69b8cd1edea7bc13a360 |
|
MD5 | 794dab8943603adeb8aafc03cabc1949 |
|
BLAKE2b-256 | b47c8bfd1f529c0ea41536b525c113dbc0487a41b17d7407f6741655dff38e0c |