Skip to content

Commit

Permalink
Detailed example as a separate PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
cemitch99 committed Nov 28, 2024
1 parent eeeab9a commit b6ff25f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 421 deletions.
51 changes: 0 additions & 51 deletions examples/rfcavity/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,54 +52,3 @@ We run the following script to analyze correctness:
.. literalinclude:: analysis_rfcavity.py
:language: python3
:caption: You can copy this file from ``examples/rfcavity/analysis_rfcavity.py``.


.. _examples-rfcavity-distinct:

Acceleration by Multiple Distinct RF Cavities
===============================================

Beam accelerated through a pair of 2 distinct RF cavities (without space charge).

We use a 230 MeV electron beam with initial normalized rms emittance of 1 um.

The first RF cavity coincides with the RF cavity design used in ``examples-rfcavity``.

In this test, the initial and final values of :math:`\lambda_x`, :math:`\lambda_y`, :math:`\lambda_t`, :math:`\epsilon_x`, :math:`\epsilon_y`, and :math:`\epsilon_>


Run
---

This example can be run **either** as:

* **Python** script: ``python3 run_rfcavity_distinct.py`` or
* ImpactX **executable** using an input file: ``impactx input_rfcavity_distinct.in``

For `MPI-parallel <https://www.mpi-forum.org>`__ runs, prefix these lines with ``mpiexec -n 4 ...`` or ``srun -n 4 ...``, depending on the system.

.. tab-set::

.. tab-item:: Python: Script

.. literalinclude:: run_rfcavity_distinct.py
:language: python3
:caption: You can copy this file from ``examples/rfcavity/run_rfcavity_distinct.py``.

.. tab-item:: Executable: Input File

.. literalinclude:: input_rfcavity_distinct.in
:language: ini
:caption: You can copy this file from ``examples/rfcavity/input_rfcavity_distinct.in``.


Analyze
-------

We run the following script to analyze correctness:

.. dropdown:: Script ``analysis_rfcavity_distinct.py``

.. literalinclude:: analysis_rfcavity_distinct.py
:language: python3
:caption: You can copy this file from ``examples/rfcavity/analysis_rfcavity_distinct.py``.
97 changes: 0 additions & 97 deletions examples/rfcavity/analysis_rfcavity_distinct.py

This file was deleted.

120 changes: 0 additions & 120 deletions examples/rfcavity/input_rfcavity_distinct.in

This file was deleted.

Loading

0 comments on commit b6ff25f

Please sign in to comment.