Next: , Previous: expressions, Up: Lattice


3.3 Physical elements and Entities

GMAD implements almost all the standard MAD elements, but also allows to define arbitrary geometric entities and magnetic field configurations. The geometry description capabilities are extended by using “drivers” to other geometry description formats which makes interfacing and standardization easier. The syntax of a physical element declaration is

element_name : element_type, attributes;

for example

qd : quadrupole, l = 0.1*0.1, k1 = 0.01;

element_type can be of basic type or inherited. Allowed basic types are

All elements except element are by default modeled by an iron box (given by the boxSize option) with the vacuum beampipe (defined by beampipeRadius option). An already defined element can be used as a new element type. The child element will have the attributes of the .

     q:quadrupole, l=1*m, k1=0.1;
     qq:q,k1=0.2;