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.5.0.tar.gz
(2.8 MB
view hashes)
Built Distributions
Close
Hashes for pyslvs-21.5.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc4caf5d6103120465b56c0e1e9c32efa94d74947a38990e8350b60114ada231 |
|
MD5 | 10fd4046a8c619adc7748abc8620aa93 |
|
BLAKE2b-256 | b39802e6ad850e9e7cdb021ab4e401262406b9baee3096e09721359fb990e666 |
Close
Hashes for pyslvs-21.5.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04c5ac0676c556c87bbd0c9ddcc87b229064937b48ff64745102ee013d121cb6 |
|
MD5 | 1d79c4d2bd1f26494dc7295223812694 |
|
BLAKE2b-256 | ca091d4b1803636b5797e3fe5f2554b56ceb584bb9dd825c49a8b22f3e0769e6 |
Close
Hashes for pyslvs-21.5.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7cdf34932d5086b5b183dbeed6c2a7693e4610d9dd8f720873ba784da877a4c |
|
MD5 | a846c8f13a42a8c7c1b87b686fc98a06 |
|
BLAKE2b-256 | 58007138ec4ad4ab00de9496e97108f064c5da441fb29a8a0624fe0018758fa2 |
Close
Hashes for pyslvs-21.5.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9510160f1290ba3c67409eabcf5f28a81888db139cdf9556d02c61bf2560a699 |
|
MD5 | 6eb69bb6f8cd949288c64891dc51d9e6 |
|
BLAKE2b-256 | 0bebab3200b57c15b9b2c84b03a5dab8b9cfcf725485906b3a3e9f497a26efbb |