https://github.com/tjstienstra/symmeplot
Sympy Mechanics Plotter
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.2%) to scientific vocabulary
Keywords
Repository
Sympy Mechanics Plotter
Basic Info
- Host: GitHub
- Owner: tjstienstra
- License: mit
- Language: Python
- Default Branch: main
- Homepage: https://tjstienstra.github.io/symmeplot/
- Size: 2.22 MB
Statistics
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 9
- Releases: 2
Topics
Metadata Files
README.md
SymMePlot
SymMePlot is a visualization tool designed for mechanical systems created using the
mechanics module in SymPy, sympy.physics.mechanics.
The sympy.physics.mechanics module allows users to define mechanical systems
symbolically to derive their analytic equations of motion. During this process, users
can construct various objects such as reference frames, points, bodies, and more.
SymMePlot enhances this process by providing a way to visualize these constructed objects. It integrates with visualization backends like Matplotlib, and creates visual representations based on the parametrization of the symbols involved in the system.
SymMePlot is available on both PyPI and Conda-Forge. To install the latest release
including Matplotlib from PyPI, run: ::
bash
pip install symmeplot matplotlib
Usage
Most of your programs are expected to follow this structure:
1. Creation of the system in sympy using the objects from sympy.physics.mechanics.
2. Initiate a Scene with the inertial frame and absolute origin.
3. Add your frames, vectors and points to the plotter instance.
4. Lambdify and evaluate the system.
5. Plot the system.
Below is a basic example of how this looks in practise: ```python import numpy as np from symmeplot.matplotlib import Scene3D from sympy.physics.mechanics import Point, ReferenceFrame, dynamicsymbols
Create the system in sympy
N = ReferenceFrame("N") A = ReferenceFrame("A") q = dynamicsymbols("q") A.orientaxis(N, N.z, q) N0 = Point("N0") v = 0.2 * N.x + 0.2 * N.y + 0.7 * N.z A0 = N0.locatenew("A_0", v)
Create the instance of the scene specifying the inertial frame and origin
scene = Scene3D(N, N0, scale=0.5)
Add the objects to the system
scene.addvector(v) scene.addframe(A, A0, ls="--") scene.add_point(A0, color="g")
Evaluate the system.
scene.lambdifysystem(q) scene.evaluatesystem(0.5)
Plot the system
scene.plot()
You can also animate this system.
ani = scene.animate(lambda q: (q,), frames=np.linspace(0, 2 * np.pi, 60)) ani.save("animation.gif", fps=30) ```

Owner
- Name: Timo Stienstra
- Login: TJStienstra
- Kind: user
- Company: Delft University of Technology
- Website: tjstienstra.github.io
- Repositories: 3
- Profile: https://github.com/TJStienstra
Mechanical Engineering student at Delft University of Technology
GitHub Events
Total
- Issues event: 5
- Delete event: 2
- Issue comment event: 17
- Push event: 13
- Pull request event: 5
- Fork event: 1
- Create event: 3
Last Year
- Issues event: 5
- Delete event: 2
- Issue comment event: 17
- Push event: 13
- Pull request event: 5
- Fork event: 1
- Create event: 3
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 2
- Total pull requests: 1
- Average time to close issues: about 16 hours
- Average time to close pull requests: 13 minutes
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 1.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 2
- Pull requests: 1
- Average time to close issues: about 16 hours
- Average time to close pull requests: 13 minutes
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 1.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- tjstienstra (4)
- moorepants (2)
- Peter230655 (1)
Pull Request Authors
- tjstienstra (10)
- TJStienstra (5)
- moorepants (1)
- MarkVerbeek91 (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 16 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 1
pypi.org: symmeplot
SymPy Mechanics Plotter
- Documentation: https://symmeplot.readthedocs.io/
- License: MIT License
-
Latest release: 0.2.1
published about 2 years ago
Rankings
Maintainers (1)
Dependencies
- actions/checkout v3 composite
- actions/setup-python v4 composite
- ad-m/github-push-action master composite
- pyvista/setup-headless-display-action v2 composite
- tlambert03/setup-qt-libs v1 composite
- release-drafter/release-drafter v5 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite
- pypa/gh-action-pypi-publish v1.8.11 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite
- pyvista/setup-headless-display-action v2 composite
- tlambert03/setup-qt-libs v1 composite
- alabaster 0.7.13 develop
- appnope 0.1.3 develop
- asttokens 2.2.1 develop
- attrs 22.2.0 develop
- autodocsumm 0.2.10 develop
- babel 2.12.1 develop
- backcall 0.2.0 develop
- beautifulsoup4 4.12.0 develop
- bleach 6.0.0 develop
- certifi 2022.12.7 develop
- cffi 1.15.1 develop
- charset-normalizer 3.1.0 develop
- colorama 0.4.6 develop
- comm 0.1.3 develop
- debugpy 1.6.6 develop
- decorator 5.1.1 develop
- defusedxml 0.7.1 develop
- docutils 0.18.1 develop
- exceptiongroup 1.1.1 develop
- executing 1.2.0 develop
- fastjsonschema 2.16.3 develop
- idna 3.4 develop
- imagesize 1.4.1 develop
- importlib-metadata 6.1.0 develop
- iniconfig 2.0.0 develop
- ipykernel 6.22.0 develop
- ipython 8.11.0 develop
- ipywidgets 8.0.5 develop
- jedi 0.18.2 develop
- jinja2 3.1.2 develop
- jsonschema 4.17.3 develop
- jupyter-client 8.1.0 develop
- jupyter-core 5.3.0 develop
- jupyter-sphinx 0.4.0 develop
- jupyterlab-pygments 0.2.2 develop
- jupyterlab-widgets 3.0.6 develop
- markupsafe 2.1.2 develop
- matplotlib-inline 0.1.6 develop
- mistune 2.0.5 develop
- nbclient 0.7.2 develop
- nbconvert 7.2.10 develop
- nbformat 5.8.0 develop
- nest-asyncio 1.5.6 develop
- pandocfilters 1.5.0 develop
- parso 0.8.3 develop
- pexpect 4.8.0 develop
- pickleshare 0.7.5 develop
- pkgutil-resolve-name 1.3.10 develop
- platformdirs 3.1.1 develop
- pluggy 1.0.0 develop
- prompt-toolkit 3.0.38 develop
- psutil 5.9.4 develop
- ptyprocess 0.7.0 develop
- pure-eval 0.2.2 develop
- pycparser 2.21 develop
- pygments 2.14.0 develop
- pyrsistent 0.19.3 develop
- pytest 7.2.2 develop
- pytz 2022.7.1 develop
- pywin32 305 develop
- pyzmq 25.0.2 develop
- requests 2.28.2 develop
- ruff 0.0.258 develop
- snowballstemmer 2.2.0 develop
- soupsieve 2.4 develop
- sphinx 6.1.3 develop
- sphinx-rtd-theme 1.2.0 develop
- sphinxcontrib-applehelp 1.0.4 develop
- sphinxcontrib-devhelp 1.0.2 develop
- sphinxcontrib-htmlhelp 2.0.1 develop
- sphinxcontrib-jquery 4.1 develop
- sphinxcontrib-jsmath 1.0.1 develop
- sphinxcontrib-qthelp 1.0.3 develop
- sphinxcontrib-serializinghtml 1.1.5 develop
- stack-data 0.6.2 develop
- tinycss2 1.2.1 develop
- tomli 2.0.1 develop
- tornado 6.2 develop
- traitlets 5.9.0 develop
- urllib3 1.26.15 develop
- wcwidth 0.2.6 develop
- webencodings 0.5.1 develop
- widgetsnbextension 4.0.6 develop
- contourpy 1.0.7
- cycler 0.11.0
- fonttools 4.39.2
- importlib-resources 5.12.0
- kiwisolver 1.4.4
- matplotlib 3.7.1
- mpmath 1.3.0
- numpy 1.24.2
- packaging 23.0
- pillow 9.4.0
- pyparsing 3.0.9
- python-dateutil 2.8.2
- six 1.16.0
- sympy 1.11.1
- zipp 3.15.0
- autodocsumm ^0.2.10 doc
- ipykernel ^6.22.0 doc
- jupyter-sphinx ^0.4.0 doc
- sphinx ^6.1.3 doc
- sphinx-rtd-theme ^1.2.0 doc
- ruff ^0.0.258 lint
- matplotlib ^3.7.1
- numpy ^1.24.2
- python ^3.8
- sympy ^1.11.1
- pytest ^7.2.2 test