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.2.0.tar.gz
(93.1 kB
view hashes)
Built Distributions
Close
Hashes for pyslvs-22.2.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9594bc64157308ba22dc4cf0730281b78653a186c6921a6166c785ebd251178 |
|
MD5 | af3b4bdecaa43cd8d13eaadaebb39a87 |
|
BLAKE2b-256 | d59c2928c8ba1f55aa192311f9d562bfd63a553ef9fa2a741b835bd15e8afe93 |
Close
Hashes for pyslvs-22.2.0-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d095f607dec28385186e8dc836bc58193280f3423766947f2a9bf9ed3199328e |
|
MD5 | 52c9f380b18f85d50f06c0264843669e |
|
BLAKE2b-256 | 2e8ee90bdef865266eab6626265e829b9543275cf21c5b5de8192399e5f61b46 |
Close
Hashes for pyslvs-22.2.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3079f0dd507992b2a19804bf33558093fcf48be81e01a21454b779cff4f58c91 |
|
MD5 | 22466ad761715d3fc8dd011328119162 |
|
BLAKE2b-256 | 0eec58965d6130661f75a010b18ba9a1eeabb70d0c8264f2aebad894c28017ee |
Close
Hashes for pyslvs-22.2.0-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a4e92cccb77f5030a0bde455df1975b17272177446911a3fd9b0c81d945e6ae |
|
MD5 | f01e73e9f7b8c7f277be96e400bc9af0 |
|
BLAKE2b-256 | 0d832952a95bfeb70aea42ba5aee0a200d05f7b7be1a95b8f46c62e668fbd147 |
Close
Hashes for pyslvs-22.2.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d87e827521940eac74ac7f8f66ce74aff69076b9cd20f7136308c2902f2a454 |
|
MD5 | afd89fd448b2ce7626a74afabb951f55 |
|
BLAKE2b-256 | 75b2f1a0bc4f64f896bd7e18e02273a024cab7d9d915aa37faf1f72fad73dbee |
Close
Hashes for pyslvs-22.2.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e97b6c4fdf67be33f918578dec2cf01a00668eb711f525ba675028233a09383 |
|
MD5 | f12b01ac258fc0374fb26252d7dbe191 |
|
BLAKE2b-256 | 69d2660975d246ba31acd235075ead97bac6466a2a1ae3242acb18677a50915a |