Visualizer of 3d vector field with accent of topological solitons.
Project description
TopoVec
TopoVec is a Python toolkit for constructing, analyzing, and visualizing 3D vector and director fields, with a focus on topological solitons and liquid-crystal workflows.
Quick Start
Install TopoVec into a fresh project environment:
uv init my_topovec_project
cd my_topovec_project
uv add topovec
For all optional backends:
uv add topovec --all-extras
See docs/guides/installation.md for full installation options.
Highlights
- 3D vector-field and director-field workflows on structured grids.
- Ansatz, coordinate-system, section, and I/O helpers for field construction.
- Multiple rendering backends and notebook-oriented exploration workflows.
- A dockable PySide6 desktop viewer for browsing NPZ/SAD states via
topovec view.
Project Layout
src/topoveccontains the main package, including the core abstractions, ansatz helpers, and optional backend integrations.notebookscontains demo and workflow notebooks.docscontains the Sphinx/MyST documentation sources and API reference.testscontains regression and API-level tests.
Getting Started
- Installation: docs/guides/installation.md
- Notebooks and interactive workflows: docs/guides/notebooks.md
Desktop Viewer
topovec view is the native desktop frontend for TopoVec. It opens .npz and .sad
state files in a dockable PySide6 window with built-in topovec.mgl scenes,
auto-generated property controls, Python reproduction snippets, recent-files
history, and high-resolution image and video export.
Install the GUI stack together with the ModernGL backend:
uv tool install 'topovec[view]'
For a one-shot launch without a persistent install, request the same extra explicitly:
uv tool run --from 'topovec[view]' topovec view
Then launch the desktop viewer:
topovec view path/to/state.npz
topovec view path/to/trajectory.sad path/to/other_state.npz
On Linux, topovec view may show OpenGL compositing artifacts under Qt Wayland on
some systems. If you see overbright or unstable rendering, prefer the X11 Qt
backend:
QT_QPA_PLATFORM=xcb topovec view path/to/state.npz
Current topovec view scope:
- One active central viewport with dockable source, property, and snippet panels.
- Read-only browsing of NPZ and SAD states.
- Built-in
topovec.mglscenes with auto-generated property controls. - High-resolution image export from the current render state.
- Video export from trajectories using the live render session.
Documentation
The documentation sources live in docs/ and the canonical hosted target is
Read the Docs.
To build the documentation locally:
uv run --extra docs --extra mgl --extra marimo --extra matplotlib --extra ti --extra sad sphinx-build -b html docs docs/_build/html
Development
Developer-oriented repository notes and common operations are documented in DEVELOPMENT.md.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file topovec-0.1.9.tar.gz.
File metadata
- Download URL: topovec-0.1.9.tar.gz
- Upload date:
- Size: 533.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7488ecbdbba3d0b32e11110bef587cbdf844542c58ce5cfb0fda234c3f21130f
|
|
| MD5 |
e7d821459b9b6efe009fc0006f3bac13
|
|
| BLAKE2b-256 |
1cd29e663bafaeb3a570a78848e2b3d9819c81834003014c7ba854756eef4a19
|
File details
Details for the file topovec-0.1.9-py3-none-any.whl.
File metadata
- Download URL: topovec-0.1.9-py3-none-any.whl
- Upload date:
- Size: 584.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe2f263e3fe39ae4fb24677525da49cbda4d6368dfd255ce827925a31e693dc2
|
|
| MD5 |
cc35be2fa636d93c85ca54ca8787ee92
|
|
| BLAKE2b-256 |
8cb0b95561ec47c6f0471d6c88398e3b2fd7b899955e695e7c6497ef5758adc0
|