Skip to main content

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/topovec contains the main package, including the core abstractions, ansatz helpers, and optional backend integrations.
  • notebooks contains demo and workflow notebooks.
  • docs contains the Sphinx/MyST documentation sources and API reference.
  • tests contains regression and API-level tests.

Getting Started

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 export.

Install the GUI stack together with the ModernGL backend:

uv tool install '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.mgl scenes with auto-generated property controls.
  • High-resolution image export from the current render state.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

topovec-0.1.6.tar.gz (326.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

topovec-0.1.6-py3-none-any.whl (366.2 kB view details)

Uploaded Python 3

File details

Details for the file topovec-0.1.6.tar.gz.

File metadata

  • Download URL: topovec-0.1.6.tar.gz
  • Upload date:
  • Size: 326.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for topovec-0.1.6.tar.gz
Algorithm Hash digest
SHA256 5469035618aa12450199d800882288a682d8f94910d1a4486c39ff1f5a458f3c
MD5 f293b237372014e504b28a30351e8f48
BLAKE2b-256 cac0b8d09e84783a0dfae9707568d29e1de06bb1015b5369925a5429e295eb17

See more details on using hashes here.

File details

Details for the file topovec-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: topovec-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 366.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for topovec-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3d3a412f2de693ebcf146ec19c12eea336893f0833add75300f7d1e3987a0b9c
MD5 796c3ccaeeef0ec3c6b6dce202c6a4d9
BLAKE2b-256 280c99ebe8ea52f887897046c2cfeff0475230605881f2801bae335c4d91b4bd

See more details on using hashes here.

Supported by

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