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.7.0.tar.gz
(93.0 kB
view hashes)
Built Distributions
Close
Hashes for pyslvs-22.7.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0f02ef7e562537279a40dd66efad151fab3b17bab52246cf007058009a9c840 |
|
MD5 | 96719c62cf9afe563608a63f77e0179c |
|
BLAKE2b-256 | 6ea3ae72357772eb1399b25a8764fb9d1a32682a3ca8c058d6ca622bf56cb586 |
Close
Hashes for pyslvs-22.7.0-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c98f6071e569eb6b09156433b737585546b415cef9b5792cee465f038119f7d |
|
MD5 | bb0408fff4b5d5af4047fd7695292de7 |
|
BLAKE2b-256 | 6fb51e430bec6e51f0e252cb697aba0e65ee77992a6455683bcfa2d050962a3a |
Close
Hashes for pyslvs-22.7.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5eedb8c00f8cfae5e83dcf327f03096348d38c70dfd401d76a96a9c528d963ea |
|
MD5 | bdfd90c43f2d4e86f303b1cbb5d7c1e0 |
|
BLAKE2b-256 | b6cfc3d02957f1de8019a135f6ca6ab736b16dede40682824db975165ff4652a |
Close
Hashes for pyslvs-22.7.0-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1aeb365f211b48898fe00b98c5548aac2c70055aa824c1b727118c1d5eacb6d4 |
|
MD5 | 1e8d8b44e2fccbb3dbfcba0ad22cf114 |
|
BLAKE2b-256 | 35fedc8e285bb7b8a5cb5b7605e1eb280fece863a001bb3fbcc5da0ed9042bff |
Close
Hashes for pyslvs-22.7.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3949256ec21faa8d4381e6198d931f9789e6930e51268c8fbc35aebf197048a6 |
|
MD5 | b27014d402884125572f86e7c6d5f85d |
|
BLAKE2b-256 | 63e65b4840b9309abebb9b5ab6998a6e8cc05d017f66bd0ecd2a98901ec6b2cd |
Close
Hashes for pyslvs-22.7.0-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2026c0ba2368372794feaacdb49bc65f1f4a6b77dfb340de412dc18a517f5b91 |
|
MD5 | 3cf9f390cb8c889263693724d0a118ad |
|
BLAKE2b-256 | 9d39f8d2414a28fa5b9cf4618653405a2779ba76386ff35e8005b5a99ba7cbf9 |