Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Sep 24, 2024
1 parent 6956970 commit 13f11e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/source/usage/parameters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,11 @@ Lattice Elements
openPMD `iteration encoding <https://openpmd-api.readthedocs.io/en/0.14.0/usage/concepts.html#iteration-and-series>`__: (v)ariable based, (f)ile based, (g)roup based (default)
variable based is an `experimental feature with ADIOS2 <https://openpmd-api.readthedocs.io/en/0.14.0/backends/adios2.html#experimental-new-adios2-schema>`__.

* ``<element_name>.cycle_intervals`` (``int``, default value: ``1``)

For periodic lattice, only output every N cycles (turns).
By default, diagnostics is performed every cycle.

* ``<element_name>.nonlinear_lens_invariants`` (``boolean``, default value: ``false``)

Compute and output the invariants H and I within the nonlinear magnetic insert element (see: ``nonlinear_lens``).
Expand Down
3 changes: 2 additions & 1 deletion docs/source/usage/python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ This module provides elements for the accelerator lattice.
:param dy: vertical translation error in m
:param rotation: rotation error in the transverse plane [degrees]

.. py:class:: impactx.elements.BeamMonitor(name, backend="default", encoding="g")
.. py:class:: impactx.elements.BeamMonitor(name, backend="default", encoding="g", cycle_intervals=1)
A beam monitor, writing all beam particles at fixed ``s`` to openPMD files.

Expand All @@ -640,6 +640,7 @@ This module provides elements for the accelerator lattice.
:param name: name of the series
:param backend: I/O backend, e.g., ``bp``, ``h5``, ``json``
:param encoding: openPMD iteration encoding: (v)ariable based, (f)ile based, (g)roup based (default)
:param cycle_intervals: for periodic lattice, only output every N cycles (turns)

.. py:property:: name
Expand Down

0 comments on commit 13f11e1

Please sign in to comment.