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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyslvs-22.7.0.tar.gz.
File metadata
- Download URL: pyslvs-22.7.0.tar.gz
- Upload date:
- Size: 93.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e92a67683f3627322be07f37e57d2ded2edd4dcf6773d52bcbe6e45948a5275
|
|
| MD5 |
d5b62fedf6178073d0998f531c6cb685
|
|
| BLAKE2b-256 |
bb8cc01ec1fe1487cac76b7091b9b453023a243807b10599b2d6c2aca16a9f21
|
File details
Details for the file pyslvs-22.7.0-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: pyslvs-22.7.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0f02ef7e562537279a40dd66efad151fab3b17bab52246cf007058009a9c840
|
|
| MD5 |
96719c62cf9afe563608a63f77e0179c
|
|
| BLAKE2b-256 |
6ea3ae72357772eb1399b25a8764fb9d1a32682a3ca8c058d6ca622bf56cb586
|
File details
Details for the file pyslvs-22.7.0-cp310-cp310-macosx_10_15_x86_64.whl.
File metadata
- Download URL: pyslvs-22.7.0-cp310-cp310-macosx_10_15_x86_64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.10, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c98f6071e569eb6b09156433b737585546b415cef9b5792cee465f038119f7d
|
|
| MD5 |
bb0408fff4b5d5af4047fd7695292de7
|
|
| BLAKE2b-256 |
6fb51e430bec6e51f0e252cb697aba0e65ee77992a6455683bcfa2d050962a3a
|
File details
Details for the file pyslvs-22.7.0-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: pyslvs-22.7.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5eedb8c00f8cfae5e83dcf327f03096348d38c70dfd401d76a96a9c528d963ea
|
|
| MD5 |
bdfd90c43f2d4e86f303b1cbb5d7c1e0
|
|
| BLAKE2b-256 |
b6cfc3d02957f1de8019a135f6ca6ab736b16dede40682824db975165ff4652a
|
File details
Details for the file pyslvs-22.7.0-cp39-cp39-macosx_10_15_x86_64.whl.
File metadata
- Download URL: pyslvs-22.7.0-cp39-cp39-macosx_10_15_x86_64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.9, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1aeb365f211b48898fe00b98c5548aac2c70055aa824c1b727118c1d5eacb6d4
|
|
| MD5 |
1e8d8b44e2fccbb3dbfcba0ad22cf114
|
|
| BLAKE2b-256 |
35fedc8e285bb7b8a5cb5b7605e1eb280fece863a001bb3fbcc5da0ed9042bff
|
File details
Details for the file pyslvs-22.7.0-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: pyslvs-22.7.0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3949256ec21faa8d4381e6198d931f9789e6930e51268c8fbc35aebf197048a6
|
|
| MD5 |
b27014d402884125572f86e7c6d5f85d
|
|
| BLAKE2b-256 |
63e65b4840b9309abebb9b5ab6998a6e8cc05d017f66bd0ecd2a98901ec6b2cd
|
File details
Details for the file pyslvs-22.7.0-cp38-cp38-macosx_10_15_x86_64.whl.
File metadata
- Download URL: pyslvs-22.7.0-cp38-cp38-macosx_10_15_x86_64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.8, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2026c0ba2368372794feaacdb49bc65f1f4a6b77dfb340de412dc18a517f5b91
|
|
| MD5 |
3cf9f390cb8c889263693724d0a118ad
|
|
| BLAKE2b-256 |
9d39f8d2414a28fa5b9cf4618653405a2779ba76386ff35e8005b5a99ba7cbf9
|