Traveling wave cavity

Commit: 8ed3eaea
Header: TWCavity.h
Implementation: TWCavity.cxx

Notes

The component consists of adjustable number of regular cells (pillbox cavities) and two coupler cells.  All cells and irises have the same length.

The number of regular cells can be set by the NCells variable (five regular cells are built in the component shown above).

The front and back flanges (shown in blue) are modeled as separate components (VacuumPipe). The radii of flanges and irises can be set independently from each other. The side flanges of the coupler cells are not modeled.

Travelling wave cavity is used, for instance, in the model of the MAX IV TDC beamline:

make maxiv
maxiv -defaultConfig LINAC TDCsegment20 TDCsegment21 TDCsegment22 a

Build

Compilation instructions are described in this section.

make singleItem

MCNP geometry

singleItem --singleItem TWCavity -v TWCavityNCells 5 a

FLUKA and PHITS models can be build by adding the -fluka or -phits arguments.

POV-Ray scene

singleItem -povray --singleItem TWCavity b
povray povray/singleItem.pov