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.5.0.tar.gz
(93.1 kB
view hashes)
Built Distributions
Close
Hashes for pyslvs-22.5.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef38a8a7227a0c2dc958e8d40c2b52749fefa471ba718a86d68579c17f2e530e |
|
MD5 | df189370b09edbcf74efcd02a48e8434 |
|
BLAKE2b-256 | 2183cdf36c8d32819d1bc9509c3a525561aed105dfb7ae3ea52d559312a9807f |
Close
Hashes for pyslvs-22.5.0-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 119eee6e6c47a08612be1a94caceb57b0341d844bbc381d4873913b99d5699a0 |
|
MD5 | 0ae3705c566360451c2511a1fdc96089 |
|
BLAKE2b-256 | 052eb5e27c570ec6da7915d26a8b49fe8655b32bc4bfe3669023296342d17029 |
Close
Hashes for pyslvs-22.5.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00231e48c3a46a939c5c3c30fd550ea97dcf8eae9ee8b2846621525e0e3cfab2 |
|
MD5 | ab2f6857eb0c04996a4f84ba10fdc196 |
|
BLAKE2b-256 | 0ca73644e98ea792612f641eacbb2d1894fed52333a115b8a81e21fc9165bb39 |
Close
Hashes for pyslvs-22.5.0-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7684bd16235970946db8e3021316a9899fb0073abc708ae8e918a49c91213ae |
|
MD5 | c7b2dbfa36b32cdb61783497ac7a6d37 |
|
BLAKE2b-256 | a07f159f15604f288e0263be755710477822d465e2cea04baef9cd734c4ac152 |
Close
Hashes for pyslvs-22.5.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd9b615a5be063527793a8bf186265868c4009cd8138479d157490fc48641835 |
|
MD5 | 7765fac0c3d7f45d2cad1c355315e190 |
|
BLAKE2b-256 | 49905f34e40b93653489123a588c82afaa09a5a0468b85f1ec79802b50b9e5f0 |
Close
Hashes for pyslvs-22.5.0-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a9c0aef4081b2e3396ef47c469486e3ee5bf7869e510fd48ce53cf715e03a88 |
|
MD5 | 4b2cd4dfed096073796679e93488a282 |
|
BLAKE2b-256 | aa4cc7ff2f96a4da7e88cbcb73bc1a8f49d305f394f132caa0b849007d6d6955 |