lcsim 0.1.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lcsim-0.1.4/.gitignore +24 -0
- lcsim-0.1.4/LICENSE.md +9 -0
- lcsim-0.1.4/PKG-INFO +218 -0
- lcsim-0.1.4/README.md +100 -0
- lcsim-0.1.4/lcsim/Roboto-Bold.ttf +0 -0
- lcsim-0.1.4/lcsim/__init__.py +77 -0
- lcsim-0.1.4/lcsim/bin/__init__.py +1 -0
- lcsim-0.1.4/lcsim/bin/_deprecation.py +18 -0
- lcsim-0.1.4/lcsim/bin/bench.py +1524 -0
- lcsim-0.1.4/lcsim/bin/consym_certify.py +101 -0
- lcsim-0.1.4/lcsim/bin/consym_frozen_q_energy_sweep.py +270 -0
- lcsim-0.1.4/lcsim/bin/energy.py +85 -0
- lcsim-0.1.4/lcsim/bin/extract.py +74 -0
- lcsim-0.1.4/lcsim/bin/gui.py +16 -0
- lcsim-0.1.4/lcsim/bin/optics.py +458 -0
- lcsim-0.1.4/lcsim/bin/render.py +463 -0
- lcsim-0.1.4/lcsim/bin/run.py +17 -0
- lcsim-0.1.4/lcsim/bin/sad.py +137 -0
- lcsim-0.1.4/lcsim/bin/tests.py +169 -0
- lcsim-0.1.4/lcsim/cli.py +109 -0
- lcsim-0.1.4/lcsim/compserver.py +38 -0
- lcsim-0.1.4/lcsim/consym_energy_validation.py +121 -0
- lcsim-0.1.4/lcsim/gui/__init__.py +48 -0
- lcsim-0.1.4/lcsim/gui/beam.py +690 -0
- lcsim-0.1.4/lcsim/gui/catalogs.py +45 -0
- lcsim-0.1.4/lcsim/gui/cli.py +260 -0
- lcsim-0.1.4/lcsim/gui/concentration.py +382 -0
- lcsim-0.1.4/lcsim/gui/config.py +300 -0
- lcsim-0.1.4/lcsim/gui/controller.py +966 -0
- lcsim-0.1.4/lcsim/gui/controls.py +442 -0
- lcsim-0.1.4/lcsim/gui/optics.py +46 -0
- lcsim-0.1.4/lcsim/gui/properties.py +64 -0
- lcsim-0.1.4/lcsim/gui/qt_runtime.py +953 -0
- lcsim-0.1.4/lcsim/gui/render_controls.py +31 -0
- lcsim-0.1.4/lcsim/gui/runtime.py +810 -0
- lcsim-0.1.4/lcsim/gui/scenes.py +95 -0
- lcsim-0.1.4/lcsim/gui/settings_ui.py +185 -0
- lcsim-0.1.4/lcsim/gui/source.py +189 -0
- lcsim-0.1.4/lcsim/gui/specs.py +264 -0
- lcsim-0.1.4/lcsim/gui/window.py +1727 -0
- lcsim-0.1.4/lcsim/history_reader.py +326 -0
- lcsim-0.1.4/lcsim/install_guidance.py +181 -0
- lcsim-0.1.4/lcsim/integrator.py +1442 -0
- lcsim-0.1.4/lcsim/integrator_ui.py +462 -0
- lcsim-0.1.4/lcsim/io/__init__.py +5 -0
- lcsim-0.1.4/lcsim/io/static_fields.py +66 -0
- lcsim-0.1.4/lcsim/lazy_module.py +34 -0
- lcsim-0.1.4/lcsim/legacy/__init__.py +3 -0
- lcsim-0.1.4/lcsim/legacy/history.py +64 -0
- lcsim-0.1.4/lcsim/legacy/npz.py +245 -0
- lcsim-0.1.4/lcsim/numba_warnings.py +51 -0
- lcsim-0.1.4/lcsim/optics.py +439 -0
- lcsim-0.1.4/lcsim/preview/__init__.py +33 -0
- lcsim-0.1.4/lcsim/preview/sources.py +338 -0
- lcsim-0.1.4/lcsim/problem/__init__.py +157 -0
- lcsim-0.1.4/lcsim/problem/blocks.py +399 -0
- lcsim-0.1.4/lcsim/problem/builtins.py +1153 -0
- lcsim-0.1.4/lcsim/problem/codecs.py +1357 -0
- lcsim-0.1.4/lcsim/problem/core.py +199 -0
- lcsim-0.1.4/lcsim/problem/edit_metadata.py +100 -0
- lcsim-0.1.4/lcsim/problem/edit_surface.py +682 -0
- lcsim-0.1.4/lcsim/problem/fields.py +42 -0
- lcsim-0.1.4/lcsim/problem/geometry.py +150 -0
- lcsim-0.1.4/lcsim/problem/legacy_bridge.py +90 -0
- lcsim-0.1.4/lcsim/problem/legacy_runtime.py +84 -0
- lcsim-0.1.4/lcsim/problem/models.py +360 -0
- lcsim-0.1.4/lcsim/problem/runtime_bridge.py +474 -0
- lcsim-0.1.4/lcsim/problem/services.py +212 -0
- lcsim-0.1.4/lcsim/problem/stores.py +268 -0
- lcsim-0.1.4/lcsim/pyramid.py +6281 -0
- lcsim-0.1.4/lcsim/pyramid_bench.py +1089 -0
- lcsim-0.1.4/lcsim/pyramid_diagnostics.py +175 -0
- lcsim-0.1.4/lcsim/pyramid_preview.py +176 -0
- lcsim-0.1.4/lcsim/pyramid_timing.py +68 -0
- lcsim-0.1.4/lcsim/render/__init__.py +3 -0
- lcsim-0.1.4/lcsim/render/cli.py +376 -0
- lcsim-0.1.4/lcsim/render/engine.py +1335 -0
- lcsim-0.1.4/lcsim/render/inputs.py +256 -0
- lcsim-0.1.4/lcsim/render.py +445 -0
- lcsim-0.1.4/lcsim/render_annotation.py +171 -0
- lcsim-0.1.4/lcsim/render_config.py +171 -0
- lcsim-0.1.4/lcsim/renderserver.py +267 -0
- lcsim-0.1.4/lcsim/runners/__init__.py +1 -0
- lcsim-0.1.4/lcsim/runners/lcsrun/__init__.py +1 -0
- lcsim-0.1.4/lcsim/runners/lcsrun/cli.py +1186 -0
- lcsim-0.1.4/lcsim/runners/lcsrun/display.py +97 -0
- lcsim-0.1.4/lcsim/runners/lcsrun/main.py +818 -0
- lcsim-0.1.4/lcsim/runners/lcsrun/notify.py +36 -0
- lcsim-0.1.4/lcsim/runners/lcsrun/profile.py +294 -0
- lcsim-0.1.4/lcsim/runtime/__init__.py +44 -0
- lcsim-0.1.4/lcsim/runtime/diagnostics.py +17 -0
- lcsim-0.1.4/lcsim/runtime/export_cache.py +51 -0
- lcsim-0.1.4/lcsim/runtime/history.py +197 -0
- lcsim-0.1.4/lcsim/runtime/integrator_diagnostics.py +89 -0
- lcsim-0.1.4/lcsim/runtime/io.py +292 -0
- lcsim-0.1.4/lcsim/runtime/metrics.py +186 -0
- lcsim-0.1.4/lcsim/runtime/session.py +646 -0
- lcsim-0.1.4/lcsim/runtime/snapshot_update.py +61 -0
- lcsim-0.1.4/lcsim/runtime/stationary.py +80 -0
- lcsim-0.1.4/lcsim/serialization/__init__.py +6 -0
- lcsim-0.1.4/lcsim/serialization/introspection.py +69 -0
- lcsim-0.1.4/lcsim/serialization/json.py +28 -0
- lcsim-0.1.4/lcsim/shaders/birefrigence.fs.glsl +28 -0
- lcsim-0.1.4/lcsim/shaders/birefrigence.vs.glsl +507 -0
- lcsim-0.1.4/lcsim/shaders/filter.fs.glsl +33 -0
- lcsim-0.1.4/lcsim/shaders/filter.vs.glsl +10 -0
- lcsim-0.1.4/lcsim/shaders/jones.fs.glsl +9 -0
- lcsim-0.1.4/lcsim/shaders/jones.vs.glsl +72 -0
- lcsim-0.1.4/lcsim/shaders/lagger_gaussian.fs.glsl +26 -0
- lcsim-0.1.4/lcsim/shaders/lagger_gaussian.vs.glsl +11 -0
- lcsim-0.1.4/lcsim/shaders/laser_position.fs.glsl +25 -0
- lcsim-0.1.4/lcsim/shared.py +741 -0
- lcsim-0.1.4/lcsim/simulators/__init__.py +28 -0
- lcsim-0.1.4/lcsim/simulators/base.py +535 -0
- lcsim-0.1.4/lcsim/simulators/bc.py +217 -0
- lcsim-0.1.4/lcsim/simulators/conservative.py +2297 -0
- lcsim-0.1.4/lcsim/simulators/consym.py +360 -0
- lcsim-0.1.4/lcsim/simulators/consym_cell_tables.py +70 -0
- lcsim-0.1.4/lcsim/simulators/consym_certification.py +1008 -0
- lcsim-0.1.4/lcsim/simulators/consym_continuum_energy.py +109 -0
- lcsim-0.1.4/lcsim/simulators/consym_kernels.py +12 -0
- lcsim-0.1.4/lcsim/simulators/consym_projected_energy.py +310 -0
- lcsim-0.1.4/lcsim/simulators/consym_pyramid.py +4979 -0
- lcsim-0.1.4/lcsim/simulators/consym_pyramid_kernels.py +8 -0
- lcsim-0.1.4/lcsim/simulators/consym_runtime_kernels.py +733 -0
- lcsim-0.1.4/lcsim/simulators/consym_shared_kernels.py +640 -0
- lcsim-0.1.4/lcsim/simulators/core.py +13 -0
- lcsim-0.1.4/lcsim/simulators/core_common.py +948 -0
- lcsim-0.1.4/lcsim/simulators/core_legacy.py +115 -0
- lcsim-0.1.4/lcsim/simulators/core_preview.py +104 -0
- lcsim-0.1.4/lcsim/simulators/core_runtime.py +410 -0
- lcsim-0.1.4/lcsim/simulators/cuda_lazy.py +50 -0
- lcsim-0.1.4/lcsim/simulators/factory.py +161 -0
- lcsim-0.1.4/lcsim/simulators/legacy_director.py +330 -0
- lcsim-0.1.4/lcsim/simulators/legacy_vector.py +319 -0
- lcsim-0.1.4/lcsim/simulators/photophysics.py +290 -0
- lcsim-0.1.4/lcsim/simulators/photophysics_kernels.py +39 -0
- lcsim-0.1.4/lcsim/simulators/qcon.py +454 -0
- lcsim-0.1.4/lcsim/simulators/qcon_runtime_kernels.py +1055 -0
- lcsim-0.1.4/lcsim/simulators/qiso.py +455 -0
- lcsim-0.1.4/lcsim/simulators/qiso_runtime_kernels.py +1367 -0
- lcsim-0.1.4/lcsim/step_controller.py +1284 -0
- lcsim-0.1.4/lcsim/stylesheet.css +4 -0
- lcsim-0.1.4/lcsim/substrate_geometry.py +502 -0
- lcsim-0.1.4/lcsim/utils.py +80 -0
- lcsim-0.1.4/lcsim/view/__init__.py +5 -0
- lcsim-0.1.4/lcsim/view/cli.py +65 -0
- lcsim-0.1.4/lcsim/view/document.py +415 -0
- lcsim-0.1.4/pyproject.toml +160 -0
lcsim-0.1.4/.gitignore
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
*.mp4
|
|
2
|
+
/refs/
|
|
3
|
+
**/.ipynb_checkpoints/
|
|
4
|
+
**/__pycache__/
|
|
5
|
+
**/file_system_store/
|
|
6
|
+
*.png
|
|
7
|
+
profile
|
|
8
|
+
*.mpg
|
|
9
|
+
/*.egg-info
|
|
10
|
+
.pytest_cache
|
|
11
|
+
/tmp*/
|
|
12
|
+
/sandbox/
|
|
13
|
+
/.vscode/
|
|
14
|
+
/_cache
|
|
15
|
+
/.idea
|
|
16
|
+
/output/
|
|
17
|
+
/desktop_gui/binaries
|
|
18
|
+
|
|
19
|
+
/env*
|
|
20
|
+
/build
|
|
21
|
+
/dist
|
|
22
|
+
/tex/build
|
|
23
|
+
/AI
|
|
24
|
+
*.tar.gz
|
lcsim-0.1.4/LICENSE.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright 2025 Igor Lobanov
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
lcsim-0.1.4/PKG-INFO
ADDED
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: lcsim
|
|
3
|
+
Version: 0.1.4
|
|
4
|
+
Summary: LCSim - liquid crystal simulator.
|
|
5
|
+
Project-URL: Repository, https://gitlab.com/alepoydes/lcsim
|
|
6
|
+
Project-URL: Issues, https://gitlab.com/alepoydes/lcsim/-/issues
|
|
7
|
+
Author-email: Igor Lobanov <lobanov.igor@gmail.com>
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE.md
|
|
10
|
+
Keywords: dynamics,liquid crystal,physics
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Science/Research
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
15
|
+
Requires-Python: >=3.10
|
|
16
|
+
Requires-Dist: numpy>=2.1
|
|
17
|
+
Requires-Dist: rich>=13.9.4
|
|
18
|
+
Requires-Dist: topovec>=0.1.8
|
|
19
|
+
Provides-Extra: all-cu
|
|
20
|
+
Requires-Dist: ffmpeg-python; extra == 'all-cu'
|
|
21
|
+
Requires-Dist: moderngl>=5.12.0; extra == 'all-cu'
|
|
22
|
+
Requires-Dist: numba-cuda[cu13]; extra == 'all-cu'
|
|
23
|
+
Requires-Dist: numba>=0.61; extra == 'all-cu'
|
|
24
|
+
Requires-Dist: requests; extra == 'all-cu'
|
|
25
|
+
Requires-Dist: sadcompressor>=0.1.1; extra == 'all-cu'
|
|
26
|
+
Requires-Dist: scipy>=1.15.2; extra == 'all-cu'
|
|
27
|
+
Requires-Dist: topovec[cuda]; extra == 'all-cu'
|
|
28
|
+
Requires-Dist: topovec[render,sad,ti]; extra == 'all-cu'
|
|
29
|
+
Requires-Dist: topovec[sad,ti,video,view]; extra == 'all-cu'
|
|
30
|
+
Requires-Dist: topovec[sad]; extra == 'all-cu'
|
|
31
|
+
Requires-Dist: topovec[view]; extra == 'all-cu'
|
|
32
|
+
Provides-Extra: all-cu12
|
|
33
|
+
Requires-Dist: ffmpeg-python; extra == 'all-cu12'
|
|
34
|
+
Requires-Dist: moderngl>=5.12.0; extra == 'all-cu12'
|
|
35
|
+
Requires-Dist: numba-cuda[cu12]; extra == 'all-cu12'
|
|
36
|
+
Requires-Dist: numba>=0.61; extra == 'all-cu12'
|
|
37
|
+
Requires-Dist: requests; extra == 'all-cu12'
|
|
38
|
+
Requires-Dist: sadcompressor>=0.1.1; extra == 'all-cu12'
|
|
39
|
+
Requires-Dist: scipy>=1.15.2; extra == 'all-cu12'
|
|
40
|
+
Requires-Dist: topovec[render,sad,ti]; extra == 'all-cu12'
|
|
41
|
+
Requires-Dist: topovec[sad,ti,video,view]; extra == 'all-cu12'
|
|
42
|
+
Requires-Dist: topovec[sad]; extra == 'all-cu12'
|
|
43
|
+
Requires-Dist: topovec[view]; extra == 'all-cu12'
|
|
44
|
+
Provides-Extra: all-cu13
|
|
45
|
+
Requires-Dist: ffmpeg-python; extra == 'all-cu13'
|
|
46
|
+
Requires-Dist: moderngl>=5.12.0; extra == 'all-cu13'
|
|
47
|
+
Requires-Dist: numba-cuda[cu13]; extra == 'all-cu13'
|
|
48
|
+
Requires-Dist: numba>=0.61; extra == 'all-cu13'
|
|
49
|
+
Requires-Dist: requests; extra == 'all-cu13'
|
|
50
|
+
Requires-Dist: sadcompressor>=0.1.1; extra == 'all-cu13'
|
|
51
|
+
Requires-Dist: scipy>=1.15.2; extra == 'all-cu13'
|
|
52
|
+
Requires-Dist: topovec[cuda]; extra == 'all-cu13'
|
|
53
|
+
Requires-Dist: topovec[render,sad,ti]; extra == 'all-cu13'
|
|
54
|
+
Requires-Dist: topovec[sad,ti,video,view]; extra == 'all-cu13'
|
|
55
|
+
Requires-Dist: topovec[sad]; extra == 'all-cu13'
|
|
56
|
+
Requires-Dist: topovec[view]; extra == 'all-cu13'
|
|
57
|
+
Provides-Extra: dev
|
|
58
|
+
Requires-Dist: pytest>=8.3; extra == 'dev'
|
|
59
|
+
Provides-Extra: gpu-cu12
|
|
60
|
+
Requires-Dist: numba-cuda[cu12]; extra == 'gpu-cu12'
|
|
61
|
+
Requires-Dist: numba>=0.61; extra == 'gpu-cu12'
|
|
62
|
+
Provides-Extra: gpu-cu13
|
|
63
|
+
Requires-Dist: numba-cuda[cu13]; extra == 'gpu-cu13'
|
|
64
|
+
Requires-Dist: numba>=0.61; extra == 'gpu-cu13'
|
|
65
|
+
Requires-Dist: topovec[cuda]; extra == 'gpu-cu13'
|
|
66
|
+
Provides-Extra: gpu-legacy
|
|
67
|
+
Requires-Dist: numba<0.63,>=0.61; extra == 'gpu-legacy'
|
|
68
|
+
Provides-Extra: gui
|
|
69
|
+
Requires-Dist: topovec[view]; extra == 'gui'
|
|
70
|
+
Provides-Extra: gui-cu12
|
|
71
|
+
Requires-Dist: numba-cuda[cu12]; extra == 'gui-cu12'
|
|
72
|
+
Requires-Dist: numba>=0.61; extra == 'gui-cu12'
|
|
73
|
+
Requires-Dist: topovec[view]; extra == 'gui-cu12'
|
|
74
|
+
Provides-Extra: gui-cu13
|
|
75
|
+
Requires-Dist: numba-cuda[cu13]; extra == 'gui-cu13'
|
|
76
|
+
Requires-Dist: numba>=0.61; extra == 'gui-cu13'
|
|
77
|
+
Requires-Dist: topovec[cuda]; extra == 'gui-cu13'
|
|
78
|
+
Requires-Dist: topovec[view]; extra == 'gui-cu13'
|
|
79
|
+
Provides-Extra: gui-legacy
|
|
80
|
+
Requires-Dist: numba<0.63,>=0.61; extra == 'gui-legacy'
|
|
81
|
+
Requires-Dist: topovec[view]; extra == 'gui-legacy'
|
|
82
|
+
Provides-Extra: legacy-render
|
|
83
|
+
Requires-Dist: ffmpeg-python; extra == 'legacy-render'
|
|
84
|
+
Requires-Dist: moderngl>=5.12.0; extra == 'legacy-render'
|
|
85
|
+
Requires-Dist: sadcompressor>=0.1.1; extra == 'legacy-render'
|
|
86
|
+
Provides-Extra: optics
|
|
87
|
+
Requires-Dist: scipy>=1.15.2; extra == 'optics'
|
|
88
|
+
Provides-Extra: render
|
|
89
|
+
Requires-Dist: topovec[render,sad,ti]; extra == 'render'
|
|
90
|
+
Provides-Extra: run-cu12
|
|
91
|
+
Requires-Dist: numba-cuda[cu12]; extra == 'run-cu12'
|
|
92
|
+
Requires-Dist: numba>=0.61; extra == 'run-cu12'
|
|
93
|
+
Requires-Dist: sadcompressor>=0.1.1; extra == 'run-cu12'
|
|
94
|
+
Requires-Dist: topovec[sad]; extra == 'run-cu12'
|
|
95
|
+
Provides-Extra: run-cu13
|
|
96
|
+
Requires-Dist: numba-cuda[cu13]; extra == 'run-cu13'
|
|
97
|
+
Requires-Dist: numba>=0.61; extra == 'run-cu13'
|
|
98
|
+
Requires-Dist: sadcompressor>=0.1.1; extra == 'run-cu13'
|
|
99
|
+
Requires-Dist: topovec[cuda]; extra == 'run-cu13'
|
|
100
|
+
Requires-Dist: topovec[sad]; extra == 'run-cu13'
|
|
101
|
+
Provides-Extra: run-legacy
|
|
102
|
+
Requires-Dist: numba<0.63,>=0.61; extra == 'run-legacy'
|
|
103
|
+
Requires-Dist: sadcompressor>=0.1.1; extra == 'run-legacy'
|
|
104
|
+
Requires-Dist: topovec[sad]; extra == 'run-legacy'
|
|
105
|
+
Provides-Extra: run-notify
|
|
106
|
+
Requires-Dist: requests; extra == 'run-notify'
|
|
107
|
+
Provides-Extra: sad
|
|
108
|
+
Requires-Dist: sadcompressor>=0.1.1; extra == 'sad'
|
|
109
|
+
Requires-Dist: topovec[sad]; extra == 'sad'
|
|
110
|
+
Provides-Extra: test
|
|
111
|
+
Requires-Dist: pytest>=8.3; extra == 'test'
|
|
112
|
+
Provides-Extra: tests
|
|
113
|
+
Requires-Dist: pytest>=8.3; extra == 'tests'
|
|
114
|
+
Provides-Extra: view
|
|
115
|
+
Requires-Dist: sadcompressor>=0.1.1; extra == 'view'
|
|
116
|
+
Requires-Dist: topovec[sad,ti,video,view]; extra == 'view'
|
|
117
|
+
Description-Content-Type: text/markdown
|
|
118
|
+
|
|
119
|
+
# LCSim
|
|
120
|
+
|
|
121
|
+
Liquid crystal simulation tools and command-line utilities.
|
|
122
|
+
|
|
123
|
+
## Installation
|
|
124
|
+
|
|
125
|
+
LCSim is published on PyPI. For regular use, install it as a `uv` tool.
|
|
126
|
+
Detailed OS-specific instructions:
|
|
127
|
+
|
|
128
|
+
- Windows: [WINDOWS-INSTALL.md](WINDOWS-INSTALL.md)
|
|
129
|
+
- Ubuntu: [UBUNTU-INSTALL.md](UBUNTU-INSTALL.md)
|
|
130
|
+
|
|
131
|
+
The default dependency set is intentionally light: it is enough for the
|
|
132
|
+
`lcsim` dispatcher and shared Python code, but not for running simulations,
|
|
133
|
+
opening the GUI, viewing files, or rendering videos. Install one profile for
|
|
134
|
+
the workflow you actually use. Do not install every extra at once: CUDA profiles conflict by design.
|
|
135
|
+
For every runtime mode in one environment, use `all-cu` (`all-cu13`) or
|
|
136
|
+
`all-cu12`. For one mode, use a convenience profile such as `run-cu13` or `gui-cu13`.
|
|
137
|
+
For a mixed environment, choose one low-level GPU extra such as `gpu-cu13` and
|
|
138
|
+
add non-conflicting feature extras (`sad`, `gui`, `view`, `render`, `run-notify`) around it.
|
|
139
|
+
|
|
140
|
+
Recommended PyPI tool installs:
|
|
141
|
+
|
|
142
|
+
```sh
|
|
143
|
+
# All runtime modes, recommended CUDA 13 profile.
|
|
144
|
+
uv tool install 'lcsim[all-cu]'
|
|
145
|
+
|
|
146
|
+
# Batch simulation, recommended CUDA 13 profile.
|
|
147
|
+
uv tool install 'lcsim[run-cu13]'
|
|
148
|
+
|
|
149
|
+
# Interactive GUI, recommended CUDA 13 profile.
|
|
150
|
+
uv tool install 'lcsim[gui-cu13]'
|
|
151
|
+
|
|
152
|
+
# New TopoVec-based renderer for SAD/TopoVec state files.
|
|
153
|
+
uv tool install 'lcsim[render]'
|
|
154
|
+
|
|
155
|
+
# Saved-file viewer with LCSIM scenes and TopoVec scenes.
|
|
156
|
+
uv tool install 'lcsim[view]'
|
|
157
|
+
|
|
158
|
+
# Optional Telegram notifications for `lcsim run`.
|
|
159
|
+
uv tool install 'lcsim[run-cu13,run-notify]'
|
|
160
|
+
|
|
161
|
+
# Combined run + GUI environment with one shared GPU profile.
|
|
162
|
+
uv tool install 'lcsim[gpu-cu13,sad,gui]'
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
`all-cu` and `all-cu13` install the CUDA 13 runtime, TopoVec CUDA backend,
|
|
166
|
+
`lcsim run`, `lcsim gui`, `lcsim view`, `lcsim render`, run notifications,
|
|
167
|
+
optics, and legacy renderer Python dependencies. `all-cu12` keeps the lcsim
|
|
168
|
+
runtime on the CUDA 12 family and omits TopoVec's CUDA 13-only CUDA backend.
|
|
169
|
+
Legacy `lcsrender` still needs a system `ffmpeg` executable on `PATH`.
|
|
170
|
+
|
|
171
|
+
For one-off execution without installing persistent commands:
|
|
172
|
+
|
|
173
|
+
```sh
|
|
174
|
+
uvx --from 'lcsim[run-cu13]' lcsim run --help
|
|
175
|
+
uvx --from 'lcsim[gui-cu13]' lcsim gui --help
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
From a repository checkout, use the same extras with `uv sync --extra ...` and
|
|
179
|
+
run commands with `uv run ...`.
|
|
180
|
+
|
|
181
|
+
## Command-line tools
|
|
182
|
+
|
|
183
|
+
The primary public entry point is now `lcsim`:
|
|
184
|
+
|
|
185
|
+
```sh
|
|
186
|
+
lcsim --help
|
|
187
|
+
lcsim run --help
|
|
188
|
+
lcsim gui --help
|
|
189
|
+
lcsim view --help
|
|
190
|
+
lcsim render --help
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
Typical usage:
|
|
194
|
+
|
|
195
|
+
```sh
|
|
196
|
+
# Run an off-screen simulation.
|
|
197
|
+
lcsim run --preset consym --history HISTORY.json --period 10 --output --sad
|
|
198
|
+
|
|
199
|
+
# Open the interactive viewer.
|
|
200
|
+
lcsim gui
|
|
201
|
+
|
|
202
|
+
# View a saved simulation state without starting CUDA runtime.
|
|
203
|
+
lcsim view run.sad
|
|
204
|
+
|
|
205
|
+
# Render a SAD file with simulation-time video sampling.
|
|
206
|
+
lcsim render run.sad --scene "Jones RGB" --output run.mp4 --fps 25
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
Legacy commands remain available as compatibility wrappers, but they print a
|
|
210
|
+
deprecation notice:
|
|
211
|
+
|
|
212
|
+
- [`lcsrun`](doc/lcsrun.md): use `lcsim run ...` for new workflows.
|
|
213
|
+
- [`lcsgui`](doc/lcsgui.md): use `lcsim gui ...` for new workflows.
|
|
214
|
+
- [`lcsrender`](doc/lcsrender.md): legacy renderer; use `lcsim render ...` for the new renderer.
|
|
215
|
+
- `lcsoptics`: optional optics utility. Install the `optics` extra if you want to use it.
|
|
216
|
+
|
|
217
|
+
Legacy `lcsrender` requires a system `ffmpeg` executable on `PATH`; the new
|
|
218
|
+
`lcsim run` path writes SAD and leaves video generation to `lcsim render`.
|
lcsim-0.1.4/README.md
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# LCSim
|
|
2
|
+
|
|
3
|
+
Liquid crystal simulation tools and command-line utilities.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
LCSim is published on PyPI. For regular use, install it as a `uv` tool.
|
|
8
|
+
Detailed OS-specific instructions:
|
|
9
|
+
|
|
10
|
+
- Windows: [WINDOWS-INSTALL.md](WINDOWS-INSTALL.md)
|
|
11
|
+
- Ubuntu: [UBUNTU-INSTALL.md](UBUNTU-INSTALL.md)
|
|
12
|
+
|
|
13
|
+
The default dependency set is intentionally light: it is enough for the
|
|
14
|
+
`lcsim` dispatcher and shared Python code, but not for running simulations,
|
|
15
|
+
opening the GUI, viewing files, or rendering videos. Install one profile for
|
|
16
|
+
the workflow you actually use. Do not install every extra at once: CUDA profiles conflict by design.
|
|
17
|
+
For every runtime mode in one environment, use `all-cu` (`all-cu13`) or
|
|
18
|
+
`all-cu12`. For one mode, use a convenience profile such as `run-cu13` or `gui-cu13`.
|
|
19
|
+
For a mixed environment, choose one low-level GPU extra such as `gpu-cu13` and
|
|
20
|
+
add non-conflicting feature extras (`sad`, `gui`, `view`, `render`, `run-notify`) around it.
|
|
21
|
+
|
|
22
|
+
Recommended PyPI tool installs:
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
# All runtime modes, recommended CUDA 13 profile.
|
|
26
|
+
uv tool install 'lcsim[all-cu]'
|
|
27
|
+
|
|
28
|
+
# Batch simulation, recommended CUDA 13 profile.
|
|
29
|
+
uv tool install 'lcsim[run-cu13]'
|
|
30
|
+
|
|
31
|
+
# Interactive GUI, recommended CUDA 13 profile.
|
|
32
|
+
uv tool install 'lcsim[gui-cu13]'
|
|
33
|
+
|
|
34
|
+
# New TopoVec-based renderer for SAD/TopoVec state files.
|
|
35
|
+
uv tool install 'lcsim[render]'
|
|
36
|
+
|
|
37
|
+
# Saved-file viewer with LCSIM scenes and TopoVec scenes.
|
|
38
|
+
uv tool install 'lcsim[view]'
|
|
39
|
+
|
|
40
|
+
# Optional Telegram notifications for `lcsim run`.
|
|
41
|
+
uv tool install 'lcsim[run-cu13,run-notify]'
|
|
42
|
+
|
|
43
|
+
# Combined run + GUI environment with one shared GPU profile.
|
|
44
|
+
uv tool install 'lcsim[gpu-cu13,sad,gui]'
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
`all-cu` and `all-cu13` install the CUDA 13 runtime, TopoVec CUDA backend,
|
|
48
|
+
`lcsim run`, `lcsim gui`, `lcsim view`, `lcsim render`, run notifications,
|
|
49
|
+
optics, and legacy renderer Python dependencies. `all-cu12` keeps the lcsim
|
|
50
|
+
runtime on the CUDA 12 family and omits TopoVec's CUDA 13-only CUDA backend.
|
|
51
|
+
Legacy `lcsrender` still needs a system `ffmpeg` executable on `PATH`.
|
|
52
|
+
|
|
53
|
+
For one-off execution without installing persistent commands:
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
uvx --from 'lcsim[run-cu13]' lcsim run --help
|
|
57
|
+
uvx --from 'lcsim[gui-cu13]' lcsim gui --help
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
From a repository checkout, use the same extras with `uv sync --extra ...` and
|
|
61
|
+
run commands with `uv run ...`.
|
|
62
|
+
|
|
63
|
+
## Command-line tools
|
|
64
|
+
|
|
65
|
+
The primary public entry point is now `lcsim`:
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
lcsim --help
|
|
69
|
+
lcsim run --help
|
|
70
|
+
lcsim gui --help
|
|
71
|
+
lcsim view --help
|
|
72
|
+
lcsim render --help
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Typical usage:
|
|
76
|
+
|
|
77
|
+
```sh
|
|
78
|
+
# Run an off-screen simulation.
|
|
79
|
+
lcsim run --preset consym --history HISTORY.json --period 10 --output --sad
|
|
80
|
+
|
|
81
|
+
# Open the interactive viewer.
|
|
82
|
+
lcsim gui
|
|
83
|
+
|
|
84
|
+
# View a saved simulation state without starting CUDA runtime.
|
|
85
|
+
lcsim view run.sad
|
|
86
|
+
|
|
87
|
+
# Render a SAD file with simulation-time video sampling.
|
|
88
|
+
lcsim render run.sad --scene "Jones RGB" --output run.mp4 --fps 25
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Legacy commands remain available as compatibility wrappers, but they print a
|
|
92
|
+
deprecation notice:
|
|
93
|
+
|
|
94
|
+
- [`lcsrun`](doc/lcsrun.md): use `lcsim run ...` for new workflows.
|
|
95
|
+
- [`lcsgui`](doc/lcsgui.md): use `lcsim gui ...` for new workflows.
|
|
96
|
+
- [`lcsrender`](doc/lcsrender.md): legacy renderer; use `lcsim render ...` for the new renderer.
|
|
97
|
+
- `lcsoptics`: optional optics utility. Install the `optics` extra if you want to use it.
|
|
98
|
+
|
|
99
|
+
Legacy `lcsrender` requires a system `ffmpeg` executable on `PATH`; the new
|
|
100
|
+
`lcsim run` path writes SAD and leaves video generation to `lcsim render`.
|
|
Binary file
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"""Public package exports for LCSim."""
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
import importlib
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
_LAZY_IMPORTS = {
|
|
8
|
+
"BC": "lcsim.shared",
|
|
9
|
+
"CONSERVATIVE_FAMILY_MODELS": "lcsim.shared",
|
|
10
|
+
"CONSYM_MODEL": "lcsim.shared",
|
|
11
|
+
"CONSYM_SUBSTRATE_MODEL": "lcsim.shared",
|
|
12
|
+
"DEFAULT_INTEGRATOR": "lcsim.shared",
|
|
13
|
+
"DEFAULT_MODEL": "lcsim.shared",
|
|
14
|
+
"MODEL_DESCRIPTOR_BY_ID": "lcsim.shared",
|
|
15
|
+
"MODEL_DESCRIPTORS": "lcsim.shared",
|
|
16
|
+
"MODEL_NAMES": "lcsim.shared",
|
|
17
|
+
"ModelDescriptor": "lcsim.shared",
|
|
18
|
+
"QCON_CAYLEY_FIXED_INTEGRATOR": "lcsim.shared",
|
|
19
|
+
"QCON_MODEL": "lcsim.shared",
|
|
20
|
+
"QISO_MODEL": "lcsim.shared",
|
|
21
|
+
"CayleyFixed": "lcsim.integrator",
|
|
22
|
+
"compile_substrate_geometry": "lcsim.substrate_geometry",
|
|
23
|
+
"Fehlberg": "lcsim.integrator",
|
|
24
|
+
"ParameterDelta": "lcsim.history_reader",
|
|
25
|
+
"MidpointEuler": "lcsim.integrator",
|
|
26
|
+
"Progress": "lcsim.utils",
|
|
27
|
+
"Settings": "lcsim.shared",
|
|
28
|
+
"Simulation": "lcsim.integrator",
|
|
29
|
+
"SimulationMetadata": "lcsim.shared",
|
|
30
|
+
"Simulator": "lcsim.simulators",
|
|
31
|
+
"State": "lcsim.simulators",
|
|
32
|
+
"StateException": "lcsim.shared",
|
|
33
|
+
"StaticFieldPayload": "lcsim.shared",
|
|
34
|
+
"SnapshotSADFrame": "lcsim.problem",
|
|
35
|
+
"SnapshotSADReader": "lcsim.problem",
|
|
36
|
+
"SnapshotSADWriter": "lcsim.problem",
|
|
37
|
+
"SubstrateColumnGeometry": "lcsim.substrate_geometry",
|
|
38
|
+
"annotate_image": ("lcsim.render_annotation", "annotate_image"),
|
|
39
|
+
"create_simulator": ("lcsim.simulators", "create_simulator"),
|
|
40
|
+
"get_coordinates": "lcsim.shared",
|
|
41
|
+
"get_model_descriptor": "lcsim.shared",
|
|
42
|
+
"is_conservative_family": "lcsim.shared",
|
|
43
|
+
"iter_model_descriptors": "lcsim.shared",
|
|
44
|
+
"load_from_npz": ("lcsim.legacy.npz", "load_from_npz"),
|
|
45
|
+
"load_runtime_state_from_npz": ("lcsim.legacy.npz", "load_runtime_state_from_npz"),
|
|
46
|
+
"load_snapshot_from_npz": ("lcsim.runtime.io", "load_snapshot_from_npz"),
|
|
47
|
+
"load_snapshot_sad": "lcsim.problem",
|
|
48
|
+
"load_substrate_geometry_json": "lcsim.substrate_geometry",
|
|
49
|
+
"mix_settings": "lcsim.shared",
|
|
50
|
+
"npfloat": "lcsim.shared",
|
|
51
|
+
"render_cp": ("lcsim.optics", "render_cp"),
|
|
52
|
+
"save_to_npz": ("lcsim.legacy.npz", "save_to_npz"),
|
|
53
|
+
"save_runtime_state_to_npz": ("lcsim.legacy.npz", "save_runtime_state_to_npz"),
|
|
54
|
+
"save_runtime_snapshot_to_npz": ("lcsim.runtime.io", "save_runtime_snapshot_to_npz"),
|
|
55
|
+
"save_snapshot_to_npz": ("lcsim.runtime.io", "save_snapshot_to_npz"),
|
|
56
|
+
"save_snapshot_sad": "lcsim.problem",
|
|
57
|
+
"scale_state": ("lcsim.runtime.io", "scale_state"),
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def __getattr__(name: Any) -> Any:
|
|
62
|
+
"""Internal helper for getattr."""
|
|
63
|
+
try:
|
|
64
|
+
target = _LAZY_IMPORTS[name]
|
|
65
|
+
except KeyError as exc:
|
|
66
|
+
raise AttributeError(name) from exc
|
|
67
|
+
if isinstance(target, str):
|
|
68
|
+
module_name, attr_name = target, name
|
|
69
|
+
else:
|
|
70
|
+
module_name, attr_name = target
|
|
71
|
+
module = importlib.import_module(module_name)
|
|
72
|
+
value = getattr(module, attr_name)
|
|
73
|
+
globals()[name] = value
|
|
74
|
+
return value
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
__all__ = list(_LAZY_IMPORTS)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Package initialization for lcsim.bin."""
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""Shared notices for legacy console scripts."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import sys
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def warn_legacy_entrypoint(command: str, replacement: str | None = None) -> None:
|
|
9
|
+
"""Print a visible compatibility notice for legacy direct scripts."""
|
|
10
|
+
message = f"{command} is deprecated as a direct script."
|
|
11
|
+
if replacement:
|
|
12
|
+
message = f"{message} Use `{replacement}` instead."
|
|
13
|
+
else:
|
|
14
|
+
message = f"{message} Prefer `lcsim <mode>` where available."
|
|
15
|
+
print(f"DeprecationWarning: {message}", file=sys.stderr)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
__all__ = ["warn_legacy_entrypoint"]
|