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.4.0.tar.gz
(93.2 kB
view hashes)
Built Distributions
Close
Hashes for pyslvs-22.4.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd1a5e38e639a663e98079b5bf7292a253f5496d41bfe2a2b4bb94a96799605d |
|
MD5 | 53caab83cdfa8a49b7929d13b3b6f4ba |
|
BLAKE2b-256 | d9278c1f29c570e90623a2b6c63bc7c8b15dfcef21b227d10023f0a5f6442b61 |
Close
Hashes for pyslvs-22.4.0-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a62651a6d9cc6355b42b4dc59e8bb7888deae4bf7bd87e60eb4da85ddcde0171 |
|
MD5 | 13b0281c0587bc59ddc4b6bb2ea54bc0 |
|
BLAKE2b-256 | 433fab787677e990980744012e9dafc4280495fe3e97a289d38dc482cf177a84 |
Close
Hashes for pyslvs-22.4.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3061db619ff315c801c0ad9748b0d02b0e6fba9803c7df980d586a2d7214974 |
|
MD5 | 44fefe84157933e902f222b1ae7dfad4 |
|
BLAKE2b-256 | 090e7a91df31cbdb5ff086846d244ff08f803dd7b81642476bd768f4d44ad73c |
Close
Hashes for pyslvs-22.4.0-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 101d82645bf2c5f8a9209d0866b6bf2c3159a45c579b5c1100846a5397299cb8 |
|
MD5 | 05e5c4bb91f46d3a6dd9f07f6f0858be |
|
BLAKE2b-256 | 7f50864d00d42898be4ebe36272601f1d5d7c28154ce9aca41c9b860a8a3acda |
Close
Hashes for pyslvs-22.4.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bed9e01270570ad006a27ca60abf02a7ecc0afcf6cac0de41fc6a9f276378603 |
|
MD5 | 5cfbed5944f778653c28d4d2fb944964 |
|
BLAKE2b-256 | 3d10d6a10a5f79f73a7b342ffb27e2831fddae33235ff22a02c9fbe81f532d76 |
Close
Hashes for pyslvs-22.4.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9fcb0adf3490bdb87142d4238e4250a8adbec823101d886d5b439134e2ae9c6 |
|
MD5 | 5da3911bf274855d0cbb180fcb524df2 |
|
BLAKE2b-256 | d6226c229c6438debf41210b1c89f9818d25d0a5bd4a7f598c3ab7c9cea3c377 |