Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Feb 11, 2025
1 parent a215f2d commit f0bb85a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/usage/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Channels & Rings
:maxdepth: 1

examples/fodo_channel/README.rst
examples/fodo_channel_restart/README.rst


Lattice Design & Optimization
Expand Down
14 changes: 14 additions & 0 deletions docs/source/usage/parameters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,20 @@ This requires these additional parameters:
* ``<element_name>.nslice`` (``integer``) number of slices used for the application of space charge (default: ``1``)


``source``
^^^^^^^^^^^

``source`` for a particle source.
Typically at the beginning of a beam line.

Currently, this only supports openPMD files from our ``beam_monitor``.

* ``<element_name>.distribution`` (``string``)
Distribution type of particles in the source. currently, only ``"openPMD"`` is supported
* ``<element_name>.openpmd_path`` (``string``)
path to the openPMD series


``tapered_pl``
^^^^^^^^^^^^^^

Expand Down
9 changes: 9 additions & 0 deletions docs/source/usage/python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,15 @@ This module provides elements for the accelerator lattice.
Scale factor (in meters^(1/2)) of the IOTA nonlinear magnetic insert element used for computing H and I.

.. py:class:: impactx.elements.Source(distribution, openpmd_path, name)
A particle source.
Currently, this only supports openPMD files from our :py:class:`impactx.elements.BeamMonitor`

:param distribution: Distribution type of particles in the source. currently, only ``"openPMD"`` is supported
:param openpmd_path: path to the openPMD series
:param name: an optional name for the element

.. py:class:: impactx.elements.Programmable(ds=0.0, nslice=1, name=None)
A programmable beam optics element.
Expand Down

0 comments on commit f0bb85a

Please sign in to comment.