analysis_modules.wakefield.ABCI package

Submodules

analysis_modules.wakefield.ABCI.abci_code module

class analysis_modules.wakefield.ABCI.abci_code.ABCI(left_beam_pipe, left_end_cell, mid_cell, right_end_cell, right_beam_pipe)[source]

Bases: object

This class contains functions for writing the cavity geometry in a format readable by ABCI The type of cavity geometry it writes is regular elliptical cavity geometry with mid-cup dimensions equal and end cups different. Geometry type shown in the figure below:

Cavity parametrised model

Note

Considering renaming to better reflect this purpose.

Methods

abci_M(n, zr12_M, WG_L, f, i, end_type)

Writes the mid cup dimensions to a geometry file

abci_bp_L(n, zr12_BPL, WG_L, f)

Writes the left beam pipe dimensions to a geometry file

abci_bp_R(n, zr12_BPR, WG_L, f)

Writes the right beam pipe dimensions to a geometry file

abci_n1_L(n, zr12_L, WG_L, f)

Writes the left end cup dimensions to a geometry file

abci_n1_R(n, zr12_R, WG_L, f)

Writes the right end cup dimensions to a geometry file

rz_conjug(cell)

Calculate shift in geoemetric values

abci_M(n, zr12_M, WG_L, f, i, end_type)[source]

Writes the mid cup dimensions to a geometry file

Parameters
  • n (int) – Number of cavity cells.

  • zr12_M (float) –

  • WG_L (float) – Length of left beam pipe

  • f (file) – Geometry <filename>.geo file to be written to

  • i (int) – Cell index

  • end_type (int) – if end_type = 1 the end HALF cell is changed for tuning. I don’t know what this means. Never had need for it.

Note

Consider renaming zr12_R to reflect what the variable is.

abci_bp_L(n, zr12_BPL, WG_L, f)[source]

Writes the left beam pipe dimensions to a geometry file

Parameters
  • n (int) – Number of cavity cells

  • zr12_BPL (list, array like) –

  • WG_L (float) – Length of left beam pipe

  • f (file) – Geometry <filename>.geo file to be written to

Note

Consider renaming zr12_BPL to reflect what the variable is. Variable n is unused by the function. Consider removing

abci_bp_R(n, zr12_BPR, WG_L, f)[source]

Writes the right beam pipe dimensions to a geometry file

Parameters
  • n (int) – Number of cavity cells.

  • zr12_BPR (float) –

  • WG_L (float) – Length of left beam pipe

  • f (file) – Geometry <filename>.geo file to be written to

Note

Consider renaming zr12_BPR to reflect what the variable is.

abci_n1_L(n, zr12_L, WG_L, f)[source]

Writes the left end cup dimensions to a geometry file

Parameters
  • n (int) – Number of cavity cells.

  • zr12_L (float) –

  • WG_L (float) – Length of left beam pipe

  • f (file) – Geometry <filename>.geo file to be written to

Note

Consider renaming zr12_R to reflect what the variable is. Variable n is unused by the function. Consider removing

abci_n1_R(n, zr12_R, WG_L, f)[source]

Writes the right end cup dimensions to a geometry file

Parameters
  • n (int) – Number of cavity cells.

  • zr12_R (float) –

  • WG_L (float) – Length of left beam pipe

  • f (file) – Geometry <filename>.geo file to be written to

Note

Consider renaming zr12_R to reflect what the variable is.

rz_conjug(cell)[source]

Calculate shift in geoemetric values

Parameters

cell ({"left", "right", "mid"}) – Specifies the cell cup type.

Returns

  • zr12 (list) – Maybe it’s a shift of some sort calculated from the coordinates of the tangent of the ellipses comprising the cavity

  • alpha (float) – Angle of the line tangent to the iris and equator ellipses.

analysis_modules.wakefield.ABCI.abci_geometry module

class analysis_modules.wakefield.ABCI.abci_geometry.ABCIGeometry[source]

Bases: Geometry

Methods

cavity

createFolder

set_geom_parameters

cavity(no_of_cells, no_of_modules, mid_cells_par=None, l_end_cell_par=None, r_end_cell_par=None, fid='_0', MROT=0, beampipes=None, bunch_length=50, MT=3, NFS=5000, UBT=0, DDZ_SIG=0.1, DDR_SIG=0.1, parentDir='', projectDir='', WG_M=None, marker='', sub_dir='')[source]
static createFolder(fid, projectDir, subdir='', marker='')[source]

analysis_modules.wakefield.ABCI.geometry module

class analysis_modules.wakefield.ABCI.geometry.Geometry[source]

Bases: object

Methods

set_geom_parameters

set_geom_parameters(n_cells, mid_cells_par=None, l_end_cell_par=None, r_end_cell_par=None)[source]

Module contents