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.4.0.tar.gz
(2.8 MB
view hashes)
Built Distributions
Close
Hashes for pyslvs-21.4.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d53163f35e5b118440de2bea2dd6ff19e821bd825f52da9af4f17495bc022a9a |
|
MD5 | 3e3cdd5348bc444d394847e053fff856 |
|
BLAKE2b-256 | 0478d305d75a29953a9085b106f0ffe20200c1d6dd001a45aa5c41a6db0b8b3a |
Close
Hashes for pyslvs-21.4.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c688bbb1d2486fff00887ece91e7728a35a6732eb0936dd6fe13bb9980be687 |
|
MD5 | e4ffcb0714e82ce940d955229c32821e |
|
BLAKE2b-256 | 27af4cc9a3040cdc0035f9f588823457fc7fe4da7fce1239e76102de7833655c |
Close
Hashes for pyslvs-21.4.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 654b719b132b7f49d72132307fa8e2d00c06b3245e1fa0d6876b3265fd5d125e |
|
MD5 | 75af9553d2ec7961ddc68f39b78e947f |
|
BLAKE2b-256 | c979079085986fb66d005bfc94183cdd7b00b63ee7cc81c66f52398e1cb580bb |
Close
Hashes for pyslvs-21.4.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e519871eef2e2a3766b8ad9c3b0a2df74ce86b32c734e742ab789ff4fdaacb7b |
|
MD5 | e06f191247ef84bcfcbc27aa8048351a |
|
BLAKE2b-256 | f6d454f019d5e57fff6c10f06c41d944231e63ad52c3eece6329d92625091cd4 |