Skip to main content

Pyslvs core module. An open source planar linkage mechanism synthesis tool.

Project description

Build status Build status Language grade: Python PyPI

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


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)

Uploaded Source

Built Distributions

pyslvs-21.1.0-cp39-cp39-win_amd64.whl (3.9 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

pyslvs-21.1.0-cp39-cp39-macosx_10_14_x86_64.whl (1.8 MB view hashes)

Uploaded CPython 3.9 macOS 10.14+ x86-64

pyslvs-21.1.0-cp38-cp38-win_amd64.whl (4.0 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

pyslvs-21.1.0-cp38-cp38-macosx_10_14_x86_64.whl (1.8 MB view hashes)

Uploaded CPython 3.8 macOS 10.14+ x86-64

pyslvs-21.1.0-cp37-cp37m-win_amd64.whl (3.8 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

pyslvs-21.1.0-cp37-cp37m-macosx_10_14_x86_64.whl (1.8 MB view hashes)

Uploaded CPython 3.7m macOS 10.14+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page