slipstream-accel 1.1.0__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.
- slipstream_accel-1.1.0/LICENSE +201 -0
- slipstream_accel-1.1.0/MANIFEST.in +14 -0
- slipstream_accel-1.1.0/PKG-INFO +147 -0
- slipstream_accel-1.1.0/README.md +121 -0
- slipstream_accel-1.1.0/docs/README.md +45 -0
- slipstream_accel-1.1.0/docs/beamline_studies.md +164 -0
- slipstream_accel-1.1.0/docs/compilation.md +201 -0
- slipstream_accel-1.1.0/docs/examples/README.md +20 -0
- slipstream_accel-1.1.0/docs/examples/csr.lte +4 -0
- slipstream_accel-1.1.0/docs/examples/csr.yaml +27 -0
- slipstream_accel-1.1.0/docs/examples/quickstart.py +22 -0
- slipstream_accel-1.1.0/docs/formats.md +42 -0
- slipstream_accel-1.1.0/docs/getting_started.md +105 -0
- slipstream_accel-1.1.0/docs/model_settings.md +109 -0
- slipstream_accel-1.1.0/docs/modules/README.md +101 -0
- slipstream_accel-1.1.0/docs/modules/__init__.md +11 -0
- slipstream_accel-1.1.0/docs/modules/_compile_env.md +48 -0
- slipstream_accel-1.1.0/docs/modules/analysis/__init__.md +11 -0
- slipstream_accel-1.1.0/docs/modules/analysis/beamline_radiation.md +58 -0
- slipstream_accel-1.1.0/docs/modules/analysis/emittance.md +33 -0
- slipstream_accel-1.1.0/docs/modules/analysis/loco.md +92 -0
- slipstream_accel-1.1.0/docs/modules/analysis/nonlinear.md +180 -0
- slipstream_accel-1.1.0/docs/modules/analysis/nonlinear_opt.md +129 -0
- slipstream_accel-1.1.0/docs/modules/analysis/ring6d.md +77 -0
- slipstream_accel-1.1.0/docs/modules/analysis/ring_outputs.md +68 -0
- slipstream_accel-1.1.0/docs/modules/analysis/slices.md +118 -0
- slipstream_accel-1.1.0/docs/modules/beamline.md +100 -0
- slipstream_accel-1.1.0/docs/modules/beamline_cli.md +27 -0
- slipstream_accel-1.1.0/docs/modules/beamline_config.md +28 -0
- slipstream_accel-1.1.0/docs/modules/constants.md +11 -0
- slipstream_accel-1.1.0/docs/modules/data/__init__.md +11 -0
- slipstream_accel-1.1.0/docs/modules/data/particles.md +22 -0
- slipstream_accel-1.1.0/docs/modules/data/results.md +67 -0
- slipstream_accel-1.1.0/docs/modules/ibs.md +128 -0
- slipstream_accel-1.1.0/docs/modules/lattice/__init__.md +11 -0
- slipstream_accel-1.1.0/docs/modules/lattice/apertures.md +66 -0
- slipstream_accel-1.1.0/docs/modules/lattice/lattice.md +33 -0
- slipstream_accel-1.1.0/docs/modules/lattice/optics.md +45 -0
- slipstream_accel-1.1.0/docs/modules/lattice/ramp.md +78 -0
- slipstream_accel-1.1.0/docs/modules/lattice/twiss_table.md +46 -0
- slipstream_accel-1.1.0/docs/modules/reconstruction.md +91 -0
- slipstream_accel-1.1.0/docs/modules/sdds_io.md +33 -0
- slipstream_accel-1.1.0/docs/modules/serialization.md +18 -0
- slipstream_accel-1.1.0/docs/modules/tracking/__init__.md +11 -0
- slipstream_accel-1.1.0/docs/modules/tracking/distributions.md +92 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/__init__.md +11 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/astra_io.md +157 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/collective.md +341 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/double_single.md +68 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/elements.md +519 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/errors.md +154 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/fields.md +236 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/generator.md +135 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/gun.md +161 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/injector.md +1025 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/injector_ibs.md +169 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/injector_ibs_warp.md +26 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/injector_wake.md +59 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/lattice_import.md +189 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/laura_fields.md +63 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/laura_import.md +61 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/laura_injector.md +74 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/linac.md +398 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/linac_setup.md +23 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/linac_twiss.md +137 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/magnets.md +150 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/optics.md +67 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/photocathode.md +179 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/radiation.md +81 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/ring.md +194 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/ring_physics.md +27 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/ring_warp.md +58 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/space_charge.md +273 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/tracker.md +209 -0
- slipstream_accel-1.1.0/docs/modules/tracking/native/warp_kernels.md +278 -0
- slipstream_accel-1.1.0/docs/modules/wakefields/__init__.md +11 -0
- slipstream_accel-1.1.0/docs/modules/wakefields/chambers.md +28 -0
- slipstream_accel-1.1.0/docs/modules/wakefields/impedance.md +37 -0
- slipstream_accel-1.1.0/docs/modules/wakefields/longrange.md +79 -0
- slipstream_accel-1.1.0/docs/modules/wakefields/multilayer/__init__.md +11 -0
- slipstream_accel-1.1.0/docs/modules/wakefields/multilayer/bessel.md +133 -0
- slipstream_accel-1.1.0/docs/modules/wakefields/multilayer/flat.md +114 -0
- slipstream_accel-1.1.0/docs/modules/wakefields/multilayer/round.md +134 -0
- slipstream_accel-1.1.0/docs/modules/wakefields/multilayer/yokoya.md +54 -0
- slipstream_accel-1.1.0/docs/modules/wakefields/shortrange.md +160 -0
- slipstream_accel-1.1.0/docs/modules/wakefields/transverse.md +105 -0
- slipstream_accel-1.1.0/docs/native_reference.md +192 -0
- slipstream_accel-1.1.0/docs/nonlinear_dynamics.md +82 -0
- slipstream_accel-1.1.0/docs/nonlinear_optimisation.md +138 -0
- slipstream_accel-1.1.0/docs/ring6d.md +83 -0
- slipstream_accel-1.1.0/docs/ring_multipoles.md +65 -0
- slipstream_accel-1.1.0/docs/ring_outputs.md +62 -0
- slipstream_accel-1.1.0/docs/tracking_native.md +310 -0
- slipstream_accel-1.1.0/pyproject.toml +47 -0
- slipstream_accel-1.1.0/setup.cfg +4 -0
- slipstream_accel-1.1.0/src/slipstream/__init__.py +77 -0
- slipstream_accel-1.1.0/src/slipstream/_compile_env.py +38 -0
- slipstream_accel-1.1.0/src/slipstream/analysis/__init__.py +1 -0
- slipstream_accel-1.1.0/src/slipstream/analysis/beamline_radiation.py +122 -0
- slipstream_accel-1.1.0/src/slipstream/analysis/emittance.py +27 -0
- slipstream_accel-1.1.0/src/slipstream/analysis/loco.py +76 -0
- slipstream_accel-1.1.0/src/slipstream/analysis/nonlinear.py +346 -0
- slipstream_accel-1.1.0/src/slipstream/analysis/nonlinear_opt.py +388 -0
- slipstream_accel-1.1.0/src/slipstream/analysis/ring6d.py +148 -0
- slipstream_accel-1.1.0/src/slipstream/analysis/ring_outputs.py +196 -0
- slipstream_accel-1.1.0/src/slipstream/analysis/slices.py +221 -0
- slipstream_accel-1.1.0/src/slipstream/beamline.py +219 -0
- slipstream_accel-1.1.0/src/slipstream/beamline_cli.py +52 -0
- slipstream_accel-1.1.0/src/slipstream/beamline_config.py +228 -0
- slipstream_accel-1.1.0/src/slipstream/constants.py +10 -0
- slipstream_accel-1.1.0/src/slipstream/data/__init__.py +5 -0
- slipstream_accel-1.1.0/src/slipstream/data/particles.py +39 -0
- slipstream_accel-1.1.0/src/slipstream/data/results.py +255 -0
- slipstream_accel-1.1.0/src/slipstream/ibs.py +224 -0
- slipstream_accel-1.1.0/src/slipstream/lattice/__init__.py +5 -0
- slipstream_accel-1.1.0/src/slipstream/lattice/apertures.py +199 -0
- slipstream_accel-1.1.0/src/slipstream/lattice/lattice.py +81 -0
- slipstream_accel-1.1.0/src/slipstream/lattice/optics.py +40 -0
- slipstream_accel-1.1.0/src/slipstream/lattice/ramp.py +104 -0
- slipstream_accel-1.1.0/src/slipstream/lattice/twiss_table.py +61 -0
- slipstream_accel-1.1.0/src/slipstream/reconstruction.py +189 -0
- slipstream_accel-1.1.0/src/slipstream/sdds_io.py +25 -0
- slipstream_accel-1.1.0/src/slipstream/serialization.py +20 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/__init__.py +2 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/distributions.py +145 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/__init__.py +21 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/astra_io.py +190 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/collective.py +1149 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/double_single.py +325 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/elements.py +592 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/errors.py +131 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/fields.py +310 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/generator.py +581 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/gun.py +161 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/injector.py +2516 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/injector_ibs.py +251 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/injector_ibs_warp.py +152 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/injector_wake.py +99 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/lattice_import.py +352 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/laura_fields.py +101 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/laura_import.py +88 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/laura_injector.py +171 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/linac.py +682 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/linac_setup.py +51 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/linac_twiss.py +206 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/magnets.py +270 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/optics.py +111 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/photocathode.py +164 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/radiation.py +51 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/ring.py +376 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/ring_physics.py +116 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/ring_warp.py +395 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/space_charge.py +465 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/tracker.py +623 -0
- slipstream_accel-1.1.0/src/slipstream/tracking/native/warp_kernels.py +1173 -0
- slipstream_accel-1.1.0/src/slipstream/wakefields/__init__.py +16 -0
- slipstream_accel-1.1.0/src/slipstream/wakefields/chambers.py +74 -0
- slipstream_accel-1.1.0/src/slipstream/wakefields/impedance.py +52 -0
- slipstream_accel-1.1.0/src/slipstream/wakefields/longrange.py +108 -0
- slipstream_accel-1.1.0/src/slipstream/wakefields/multilayer/__init__.py +2 -0
- slipstream_accel-1.1.0/src/slipstream/wakefields/multilayer/bessel.py +163 -0
- slipstream_accel-1.1.0/src/slipstream/wakefields/multilayer/flat.py +232 -0
- slipstream_accel-1.1.0/src/slipstream/wakefields/multilayer/round.py +264 -0
- slipstream_accel-1.1.0/src/slipstream/wakefields/multilayer/yokoya.py +141 -0
- slipstream_accel-1.1.0/src/slipstream/wakefields/shortrange.py +250 -0
- slipstream_accel-1.1.0/src/slipstream/wakefields/transverse.py +138 -0
- slipstream_accel-1.1.0/src/slipstream_accel.egg-info/PKG-INFO +147 -0
- slipstream_accel-1.1.0/src/slipstream_accel.egg-info/SOURCES.txt +221 -0
- slipstream_accel-1.1.0/src/slipstream_accel.egg-info/dependency_links.txt +1 -0
- slipstream_accel-1.1.0/src/slipstream_accel.egg-info/entry_points.txt +2 -0
- slipstream_accel-1.1.0/src/slipstream_accel.egg-info/requires.txt +18 -0
- slipstream_accel-1.1.0/src/slipstream_accel.egg-info/top_level.txt +1 -0
- slipstream_accel-1.1.0/tests/test_analysis_slices.py +203 -0
- slipstream_accel-1.1.0/tests/test_astra_solenoid_placement.py +28 -0
- slipstream_accel-1.1.0/tests/test_beamline_radiation.py +71 -0
- slipstream_accel-1.1.0/tests/test_beamline_study.py +456 -0
- slipstream_accel-1.1.0/tests/test_collective_gradients.py +259 -0
- slipstream_accel-1.1.0/tests/test_compile_env.py +100 -0
- slipstream_accel-1.1.0/tests/test_corrector.py +79 -0
- slipstream_accel-1.1.0/tests/test_csr_transient_drift.py +120 -0
- slipstream_accel-1.1.0/tests/test_data.py +146 -0
- slipstream_accel-1.1.0/tests/test_diamond_example.py +31 -0
- slipstream_accel-1.1.0/tests/test_distributions.py +162 -0
- slipstream_accel-1.1.0/tests/test_fit_structure.py +114 -0
- slipstream_accel-1.1.0/tests/test_generator_ellipse.py +138 -0
- slipstream_accel-1.1.0/tests/test_ibs.py +289 -0
- slipstream_accel-1.1.0/tests/test_injector_3d_padding.py +45 -0
- slipstream_accel-1.1.0/tests/test_injector_crest.py +138 -0
- slipstream_accel-1.1.0/tests/test_injector_emission_step.py +83 -0
- slipstream_accel-1.1.0/tests/test_injector_ibs.py +284 -0
- slipstream_accel-1.1.0/tests/test_injector_ibs_warp.py +113 -0
- slipstream_accel-1.1.0/tests/test_injector_screen.py +243 -0
- slipstream_accel-1.1.0/tests/test_injector_wake.py +140 -0
- slipstream_accel-1.1.0/tests/test_laser_image_fit.py +105 -0
- slipstream_accel-1.1.0/tests/test_lattice.py +55 -0
- slipstream_accel-1.1.0/tests/test_lattice_import_audit.py +72 -0
- slipstream_accel-1.1.0/tests/test_laura_injector.py +118 -0
- slipstream_accel-1.1.0/tests/test_linac_scan_parameters.py +282 -0
- slipstream_accel-1.1.0/tests/test_mls_example.py +84 -0
- slipstream_accel-1.1.0/tests/test_native_bend_radiation.py +80 -0
- slipstream_accel-1.1.0/tests/test_native_drift_reference.py +78 -0
- slipstream_accel-1.1.0/tests/test_native_errors.py +183 -0
- slipstream_accel-1.1.0/tests/test_native_fields.py +147 -0
- slipstream_accel-1.1.0/tests/test_native_gun.py +329 -0
- slipstream_accel-1.1.0/tests/test_native_loco.py +713 -0
- slipstream_accel-1.1.0/tests/test_nonlinear_optimisation.py +118 -0
- slipstream_accel-1.1.0/tests/test_package_smoke.py +49 -0
- slipstream_accel-1.1.0/tests/test_photocathode.py +349 -0
- slipstream_accel-1.1.0/tests/test_photocathode_example.py +244 -0
- slipstream_accel-1.1.0/tests/test_placement_tensors.py +100 -0
- slipstream_accel-1.1.0/tests/test_reconstruction.py +306 -0
- slipstream_accel-1.1.0/tests/test_rfcw_wake_scaling.py +74 -0
- slipstream_accel-1.1.0/tests/test_ring_nonlinear.py +277 -0
- slipstream_accel-1.1.0/tests/test_ring_outputs.py +107 -0
- slipstream_accel-1.1.0/tests/test_ring_per_kind_kicks.py +80 -0
- slipstream_accel-1.1.0/tests/test_ring_phase3.py +146 -0
- slipstream_accel-1.1.0/tests/test_sector_bend_ode.py +31 -0
- slipstream_accel-1.1.0/tests/test_tdc.py +150 -0
- slipstream_accel-1.1.0/tests/test_user_examples.py +67 -0
- slipstream_accel-1.1.0/tests/test_wake_windows.py +280 -0
- slipstream_accel-1.1.0/tests/test_wakefields_longrange.py +126 -0
- slipstream_accel-1.1.0/tests/test_wakefields_shortrange.py +128 -0
- slipstream_accel-1.1.0/tests/test_warp_collective_kernels.py +138 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
recursive-include docs *.md *.py *.yaml *.lte
|
|
2
|
+
include examples/beamline/line.lte examples/beamline/study.yaml
|
|
3
|
+
include examples/photocathode/*.py
|
|
4
|
+
include examples/photocathode/generator.in examples/photocathode/104459_Schottky_approx_crestingData.h5
|
|
5
|
+
prune .Codex
|
|
6
|
+
prune .codex
|
|
7
|
+
prune .claude
|
|
8
|
+
prune .agents
|
|
9
|
+
prune .remember
|
|
10
|
+
prune .vscode
|
|
11
|
+
prune .skills
|
|
12
|
+
prune skills
|
|
13
|
+
exclude AGENTS.md CLAUDE.md GEMINI.md
|
|
14
|
+
exclude examples/diamond/nonlinear_optimisation.json
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: slipstream-accel
|
|
3
|
+
Version: 1.1.0
|
|
4
|
+
Summary: Native accelerator beam-dynamics and tracking tools
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
Project-URL: Repository, https://github.com/astec-stfc/slipstream
|
|
7
|
+
Project-URL: Documentation, https://github.com/astec-stfc/slipstream/blob/main/docs/README.md
|
|
8
|
+
Requires-Python: >=3.10
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Requires-Dist: h5py>=3.8
|
|
12
|
+
Requires-Dist: numpy>=1.24
|
|
13
|
+
Requires-Dist: pandas>=2.0
|
|
14
|
+
Requires-Dist: PyYAML>=6.0
|
|
15
|
+
Requires-Dist: scipy>=1.10
|
|
16
|
+
Requires-Dist: torch>=2.0
|
|
17
|
+
Provides-Extra: sdds
|
|
18
|
+
Requires-Dist: soliday.sdds; extra == "sdds"
|
|
19
|
+
Provides-Extra: cuda
|
|
20
|
+
Requires-Dist: warp-lang; extra == "cuda"
|
|
21
|
+
Provides-Extra: optimise
|
|
22
|
+
Requires-Dist: cma>=4; extra == "optimise"
|
|
23
|
+
Provides-Extra: plot
|
|
24
|
+
Requires-Dist: matplotlib>=3.6; extra == "plot"
|
|
25
|
+
Dynamic: license-file
|
|
26
|
+
|
|
27
|
+
# Slipstream
|
|
28
|
+
|
|
29
|
+
Native accelerator beam-dynamics and tracking tools built on PyTorch.
|
|
30
|
+
|
|
31
|
+
Slipstream provides native ring, linac, and injector tracking. It reads
|
|
32
|
+
elegant `.lte` lattice files and ASTRA input/distribution files directly; it
|
|
33
|
+
does not launch elegant or ASTRA.
|
|
34
|
+
|
|
35
|
+
## Installation
|
|
36
|
+
|
|
37
|
+
Requires Python 3.10 or newer. The default install can run on CPU; no GPU,
|
|
38
|
+
compiler, elegant or ASTRA executable is needed for a first run:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
python -m pip install slipstream-accel
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
From a checkout, install the package for local development with:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
python -m pip install -e .
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
`requirements.txt` is the CUDA-oriented development setup, including Warp
|
|
51
|
+
and pytest. See [getting started](docs/getting_started.md) for virtual
|
|
52
|
+
environments and common installation problems.
|
|
53
|
+
|
|
54
|
+
Optional SDDS support is available with:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
python -m pip install "slipstream-accel[sdds]"
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Quick start
|
|
61
|
+
|
|
62
|
+
The Python import name is `slipstream`. This complete example generates its
|
|
63
|
+
own bunch and runs on CPU:
|
|
64
|
+
|
|
65
|
+
```python
|
|
66
|
+
from slipstream import BeamlineStudy, ElementSpec
|
|
67
|
+
|
|
68
|
+
study = BeamlineStudy(
|
|
69
|
+
[ElementSpec("D", "drift", length=1.0)], energy_eV=100e6, device="cpu", always_change_p0=False,
|
|
70
|
+
)
|
|
71
|
+
particles = study.generate_bunch(
|
|
72
|
+
n=1024, beta_x0=2.0, alpha_x0=0.0, epsx_m=1e-8,
|
|
73
|
+
beta_y0=2.0, alpha_y0=0.0, epsy_m=1e-8,
|
|
74
|
+
sigma_tau_m=1e-4, sigma_delta=1e-3, seed=42,
|
|
75
|
+
)
|
|
76
|
+
result = study.track(particles)
|
|
77
|
+
print(result.particles_out.shape) # (1024, 6)
|
|
78
|
+
print(result.energy_eV_out / 1e6) # 100.0 MeV total energy
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Particle states use the canonical `(x, px, y, py, tau, delta)` layout;
|
|
82
|
+
`tau` is in metres and energies include rest energy. `generate_bunch()`
|
|
83
|
+
returns canonical momenta ready for tracking. See
|
|
84
|
+
[`docs/tracking_native.md`](docs/tracking_native.md) for ring, linac, and
|
|
85
|
+
injector usage, and [`docs/formats.md`](docs/formats.md) for supported input
|
|
86
|
+
formats.
|
|
87
|
+
|
|
88
|
+
Run a complete synthetic beamline study from a portable YAML configuration:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
python -m slipstream.beamline_cli examples/beamline/study.yaml -o result.h5
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
See [beamline studies](docs/beamline_studies.md) for generated, HDF5, SDDS,
|
|
95
|
+
and native ASTRA sources. Change settings without editing YAML, for example:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
python -m slipstream.beamline_cli docs/examples/csr.yaml --set tracker.csr_transient=true --set tracker.csr_drift_model=retarded
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
The [model settings guide](docs/model_settings.md) explains CSR choices and
|
|
102
|
+
other switches. The [examples index](docs/examples/README.md) lists runnable
|
|
103
|
+
starting points. The [documentation index](docs/README.md) links
|
|
104
|
+
physics explanations, usage guides and the reference for every module.
|
|
105
|
+
|
|
106
|
+
For frozen-energy ring maps, normal modes, loss locations, and spectral
|
|
107
|
+
analysis, see [`docs/nonlinear_dynamics.md`](docs/nonlinear_dynamics.md).
|
|
108
|
+
RF-on dynamic aperture, frequency maps, and sampled momentum acceptance are
|
|
109
|
+
documented in [`docs/ring6d.md`](docs/ring6d.md).
|
|
110
|
+
|
|
111
|
+
## Compilation and CUDA
|
|
112
|
+
|
|
113
|
+
Start with eager CPU tracking, as above. When enabling `torch.compile`, see
|
|
114
|
+
[compilation.md](docs/compilation.md) for toolchains, caches and optional
|
|
115
|
+
Warp acceleration. On Windows, set `$env:CXX = "clang-cl"` in PowerShell
|
|
116
|
+
before starting Python; `clang-cl` and the Windows SDK must be available.
|
|
117
|
+
|
|
118
|
+
For the CUDA-accelerated backend, install the `cuda` extra and select the
|
|
119
|
+
CUDA 13.2 PyTorch index. The extra adds NVIDIA Warp; if Warp is unavailable,
|
|
120
|
+
Slipstream falls back to its PyTorch implementation:
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
python -m pip install \
|
|
124
|
+
--index-url https://download.pytorch.org/whl/cu132 \
|
|
125
|
+
--extra-index-url https://pypi.org/simple \
|
|
126
|
+
"slipstream-accel[cuda]"
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
## Scope
|
|
130
|
+
|
|
131
|
+
For opt-in photocathode/injector intrabeam scattering, see
|
|
132
|
+
[local binary collisions](docs/modules/tracking/native/injector_ibs.md).
|
|
133
|
+
`InjectorIBSSettings` configures the collision cells, angular model, cutoff
|
|
134
|
+
and seed independently of storage-ring IBS growth-rate models.
|
|
135
|
+
|
|
136
|
+
- `NativeTracker` models ring transport and turn-by-turn effects.
|
|
137
|
+
- `LinacTracker` models one-pass element-by-element transport.
|
|
138
|
+
- `Injector` models ASTRA-style gun, cavity, solenoid, space-charge, and
|
|
139
|
+
aperture transport. An optional `Photocathode` derives its emission from
|
|
140
|
+
laser energy, quantum efficiency (with the Schottky effect) and the
|
|
141
|
+
space-charge-limited surface field.
|
|
142
|
+
- `warp-lang` accelerates supported CUDA paths; it is not required for CPU
|
|
143
|
+
execution.
|
|
144
|
+
|
|
145
|
+
Ring reference tables and plots are described in
|
|
146
|
+
[`docs/ring_outputs.md`](docs/ring_outputs.md). Install the optional
|
|
147
|
+
`slipstream-accel[plot]` extra to render the figures.
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# Slipstream
|
|
2
|
+
|
|
3
|
+
Native accelerator beam-dynamics and tracking tools built on PyTorch.
|
|
4
|
+
|
|
5
|
+
Slipstream provides native ring, linac, and injector tracking. It reads
|
|
6
|
+
elegant `.lte` lattice files and ASTRA input/distribution files directly; it
|
|
7
|
+
does not launch elegant or ASTRA.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
Requires Python 3.10 or newer. The default install can run on CPU; no GPU,
|
|
12
|
+
compiler, elegant or ASTRA executable is needed for a first run:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
python -m pip install slipstream-accel
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
From a checkout, install the package for local development with:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
python -m pip install -e .
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
`requirements.txt` is the CUDA-oriented development setup, including Warp
|
|
25
|
+
and pytest. See [getting started](docs/getting_started.md) for virtual
|
|
26
|
+
environments and common installation problems.
|
|
27
|
+
|
|
28
|
+
Optional SDDS support is available with:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
python -m pip install "slipstream-accel[sdds]"
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Quick start
|
|
35
|
+
|
|
36
|
+
The Python import name is `slipstream`. This complete example generates its
|
|
37
|
+
own bunch and runs on CPU:
|
|
38
|
+
|
|
39
|
+
```python
|
|
40
|
+
from slipstream import BeamlineStudy, ElementSpec
|
|
41
|
+
|
|
42
|
+
study = BeamlineStudy(
|
|
43
|
+
[ElementSpec("D", "drift", length=1.0)], energy_eV=100e6, device="cpu", always_change_p0=False,
|
|
44
|
+
)
|
|
45
|
+
particles = study.generate_bunch(
|
|
46
|
+
n=1024, beta_x0=2.0, alpha_x0=0.0, epsx_m=1e-8,
|
|
47
|
+
beta_y0=2.0, alpha_y0=0.0, epsy_m=1e-8,
|
|
48
|
+
sigma_tau_m=1e-4, sigma_delta=1e-3, seed=42,
|
|
49
|
+
)
|
|
50
|
+
result = study.track(particles)
|
|
51
|
+
print(result.particles_out.shape) # (1024, 6)
|
|
52
|
+
print(result.energy_eV_out / 1e6) # 100.0 MeV total energy
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Particle states use the canonical `(x, px, y, py, tau, delta)` layout;
|
|
56
|
+
`tau` is in metres and energies include rest energy. `generate_bunch()`
|
|
57
|
+
returns canonical momenta ready for tracking. See
|
|
58
|
+
[`docs/tracking_native.md`](docs/tracking_native.md) for ring, linac, and
|
|
59
|
+
injector usage, and [`docs/formats.md`](docs/formats.md) for supported input
|
|
60
|
+
formats.
|
|
61
|
+
|
|
62
|
+
Run a complete synthetic beamline study from a portable YAML configuration:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
python -m slipstream.beamline_cli examples/beamline/study.yaml -o result.h5
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
See [beamline studies](docs/beamline_studies.md) for generated, HDF5, SDDS,
|
|
69
|
+
and native ASTRA sources. Change settings without editing YAML, for example:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
python -m slipstream.beamline_cli docs/examples/csr.yaml --set tracker.csr_transient=true --set tracker.csr_drift_model=retarded
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
The [model settings guide](docs/model_settings.md) explains CSR choices and
|
|
76
|
+
other switches. The [examples index](docs/examples/README.md) lists runnable
|
|
77
|
+
starting points. The [documentation index](docs/README.md) links
|
|
78
|
+
physics explanations, usage guides and the reference for every module.
|
|
79
|
+
|
|
80
|
+
For frozen-energy ring maps, normal modes, loss locations, and spectral
|
|
81
|
+
analysis, see [`docs/nonlinear_dynamics.md`](docs/nonlinear_dynamics.md).
|
|
82
|
+
RF-on dynamic aperture, frequency maps, and sampled momentum acceptance are
|
|
83
|
+
documented in [`docs/ring6d.md`](docs/ring6d.md).
|
|
84
|
+
|
|
85
|
+
## Compilation and CUDA
|
|
86
|
+
|
|
87
|
+
Start with eager CPU tracking, as above. When enabling `torch.compile`, see
|
|
88
|
+
[compilation.md](docs/compilation.md) for toolchains, caches and optional
|
|
89
|
+
Warp acceleration. On Windows, set `$env:CXX = "clang-cl"` in PowerShell
|
|
90
|
+
before starting Python; `clang-cl` and the Windows SDK must be available.
|
|
91
|
+
|
|
92
|
+
For the CUDA-accelerated backend, install the `cuda` extra and select the
|
|
93
|
+
CUDA 13.2 PyTorch index. The extra adds NVIDIA Warp; if Warp is unavailable,
|
|
94
|
+
Slipstream falls back to its PyTorch implementation:
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
python -m pip install \
|
|
98
|
+
--index-url https://download.pytorch.org/whl/cu132 \
|
|
99
|
+
--extra-index-url https://pypi.org/simple \
|
|
100
|
+
"slipstream-accel[cuda]"
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Scope
|
|
104
|
+
|
|
105
|
+
For opt-in photocathode/injector intrabeam scattering, see
|
|
106
|
+
[local binary collisions](docs/modules/tracking/native/injector_ibs.md).
|
|
107
|
+
`InjectorIBSSettings` configures the collision cells, angular model, cutoff
|
|
108
|
+
and seed independently of storage-ring IBS growth-rate models.
|
|
109
|
+
|
|
110
|
+
- `NativeTracker` models ring transport and turn-by-turn effects.
|
|
111
|
+
- `LinacTracker` models one-pass element-by-element transport.
|
|
112
|
+
- `Injector` models ASTRA-style gun, cavity, solenoid, space-charge, and
|
|
113
|
+
aperture transport. An optional `Photocathode` derives its emission from
|
|
114
|
+
laser energy, quantum efficiency (with the Schottky effect) and the
|
|
115
|
+
space-charge-limited surface field.
|
|
116
|
+
- `warp-lang` accelerates supported CUDA paths; it is not required for CPU
|
|
117
|
+
execution.
|
|
118
|
+
|
|
119
|
+
Ring reference tables and plots are described in
|
|
120
|
+
[`docs/ring_outputs.md`](docs/ring_outputs.md). Install the optional
|
|
121
|
+
`slipstream-accel[plot]` extra to render the figures.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Slipstream documentation
|
|
2
|
+
|
|
3
|
+
Start with a tracker matching the physical problem. `NativeTracker` follows
|
|
4
|
+
ring turns, `LinacTracker` follows one beamline pass, and `Injector` follows
|
|
5
|
+
Cartesian particles through injector fields and space charge.
|
|
6
|
+
|
|
7
|
+
New users: [getting started](getting_started.md) walks from installation to
|
|
8
|
+
a saved result. The [examples index](examples/README.md) lists runnable
|
|
9
|
+
entry points; [model settings](model_settings.md) explains switches and CSR choices.
|
|
10
|
+
|
|
11
|
+
## Physics
|
|
12
|
+
|
|
13
|
+
- [Native physics reference](native_reference.md): coordinates, transport,
|
|
14
|
+
RF, radiation, IBS and optics conventions.
|
|
15
|
+
- [Module reference](modules/README.md): physics, approximations and usage
|
|
16
|
+
for every package module.
|
|
17
|
+
- [Nonlinear dynamics](nonlinear_dynamics.md), [RF-on ring studies](ring6d.md)
|
|
18
|
+
and [multipoles](ring_multipoles.md).
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
- [Native tracking](tracking_native.md) and [beamline YAML studies](beamline_studies.md).
|
|
23
|
+
- [Beam reconstruction](tracking_native.md#beam-reconstruction-with-a-differentiable-screen): screen images, scan models and CUDA-graph steps for GPSR-style fits.
|
|
24
|
+
- [File formats](formats.md), [ring tables and plots](ring_outputs.md) and
|
|
25
|
+
[nonlinear optimization](nonlinear_optimisation.md).
|
|
26
|
+
- [Compilation and CUDA](compilation.md): toolchains, precision, caches and
|
|
27
|
+
optional Warp acceleration.
|
|
28
|
+
|
|
29
|
+
## Maintaining documentation
|
|
30
|
+
|
|
31
|
+
Each module page separates **Physics** (model, units, conventions and limits)
|
|
32
|
+
from **Usage** (inputs, outputs, examples and API contracts). Numerical notes
|
|
33
|
+
explain choices that matter for correctness or performance. Short docstrings
|
|
34
|
+
and local comments keep essential contracts and cautions next to the code.
|
|
35
|
+
|
|
36
|
+
Keep current behavior here. Remaining work belongs in the workbench plans;
|
|
37
|
+
reusable development lessons belong in its `plans/NOTES.md`. Git history
|
|
38
|
+
preserves retired design narratives. Record the tested model, inputs, dtype,
|
|
39
|
+
device and reference before describing an algorithm as validated.
|
|
40
|
+
|
|
41
|
+
This structure adapts [Diátaxis](https://diataxis.fr/)'s separation of
|
|
42
|
+
explanation, practical guides and reference. The [Google Python Style Guide](https://google.github.io/styleguide/pyguide.html#s3.8-comments-and-docstrings)
|
|
43
|
+
informs the distinction between API docstrings and comments explaining
|
|
44
|
+
non-obvious local choices. Existing repository conventions take precedence
|
|
45
|
+
over either guide's unrelated tooling or formatting preferences.
|