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
# 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.1.0.tar.gz
(2.6 MB
view hashes)
Built Distributions
Close
Hashes for pyslvs-21.1.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab4cba1c6b51ad54be3c858ce822781fa9ca7108117b77a2aec906a0823a761a |
|
MD5 | e51b04a31cd5a2d98f515649a19853b0 |
|
BLAKE2b-256 | e2ec93b1dc085102ea456db7aef1680649e14ab861068bfa0636693f9f98c557 |
Close
Hashes for pyslvs-21.1.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5595af3e828981b6fe744138748b94a779bfed946795dd11062352cdd797f3db |
|
MD5 | 6c9a28e76e52ae0621d12dd4859a16fa |
|
BLAKE2b-256 | b6871bc58ace1e7ca1a70f8f6a8b4c23da5b50fff635aec635f7cc4c7c3f093f |
Close
Hashes for pyslvs-21.1.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 011916f0a0442ccbe8a6c839a2286cdede0b5dd5a05ce87214fec0cc2b07f14e |
|
MD5 | 904f220590a746b2794917b5ccbaf289 |
|
BLAKE2b-256 | 01cc7e5992eb6789d6a37c4d821dcce62e12e9083b16900bce9f0d4b7392a466 |
Close
Hashes for pyslvs-21.1.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8d89b02e3621645cca033e7b14d0156c0d2e0e1d5d3f18d4cfbe89b4ffd1c98 |
|
MD5 | 1aebd1e74ac708d1213b3dfc32a9ff76 |
|
BLAKE2b-256 | 5b7b678a2b1dc6437b944e1420dbba4eb9b868bc125e5e4b06a6da47caaa81fa |
Close
Hashes for pyslvs-21.1.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37096688c6d23b2de1dfacf75d463cfce90d32040d9f4825fa8521b6f4e11f96 |
|
MD5 | 1c42ac4cac990b798e0bdac0cd512272 |
|
BLAKE2b-256 | d639940b03c8cac72eb116bf21d8a851f6ea7115832a10711a1d61bf179ec938 |
Close
Hashes for pyslvs-21.1.0-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bee005a38e62de9f222e6039abff24290c0c6ede447ee4c4ab6029154a07ac39 |
|
MD5 | ebfcc4930732277e9f8be894594f6f14 |
|
BLAKE2b-256 | 765aa3a9f2508c2089c6f39955bebc64f8f83efbb84f042752efd0aecf028e72 |