Skip to main content
PyPI latest version License

Hienoi is a framework offering an intuitive visual programming experience based around simple 2D particle physics.

Features

  • 2D particle simulation.

  • GUI with OpenGL viewport.

  • user-friendly API.

  • support for per-particle user attributes.

  • fast when directly operating particles through NumPy.

  • compatible with both Python 2 and Python 3.

Usage

>>> import hienoi.application
>>> from hienoi import Vector2f
>>> def initialize_particle_simulation(sim):
...     sim.add_particle(position=Vector2f(25.0, 0.0))
>>> def update_particle_simulation(sim):
...     particle = sim.particles[0]
...     particle.force -= particle.position
>>> hienoi.application.run(
...     particle_simulation={
...         'initialize_callback': initialize_particle_simulation,
...         'postsolve_callback': update_particle_simulation,
...     })

More commented examples can be found in the demos folder.

Installation

$ pip install hienoi

Demos

intro

intro

equilibrium

equilibrium

trail

trail

orbit

orbit

Hotkeys

space + LMB

move view

space + RMB

zoom view

d

change the display mode of the particles

f

fit the view to the scene

g

show/hide the grid

r

reset the view

Author

Christopher Crouzet <christophercrouzet.com>

Metadata

Release files for hienoi 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hienoi 0.2.0
File Size Uploaded
hienoi-0.2.0.tar.gz 44.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hienoi 0.2.0
File Interpreter ABI Platform
hienoi-0.2.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 85.5 kB

Release files / hienoi-0.2.0.tar.gz

Download URL hienoi-0.2.0.tar.gz
Size 44.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8ad69e33c1dfc9a649cee1977a25dca1c36a91d278bcaabc1e73607a498151a2
BLAKE2b-256 checksum
How to use checksums
1c788fed15186d590f26929c8de3834feb1d17c4f22d0940710476ca8f0f8042
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / hienoi-0.2.0-py2.py3-none-any.whl

Download URL hienoi-0.2.0-py2.py3-none-any.whl
Size 40.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
75d96c4d789e97ec0ff827ab38dc10274e0c279af9870260cc4cef87fad9b59e
BLAKE2b-256 checksum
How to use checksums
970fb29d6dbca5b203331d59b4c3206e0e3c6d3f601bd69056e55cc43eb33c9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page