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.12.0.tar.gz
(2.8 MB
view hashes)
Built Distributions
Close
Hashes for pyslvs-21.12.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fd4be671eba5be460ee5d7b3c5a7db041278fe24e3ea6e8efecf46356118352 |
|
MD5 | 0afbe9940ec7ac07661a6d825c7d5d06 |
|
BLAKE2b-256 | 1a22551f20cc15048d2abb26bed3e578db205ff561077360ef09a20588a9c723 |
Close
Hashes for pyslvs-21.12.0-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1208535be3bb910789c7aae206a6c319fb7603f6c1ff58cab4c91491ffa0930 |
|
MD5 | 9621ff560c25bd138b13527b59275de2 |
|
BLAKE2b-256 | ed3330be5c665fbb3a16e7cc65eb42e5a55eca74a4750c6c63e03e22835201ec |
Close
Hashes for pyslvs-21.12.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 122d9f8198283ac8a2f6e597a3cbfbf7c93d694bca9b7049fe5c3a8ef50adebf |
|
MD5 | cc4c6328ccc872632bd21e81da238bad |
|
BLAKE2b-256 | e772c6609ca4c839d8b23331f8ae0e97c77e732c450f2aa0f9e3092b229f5822 |
Close
Hashes for pyslvs-21.12.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92cef80a8c42394eac55c6d7a978ea9a89d0c8fd2207ad2f60f1d5452f2d6dba |
|
MD5 | cdd165896fa26d70d424c6c3b9cd1991 |
|
BLAKE2b-256 | 48c16fb1dfe6c0f5902d111b3aee9d0f21692e79ef9fa62f50520a96d0e4d94b |
Close
Hashes for pyslvs-21.12.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c23feea74b8355947795aa8555a838e35540faecf29811423f0ffd5f41a83e5 |
|
MD5 | 5c65db79491f3a5a943e7acc3ecc9c29 |
|
BLAKE2b-256 | 6301b9cae8e11b06a4e154040568182c73a0e8798de9367c30bc7250912a71ca |
Close
Hashes for pyslvs-21.12.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e15332e99e802cd906b74e438bd30fb888fdc24470f4dc265b6c92a537b94a4 |
|
MD5 | e48884707a6db6624270d5581c279196 |
|
BLAKE2b-256 | feb0dbe9f0a4c6d2a933f33c1bc758e5ceb2f184a879fb2fd4a9f2c1837dc7f3 |