at.lattice.geometry#

Lattice geometry

Functions

get_geometry(ring[, refpts, ...])

Compute the 3D ring geometry in cartesian coordinates

get_geometry(ring, refpts=RefptsCode.All, start_coordinates=(0.0, 0.0, 0.0), h_angle=0.0, v_angle=0.0, centred=False, **kwargs)[source]#

Compute the 3D ring geometry in cartesian coordinates

Parameters:
Returns:
  • geomdatarecarray containing the fields x, y, z, angle, v_angle.

  • radius – machine radius at the beginning of the lattice.

    Attention

    This radius is different from the radius usually defined as \(C/2\pi\)

Example

>>> geomdata, _ = get_geometry(ring)
>>> xcoord = geomdata.x