Skip to main content

LCSim - liquid crystal simulator.

Project description

LCSim

Liquid crystal simulation tools and command-line utilities.

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.

Recommended PyPI tool installs:

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

# Batch simulation, recommended CUDA 13 profile.
uv tool install 'lcsim[run-cu13]'

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

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

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

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 --from 'lcsim[run-cu13]' lcsim run --help
uvx --from 'lcsim[gui-cu13]' lcsim gui --help

From a repository checkout, use the same extras with uv sync --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.

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

lcsim-0.1.8.tar.gz (590.6 kB view details)

Uploaded Source

Built Distribution

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

lcsim-0.1.8-py3-none-any.whl (660.0 kB view details)

Uploaded Python 3

File details

Details for the file lcsim-0.1.8.tar.gz.

File metadata

  • Download URL: lcsim-0.1.8.tar.gz
  • Upload date:
  • Size: 590.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for lcsim-0.1.8.tar.gz
Algorithm Hash digest
SHA256 f2e13ecef1e21bd797db2be554abd50de8a13bb75aaef92625b66ff1cb38a2e7
MD5 22242ae227bcb9f85eb9bb3e19679271
BLAKE2b-256 2cf85c72c1ffa454d1dcedc29395c27cf3657e1c14f7b7a37a899a9ce9b73de8

See more details on using hashes here.

File details

Details for the file lcsim-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: lcsim-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 660.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for lcsim-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 31dc902449824c656f81de222e38ba428fefd7b2dd6f1bcd3a79b0a884a2c40d
MD5 d1f27f2078a09a1a2ac1ce2fed889039
BLAKE2b-256 6c8b6a5dd6e0fcd717f0f1ca5fb8259f9f614868a6d9a624d9e0cdd53f742f99

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