Skip to main content

LCSim

Liquid crystal simulation tools and command-line utilities.

The documentation index covers physical models and supported workflows. Implementation references are in doc/developer.

Installation

LCSim is published on PyPI. For regular use, install it as a uv tool. Detailed OS-specific instructions:

The default dependency set is intentionally light: it is enough for the lcsim dispatcher and shared Python code, but not for running simulations, opening the GUI, viewing files, or rendering videos. Install the profile for the workflow you actually use.

Use Python 3.13 for tool installs. The current Taichi-based viewer/render stack does not support Python 3.14, and older LCSim releases had incomplete Python compatibility metadata. Keep the >=0.1.10 lower bound unless you intentionally install an older release.

Recommended PyPI tool installs:

# All runtime modes, recommended CUDA 13 profile.
uv tool install --python 3.13 'lcsim[all-cu13]>=0.1.10'

# Batch simulation, recommended CUDA 13 profile.
uv tool install --python 3.13 'lcsim[run-cu13]>=0.1.10'

# Live simulation GUI, recommended CUDA 13 profile.
uv tool install --python 3.13 'lcsim[gui-cu13]>=0.1.10'

# Saved-file viewer with LCSIM scenes and TopoVec scenes, no simulation runtime.
uv tool install --python 3.13 'lcsim[view]>=0.1.10'

# TopoVec-based renderer for SAD/TopoVec state files, no simulation runtime.
uv tool install --python 3.13 'lcsim[render]>=0.1.10'

Use view-lite or render-lite when you want saved-file tools without TopoVec CUDA render scenes. Use all-cu12, run-cu12, or gui-cu12 only when the calculation runtime must stay on the CUDA 12 package family. Legacy lcsrender still needs a system ffmpeg executable on PATH.

For one-off execution without installing persistent commands:

uvx --python 3.13 --from 'lcsim[run-cu13]>=0.1.10' lcsim run --help
uvx --python 3.13 --from 'lcsim[gui-cu13]>=0.1.10' lcsim gui --help

From a repository checkout, use the same extras with uv sync --python 3.13 --extra ... and run commands with uv run ....

Command-line tools

The primary public entry point is now lcsim:

lcsim --help
lcsim run --help
lcsim gui --help
lcsim view --help
lcsim extract --help
lcsim render --help

Typical usage:

# Run an off-screen simulation.
lcsim run --preset consym --history HISTORY.json --period 10 --output --sad

# Open the interactive viewer.
lcsim gui

# View a saved simulation state; read-only Settings appear beside Data Sources.
lcsim view run.sad

# Extract selected SAD frames to NPZ snapshots.
lcsim extract run.sad --time 1.0 --output-dir frames

# Render a SAD file with simulation-time video sampling.
lcsim render run.sad --scene "Jones RGB" --output run.mp4 --fps 25

Inside lcsim view, use File -> Save Current State NPZ... to save the selected LCSIM SAD frame or NPZ entry as a full snapshot NPZ file.

Mode documentation:

  • lcsrun: use lcsim run ... for new workflows.
  • lcsgui: use lcsim gui ... for new workflows.
  • lcsim extract: extract selected SAD frames to NPZ snapshots.
  • lcsrender: legacy renderer; use lcsim render ... for the new renderer.
  • lcsoptics: optional optics utility. Install the optics extra if you want to use it.

Legacy commands remain available as compatibility wrappers, but they print a deprecation notice:

  • lcsrun: use lcsim run ... for new workflows.
  • lcsgui: use lcsim gui ... for new workflows.
  • lcsextract: use lcsim extract ... for new workflows.
  • lcsrender: use lcsim render ... for the new renderer.

Legacy lcsrender requires a system ffmpeg executable on PATH; the new lcsim run path writes SAD and leaves video generation to lcsim render.

Metadata

Release files for lcsim 0.2.1

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

Source distribution (sdist)

Source distribution for lcsim 0.2.1
File Size Uploaded Provenance Actions
lcsim-0.2.1.tar.gz 815.1 kB Without provenance Details for lcsim-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lcsim 0.2.1
File Interpreter ABI Platform Actions
lcsim-0.2.1-py3-none-any.whl Python 3 none any Details for lcsim-0.2.1-py3-none-any.whl

Total release size: 1.7 MB

Release files / lcsim-0.2.1.tar.gz

Download URL lcsim-0.2.1.tar.gz
Size 815.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9ed1d1552da4e48962d5b4caa432df044258f92d4672209e7ce6d5921d748e78
BLAKE2b-256 checksum
How to use checksums
6e2b34346b8dc5aa8004aa1ef55e0703e276e6bab5d712006cac90970e64d6e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / lcsim-0.2.1-py3-none-any.whl

Download URL lcsim-0.2.1-py3-none-any.whl
Size 905.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc6cdafd7929220fc11f2a9d05a02b2f3b0ee1b71c51da6a36c268210a58c846
BLAKE2b-256 checksum
How to use checksums
d18b2ac19a4c0f3de9ae89b34195f86d3aa2a24605a23c043f98c50df4da39d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Security for lcsim 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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